<!-- HIDE FROM OTHER BROWSERS
//##############################################################################
// # © Copyright 2000 Autolycus Corp. All Rights Reserved  Patents Pending     #
// # JavaScript Object VR                              Version 1.3             #
// # info@autolycus.com                                Created 11/3/1999       #
// # http://www.autolycus.com                          Last Modified 4/2/2001  #
// #                                                                           #
// # This code is protected by US and international law including copyright.   #
// # Any illegal copying, modificaton or theft is prohibited and is punishable #
// # by law. For further information, please contact Autolycus Corporation at  #
// # info@autolycus.com or 717.761.9080.                                       #
//##############################################################################

//This script has been created solely for the use of Ironbags by small3D, LLC.  Any other use of 
//this script is illegal. Owners of other sites caught illegally using this script will be 
//turned into the BSA.

// Declare variables
var preloadFlag = false;          // Variable that is used only to make sure all the images for the animation are preloaded
var shot_number = "1";            // First image in the animation
var total_frames = "9";          // Total number of images in animation
var spinning = "YES";             // Whether or not the image is to spin when the page loads
var spin_direction = "RIGHT";     // What direction the image is to spin when the page loads
var spin_speed = "400";           // The speed at which the animation is to run. Lower numbers equal faster playback
var spin_object = "STech";        // The object or image space that will be used for the animation playback

// Function to preload the VR images and assign them to predefined variables
function Preload_Images() {
  if (document.images) {
    frame1 = new Image;
    frame1.src = "400300ironmax1-8text.jpg";
    frame2 = new Image;
    frame2.src = "400300IronMax2-8text.jpg";
    frame3 = new Image;
    frame3.src = "400300IronMax3-8text.jpg";
    frame4 = new Image;
    frame4.src = "400300ironmax4-8text.jpg";
    frame5 = new Image;
    frame5.src = "400300ironmax5-8text.jpg";
    frame6 = new Image;
    frame6.src = "400300ironmax6-8text.jpg";
    frame7 = new Image;
    frame7.src = "400300IronMax7-8text.jpg";
    frame8 = new Image;
    frame8.src = "400300ironmax8-8text.jpg";
    frame9 = new Image;
    frame9.src = "400300ironmax1-8text.jpg";
    preloadFlag = true;
  }
}

// Function that handles the rollovers when you mouse over a button
function Rollover(imgDocID,imgNumber) {
  shot_number = imgNumber;
  spinning = "NO";
  document.images[imgDocID].src = eval("frame" + shot_number + ".src");
}

// Function that handles the Auto-Spin
function Auto_Spin(imgDocID,imgObjName) {
  if (spinning == "YES") {
    if (spin_direction == "RIGHT") {
      document.images[imgDocID].src = eval(imgObjName + shot_number + ".src");
      if (shot_number == total_frames) {
        shot_number = "1";
      } else {
        shot_number = eval(shot_number + " + 1");
      }
      setTimeout("Auto_Spin(spin_object,'frame');",spin_speed);
    } else {
      document.images[imgDocID].src = eval(imgObjName + shot_number + ".src");
      if (shot_number == "1") {
        shot_number = total_frames;
      } else {
        shot_number = eval(shot_number + " - 1");
      }
      setTimeout("Auto_Spin(spin_object,'frame');",spin_speed);
    }
  }
}

function TopView()
  {
    window.open('topview.phtml','top',
      'left=150,top=150,height=300,width=400,toolbar=no') 
  }

document.write('');
document.write('<MAP NAME="VR">');
document.write('<AREA SHAPE="rect" COORDS="0,0,45,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'1\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="46,0,90,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'2\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="91,0,135,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'3\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="136,0,180,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'4\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="181,0,225,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'5\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="226,0,270,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'6\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="271,0,315,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'7\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="316,0,360,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'8\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="361,0,400,300" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'9\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('</MAP>');

// STOP HIDING FROM OTHER BROWSERS -->

