function showhide(layer_ref,mode) {
	// mode == -1 > toggle
	// mode == 0 > hide
	// mode == 1 > show
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		state = (eval( "document.all." + layer_ref + ".style.display") != 'block') ? 'block': 'none';
		state = (mode==-1)?state: (mode==0)?'none':'block';
		eval( "document.all." + layer_ref + ".style.display = state"); 
	} 
	if (document.layers) { //IS NETSCAPE 4 or below 
		state = (document.layers[layer_ref].display != 'block') ? 'block': 'none';
		state = (mode==-1)?state: (mode==0)?'none':'block';
		document.layers[layer_ref].display = state; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref);
		state = (hza.style.display != 'block') ? 'block': 'none';
		state = (mode==-1)?state: (mode==0)?'none':'block';
		hza.style.display =  state;
	}
	return false;
} 

function showFirstHideOthers() {
	for(var i=0; i<arguments.length; i++) 
		showhide(arguments[i],(i==0)?1:0) 
	return false;
} 

function toggleFirstHideOthers() {
	for(var i=0; i<arguments.length; i++) 
		showhide(arguments[i],(i==0)?-1:0) 
	return false;
} 
