function menuInit() { 
	if(navigator.appVersion.indexOf("MSIE")==-1){return;}
	var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='header_menu';
	for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
	lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
	lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
	this.className=cl;};lg[k].onmouseout=function(){c=this.className;
	this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}

function addEvent(target, functionref, tasktype) {
	var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
	if (navigator.userAgent.toLowerCase().indexOf('applewebkit')!=-1) //for Safari
		target.addEventListener(tasktype, functionref, false)
	else if (target.addEventListener) //for Firefox
		target.addEventListener("DOMContentLoaded", functionref, false)
	else if (target.attachEvent) //for Explorer
		target.attachEvent(tasktype, functionref)
}

addEvent(window, menuInit, 'load');
window.onresize=menuInit;