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

// Set Speed (milliseconds)
var HT2aSpeed = 5000

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

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

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

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

var HT2at
var HT2aj = 0
var HT2ap = HT2aPic.length

var HT2apreLoad = new Array()
for (i = 0; i < HT2ap; i++){
   HT2apreLoad[i] = new Image()
   HT2apreLoad[i].src = HT2aPic[i]
}

function runHome2a(){
   if (document.all){
      document.images.Home2a.style.filter="blendTrans(duration=2)"
      document.images.Home2a.style.filter="blendTrans(duration=HT2acrossFadeDuration)"
      document.images.Home2a.filters.blendTrans.Apply()      
   }
   document.images.Home2a.src = HT2apreLoad[HT2aj].src
   if (document.all){
      document.images.Home2a.filters.blendTrans.Play()
   }
   HT2aj = HT2aj + 1
   if (HT2aj > (HT2ap-1)) HT2aj=0
   HT2at = setTimeout('runHome2a()', HT2aSpeed)
}
