// JavaScript Document

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
	ULList=this.getElementsByTagName('ul');
	if(ULList.length){
		ULList[0].onmouseover=function(){
			this.parentNode.className+="_hover";
		}
		ULList[0].onmouseout=function(){
			this.parentNode.className=this.parentNode.className.substring(0,9);
		}
	}
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

/*
startList = function() {
//if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {

node.onmouseover=function() {
	alert(this.nodeName);
this.className+=" over";

ULList=this.getElementsByTagName('ul');
if(ULList.length){
	var submenu=ULList[0];
	submenu.onmouseover=function(){
		parentLI=this.parentNode;
		ALIST=parentLI.getElementsByTagName('a');
		ALIST[0].className+="_hover";
	}
	submenu.onmouseout=function(){
		parentLI=this.parentNode;
		ALIST=parentLI.getElementsByTagName('a');
		ALIST[0].className=ALIST[0].className.substring(0,5);
	}

}
}

node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
  var parentLI=this.parentNode;


   }
   }
  }
}
*/
