function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
function swapImg(id,src){
if(!document.getElementById(id))return false;
image = document.getElementById(id);
image.setAttribute("src",src);
}
function renameNav(){
if (!document.getElementById("nav1"))return false;
document.getElementById("nav1").setAttribute("id","nav");
}
startList = function() {
if (!document.getElementById("nav"))return false;
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
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", "");
   }
   }
  }
 }
}
addLoadEvent(renameNav);
addLoadEvent(startList);
