<!--
// script to display main product images based on clicking swatch
//dom detection and creating objects

var doc,doc2,doc3,sty;

if (document.layers) {
  doc = "document.";
  doc2 = ".document.";
  doc3 = "";
  sty = "";
  }
else if (document.all) {
  doc = "document.all.";
  doc2 = "";
  doc3 = "";
  sty = ".style";
}

else if (document.getElementById) {
  doc = "document.getElementById('";
  doc2 ="')";
  doc3 ="')";
  sty = "').style";
 } 

/* the global variable "active" checks to see which layer is currently active for photo. */

var active = null;
function showphoto(signID) {
/*first check if a layer is active and make it invisible */
if (active != null) {
activeLayer = eval (doc+active +"photo" +sty);
activeLayer.visibility = "hidden";
}

/*now make the selected DIV visible */
newLayer = eval (doc + signID + "photo" + sty);
newLayer.visibility = "visible";
/*set the new layer's ID to "active" */
active = signID;
}

//Netscape resize problem
if (document.layers) {
   win_width = innerWidth;
   win_height = innerHeight;
}
function reloadpage() {
if (document.layers) {
if (innerWidth != win_width || innerHeight != win_height) 
{location.reload();
   }
  }
 }
// -->
