// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pics = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pics[0] = 'images/wg2-1.jpg'
Pics[1] = 'images/wg2-2.jpg'
Pics[2] = 'images/wg2-4.jpg'
Pics[3] = 'images/wg2-5.jpg'
Pics[4] = 'images/wg2-6.jpg'
Pics[5] = 'images/wg2-3.jpg'


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pics.length

var preLoad2 = new Array()
for (i = 0; i < p; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pics[i]
}

function runSlideShow2(){
   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 = preLoad2[j].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow2()', slideShowSpeed)
}



