// Set slideShowSpeed (milliseconds)
var slideShowSpeed2 = 5000

// Duration of crossfade (seconds)
var crossFadeDuration2 = 3

// Specify the image files
var Pic2 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic2[0] = 'images/hmbk5.gif'
Pic2[1] = 'images/hmbk6.gif'
Pic2[2] = 'images/hmbk7.gif'
Pic2[3] = 'images/hmbk8.gif'
Pic2[4] = 'images/hmbk1.gif'
Pic2[5] = 'images/hmbk2.gif'
Pic2[6] = 'images/hmbk3.gif'
Pic2[7] = 'images/hmbk4.gif'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic2[i]
}

function runSlideShow2(){
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration2)"
      document.images.SlideShow2.filters.blendTrans.Apply()      
   }
   document.images.SlideShow2.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow2()', slideShowSpeed2)
}
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
