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

// Set Speed (milliseconds)
var HT1Speed = 5000

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

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

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

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

var HT1t
var HT1j = 0
var HT1p = HT1Pic.length

var HT1preLoad = new Array()
for (i = 0; i < HT1p; i++){
   HT1preLoad[i] = new Image()
   HT1preLoad[i].src = HT1Pic[i]
}

function runHome1(){
   if (document.all){
      document.images.Home1.style.filter="blendTrans(duration=2)"
      document.images.Home1.style.filter="blendTrans(duration=HT1crossFadeDuration)"
      document.images.Home1.filters.blendTrans.Apply()      
   }
   document.images.Home1.src = HT1preLoad[HT1j].src
   if (document.all){
      document.images.Home1.filters.blendTrans.Play()
   }
   HT1j = HT1j + 1
   if (HT1j > (HT1p-1)) HT1j=0
   HT1t = setTimeout('runHome1()', HT1Speed)
}
