startList = function() {
  var navNodes = new Array('primaryNav','sideNav');
  count = 0;
  if(document.all && document.getElementById) {
    for(z=0;z < navNodes.length;z++)
    {
      var arrNodes = new Array();
      arrNodes[0] = document.getElementById(navNodes[z]);
      for(i=0;i < arrNodes.length; i++)
      {     
        try {        
          for(j=0;j < arrNodes[i].childNodes.length; j++)
          {
            node = arrNodes[i].childNodes[j];
            if(node.nodeName == "LI") {
              node.onmouseover=function() {          
                this.className+="Over";
              }
              node.onmouseout=function() {
                this.className=this.className.replace("Over", "");
              }  
              count++;
            }//if
          
            //Add this node to the array so we can examine its children.
            arrNodes[arrNodes.length] = node;
          }//for
        }//try
        catch(e) {
          //Do nothing... the page probably doesn't have a side navigation.
        }//catch
      }//for
    }//for
  }//if
}//startList

window.onload=startList;
