
var state = 'hidden';

function hide(ref1) {

if (state == 'visible') {
state = 'hidden';
//}
//else {
//state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + ref1 + ".style.visibility = state");
//eval( "document.all." + ref2 + ".style.visibility = state");
//eval( "document.all." + ref3 + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[ref1].visibility = state;
//document.layers[ref2].visibility = state;
//document.layers[ref3].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(ref1);
//maxwell_smart = document.getElementById(ref2);
//maxwell_smart = document.getElementById(ref3);
maxwell_smart.style.visibility = state;
}
}

var state = 'visible';

function show(layer_show) {

if (state == 'hidden') {
state = 'visible';
}

if (document.all) { //IS IE 4 or 5 (or 6 beta)

eval( "document.all." + layer_show + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_show].visibility = state;
}
if (document.getElementById && !document.all) {
showlayer = document.getElementById(layer_show);
showlayer.style.visibility = state;
}
}
