function rollover() {
if(!document.getElementsByTagName) return false;

var nav = document.getElementById("primaryNav");
var images = nav.getElementsByTagName("img");
for(var i=0; i < images.length; i++) {
	if (images[i].className == "current") continue;
	images[i].onmouseover = function() {
		this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
	}
	images[i].onmouseout = function() {
		this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
	}
}

var nav = document.getElementById("secondaryNav");
var images = nav.getElementsByTagName("img");
for(var i=0; i < images.length; i++) {
	images[i].onmouseover = function() {
		if ((jQuery.browser.msie == true) && (jQuery.browser.version < 7)) {
			fltr = this.style.filter.replace("_off.", "_on.");
			this.style.filter = fltr;
		} else {
			this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
		}
	}
	images[i].onmouseout = function() {
		if ((jQuery.browser.msie == true) && (jQuery.browser.version < 7)) {
			fltr = this.style.filter.replace("_on.", "_off.");
			this.style.filter = fltr;
		} else {
			this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
		}
	}
}
}

if(window.addEventListener) {
	window.addEventListener("load", rollover, false);
} else if(window.attachEvent) {
	window.attachEvent("onload", rollover);
}