<!--
var whichPage = null;
function setPage(page){
	whichPage = page;
}
 var timerID = null;
var timerOn = false;
var timecount = 500;

var type = "IE";	//Variable used to hold the browser name

BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}


//Show and hide a layer
//id is the name of the layer
//action is either hidden or visible
//Seems to work with all versions NN4 plus other browsers
function ShowLayer(id, action){
	if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");
	if (type=="NN") eval("document." + id + ".visibility='" + action + "'");
	if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}

function artHistoryLoad(){
	showArtHistory();
	document.getElementById('art_history_link').innerHTML='<a href="../../art_history" onmouseover="hideAll();" id="art_history_text">ART HISTORY</a>';
	document.getElementById('art_history_text').style.color='#ffffff !important';
	document.getElementById('art_history_text').style.backgroundColor='#00387d';
}
function artEducationLoad(){
	showArtEducation();
	document.getElementById('art_education_link').innerHTML='<a href="../../art_education" onmouseover="hideAll();" id="art_education_text">ART EDUCATION</a>';
	document.getElementById('art_education_text').style.color='#ffffff !important';
	document.getElementById('art_education_text').style.backgroundColor='#00387d';
}
function studioArtsLoad(){
	showStudioArts();
	document.getElementById('studio_arts_link').innerHTML='<a href="../../studio_arts" onmouseover="hideAll();" id="studio_arts_text">STUDIO ARTS</a>';
	document.getElementById('studio_arts_text').style.color='#ffffff !important';
	document.getElementById('studio_arts_text').style.backgroundColor='#00387d';
}
function facultyLoad(){
	showFaculty();
	document.getElementById('faculty_link').innerHTML='<a href="../../faculty" onmouseover="hideAll();" id="faculty_text">FACULTY</a>';
	document.getElementById('faculty_text').style.color='#ffffff !important';
	document.getElementById('faculty_text').style.backgroundColor='#00387d';
}
function galleriesLoad(){
	showGalleries();
	document.getElementById('galleries_link').innerHTML='<a href="../../galleries" onmouseover="hideAll();" id="galleries_text">GALLERIES</a>';
	document.getElementById('galleries_text').style.color='#ffffff !important';
	document.getElementById('galleries_text').style.backgroundColor='#00387d';
}
function careersLoad(){
	showCareers();
	document.getElementById('careers_link').innerHTML='<a href="../../careers" onmouseover="hideAll();" id="careers_text">CAREERS</a>';
	document.getElementById('careers_text').style.color='#ffffff !important';
	document.getElementById('careers_text').style.backgroundColor='#00387d';
}
function newsEventsLoad(){
	showNewsEvents();
	document.getElementById('news_events_link').innerHTML='<a href="../../news_events" onmouseover="hideAll();" id="news_events_text">NEWS/EVENTS</a>';
	document.getElementById('news_events_text').style.color='#ffffff !important';
	document.getElementById('news_events_text').style.backgroundColor='#00387d';
}

function showHome(){	
	document.getElementById('home').style.backgroundColor='#00387d';
	document.getElementById('home_text').style.backgroundColor='#00387d';
	document.getElementById('home_link').style.backgroundColor='#00387d !important';
	document.getElementById('home').style.color='#ffffff !important';
	document.getElementById('home_text').style.color='#ffffff !important';
	document.getElementById('home_link').style.color='#ffffff !important';
}
function hideHome(){	
	document.getElementById('home').style.backgroundColor='';
	document.getElementById('home_text').style.backgroundColor='';
	document.getElementById('home_link').style.backgroundColor='';
	document.getElementById('home_text').style.color='';
}
function showArtHistory(){
	if (whichPage == "artHistory"){
		document.getElementById('art_history_subnav').style.display='block';
	}
	document.getElementById('art_history').style.backgroundColor='#00387d !important';
	document.getElementById('art_history_text').style.backgroundColor='#00387d !important';
	document.getElementById('art_history_link').style.backgroundColor='#00387d !important';
	document.getElementById('art_history').style.color='#ffffff !important';
	document.getElementById('art_history_text').style.color='#ffffff !important';
	document.getElementById('art_history_link').style.color='#ffffff !important';
	
}
function hideArtHistory(){
	document.getElementById('art_history_subnav').style.display='none';		
	document.getElementById('art_history').style.backgroundColor='';
	document.getElementById('art_history_text').style.backgroundColor='';
	document.getElementById('art_history_text').style.color='';
	document.getElementById('art_history_link').style.backgroundColor='';
}
function showArtEducation(){
	if (whichPage == "artEducation"){
		document.getElementById('art_education_subnav').style.display='block';
	}
	document.getElementById('art_education').style.backgroundColor='#00387d';
	document.getElementById('art_education_text').style.backgroundColor='#00387d';
	document.getElementById('art_education_link').style.backgroundColor='#00387d !important';
	document.getElementById('art_education').style.color='#ffffff !important';
	document.getElementById('art_education_text').style.color='#ffffff !important';
	document.getElementById('art_education_link').style.color='#ffffff !important';
}
function hideArtEducation(){
	document.getElementById('art_education_subnav').style.display='none';		
	document.getElementById('art_education').style.backgroundColor='';
	document.getElementById('art_education_text').style.backgroundColor='';
	document.getElementById('art_education_text').style.color='';
	document.getElementById('art_education_link').style.backgroundColor='';
}
function showStudioArts(){
	if (whichPage == "studioArts"){
		document.getElementById('studio_arts_subnav').style.display='block';
	}
	document.getElementById('studio_arts').style.backgroundColor='#00387d';
	document.getElementById('studio_arts_text').style.backgroundColor='#00387d';
	document.getElementById('studio_arts_link').style.backgroundColor='#00387d !important';
	document.getElementById('studio_arts').style.color='#ffffff !important';
	document.getElementById('studio_arts_text').style.color='#ffffff !important';
	document.getElementById('studio_arts_link').style.color='#ffffff !important';
}
function hideStudioArts(){
	document.getElementById('studio_arts_subnav').style.display='none';		
	document.getElementById('studio_arts').style.backgroundColor='';
	document.getElementById('studio_arts_text').style.backgroundColor='';
	document.getElementById('studio_arts_text').style.color='';
	document.getElementById('studio_arts_link').style.backgroundColor='';
}
function showFaculty(){
	if (whichPage == "faculty"){
		document.getElementById('faculty_subnav').style.display='block';
	}
	document.getElementById('faculty').style.backgroundColor='#00387d';
	document.getElementById('faculty_text').style.backgroundColor='#00387d';
	document.getElementById('faculty_link').style.backgroundColor='#00387d !important';
	document.getElementById('faculty').style.color='#ffffff !important';
	document.getElementById('faculty_text').style.color='#ffffff !important';
	document.getElementById('faculty_link').style.color='#ffffff !important';
}
function hideFaculty(){
	document.getElementById('faculty_subnav').style.display='none';		
	document.getElementById('faculty').style.backgroundColor='';
	document.getElementById('faculty_text').style.backgroundColor='';
	document.getElementById('faculty_text').style.color='';
	document.getElementById('faculty_link').style.backgroundColor='';
}
function showGalleries(){
	if (whichPage == "galleries"){
		document.getElementById('galleries_subnav').style.display='block';
	}
	document.getElementById('galleries').style.backgroundColor='#00387d';
	document.getElementById('galleries_text').style.backgroundColor='#00387d';
	document.getElementById('galleries_link').style.backgroundColor='#00387d !important';
	document.getElementById('galleries').style.color='#ffffff !important';
	document.getElementById('galleries_text').style.color='#ffffff !important';
	document.getElementById('galleries_link').style.color='#ffffff !important';
}
function hideGalleries(){
	document.getElementById('galleries_subnav').style.display='none';		
	document.getElementById('galleries').style.backgroundColor='';
	document.getElementById('galleries_text').style.backgroundColor='';
	document.getElementById('galleries_text').style.color='';
	document.getElementById('galleries_link').style.backgroundColor='';
}
function showCareers(){
	if (whichPage == "careers"){
		document.getElementById('careers').style.backgroundColor='#00387d';
	}
	document.getElementById('careers').style.backgroundColor='#00387d';
	document.getElementById('careers_text').style.backgroundColor='#00387d';
	document.getElementById('careers_link').style.backgroundColor='#00387d !important';
	document.getElementById('careers').style.color='#ffffff !important';
	document.getElementById('careers_text').style.color='#ffffff !important';
	document.getElementById('careers_link').style.color='#ffffff !important';
}
function hideCareers(){		
	document.getElementById('careers').style.backgroundColor='';
	document.getElementById('careers_text').style.backgroundColor='';
	document.getElementById('careers_text').style.color='';
	document.getElementById('careers_link').style.backgroundColor='';
}
function showNewsEvents(){
	if (whichPage == "newsEvents"){
		document.getElementById('news_events_subnav').style.display='block';
	}
	document.getElementById('news_events').style.backgroundColor='#00387d';
	document.getElementById('news_events_text').style.backgroundColor='#00387d';
	document.getElementById('news_events_link').style.backgroundColor='#00387d !important';
	document.getElementById('news_events').style.color='#ffffff !important';
	document.getElementById('news_events_text').style.color='#ffffff !important';
	document.getElementById('news_events_link').style.color='#ffffff !important';
}
function hideNewsEvents(){	
	document.getElementById('news_events').style.backgroundColor='';
	document.getElementById('news_events_text').style.backgroundColor='';
	document.getElementById('news_events_text').style.color='';
	document.getElementById('news_events_link').style.backgroundColor='';
}

function hideAll(){
	if (whichPage !="home"){
		hideHome();
	}
	if (whichPage !="artHistory"){
		hideArtHistory();
	}
	if (whichPage !="artEducation"){
		hideArtEducation();
	}
	if (whichPage !="studioArts"){
		hideStudioArts();
	}
	if (whichPage !="faculty"){
		hideFaculty();
	}
	if (whichPage !="galleries"){
		hideGalleries();
	}
	if (whichPage !="careers"){
		hideCareers();
	}
	if (whichPage !="newsEvents"){
		hideNewsEvents();
	}
} 

function startTime() {

    if (timerOn == false) {
    //timerID=setTimeout( "hideAll()" , timecount);
    timerOn = true;
    }
    } 

function stopTime() {

    if (timerOn) {
    clearTimeout(timerID);
    timerID = null;
    timerOn = false;
    }
    } 

//-->