navHover = function() {
			var lis = document.getElementById("menunav").getElementsByTagName("LI");
			for (var i=0; i<lis.length; i++) {
				
				lis[i].onmouseover=function() {
					this.className+=" iehover";					
					var ul = this.lastChild;					
					if(ul.nodeName=="UL"){					
						generateCoverElement(this.id,ul);					
					}
				}				
				lis[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" iehover\\b"), "");
				}
			}
		}
		
if (window.attachEvent) window.attachEvent("onload", navHover);
		
function G(id) {
	return document.getElementById(id);
}

function GC(e) {
	return document.createElement(e);
}


function getoffset(e) 
{  
	var t=e.offsetTop;  
	var l=e.offsetLeft;  
	while(e=e.offsetParent) 
	{  
	  t+=e.offsetTop;  
	  l+=e.offsetLeft;  
	}  
	var rec = new Array(1); 
	rec[0]  = t; 
	rec[1] = l; 
	return rec
}

function generateCoverElement(liID,curul){
	
	var ulID = liID + "_ul";
	if(G(ulID)){
		G(ulID).style.display = "";		
	}else{
		var coverUL = GC("ul");						
		coverUL.id = ulID;
		coverUL.appendChild(createCoverIfm(liID,curul));		
		G(liID).insertBefore(coverUL,G(liID).firstChild);		
	}		
}

function createCoverIfm(liID,curul){

	var frameID = liID + "_fm";
	
	if(G(frameID)){
		G(frameID).style.display = "";
	}else{
		var coverIfm = GC("iframe");
		document.body.appendChild(coverIfm);
		coverIfm.id = frameID;			
		with(coverIfm.style){
			position = "absolute";			
				width	= 187;
				var liNum = curul.childNodes.length;
				height	= 22 * liNum + 1;
				var pos = getoffset(curul);
				top		= 0;
				left    = 0;
				zIndex	=  -1;
				
				filter= "Alpha(Opacity=0)";		
		}
		
	}
	return G(frameID);
}