// This is freeware from an excellent site at:
// http://www.codelifter.com/main/javascript/slideshow2.html
// (C) 2000 www.CodeLifter.com http://www.codelifter.com
// Free for all users, but leave in this  header
// Set to run three slideshows on one page 10/27/03 Dan Olson

// =======================================
// 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()
var Pic2 = new Array()
var Pic3 = new Array()

Pic[0] = 'http://depts.washington.edu/omca/SMDEP/test/010583.JPG'
Pic[1] = 'http://depts.washington.edu/omca/SMDEP/test/020426.JPG'
Pic[2] = 'http://depts.washington.edu/omca/SMDEP/test/030345.JPG'
Pic[3] = 'http://depts.washington.edu/omca/SMDEP/test/040603.JPG'
Pic[4] = 'http://depts.washington.edu/omca/SMDEP/test/050615.JPG'
Pic[5] = 'http://depts.washington.edu/omca/SMDEP/test/060468.JPG'
Pic[6] = 'http://depts.washington.edu/omca/SMDEP/test/070361.JPG'

Pic2[0] = 'http://depts.washington.edu/omca/SMDEP/test/090602.JPG'
Pic2[1] = 'http://depts.washington.edu/omca/SMDEP/test/100310.JPG'
Pic2[2] = 'http://depts.washington.edu/omca/SMDEP/test/110287.JPG'
Pic2[3] = 'http://depts.washington.edu/omca/SMDEP/test/120553.JPG'
Pic2[4] = 'http://depts.washington.edu/omca/SMDEP/test/130188.JPG'
Pic2[5] = 'http://depts.washington.edu/omca/SMDEP/test/140182.JPG'
Pic2[6] = 'http://depts.washington.edu/omca/SMDEP/test/160441.JPG'

Pic3[0] = 'http://depts.washington.edu/omca/SMDEP/test/170524.JPG'
Pic3[1] = 'http://depts.washington.edu/omca/SMDEP/test/180176.JPG'
Pic3[2] = 'http://depts.washington.edu/omca/SMDEP/test/190371.JPG'
Pic3[3] = 'http://depts.washington.edu/omca/SMDEP/test/210505.JPG'
Pic3[4] = 'http://depts.washington.edu/omca/SMDEP/test/220535.JPG'
Pic3[5] = 'http://depts.washington.edu/omca/SMDEP/test/230404.JPG'
Pic3[6] = 'http://depts.washington.edu/omca/SMDEP/test/080497.JPG'

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]
}

var p = Pic2.length

var preLoad2 = new Array()
for (i = 0; i < p; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[i]
}

var p = Pic3.length

var preLoad3 = new Array()
for (i = 0; i < p; i++){
   preLoad3[i] = new Image()
   preLoad3[i].src = Pic3[i]
}

var t
var j = 0


function runSlideShow3(){
   if (document.all){
      document.images.SlideShow3.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow3.filters.blendTrans.Apply()
      document.images.SlideShow2.filters.blendTrans.Apply()
      document.images.SlideShow.filters.blendTrans.Apply()

   }
   document.images.SlideShow3.src = preLoad3[j].src
   document.images.SlideShow2.src = preLoad2[j].src
   document.images.SlideShow.src = preLoad[j].src

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

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




