sfHover=function(){
 var nav=document.getElementById('nav');

var ieULs = nav.getElementsByTagName('ul');
for (j=0; j<ieULs.length; j++) {
	ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
	var ieMat = ieULs[j].firstChild;
	ieMat.style.width=ieULs[j].offsetWidth+"px";
	ieMat.style.height=ieULs[j].offsetHeight+"px";	
	ieULs[j].style.zIndex="99";
}

 if (nav) {
   var sfEls=nav.getElementsByTagName('li');
   for(var i=0;i<sfEls.length;i++){
    sfEls[i].onmouseover=function(){this.className+=' sfhover'}
    sfEls[i].onmouseout=function(){this.className=this.className.replace(' sfhover','')}
   }
 }
}
if(window.attachEvent){window.attachEvent('onload',sfHover)}