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

// Set Speed (milliseconds)
var HT2bSpeed = 5000

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

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

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

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

var HT2bt
var HT2bj = 0
var HT2bp = HT2bPic.length

var HT2bpreLoad = new Array()
for (i = 0; i < HT2bp; i++){
   HT2bpreLoad[i] = new Image()
   HT2bpreLoad[i].src = HT2bPic[i]
}

function runHome2b(){
   if (document.all){
      document.images.Home2b.style.filter="blendTrans(duration=2)"
      document.images.Home2b.style.filter="blendTrans(duration=HT2bcrossFadeDuration)"
      document.images.Home2b.filters.blendTrans.Apply()      
   }
   document.images.Home2b.src = HT2bpreLoad[HT2bj].src
   if (document.all){
      document.images.Home2b.filters.blendTrans.Play()
   }
   HT2bj = HT2bj + 1
   if (HT2bj > (HT2bp-1)) HT2bj=0
   HT2bt = setTimeout('runHome2b()', HT2bSpeed)
}
