function menu (el1, el2)
{
 	if (document.getElementById(el2)){
	document.getElementById(el2).style.marginLeft = (el1.offsetWidth - 128) + 'px'; 
	}
}		
	
jsHover = function() {
	var hEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0, len=hEls.length; i<len; i++) {
		hEls[i].onmouseover=function() { this.className+=" jshover"; }
		hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
	}
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
