$(
 function()
 {
  $("#main-nav #nav li").hover(
   function()
   {
    $(this).addClass("over");
   },
   function()
   {
    $(this).removeClass("over");
   }
  )
 }
)

startList = function() {
	if (document.all||document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					IE6_IframeCtrl('OVER',this);
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					IE6_IframeCtrl('OUT',this);
				}
			}
		}
	}
}
window.onload=startList;

function IE6_IframeCtrl(sDir, oPopUp) {
	var oIfrmElm = document.getElementById("ifrmIE6Fix");
	//var oBGCopy = window.frames.ifrmIE6Fix.window.document.getElementById("IE6FixerImg");
	var oChild=null;
	/*if(oPopUp.id!='product-detail-popup'){
		if(oPopUp.childNodes!=null){
			for(i=0;i<oPopUp.childNodes.length;i++){
				if(oPopUp.childNodes[i].className=='sub-menu-box'){
					oChild = oPopUp.childNodes[i];
					break;
				}
			}
		}
	} else {
		oChild = oPopUp;
	}*/
	if(sDir == 'OVER') {
		//Show
		if(oChild!=null){
			oIfrmElm.style.left = oPopUp.offsetLeft + 'px';
			oIfrmElm.style.top = (oPopUp.offsetTop + oChild.offsetTop) + 'px';
			oIfrmElm.style.width = oChild.offsetWidth + 'px';
			//oBGCopy.style.width = oChild.offsetWidth + 'px';
			oIfrmElm.style.height = oChild.offsetHeight + 'px';
			//oBGCopy.style.height = oChild.offsetHeight + 'px';
			oIfrmElm.style.display = 'block';
		}
	} else {
		//Hide
		oIfrmElm.style.display = 'none';
	}
}