function startList() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
	if (navRoot)
	{
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace(" over", "");
		   }
		 }
		}
	}	
    horRoot = document.getElementById("hor");
    if (horRoot)
    {
		for (i=0; i<horRoot.childNodes.length; i++) {
		node = horRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		 if (this.className.indexOf(" over")== -1)
      {
        this.className+=" over";
      }
		  }
		  node.onmouseout=function() {
       setTimeout("checknav()", 1);
		   }
		 }
		}
	}
  }
}

function leave_menu(){
  checknav();
// setTimeout("checknav()", 1);
}

function resetnav(){
  horRoot = document.getElementById("hor");
  if (horRoot)
  {
		for (i=0; i<horRoot.childNodes.length; i++) {
      node = horRoot.childNodes[i];
      if (node.nodeName=="LI") {	
        node.className=node.className.replace(" over", "");
      }
    }
  }
}

function checknav(){  
  if (navmenu_in=="" || (navmenu_in!="" && navmenu_out!="" && navmenu_in!=navmenu_out ) )
  {
    this_el = document.getElementById(navmenu_out);
    if (this_el!=null)
    {
      this_el.className=this_el.className.replace(" over", "");  
    }    
  }
}
 
var navmenu_out = "";
var navmenu_in = "";

function menu_in(element){
 navmenu_in = element; 
}


function menu_out(element){
 navmenu_out = element;
 navmenu_in = "";
}
