window.onload=function() {
	lis=document.getElementById("navbar").getElementsByTagName("li");	
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			if ( this.className ) {
				this.className+=" simHover";
			}
			else {
				this.className="simHover";
			}
		}
		lis[i].onmouseout=function() {
			if ( this.className ) {
				var classList=this.className.split(' ');
				for (var j=0; j<classList.length; j++ ) {
					if ( classList[j]=="simHover" ) {
						classList.splice(j, 1);
						i--;
					}
				}
				this.className=classList.join(' ');
			}
		}
	}
}