	/* 	Javascript Menu 
	*  	Entwickelt von Fassi
	*	Features: Gradient, opacity
	*	FEB 2006
	*/
	var menu_count = 4;
	menu_bgcolor = new Array('#ffffff', '#ffffff', 'ffffff');
	menu_gradient = new Array('url(apps/menue/grad1.gif)', 'url(apps/menue/grad1.gif)', 'url(apps/menue/grad1.gif)');
	menu_borderStyle = 'solid';
	menu_borderWidth = '1px';
	menu_borderFrontColor = '#aaaaaa';
	menu_borderBackColor = '#222222';
	//menu_filter = 'alpha(opacity=100)';
	//menu_width= '150px';
	menu_mouseover_bg_color = '#D90022';
	var fading = false;
	var oc = 0;
	var startid = 10001;
	
    function fadeIn(id) {
        document.getElementById(id).style.filter="alpha(opacity="+oc+")"
        if(oc < 90) {
         	setTimeout('oc=oc+15;fadeIn('+id+')',15) ;
        }
    }

	function showLayer(id) {
		return(0);
		var obj = document.getElementById(id)
		if (obj.style.visibility == 'hidden'){ 
	 		unselectAll();
			obj.style.visibility = 'visible';
			if (fading) {
				oc = 0;
				fadeIn(obj.id);
			} else {
		 		obj.style.filter = 'alpha(opacity=100)';
			}
		}
	}

	function init_menu(mcount){
		var count = 0;
		menu_count = mcount;
		for (var i = startid; i <= startid + menu_count-1; i++) {
			count++;
			document.getElementById(i).style.backgroundColor = menu_bgcolor[1];
			document.getElementById(i).style.borderStyle = menu_borderStyle;
			document.getElementById(i).style.borderWidth = menu_borderWidth;
			document.getElementById(i).style.borderRightWidth = '1px';
			document.getElementById(i).style.borderBottomWidth = '1px';

			document.getElementById(i).style.borderLeftColor = menu_borderFrontColor;
			document.getElementById(i).style.borderTopColor = menu_borderFrontColor;
			document.getElementById(i).style.borderRightColor = menu_borderBackColor;
			document.getElementById(i).style.borderBottomColor = menu_borderBackColor;

			//document.getElementById(i).style.filter = menu_filter;
			//document.getElementById(i).style.width = menu_width;

			document.getElementById(i).style.backgroundRepeat = 'repeat-x';
			document.getElementById(i).style.backgroundImage = menu_gradient[1];

		}	
		unselectAll();
		document.body.onclick=unselectAll;
	}
	
	function unselectAll(){
		for (var i = startid; i <= startid + menu_count-1; i++) {
			document.getElementById(i).style.visibility = 'hidden';
		}	
	}
	
	function changeBgOver(obj) {
		obj.style.backgroundColor = menu_mouseover_bg_color;
		obj.style.color = '#ffffff';
	}
	
	function changeBgOverMainItem(obj) {
		//obj.style.backgroundColor = '#000088';
		obj.style.backgroundColor = '#2942BE';
		obj.style.borderColor = '#2942BE';
		obj.style.backgroundImage = '';
		//obj = obj.childNodes(0);
		//obj.style.color = '#D90022';
	}
	
	function changeBgOutMainItem(obj) {
		obj.style.backgroundColor = '#495EC8';
		obj.style.borderColor = '#495EC8';
		obj.style.backgroundImage = 'url(../images/shadow1.gif)';

		//obj.style.color = '#ffffff';
	}


	function changeBgOut(obj) {
		obj.style.backgroundColor = '';
		obj.style.filter = '';
		obj.style.color = '#000000';
	}

	function wOpen (Adresse) {
  		newWindow = window.open(Adresse, "", "");
  		newWindow.focus();
	}

	function goto (Adresse) {
  		window.location.href = Adresse;
	}

	function activeTab(id) {
		var _url = document.URL;

		id = '';
		if (_url.match('default') ==  'default') id = '10001';
		if (_url.match('index') ==  'index') id = '10001';
		if (_url.match('standard') ==  'standard') id = '10001';
		if (_url.match('home') ==  'home') id = '10001';
		if (_url.match('flug') ==  'flug') id = '10002';
		if (_url.match('hotel') ==  'hotel') id = '10003';
		if (_url.match('mietwagen') ==  'mietwagen') id = '10004';
		if (_url.match('ferienhaeuser') ==  'ferienhaeuser') id = '10005';
		if (_url.match('pauschalreisen') ==  'pauschalreisen') id = '10006';
		if (_url.match('eigenanreise') ==  'eigenanreise') id = '10007';
		if (_url.match('kreuzfahrten') ==  'kreuzfahrten') id = '10008';
		if (_url.match('versicherung') ==  'versicherung') id = '10009';
		if (_url.match('links') ==  'links') id = '10010';
		
		if (id != ''){
		obj = document.getElementById(id).parentElement;
		obj.style.backgroundColor = '#D90022';
		obj.style.color = '#ffffff';
		}
		//obj.parentElement.style.borderColor = '#D90022';
	}