//
//   AJSlideShow
//   -----------

//********************************  Configuration Variables *******************************

// Set speed (milliseconds)
var speed = 6000
  
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'AJSlideShow/slides/2-03.jpg' 
Pic[1] = 'AJSlideShow/slides/3-03.jpg'
Pic[2] = 'AJSlideShow/slides/5-02.jpg'


//**************************** do not edit anything below this line ***********************

var slideShowTimer;
var slideShowInd  = 0;
var slideShowCeil = Pic.length;
var preLoad = new Array();


function AJSlideShowInit() {
  
  for (i = 0; i < slideShowCeil; i++)
  {
     preLoad[i] = new Image()
     preLoad[i].src = Pic[i]
  }
  
  AJSlideShowRun();
  
}

function AJSlideShowRun()
{

   newImage = "url("+Pic[slideShowInd]+")"; 
   document.getElementById('AJSlideShowID').style.backgroundImage = newImage;
   slideShowInd = slideShowInd + 1;
   if (slideShowInd > (slideShowCeil-1)) 
   { 
      slideShowInd=0;
   }
   slideShowTimer = setTimeout('AJSlideShowRun()', speed)

}
