// JavaScript for css list-generated menus
  function pause(numberMillis) {
        var now = new Date();
        var exitTime = now.getTime() + numberMillis;
        while (true) {
            now = new Date();
            if (now.getTime() > exitTime)
                return;
        }
    }

  startLists = function() {
     	var uagent = navigator.userAgent;
	var ag;
     if (document.all&&document.getElementById&&(uagent.indexOf("MSIE") != -1)) {
	navRootLeft = document.getElementById("navl");
	navRoot = document.getElementById("nav");
	ag = "ie";
} else {
	navRootLeft = document.getElementById("navl");
	navRoot = document.getElementById("nav");
	ag = "not";
}
	 for (i=0; i<navRootLeft.childNodes.length; i++) {
	     node = navRootLeft.childNodes[i];
	     if (node.nodeName=="LI") {
		 node.onmouseover=function(){
		     (ag=="ie") ? this.className+=" over": document.className+=" over";
		 }
		 node.onmouseout=function(){
			pause(100);
			(ag=="ie") ? this.className=this.className.replace(" over", "") : document.className=document.className.replace(" over", "");
			 }
	     }
	 }

	 for (i=0; i<navRoot.childNodes.length; i++) {
	     node = navRoot.childNodes[i];
	     if (node.nodeName=="LI") {
		 node.onmouseover=function() {
		     (ag=="ie") ? this.className+=" over" : document.className+=" over";
		 }
		 node.onmouseout=function() {
			pause(50);
		     (ag=="ie") ? this.className=this.className.replace(" over", "") : document.className=document.className.replace(" over", "");
	 }
     }
 }
}

window.onload=startLists;


