function selectMenuIn(node) {
	// Timeouts läschen
	if (document.closeMenuTimeout) {
		clearTimeout(document.closeMenuTimeout);
	}
	
	// Ale Menu zoumaachen
	if (document.menuToClose && document.menuToClose != node) {
		closeMenu();
	}	
	

	ul = node.getElementsByTagName("ul");
	if (ul.length != 0) {
		ul[0].style.display = 'block';
		if (isIE()) {
			pos = findPos(node);
			ul[0].style.left = (pos[0]-40)+"px";
			ul[0].style.top = (pos[1]+node.offsetHeight-4)+"px";
		}
	}
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "white";
		node.style.backgroundColor = "#999999";
	}	
}
function selectSubMenuIn(node) {
	// Timeouts läschen
	if (document.closeSubMenuTimeout) {
		clearTimeout(document.closeSubMenuTimeout);
	}
	
	// Ale SubMenu zoumaachen
	if (document.subMenuToClose && document.subMenuToClose != node) {
		closeSubMenu();
	}	
	

	ul = node.getElementsByTagName("ul");
	if (ul.length != 0) {
		ul[0].style.display = 'block';
		if (isIE()) {
			pos = findPos(node);
			ul[0].style.left = (pos[0]+node.offsetWidth-307)+"px";
			ul[0].style.top = (pos[1]-61)+"px";
		}
	}
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "white";
		node.style.backgroundColor = "#999999";
	}	
}
function selectSubSubMenuIn(node) {
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "white";
		node.style.backgroundColor = "#999999";
	}	
}

function selectMenuOut(node) {
	document.menuToClose = node;
	document.closeMenuTimeout = setTimeout("closeMenu()", 1500);
}
function selectSubMenuOut(node) {
	document.subMenuToClose = node;
	document.closeSubMenuTimeout = setTimeout("closeSubMenu()", 1500);
}
function selectSubSubMenuOut(node) {
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "#ff9900";
		node.style.backgroundColor = "white";
	}		
}


function closeMenu() {
	node = document.menuToClose;
	ul = node.getElementsByTagName("ul");
	if (ul.length != 0) {
		ul[0].style.display = 'none';
	}
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "#ff9900";
		node.style.backgroundColor = "white";
	}		
}
function closeSubMenu() {
	node = document.subMenuToClose;
	ul = node.getElementsByTagName("ul");
	if (ul.length != 0) {
		ul[0].style.display = 'none';
	}
	if (isIE()) {
		if (node.firstChild.style) node.firstChild.style.color = "#ff9900";
		node.style.backgroundColor = "white";
	}		
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}

function isIE() {
     //return true;
     return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}

function zesummeBauen(wou,zweetSteck,eischtSteck,MillenNumm) {
    var ufank1='ma';
    var ufank2='ilt';
    var ufank3='o:';
    var KA='@';
    var punti = '.';
    location=ufank1+ufank2+ufank3+eischtSteck+zweetSteck+KA+MillenNumm+punti+wou;
}

