// JavaScript Document

// =======================================

// set the following variables

// =======================================



// Set slideShowSpeed (milliseconds)

var slideShowSpeed = 5000



// Duration of crossfade (seconds)

var crossFadeDuration = 8



// Specify the image files

var Pix = new Array() // don't touch this

// to add more images, just continue

// the pattern, adding to the array below

Pix[0] = 'slide3show1_5.jpg'  

Pix[1] = 'slideshow1_2.jpg'

Pix[2] = 'slideshow1_3.jpg'


Pix[3] = 'slideshow1_5.jpg'  

Pix[4] = 'slide2show1_1.jpg'

Pix[5] = 'slide3show1_1.jpg'


Pix[6] = 'slide2show1_4.jpg'  

Pix[7] = 'slideshow1_4.jpg'  

Pix[8] = 'slideshow1_1.jpg'


Pix[9] = 'slide3show1_2.jpg'  

Pix[10] = 'slide2show1_2.jpg'

Pix[11] = 'slide2show1_3.jpg'


Pix[12] = 'slide3show1_3.jpg'

Pix[13] = 'slide2show1_5.jpg'

Pix[14] = 'slide3show1_4.jpg'

// =======================================

// do not edit anything below this line

// =======================================



var t

var j = 0

var p = Pix.length


var preLoad = new Array()

for (i = 0; i < p; i++){

   preLoad[i] = new Image()

   preLoad[i].src = Pix[i]
}


function runSlideShow(){

   if (document.all){

      document.images.SlideShow.style.filter="blendTrans(duration=2)"

      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow.filters.blendTrans.Apply()      

   }

   document.images.SlideShow.src = preLoad[j].src

   if (document.all){

      document.images.SlideShow.filters.blendTrans.Play()

   }

   j = j + 1

   if (j > (p-1)) j=0

   t = setTimeout('runSlideShow()', slideShowSpeed)

}

function runSlide2Show(){

   if (document.all){

      document.images.Slide2Show.style.filter="blendTrans(duration=2)"

      document.images.Slide2Show.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.Slide2Show.filters.blendTrans.Apply()      

   }

   document.images.Slide2Show.src = preLoad[j].src

   if (document.all){

      document.images.Slide2Show.filters.blendTrans.Play()

   }

   j = j + 1

   if (j > (p-1)) j=0

   t = setTimeout('runSlide2Show()', slideShowSpeed)

}

function runSlide3Show(){

   if (document.all){

      document.images.Slide3Show.style.filter="blendTrans(duration=2)"

      document.images.Slide3Show.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.Slide3Show.filters.blendTrans.Apply()      

   }

   document.images.Slide3Show.src = preLoad[j].src

   if (document.all){

      document.images.Slide3Show.filters.blendTrans.Play()

   }

   j = j + 1

   if (j > (p-1)) j=0

   t = setTimeout('runSlide3Show()', slideShowSpeed)

}
