window.onload = function() {
	toggleNavHover("Step1");
	toggleNavHover("Step2");
	toggleNavHover("Step3");
	toggleNavHover("Step4");
	startList();
}


function toggleNavHover(element) {
    var imgNav = document.getElementById(element);
    if ( imgNav ) {
	    imgNav.onmouseover = function() {
	        var oldImg = imgNav.src;
	        var newImg = oldImg.replace("off", "over");
	        imgNav.src = newImg;
	    }
	    imgNav.onmouseout = function() {
	        var oldImg = imgNav.src;
	        var newImg = oldImg.replace("over", "off");
	        imgNav.src = newImg;
	    }
	}
}

function startList() {
	//alert("Foo");
	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";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function openTheWindow(theURL, winName, features) {
	window.open(theURL,winName,features);
}