// ======================================
// PAST PRESIDENTS PAGE SLIDE SHOW	
// ======================================
// =======================================

// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// 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] = 'images/president01.jpg'
Pic[1] = 'images/president02.jpg'
Pic[2] = 'images/president03.jpg'
Pic[3] = 'images/president04.jpg'
Pic[4] = 'images/president05.jpg'
Pic[5] = 'images/president06.jpg'
Pic[6] = 'images/president07.jpg'
Pic[7] = 'images/president08.jpg'
Pic[8] = 'images/president09.jpg'
Pic[9] = 'images/president10.jpg'
Pic[10] = 'images/president11.jpg'
Pic[11] = 'images/president12.jpg'
Pic[12] = 'images/president13.jpg'
Pic[13] = 'images/president14.jpg'
Pic[14] = 'images/president15.jpg'
Pic[15] = 'images/president16.jpg'
Pic[16] = 'images/home03.jpg'
Pic[17] = 'images/home01.jpg'
Pic[18] = 'images/president17.jpg'
Pic[19] = 'images/president18.jpg'
Pic[20] = 'images/president19.jpg'

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

var t
var j = 0
var p = Pic.length
var preLoad = new Array()

for (i = 0; i < p; i++){

   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function presidentSlide(){

   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()
   }
   document.images.SlideShow2.src = preLoad[j].src

   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }

   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('presidentSlide()', slideShowSpeed)
}
