sections=['visit','exhibits','events','education','collections','join','info'];
preload=[];
for(i=0;i<sections.length;i++) {
	preload[sections[i]+'btn']=new Image(); preload[sections[i]+'btn'].src=root+'/images/new/nav/nav_'+sections[i]+'_on.gif';
	preload[sections[i]+'hil']=new Image(); preload[sections[i]+'hil'].src=root+'/images/nav/bar_'+sections[i]+'_on.gif';	 
}

function topNavOver(which) {
	if (document.images) {
		document.images['hil'+which].src=root+'/images/nav/bar_'+which+'_on.gif';
		document.images['btn'+which].src=root+'/images/new/nav/nav_'+which+'_on.gif';
	}
}
function topNavOut(which) {
	if (document.images && (which!=currentSection) ) {
		document.images['hil'+which].src=root+'/images/nav/bar_'+which+'_off.gif';
		document.images['btn'+which].src=root+'/images/new/nav/nav_'+which+'_off.gif';
	}
}

function subNavOver(sect,level,which) {
	if (document.images) {
		document.images['sub'+which].src=root+'/images/nav/'+level+'_'+sect+'_'+which+'_on.gif';
	}
}
function subNavOut(sect,level,which) {
	if (document.images && (which!=currentSub) ) {
		document.images['sub'+which].src=root+'/images/nav/'+level+'_'+sect+'_'+which+'_off.gif';
	}
}
		
function popThumbnail(which) {
	alert("Will be a direct link to a collection object page or any other content area");
}

function expandText(element) {

if (document.getElementById(element).style.display == "none") {

document.getElementById(element).style.display = "";
document.getElementById("plusMinus").innerHTML = "[-]";

} else {

document.getElementById(element).style.display = "none";
document.getElementById("plusMinus").innerHTML = "[+]";

}

}

function popUp(url,name,extra) {
	newWin=window.open(url,name,extra);
}

