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

// Set Speed (milliseconds)
var HT4aSpeed = 5000

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

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

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

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

var HT4at
var HT4aj = 0
var HT4ap = HT4aPic.length

var HT4apreLoad = new Array()
for (i = 0; i < HT4ap; i++){
   HT4apreLoad[i] = new Image()
   HT4apreLoad[i].src = HT4aPic[i]
}

function runHome4a(){
   if (document.all){
      document.images.Home4a.style.filter="blendTrans(duration=2)"
      document.images.Home4a.style.filter="blendTrans(duration=HT4acrossFadeDuration)"
      document.images.Home4a.filters.blendTrans.Apply()      
   }
   document.images.Home4a.src = HT4apreLoad[HT4aj].src
   if (document.all){
      document.images.Home4a.filters.blendTrans.Play()
   }
   HT4aj = HT4aj + 1
   if (HT4aj > (HT4ap-1)) HT4aj=0
   HT4at = setTimeout('runHome4a()', HT4aSpeed)
}
