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

// Set Speed (milliseconds)
var HT4bSpeed = 5000

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

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

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

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

var HT4bt
var HT4bj = 0
var HT4bp = HT4bPic.length

var HT4bpreLoad = new Array()
for (i = 0; i < HT4bp; i++){
   HT4bpreLoad[i] = new Image()
   HT4bpreLoad[i].src = HT4bPic[i]
}

function runHome4b(){
   if (document.all){
      document.images.Home4b.style.filter="blendTrans(duration=2)"
      document.images.Home4b.style.filter="blendTrans(duration=HT4bcrossFadeDuration)"
      document.images.Home4b.filters.blendTrans.Apply()      
   }
   document.images.Home4b.src = HT4bpreLoad[HT4bj].src
   if (document.all){
      document.images.Home4b.filters.blendTrans.Play()
   }
   HT4bj = HT4bj + 1
   if (HT4bj > (HT4bp-1)) HT4bj=0
   HT4bt = setTimeout('runHome4b()', HT4bSpeed)
}
