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

// Set galleryTopSpeed (milliseconds)
var GBgalleryBottomSpeed = 5000

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

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

GBPic[0] = '/uploads/images/bottom/bottom/06.jpg'
GBPic[1] = '/uploads/images/bottom/bottom/07.jpg'
GBPic[2] = '/uploads/images/bottom/bottom/04.jpg'
GBPic[3] = '/uploads/images/bottom/bottom/01.jpg'
GBPic[4] = '/uploads/images/bottom/bottom/02.jpg'
GBPic[5] = '/uploads/images/bottom/bottom/03.jpg'
GBPic[6] = '/uploads/images/bottom/bottom/05.jpg'

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

var GBt
var GBj = 0
var GBp = GBPic.length

var GBpreLoad = new Array()
for (i = 0; i < GBp; i++){
   GBpreLoad[i] = new Image()
   GBpreLoad[i].src = GBPic[i]
}

function runGalleryBottom(){
   if (document.all){
      document.images.GalleryBottom.style.filter="blendTrans(duration=2)"
      document.images.GalleryBottom.style.filter="blendTrans(duration=GBcrossFadeDuration)"
      document.images.GalleryBottom.filters.blendTrans.Apply()      
   }
   document.images.GalleryBottom.src = GBpreLoad[GBj].src
   if (document.all){
      document.images.GalleryBottom.filters.blendTrans.Play()
   }
   GBj = GBj + 1
   if (GBj > (GBp-1)) GBj=0
   GBt = setTimeout('runGalleryBottom()', GBgalleryBottomSpeed)
}