

//To add more images, just copy the line: (var image1 = "image1.gif";) and change it to (var image4 = "image4.gif";)..etc.
//Then, make sure to add on the image4 variable name into: var theImages = new Array(image1,image2,image3,image4)....
//Setting each var to new Image(,) preloads the image.

var image1 = new Image(520,390);
image1 = "Images/Images Rotating/CIMG0611.JPG";
var image1Lg = "Images/Images Large/CIMG0611.JPG";
var image2 = new Image(520,390);
image2 = "Images/Images Rotating/Tradewinds Imports Photos 001.jpg";
image2Lg = "Images/Images Large/Tradewinds Imports Photos 001.jpg";
var image3 = new Image(520,390);
image3 = "Images/Images Rotating/Tradewinds Imports Photos 006.jpg";
image3Lg = "Images/Images Large/Tradewinds Imports Photos 006.jpg";
var image4 = new Image(520,390);
image4 = "Images/Images Rotating/Tradewinds Imports Photos 008.jpg";
image4Lg = "Images/Images Large/Tradewinds Imports Photos 008.jpg";
var image5 = new Image(520,390);
image5 = "Images/Images Rotating/Tradewinds Imports Photos 009.jpg";
image5Lg = "Images/Images Large/Tradewinds Imports Photos 009.jpg";
var image6 = new Image(520,390);
image6 = "Images/Images Rotating/Tradewinds Imports Photos 014.jpg";
image6Lg = "Images/Images Large/Tradewinds Imports Photos 014.jpg";
var theImages1 = new Array(image1,image2,image3,image4,image5,image6);
var theImages1Lg = new Array(image1Lg,image2Lg,image3Lg,image4Lg,image5Lg,image6Lg);

var image7 = new Image(520,390);
image7 = "Images/Images Rotating/Tradewinds Imports Photos 017.jpg";
var image8 = new Image(520,390);
image8 = "Images/Images Rotating/CIMG0624.JPG";
var image9 = new Image(520,390);
image9 = "Images/Images Rotating/Tradewinds Imports Photos 020.jpg";
var image10 = new Image(520,390);
image10 = "Images/Images Rotating/Tradewinds Imports Photos 021.jpg";
var image11 = new Image(520,390);
image11 = "Images/Images Rotating/Tradewinds Imports Photos 026.jpg";
var image12 = new Image(520,390);
image12 = "Images/Images Rotating/Tradewinds Imports Photos 048.jpg";
var theImages2 = new Array(image7,image8,image9,image10,image11,image12);

var image13 = new Image(520,390);
image13 = "Images/Images Rotating/CIMG0628.JPG";
var image14 = new Image(520,390);
image14 = "Images/Images Rotating/CIMG0655.JPG";
var image15 = new Image(520,390);
image15 = "Images/Images Rotating/CIMG0610.JPG";
var image11 = new Image(520,390);
image16 = "Images/Images Rotating/CIMG0665.JPG";
var image17 = new Image(520,390);
image17 = "Images/Images Rotating/Tradewinds Imports Photos 088.jpg";
var image18 = new Image(520,390);
image18 = "Images/Images Rotating/Tradewinds Imports Photos 092.jpg";
var theImages3 = new Array(image13,image14,image15,image16,image17,image18);

//Change the 5 to equal the number of seconds before the image changes....
var theTime1 = 5;
var theTime2 = 10;
var theTime3 = 15;


var theLen1 = theImages1.length;
var theLen2 = theImages2.length;
var theLen3 = theImages3.length;
var theCount1 = 0;
var theCount2 = 0;
var theCount3 = 0;
var currentImage1;
var currentImage1Lg;
var currentImage;


function doPicLoop1() {
	

  if(theCount1 == theLen1) {
  theCount1 = 0;
  }
  //alert(theImages1[theCount1]);
  document.theImage1.src = theImages1[theCount1];
  //currentImage1Lg = '<a href="' + theImages1Lg[theCount1] + '" target="_blank">Click to view larger image. </a><br>Click Back Button to return.';
  currentImage1Lg = theImages1Lg[theCount1];
  //alert(currentImage1Lg);
  //document.theImage1.src = currentImage1;
  theCount1++;
  theLoop = setTimeout("doPicLoop1()",theTime1 * 1000);
  theTime1 = 15;
}
function doPicLoop2() {

  if(theCount2 == theLen2) {
  theCount2 = 0;
  }
  document.theImage2.src = theImages2[theCount2];
  theCount2++;
  theLoop = setTimeout("doPicLoop2()",theTime2 * 1000);
  theTime2 = 15;
}
function doPicLoop3() {

  if(theCount3 == theLen3) {
  theCount3 = 0;
  }
  document.theImage3.src = theImages3[theCount3];
  theCount3++;
  theLoop = setTimeout("doPicLoop3()",theTime3 * 1000);
}
function findPic() {
	alert(currentImage1Lg);
	currentImage1Lg;
}

