
var slideShowSpeed = 3000
var crossFadeDuration = 6
var Pic = new Array() // don't touch this
Pic[0] = 'images/home/001.jpg'; Pic[1] = 'images/home/002.jpg'; Pic[2] = 'images/home/003.jpg'; Pic[3] = 'images/home/004.jpg'; Pic[4] = 'images/home/005.jpg'; Pic[5] = 'images/home/006.jpg'; Pic[6] = 'images/home/007.jpg'; Pic[7] = 'images/home/008.jpg';
Pic[8] = 'images/home/009.jpg'; Pic[9] = 'images/home/010.jpg'; Pic[10] = 'images/home/011.jpg'; Pic[11] = 'images/home/012.jpg'; Pic[12] = 'images/home/013.jpg'; Pic[13] = 'images/home/014.jpg'; Pic[14] = 'images/home/015.jpg'; Pic[15] = 'images/home/016.jpg';
Pic[16] = 'images/home/017.jpg'; Pic[17] = 'images/home/018.jpg'; Pic[18] = 'images/home/019.jpg'; Pic[19] = 'images/home/020.jpg'; Pic[20] = 'images/home/021.jpg'; Pic[21] = 'images/home/022.jpg'; Pic[22] = 'images/home/023.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]
}
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()      
   }
   var num = Math.floor(Math.random()*Pic.length);
   
   document.images.SlideShow.src = preLoad[num].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

