if(window.XMLHttpRequest) { // check for IE7
	ieHover = function() {
		var ieULs = document.getElementById('nav1').getElementsByTagName('ul');
		var panosLi = document.getElementById('nav1').getElementsByTagName('li');
		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';
		}
		licount = document.getElementById('ctl00_menuCount').value;

		var newCount = Number(licount) + 1;
		var maxLI = panosLi.length;
		var maxLIID = 'li'+newCount;
		var emptyLI = document.createElement('li');
		var menuCont = document.getElementById('nav1');
		document.getElementById('nav1').appendChild(emptyLI);
		document.getElementById('nav1').getElementsByTagName('li').item(maxLI).setAttribute("id", maxLIID);

		for (k=1;k<=newCount;k++) {
			myli = 'li'+k;
			document.getElementById(myli).onmouseover=function() {
				for (z=1;z<=newCount;z++) {
					otherli = 'li'+z;
					if (z!=k) {document.getElementById(otherli).className='';}
				}
				document.getElementById(myli).className='iehover';
			}
			document.getElementById(myli).onmouseout=function() {
				for (p=0;p<panosLi.length;p++) {panosLi[p].className=panosLi[p].className.replace('iehover', '')}
			}
		}
	}
} else { // check for IE6
	ieHover = function() {
		var ieULs = document.getElementById('nav1').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';
		}
		var ieLIs = document.getElementById('nav1').getElementsByTagName('li');
		for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
			ieLIs[i].onmouseover=function() {this.className+='iehover';}
			ieLIs[i].onmouseout=function() {this.className=this.className.replace('iehover', '');}
		}
	}
}
if (window.attachEvent) window.attachEvent('onload', ieHover);