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

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

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

// Specify the image files
var Picz = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Picz[0] = '/images/moving/pic1.jpg'
Picz[1] = '/images/moving/pic3.jpg'
Picz[2] = '/images/moving/pic2.jpg'


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

var t
var j = 0
var p = Picz.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Picz[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 = preLoad[j].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j = j + 1
    if (j > (p-1)) j=0
   t = setTimeout('runSlideShow2()', slideShowSpeed)
}
