//image array preload
if (document.images) {
  //store section
  details_on = new Image();
  details_on.src = "images/details_on.gif";
  details_off = new Image();
  details_off.src = "images/details_off.gif";
  
  order_on = new Image();
  order_on.src = "images/order_on.gif";
  order_off = new Image();
  order_off.src = "images/order_off.gif";
  
  contshop_on = new Image();
  contshop_on.src = "images/contshop_on.gif";
  contshop_off = new Image();
  contshop_off.src = "images/contshop_off.gif";
  
  close_on = new Image();
  close_on.src = "images/close_on.gif";
  close_off = new Image();
  close_off.src = "images/close_off.gif";
  
  //games section
  funhouse_on = new Image();
  funhouse_on.src = "images/funhouse_on.gif";
  funhouse_off = new Image();
  funhouse_off.src = "images/funhouse_off.gif";
}

//mouse event function
function change_img() {
  if (document.images) {
    for (var i=0; i<change_img.arguments.length; i+=2) {
      document[change_img.arguments[i]].src = eval(change_img.arguments[i+1] + ".src");
    }
  }
}

/*product detail popups*/
/*opens and focuses new window based on options*/
function popup(url, windowName, w, h) {
   options = "resizable=no,status=yes,width="+w+",height="+h;
   msgWindow = window.open(url, windowName, options);
   msgWindow.focus();
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
  setTimeout('msgWindow.focus();',250);
}

/*legal.html popup*/
function popup2(url, windowName, w, h) {
   options = "resizable=yes,status=yes,scrollbars=yes,width="+w+",height="+h;
   msgWindow = window.open(url, windowName, options);
   msgWindow.focus();
  setTimeout('msgWindow.focus();',250);
}

/*marineland.com popup*/
function popupfull(url, windowName, w, h) {
   options = "resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes,location=yes,width="+w+",height="+h;
   msgWindow = window.open(url, windowName, options);
   msgWindow.focus();
  setTimeout('msgWindow.focus();',250);
}