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

function addLoadEvent(func) 
{ var oldonload = window.onload;
  if (typeof window.onload != 'function') 
  { window.onload = func; } 
  else 
  { window.onload = function() 
    { oldonload();
      func();
    }
  }
}

AttachEvent=startList;

if (window.addEventListener) { //DOM method for binding an event
	window.addEventListener("load", AttachEvent, false);
}
else if (window.attachEvent) { //IE exclusive method for binding an event
	window.attachEvent("onload", AttachEvent);
}
else if (document.getElementById) { //support older modern browsers
	window.onload=AttachEvent;
}

