iehover = function() {
	//if not ie then return
	if (navigator.userAgent.toLowerCase().indexOf('msie') == -1) return;
	
	//get topNav
	var topNav = document.getElementById('topNavContainer');
	if (topNav) {
	
		//loop through all lis
		var ieLIs = topNav.getElementsByTagName('li');

		for(var i=0; i<ieLIs.length; i++){
			var li = ieLIs[i];

			//add mouseovers to parents only
			if (li.className.indexOf("navTop") > -1) {
				li.onmouseover=function() { this.className+=" csshover"; }
				li.onmouseout=function() { this.className=this.className.replace(" csshover", ""); }

				//get first ul
				var ul = li.getElementsByTagName("ul")[0];
				if(ul) {
			
					//create iframe and add to li
					var iframe = document.createElement("iframe");	
					iframe.src = "about:blank";
					iframe.style.height = (ul.offsetHeight) + "px";
					iframe.style.width = (ul.offsetWidth) + "px";
					li.appendChild(iframe);
					
					
					//set zindexes
					iframe.style.zIndex = 2;
					ul.style.zIndex = 3;
					if(i==0) {
						//document.write(li.innerHTML + "<br><br><pre>" + li.innerHTML + "</pre>");
						//alert(li.innerHTML);
					}

					
				}			
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", iehover);
