function startList() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    //navRoot = navRoot_0.childNodes[0];
    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", "");
        }
      }
    }
  }
}

$(document).ready(function() {
  startList();
  /*$("#nav li").mouseover(function() {
    $(this).addClass("over");
  });
  $("#nav li").mouseout(function() {
    $(this).removeClass("over");
  });*/
  $("#nav li ul").mouseover(function() {
    $($(this).parent()).addClass("over");
  });
  $("#nav li ul").mouseout(function() {
    $($(this).parent()).removeClass("over");
  });
});
