startList = function() {
	for(k=1;k<=3;k++){
		if (document.getElementById("nav"+k) == null) {
		    continue;
		}
	    var nodes = document.getElementById("nav"+k).getElementsByTagName("LI");
		for (var i=0; i<nodes.length; i++) {
				nodes[i].onmouseover = function() {
				this.className += " over";
			}
				nodes[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp("over\\b"), "");
			}
		}
	}
}

if (window.attachEvent) {
	window.attachEvent('onload', startList);
} else if (window.addEventListener) {
	window.addEventListener('load', startList, false);
}