

function imgSwap( o, i ) {
	document.getElementById( o ).src = i;
}



function IEHoverPseudo() {
	if (document.getElementById("nav-primary")) {
		var navItems = document.getElementById("nav-primary").getElementsByTagName("li");
		for (var i=0; i<navItems.length; i++) {
			if(navItems[i].className == "menuparent") {
				navItems[i].onmouseover=function() {
					this.className += " over";
					this.style.zIndex = 200;
					}
				navItems[i].onmouseout=function() {
					this.className = "menuparent";
					this.style.zIndex = 100;
					}
			}
		}
	}
}

function init() {
	IEHoverPseudo();
}

window.onload = init;

//if (window.attachEvent) window.attachEvent("onload", sfHover);
//if (window.attachEvent) window.attachEvent("onload", init);
