var ID;

function einklappen(ebene){
  	eval("ID = setTimeout(\"einklapp('" + ebene + "')\" ,550)");
  }
  
function einklapp(ebene){
	window.document.getElementById(ebene).style.display='none';
	}
  
function ausklappen(ebene){
	window.document.getElementById(ebene).style.display='block';;
	if (ID) {clearTimeout(ID);}
}

function init(page){
	switch (page) {
		case "start":
			hidesubnavi();
		break;
		case "kontakt":
			hidesubnavi();
			window.document.getElementById('td1').focus();
			window.document.getElementById('td1').select();
		break;
	}
}

function tooltip_1(evnt){
 if (!evnt) evnt = window.event;
 if (window.document.getElementById("ytip")){
 ytob = window.document.getElementById("ytip"); 
 ytob.style.left = evnt.screenX +10 + "px";
 ytob.style.top = evnt.screenY -180 + "px";
 }
}

function show_tooltip(id,stat){
	if(stat==1) window.document.getElementById(id).style.display='block'; 
	if(stat==0) window.document.getElementById(id).style.display='none';
}

function hidesubnavi(){
		window.document.getElementById("ID201").style.display='none';
		window.document.getElementById("ID202").style.display='none';
		if (window.document.getElementById("ytip")) window.document.getElementById("ytip").style.display='none';
}
function coloract(otid,act){
 var tid,act;
 tid=otid.id;
 if(act==1) window.document.getElementById(tid).style.background='#FFE4E4';
 if(act==2) window.document.getElementById(tid).style.background='#FFFFFF';
 if(act==0) window.document.getElementById(tid).style.background='#FAFAFA';
}


 // document.onmouseover = tooltip;
 document.onmousemove=tooltip_1;
