function menuClick(elem) {
	if(document.getElementById(elem).style.display == "none") {
    	document.getElementById(elem).style.display = "block";
        if (elem == "partner")
        	document.getElementById(elem).parentNode.height = 52;
        if (elem == "uns" || elem == "yp")
        	document.getElementById(elem).parentNode.height = 67;
        if (elem == "vorstand")
            document.getElementById(elem).parentNode.height = 133;
    }
	else {
		document.getElementById(elem).style.display = "none";
        document.getElementById(elem).parentNode.height = 21;
	}
}

function over(link) {
	if (link.style.color.toLowerCase() != "#ff9934")
		link.style.color = "#FF9933";
}

function out(link) {
	if (link.style.color.toLowerCase() != "#ff9934")
		link.style.color = "#FFFFFF";
}

function setHigh(link) {
   	if (link.parentNode.nodeName != "SPAN") {
        for (i=0;i<document.getElementsByTagName("SPAN").length;i++) {
    		document.getElementsByTagName("SPAN")[i].style.display = "none";
        	document.getElementsByTagName("SPAN")[i].parentNode.height = 21;
    	}
   		for (i=0;i<document.getElementsByTagName("a").length;i++)
	    	document.getElementsByTagName("a")[i].style.color = "#FFFFFF";
    } else {
    	;
    }
	link.style.color = "#FF9934";
}

function swapImage(img) {
	if (img.src.indexOf("_t_s") != -1)
    	img.src = img.src.replace(/_t_s/, "_t_c");
    else
    	img.src = img.src.replace(/_t_c/, "_t_s");
}

function frmEmpfehlung(adresse){
	var win;
	win=window.open(adresse,'Fensterli','width=450,height=450,resizable=no,location=no,directories=no,scrollbars=no,menubar=no,toolbar=no');
}

function frmAnmeldung(adresse){
	var win;
	win=window.open(adresse,'Fensterli','width=450,height=450,resizable=no,location=no,directories=no,scrollbars=no,menubar=no,toolbar=no');
}

function swapBanner(img) {
    try {
		top.head.document.getElementById("banner").src = img;
        window.clearInterval(timer);
    } catch(e) {
    }
}