var lastMenu = ""; var lastMenuText = "";var menuIntents = new Object();var currentCat = "";var currentSubCat ="";menuIntents['Unternehmen'] = "50px";menuIntents['Presse'] = "160px";menuIntents['Service'] = "312px";menuIntents['Kontakt'] = "352px";menuIntents['Treuhand'] = "100px";menuIntents['Beteiligung'] = "120px";menuIntents['Downloads'] = "190px";function showCurrentCategory(){	if(window.location.search != ""){	var cats = window.location.search.split("=");	if(cats.lenght > 1 || true){		currentCat = cats[1].split("&")[0];		currentSubCat = cats[2];		showSubMenu(currentCat);		markCurrentMenus();		}	}}function markCurrentMenus(){	if(document.getElementById(currentCat+"_item")){		document.getElementById(currentCat+"_item").style.color="#40516f";	}	if(document.getElementById(currentSubCat+"_item")){		document.getElementById(currentSubCat+"_item").style.color="#40516f";	}}function hoverCategory(cat){	if(document.getElementById(cat)){		if(lastMenu!="" && lastMenu != currentCat){			document.getElementById(lastMenu+"_item").className = "";			document.getElementById(lastMenu+"_arrow").style.visibility = "hidden";		}		lastMenu = cat;		lastMenuText = document.getElementById(cat+"_item").innerHTML;				document.getElementById(cat+"_item").className = "text_marked";		document.getElementById(cat+"_arrow").style.visibility = "visible";				}	}	function showSubMenu(cat){		if(document.getElementById(cat) && menuIntents[cat]){		document.getElementById(cat).style.visibility = "visible";		document.getElementById('submenus').style.marginLeft = menuIntents[cat];		document.getElementById(cat+"_arrow").style.visibility = "visible";		}	}function mout(){	hoverCategory(currentCat);	}	