oldid=1;
function toggle(id) {
		
	document.getElementById('tab'+id).style.display = 'block';
	document.getElementById('maintab'+id).style.backgroundColor = 'white';
	document.getElementById('maintab'+id).style.border = '1px solid #979797';
	document.getElementById('maintab'+id).style.borderBottom = '1px solid #fff';
		
	if(document.getElementById('tab'+oldid) && oldid)
	{
		document.getElementById('tab'+oldid).style.display = 'none';
		document.getElementById('maintab'+oldid).style.backgroundColor = '#C8DCF0';
		document.getElementById('maintab'+oldid).style.borderLeft = '1px solid #fff';
		document.getElementById('maintab'+oldid).style.borderRight = '1px solid #fff';
		document.getElementById('maintab'+oldid).style.borderTop = '1px solid #fff';
		document.getElementById('maintab'+oldid).style.borderBottom = '1px solid #979797';
	
	}
	
	oldid=id;
}

if(window.navigator.systemLanguage && !window.navigator.language) 
  {
    function hoverIE() {
      
      var LI = document.getElementById("nav").firstChild;
      do {
        if (sucheUL(LI.firstChild)) {
          LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
        }        LI = LI.nextSibling;
      }
      while(LI);
    }
      function sucheUL(UL) {
      do {
        if(UL) UL = UL.nextSibling;
        if(UL && UL.nodeName == "UL") return UL;
      }
      while(UL);
      return false;
    }  
       
function einblenden() {
     
      var UL = sucheUL(this.firstChild);
      UL.style.left="auto";
      UL.style.display = "block"; 
}   
    
function ausblenden() {
      sucheUL(this.firstChild).style.display = "none";
}      

window.onload=hoverIE;  }
