// JavaScript Document
var state1 = 'hidden';

function hidediv(layer_ref1) {

   if (document.all) { //IS IE 4 or 5 (or 6 beta)
       eval( "document.all." + layer_ref1 + ".style.visibility = state1");
   }
      if (document.layers) { //IS NETSCAPE 4 or below
       document.layers[layer_ref1].visibility = state1;
   }
      if (document.getElementById && !document.all) {
       maxwell_smart1 = document.getElementById(layer_ref1);
       maxwell_smart1.style.visibility = state1;
   }
}

var state = 'hidden';

function hidediv2(layer_ref) {

   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;
   }
}

var state2 = 'visible';

function showdiv(layer_ref2) {

   if (document.all) { //IS IE 4 or 5 (or 6 beta)
       eval( "document.all." + layer_ref2 + ".style.visibility = state2");
   }
      if (document.layers) { //IS NETSCAPE 4 or below
       document.layers[layer_ref2].visibility = state2;
   }
      if (document.getElementById && !document.all) {
       maxwell_smart2 = document.getElementById(layer_ref2);
       maxwell_smart2.style.visibility = state2;
   }
}

var state3 = 'visible';

function showdiv2(layer_ref3) {

   if (document.all) { //IS IE 4 or 5 (or 6 beta)
       eval( "document.all." + layer_ref3 + ".style.visibility = state3");
   }
      if (document.layers) { //IS NETSCAPE 4 or below
       document.layers[layer_ref3].visibility = state3;
   }
      if (document.getElementById && !document.all) {
       maxwell_smart3 = document.getElementById(layer_ref3);
       maxwell_smart3.style.visibility = state3;
   }
}

function pullmovie() {
	new Ajax.Updater("video_overlay", "files/product_videos/cx/cx_video.php", {evalScripts:true});
}

function unloadmovie() {
	new Ajax.Updater("video_overlay", "files/product_videos/cx/blank.php");
}
