//this function runs when the page is loaded so put all your other onload stuff in here too.
function init() {
	startList();
}

startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("nav");
        for (i=0; i<navRoot.getElementsByTagName('LI').length; i++) {
            node = navRoot.getElementsByTagName('LI')[i];
            node.onmouseover=function() { this.className+=" over"; }
            node.onmouseout=function() { this.className=this.className.replace(" over", "");}
        }
    }
}

window.onload = init;