startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("mainnav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
iframe = function(){
	var coverUp = document.getElementById("coverUp");
		coverUp.innerHTML="<iframe src='/UPSChecks_assets/checks/blank.html' id='frTest' frameborder='0' scrolling='no'></iframe>";
}


ieHover = function(){
	if (document.all && document.getElementById) {
		cover = document.getElementById("accessoriesmenu");
		for (i=0; i < cover.childNodes.length; i++) {
			coverNode = cover.childNodes[i];
			if (cover.nodeName=="LI") {
				cover.onmouseover=function() {
					this.className+=" over";
					iframe();
					document.getElementById("frTest").style.display = "inline";
					}
					cover.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					document.getElementById("frTest").style.display = "none";
				}
			}
		}
	}
	
}

function update(){
	startList();
	ieHover();
}
window.onload=update;