oldid = 0;
	thisid = 0;
	timeid = "";
	oldid2 = 0;
	thisid2 = 0;
	timeid2 = "";
	idlala = "";
	oldid2 = 0;
	nonvisible = 0;
	
	function Fensterhoehe () 
	{
		if (window.innerHeight) 
		{
			return window.innerHeight;
		} 
		else if (document.body && document.body.offsetHeight) 
		{
	    	return document.body.offsetHeight;
	  	} else {
			return 0;
	  	}
	}
	
	function menu(id, art)
	{
		if(oldid == 0)
		{
			oldid = id;
		}
		if(oldid != id)
		{
			document.getElementById(oldid).style.visibility = 'hidden';
			if(oldid2 != 0)
			{
				document.getElementById(oldid2).style.visibility = 'hidden';
			}
		}
		sart = art;
		thisid = id;
		mid = id;
		if(art == 'hidden')
		{
			thisid = 0;
			timeid = window.setTimeout("check_id(mid, sart)", 750);
		} else {
			if(timeid != "")
			{
				window.clearTimeout(timeid);
				timeid = "";
			}
			if(timeid2 != "")
			{
				window.clearTimeout(timeid2);
				timeid2 = "";
			}
			document.getElementById(id).style.visibility = art;
		}
		oldid = id;
	}
	
	function check_id(id, art, var_rands)
	{
		if(thisid == 0)
		{
			document.getElementById(id).style.visibility = art;
		}
	}
	
	function check_id2(id, art, sid)
	{
		if(thisid2 == 0)
		{
			document.getElementById(id).style.visibility = art;
			document.getElementById(sid).style.visibility = art;
		}
	}
	
	function menu2(was, wie)
	{
		if(window.event)
		{
			scrollpositiony=parseInt(document.body.scrollTop);
			var top = scrollpositiony + window.event.clientY - 5;
			document.getElementById(was).style.top = top+"px";
		}
		document.getElementById(was).style.visibility = wie;
	}
	
	function menu3(art, idla, id)
	{
		if(nonvisible != 0 && nonvisible != id)
		{
			document.getElementById(nonvisible).style.visibility = 'hidden';
		}
		if(timeid != "")
		{
			window.clearTimeout(timeid);
		}
		idlala = idla;
		oldid2 = id;
		sart2 = art;
		thisid2 = id;
		mid2 = id;
		if(art == 'hidden')
		{
			thisid2 = 0;
			timeid2 = window.setTimeout("check_id2(mid2, sart2, idlala)", 750);
		} else {
			if(timeid2 != "")
			{
				window.clearTimeout(timeid2);
				timdid2 = "";
			}
			document.getElementById(id).style.visibility = art;
		}
		nonvisible = id;
	}
	
	function showme(div, bild, zusatz)
	{
		height = document.getElementById(bild).height;
		height2 = Fensterhoehe();
		aktu = height2 - height - 5;
		beides = aktu + height;
		if(zusatz != "")
		{
			aktu = aktu - zusatz;
		}
		if(aktu <= 370)
		{
			aktu = 370;
		}
		if(height2 <= (370 + height))
		{
			beides = 370 + height;
		}
		document.getElementById(div).style.top = aktu;
		document.getElementById(div).style.visibility = "visible";
		document.getElementById('space').height = beides;
	}