var b = 9
function mainOn(a){ 
	showLayerNumber(a);
	
	if (document.images) {
	document.getElementById("menu" + b).className = 'nav'	
	document.getElementById("menu" + a).className = 'navOver'
	//document["menu"+ b].src = eval("menu" + b + "off.src");
	//document["menu" + a].src = eval("menu" + a + "on.src");
	}
	b=a;
	
	
	} 
	


function showTriggers(){
	showLayer('trigger1');
	showLayer('trigger2');
	showLayer('trigger3');
	
	
	}


// causes main buttons to go off and relative layers to hide and
// about button on and about submenu to show
function mainOut() {
	mainOn(9)
	
	}



// simple rollovers and rollouts
function imgOn(name, a) {
	if (document.images) {
	document[name+ a].src = eval(name  + "on.src");
	
	}
}

function imgOut(name, a) {
	if (document.images) {
	document[name + a].src = eval(name + "off.src");
		
	}
}



function imgDown(name) {
	if (document.images) {
	document[name].src = eval(name + "down.src");
		
	}
}


function imgOff(name, a) {
	var title = document.title
	var regExpObj = new RegExp(a)
	if ((document.images) && (regExpObj.exec(title) == null)) {
	document[name].src = eval(name + "off.src");
	
	}else{ return false;	
	}
}





var keyReset = false;

function resetMain()
{
	mainOut();
	clearreset();
}
function setMain()
{
	hideLayer('trigger1');
	hideLayer('trigger2');
	hideLayer('trigger3');

	
	keyReset = true;
	resetTimeout = setTimeout('timedresetMain()', 200);
	
}
function timedresetMain()
{
	if(keyReset)
	{
		resetMain();
	}
}
function clearreset()
{
	if(keyReset) window.clearTimeout(resetTimeout);
	keyReset = false;
}

