var allNav = new Array('nav_home','nav_about','nav_concerts','nav_recordings','nav_contact','nav_donate','nav_mailingList');


function preLoad() {
	for (i=0; i<allNav.length; i++) {
		var each = new Image();
		each.src="images/" + allNav[i] + "_on.jpg";
	}
	
}


preLoad();

function on(whichImage) {
	document[whichImage].src="images/"+whichImage+"_on.jpg";
}


function off(whichImage) {
	document[whichImage].src="images/"+whichImage+".jpg";
}


function on2(imgName,imgPath) {
	document[imgName].src="images/"+imgPath+"_on.jpg";
}

function off2(imgName,imgPath) {
	document[imgName].src="images/"+imgPath+".jpg";
}





startList = function() {

	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";
								this.style.zIndex=10;
							}
							node.onmouseout=function() {
								this.className=this.className.replace(" over", "");
								this.style.zIndex=5;
							}
						}
		 
				}
	}
		 
		 
}
