
/**

  Simon Willison's awesome load event function, for multiple onload events

  More information:
  http://simon.incutio.com/archive/2004/05/26/addLoadEvent

**/

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");

items = document.getElementById("nav").getElementsByTagName("li");

for (i=0; i<items.length; i++) {
node = items[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";

}
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
 
}

addLoadEvent(startList);
