/* first instance, for homepage intro overlay */
var state = 'hidden';
function showhide(layer_ref) {
if (state == 'visible') {
state = 'hidden';
}
else {
state = 'hidden';
}
if (document.all) { //IS IE
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
}
}

/* second instance, for rollover nav, to hide searchbox */
var state2 = 'visible';
 function showhide2(layer_ref) {
 if (state2 == 'hidden') {
 state2 = 'visible';
 }
 else {
 state2 = 'hidden';
 }
 if (document.all) { //IS IE
 eval( "document.all." + layer_ref + ".style.visibility = state2");
 }
 if (document.layers) { //IS NETSCAPE
 document.layers[layer_ref].visibility = state2;
 }
 if (document.getElementById && !document.all) {
 maxwell_smart = document.getElementById(layer_ref);
 maxwell_smart.style.visibility = state2;
 }
 }
 
 /* third instance, for rollover nav, to hide first flash movie */
var state3 = 'visible';
 function showhide3(layer_ref) {
 if (state3 == 'hidden') {
 state3 = 'visible';
 }
 else {
 state3 = 'hidden';
 }
 if (document.all) { //IS IE
 eval( "document.all." + layer_ref + ".style.visibility = state3");
 }
 if (document.layers) { //IS NETSCAPE
 document.layers[layer_ref].visibility = state3;
 }
 if (document.getElementById && !document.all) {
 maxwell_smart = document.getElementById(layer_ref);
 maxwell_smart.style.visibility = state3;
 }
 }
 
  /* fourth instance, for rollover nav, to hide second flash movie */
var state4 = 'visible';
 function showhide4(layer_ref) {
 if (state4 == 'hidden') {
 state4 = 'visible';
 }
 else {
 state4 = 'hidden';
 }
 if (document.all) { //IS IE
 eval( "document.all." + layer_ref + ".style.visibility = state4");
 }
 if (document.layers) { //IS NETSCAPE
 document.layers[layer_ref].visibility = state4;
 }
 if (document.getElementById && !document.all) {
 maxwell_smart = document.getElementById(layer_ref);
 maxwell_smart.style.visibility = state4;
 }
 }
 
  /* fifth instance, for rollover nav, to hide third flash movie */
var state5 = 'visible';
 function showhide5(layer_ref) {
 if (state5 == 'hidden') {
 state5 = 'visible';
 }
 else {
 state5 = 'hidden';
 }
 if (document.all) { //IS IE
 eval( "document.all." + layer_ref + ".style.visibility = state5");
 }
 if (document.layers) { //IS NETSCAPE
 document.layers[layer_ref].visibility = state5;
 }
 if (document.getElementById && !document.all) {
 maxwell_smart = document.getElementById(layer_ref);
 maxwell_smart.style.visibility = state5;
 }
 }