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

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

function ShowContent(d) {

if (document.getElementById) { // DOM3 = IE5, NS6

document.getElementById(d).style.visibility = "visible";
document.getElementById(d).style.display = "block";

} else {

if (document.layers) { // Netscape 4

document.d.visibility= "visible";
document.d.display= "block";

} else { // IE 4

document.all.d.style.visibility = "visible";
document.all.d.style.display = "block";

}

}

//if(d.length < 1) { return; }

//document.getElementById(d).style.visibility = "";

}

 

function HideContent(d) {

document.getElementById(d).style.visibility = "hidden";

//alert(d);

if (document.getElementById) { // DOM3 = IE5, NS6

document.getElementById(d).style.visibility = "hidden";

} else {

if (document.layers) { // Netscape 4

document.d.visibility= "hidden";

} else { // IE 4

document.all.d.style.visibility = "hidden";

}

}

//if(d.length < 1) { return; }

}
