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

// Set Speed (milliseconds)
var HT3Speed = 5000

// Duration of crossfade (seconds)
var HT3crossFadeDuration = 3

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

HT3Pic[0] = '/uploads/images/home/3/01.jpg'
HT3Pic[1] = '/uploads/images/home/3/02.jpg'
HT3Pic[2] = '/uploads/images/home/3/03.jpg'
HT3Pic[3] = '/uploads/images/home/3/04.jpg'

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

var HT3t
var HT3j = 0
var HT3p = HT3Pic.length

var HT3preLoad = new Array()
for (i = 0; i < HT3p; i++){
   HT3preLoad[i] = new Image()
   HT3preLoad[i].src = HT3Pic[i]
}

function runHome3(){
   if (document.all){
      document.images.Home3.style.filter="blendTrans(duration=2)"
      document.images.Home3.style.filter="blendTrans(duration=HT3crossFadeDuration)"
      document.images.Home3.filters.blendTrans.Apply()      
   }
   document.images.Home3.src = HT3preLoad[HT3j].src
   if (document.all){
      document.images.Home3.filters.blendTrans.Play()
   }
   HT3j = HT3j + 1
   if (HT3j > (HT3p-1)) HT3j=0
   HT3t = setTimeout('runHome3()', HT3Speed)
}
