var isopen = false;
function toggle(lay) {
    if (lay == isopen) {
        document.getElementById(isopen).style.display = 'none'; 
        isopen = false;
        return null;
    }
    if(isopen) {
        document.getElementById(isopen).style.display = 'none';
        isopen = false;
    }
    document.getElementById(lay).style.display = '';
    isopen = lay;
}



navHover = function() {
	var lis = document.getElementById("navimenue").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


function switch_bgc(el,stat) {
    el.style.color           =  stat? "#fff" 	: "#9c9c9c";
    el.style.backgroundColor =  stat? "#c2c2c2" : "#e2e1e1";
}

function wechsel(htmlcode) {
	document.getElementById("bildnews").innerHTML = htmlcode;
}

