// JavaScript Document
function start() {
	if (document.all) {
	  <!-- Dropdown-Menue Fachbereich 1 -->
      navRootElement = document.getElementById("mainnav");
      for (i=0; i<navRootElement.childNodes.length; i++)
      {
         node = navRootElement.childNodes[i];
         if (node.nodeName=="LI")
         {
            node.onmouseover=function()
            {
            	this.className+="hover";
            }
            node.onmouseout=function()
            {
               this.className=this.className.replace("hover", "");
            }
         }
      }
	  
	  secNavRootElement = document.getElementById("fbereich2-second");
      for (i=0; i<secNavRootElement.childNodes.length; i++)
      {
         node = secNavRootElement.childNodes[i];
         if (node.nodeName=="LI")
         {
		 		 if(i == 0){
					var lastClass="snav-first";
					
					node.onmouseover=function()
					{
						this.className ="hover snav-first";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "snav-first");
					}
					
				 } else if (i == (secNavRootElement.childNodes.length-1)){
					var lastClass="snav-last";
					
					node.onmouseover=function()
					{
						this.className ="hover snav-last";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "snav-last");
					} 
		 		 } else {

					var lastClass="";
					
					node.onmouseover=function()
					{
						this.className ="hover";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "");
					}
				 }
         }
      }
	  
	  thirdNavRootElement = document.getElementById("fbereich3-second");
      for (i=0; i<thirdNavRootElement.childNodes.length; i++)
      {
         node = thirdNavRootElement.childNodes[i];
         if (node.nodeName=="LI")
         {
		 		 if(i == 0){
					var lastClass="snav-first";
					
					node.onmouseover=function()
					{
						this.className ="hover snav-first";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "snav-first");
					}
					
				 } else if (i == (thirdNavRootElement.childNodes.length-1)){
					var lastClass="snav-last";
					
					node.onmouseover=function()
					{
						this.className ="hover snav-last";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "snav-last");
					} 
		 		 } else {

					var lastClass="";
					
					node.onmouseover=function()
					{
						this.className ="hover";
						
					}
					node.onmouseout=function()
					{
					   this.className=this.className.replace("hover", "");
					}
				 }
			}
         }
      }
	  
	  
	  
/*      for (i=0; i<thirdNavRootElement.childNodes.length; i++)
      {
         node = thirdNavRootElement.childNodes[i];
         if (node.nodeName=="LI"  &&  i != 0 && i != (thirdNavRootElement.childNodes.length-1))
         {
            node.onmouseover=function()
            {
            	this.className ="hover";
            }
            node.onmouseout=function()
            {
               this.className=this.className.replace("hover", "");
            }
         }
      }
   }*/
   
}
window.onload = function()
{
	start();
};