// JavaScript Document

<!-- Script for Image Slideshow -->

// Set image transition speed (1000 = 1 second)
var transitionSpeed = 5500

// Set fade time in seconds
var fadeTime = 3

// List  images required for the slide show
var slideImage = new Array() 
slideImage[0] = 'images/slideshow/acrovyn_handrails_ss1.jpg'
slideImage[1] = 'images/slideshow/acrovyn_handrails_ss2.jpg'
slideImage[2] = 'images/slideshow/acrovyn_handrails_ss3.jpg'
slideImage[3] = 'images/slideshow/acrovyn_handrails_ss4.jpg'
// slideImage[4] = 'images/slideshow/acrovyn_ss5.jpg'

// Don't change anything beyond this point
// ..........................................................................
var t
var n = 0
var s = slideImage.length

var preLoad = new Array()
for (i = 0; i < s; i++){
   preLoad[i] = new Image()
   preLoad[i].src = slideImage[i]
}

function SlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=fadeTime)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[n].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   n = n + 1
   if (n > (s-1)) n=0
   t = setTimeout('SlideShow()', transitionSpeed)
}
