// JavaScript Document by Nick Rigby edited by Derrick Dardano
//Original
/*
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav2");
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", "");
   }
   }
  }
 }
}
*/

startList = function() {
if (document.all&&document.getElementById) {
var idArray = new Array();
idArray[0] = "nav";
idArray[1] = "nav2";
idArray[2] = "nav3";

for(var x=0;x<idArray.length;x++){
	iterateNav(idArray[x]);
}
 }
}

function iterateNav(id){
navRoot = document.getElementById(id);
if(navRoot==null)
	return;
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;