function over(menu) {
   window.document.getElementById(menu).style.backgroundColor = "#1F2C64";
   window.document.getElementById(menu).style.color = "#CC9933";

}
function out(menu) {
   	window.document.getElementById(menu).style.color = "#22306D";
    window.document.getElementById(menu).style.backgroundColor = "#E6B123";

}
function outs(menu) {
	var a;
	a = "d" + menu;
   window.document.getElementById(a).style.backgroundColor = "#C6C6E8";

}


function overs(menu) {
	var a;
	a = "d" + menu;
   window.document.getElementById(a).style.backgroundColor = "#EEF78A";
}
function overm(menu) {
	var a;
	a = "punkt" + menu;
	window.document.getElementById(a).style.backgroundColor = "#F5DEA4";}

function outm(menu) {
	var color;
	var a;
	var b;
	a = "punkt" + menu;
	color="#04A3FF";
	window.document.getElementById(a).style.backgroundColor = color;


}

function outh(menu) {
	var color;
	var a;
	var b;
	a = "punkt" + menu;
	color="#4765E5";
	window.document.getElementById(a).style.backgroundColor = color;


}


function closeother()
{
	
	var ar = window.document.getElementById("rahmen").getElementsByTagName("div");
	for (var i=0; i<ar.length; i++){
		if(ar[i].className=="subm")	ar[i].style.display="none";
		if(ar[i].className=="menu")	ar[i].style.backgroundColor="#04A3FF";
	}
}

function switchmenu(menu)
{
	var flag;
	var a;
	var b;
	var c;

	a= "unter" + menu;
	b= "punkt" + menu

	var num = window.document.getElementById(b).getElementsByTagName("div");
	
	if (window.document.getElementById(a).style.display=="block") flag="none";
		else flag="block";
	closeother();
	window.document.getElementById(a).style.display=flag;
	if (flag =="block") window.document.getElementById(b).style.backgroundColor = "#4765E5";
		else window.document.getElementById(b).style.backgroundColor = "#04A3FF";

	
}

function gym_in(gym) {
	
	if (window.document.getElementById(gym).style.display=="block") flag="none";
	else flag="block";	
	hidegym();
	window.document.getElementById(gym).style.display=flag;


}
function gym_out(gym) {
	


	flag = "none";
			
	window.document.getElementById(gym).style.display=flag;

}
function hidegym()
{
	
	var ar = window.document.getElementById("stift").getElementsByTagName("div");
	for (var i=0; i<ar.length; i++){
		if(ar[i].className=="gym")	ar[i].style.display="none";
	}
}
