
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

// Duration of crossfade (seconds)
var crossFadeDuration = 2

// 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] = 'imgs/slideshow/1ss1.jpg'
Pic[1] = 'imgs/slideshow/1ss2.jpg'
Pic[2] = 'imgs/slideshow/1ss3.jpg'
Pic[3] = 'imgs/slideshow/1ss4.jpg'
Pic[4] = 'imgs/slideshow/1ss5.jpg'
Pic[5] = 'imgs/slideshow/1ss6.jpg'
Pic[6] = 'imgs/slideshow/1ss7.jpg'
Pic[7] = 'imgs/slideshow/1ss8.jpg'
Pic[8] = 'imgs/slideshow/1ss9.jpg'
Pic[9] = 'imgs/slideshow/1ss10.jpg'
Pic[10] = 'imgs/slideshow/1ss11.jpg'
Pic[11] = 'imgs/slideshow/1ss12.jpg'
Pic[12] = 'imgs/slideshow/1ss13.jpg'
Pic[13] = 'imgs/slideshow/1ss14.jpg'
Pic[14] = 'imgs/slideshow/1ss15.jpg'
Pic[15] = 'imgs/slideshow/1ss16.jpg'
Pic[16] = 'imgs/slideshow/1ss17.jpg'
Pic[17] = 'imgs/slideshow/1ss18.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 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)
}

