var W3CDOM = (document.createElement && document.getElementsByTagName);window.onload = init;function init(){	if (!W3CDOM) return;	var lis = document.getElementById("navLinks").getElementsByTagName("LI");	for (var i=0; i<lis.length; i++) {		lis[i].onmouseover=function() {			this.className+=" over";		}		lis[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" over\\b"), "");		}	}	}