//http://www.alistapart.com/articles/hybrid/
//http://www.alistapart.com/articles/hybrid/
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("mainnav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
shut_off("on");
  }
  node.onmouseout=function() {
  this.className=this.className.replace
        (" over", "");	shut_off("off");
   }
   }
  }
 }
}
 
function shut_off(blah){
	if (document.getElementById) {
		navRoot = document.getElementById("first_menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if (blah == "on"){
					navRoot.childNodes[i].className=navRoot.childNodes[i].className.replace("on ", "off off2 ");
					
				} else {
					navRoot.childNodes[i].className=navRoot.childNodes[i].className.replace("off off2 ", "on ");
				}
			}
		}
	}
}
 
window.onload=startList;


