var t=setTimeout("primarynavReset();secondarynavReset()",5000);

function primarynavReset(){
	document.getElementById('nav-libraries-link').style.color='#ffffff';
	document.getElementById('nav-libraries-link').style.background='transparent';
}
function secondarynavReset(){
	document.getElementById('nav-libraries-sub').style.left='-999em';
	document.getElementById('nav-libraries-sub').style.top='0';
}
function timeoutReset(){
	t=setTimeout("primarynavReset();secondarynavReset()",5000);	
}

function timeoutResetoff(){
	clearTimeout(t);
}

function secondarynav1(){
	primarynavReset();
	document.getElementById('nav-libraries-link').style.color='#325718';
	document.getElementById('nav-libraries-link').style.background='#ADC74A';
	secondarynavReset();
	document.getElementById('nav-libraries-sub').style.left='0';
	document.getElementById('nav-libraries-sub').style.top='32px';
}