function timedhide(div)
{
	t=setTimeout("hide('"+div+"')",2000);
}

function calloff(){	
	clearTimeout(t);
}
var state = 'hidden';

function show(layer_ref) {
	hidden_state = 'hidden';
	
	if (layer_ref == 'bank'){
		hidden1 = 'cells';
		hidden2 = 'health';		
	}
	
	if (layer_ref == 'cells'){
		hidden1 = 'bank';
		hidden2 = 'health';		
	}
		
	if (layer_ref == 'health'){
		hidden1 = 'cells';
		hidden2 = 'bank';		
	}
		
		
	state = 'visible';

	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + layer_ref + ".style.visibility = state");
		eval( "document.all." + hidden1 + ".style.visibility = hidden_state");
		eval( "document.all." + hidden2 + ".style.visibility = hidden_state");

	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers[layer_ref].visibility = state;
		document.layers[hidden1].visibility = hidden_state;
		document.layers[hidden2].visibility = hidden_state;
	}
	if (document.getElementById && !document.all) {
		maxwell_smart = document.getElementById(layer_ref);
		maxwell_smart.style.visibility = state;
		maxwell_smart = document.getElementById(hidden1);
		maxwell_smart.style.visibility = hidden_state;
		maxwell_smart = document.getElementById(hidden2);
		maxwell_smart.style.visibility = hidden_state;
	}
	
}

function hide(layer_ref) {
	state = 'hidden';
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + layer_ref + ".style.visibility = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers[layer_ref].visibility = state;
	}
	if (document.getElementById && !document.all) {
		maxwell_smart = document.getElementById(layer_ref);
		maxwell_smart.style.visibility = state;
	}
	
}

function hideall() {
	
	state = 'hidden';

	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all.bank.style.visibility = state");
		eval( "document.all.cells.style.visibility = state");
		eval( "document.all.health.style.visibility = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers['bank'].visibility = state;
		document.layers['cells'].visibility = state;
		document.layers['health'].visibility = state;
	}
	if (document.getElementById && !document.all) {
		maxwell_smart = document.getElementById('bank');
		maxwell_smart.style.visibility = state;
		maxwell_smart = document.getElementById('cells');
		maxwell_smart.style.visibility = state;
		maxwell_smart = document.getElementById('health');
		maxwell_smart.style.visibility = state;
	}
	clearTimeout(t);
}
