

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() {
	this.className+=" over";
  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

ieHover = function() {
	var ieLIs = document.getElementById('nav').getElementsByTagName('li');
	if(!ieLIs){
		//alert("no nested LIs found!");
		} else {
		
		//alert("nested LIs found... replacing.");
		
			for (var i=0; i<ieLIs.length; i++) {
			
				if (ieLIs[i]) {
				
					ieLIs[i].onmouseover=function() {
					
						var ieUL = this.getElementsByTagName('ul')[0];
						if (ieUL) {
							var ieMat = document.createElement('iframe');
							ieMat.style.width=ieUL.offsetWidth+"px";
							ieMat.style.height=ieUL.offsetHeight+"px";	
							ieUL.insertBefore(ieMat,ieUL.firstChild);
							ieUL.style.zIndex="99";
							}
					
					this.className+=" iehover";
					
					}
					
					ieLIs[i].onmouseout=function() {
						this.className=this.className.replace(' iehover', '');
					}
				
				}
	
			}

		}

}
	
if (window.attachEvent) {
	//alert("window.attachevent found!");
	window.onload=ieHover;
	} else {
	//alert("no window.attachevent found!");
	}




function rollover(name, onoff){
	if(document.getElementById){

		var element = document.getElementById("highlight");
		element.innerHTML="";
		element.innerHTML=name;
		if (onoff=='off'){
			element.style.visibility = 'hidden';
			} else {
			element.style.visibility = 'visible';
			}
	}
}



