<!-- 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 Quietwater Films 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 = "16";          // 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 = "1200";           // 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 = "images/quietwaterlogo640360.jpg";
		frame2 = new Image;
		frame2.src = "images/wenonahlogo640360.jpg";
		frame3 = new Image;
		frame3.src = "images/paddlingthesolocanoe.jpg";
		frame4 = new Image;
		frame4.src = "images/paddlingthesolocanoe2.jpg";
		frame5 = new Image;
		frame5.src = "images/wenonahlogo640360.jpg";
		frame6 = new Image;
		frame6.src = "images/paddlingthetandemcanoe.jpg";
		frame7 = new Image;
		frame7.src = "images/paddlingthetandemcanoe2.jpg";
		frame8 = new Image;
		frame8.src = "images/oldtownlogo640360.jpg";
		frame9 = new Image;
		frame9.src = "images/paddlingthereckayak.jpg";
		frame10 = new Image;
		frame10.src = "images/paddlingthereckayak2.jpg";
		frame11= new Image;
		frame11.src = "images/nativelogo640360.jpg";
		frame12 = new Image;
		frame12.src = "images/inlandwaterskayakfishing.jpg";
		frame13 = new Image;
		frame13.src = "images/inlandwaterskayakfishing2.jpg";
		frame14 = new Image;
		frame14.src = "images/nativelogo640360.jpg";
		frame15 = new Image;
		frame15.src = "images/saltwaterkayakfishing.jpg";	
		frame16 = new Image;
		frame16.src = "images/saltwaterkayakfishing2.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);
		}
	}
}

document.write('');
document.write('<MAP NAME="VR">');
document.write('<AREA SHAPE="rect" COORDS="0,0,40,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'1\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="41,0,81,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'2\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="82,0,122,360" HREF="solocanoe.htm" ONMOUSEOVER="Rollover(\'STech\',\'3\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="123,0,163,360" HREF="solocanoe.htm" ONMOUSEOVER="Rollover(\'STech\',\'4\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="164,0,204,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'5\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="205,0,245,360" HREF="tandemcanoe.htm" ONMOUSEOVER="Rollover(\'STech\',\'6\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="246,0,286,360" HREF="tandemcanoe.htm" ONMOUSEOVER="Rollover(\'STech\',\'7\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="287,0,327,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'8\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="328,0,368,360" HREF="reckayak.htm" ONMOUSEOVER="Rollover(\'STech\',\'9\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="369,0,409,360" HREF="reckayak.htm" ONMOUSEOVER="Rollover(\'STech\',\'10\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="410,0,450,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'11\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="451,0,491,360" HREF="inlandwaterskayakfishing.htm" ONMOUSEOVER="Rollover(\'STech\',\'12\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="492,0,532,360" HREF="inlandwaterskayakfishing.htm" ONMOUSEOVER="Rollover(\'STech\',\'13\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="533,0,573,360" HREF="#" ONMOUSEOVER="Rollover(\'STech\',\'14\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="574,0,614,360" HREF="saltwaterkayakfishing.htm" ONMOUSEOVER="Rollover(\'STech\',\'15\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('<AREA SHAPE="rect" COORDS="615,0,640,360" HREF="saltwaterkayakfishing.htm" ONMOUSEOVER="Rollover(\'STech\',\'16\'); window.status=\'\'; return true;" ONFOCUS="STech.blur(); return true;">');
document.write('</MAP>');

// STOP HIDING FROM OTHER BROWSERS -->

