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

// Set galleryTopSpeed (milliseconds)
var GTgalleryTopSpeed = 5000

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

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

GTPic[0] = '/uploads/images/bottom/top/22.jpg'
GTPic[1] = '/uploads/images/bottom/top/21.jpg'
GTPic[2] = '/uploads/images/bottom/top/20.jpg'
GTPic[3] = '/uploads/images/bottom/top/18.jpg'
GTPic[4] = '/uploads/images/bottom/top/19.jpg'
GTPic[5] = '/uploads/images/bottom/top/17.jpg'
GTPic[6] = '/uploads/images/bottom/top/15.jpg'
GTPic[7] = '/uploads/images/bottom/top/13.jpg'
GTPic[8] = '/uploads/images/bottom/top/12.jpg'
GTPic[9] = '/uploads/images/bottom/top/11.jpg'
GTPic[10] = '/uploads/images/bottom/top/14.jpg'
GTPic[11] = '/uploads/images/bottom/top/10.jpg'
GTPic[12] = '/uploads/images/bottom/top/08.jpg'
GTPic[13] = '/uploads/images/bottom/top/01.jpg'
GTPic[14] = '/uploads/images/bottom/top/02.jpg'
GTPic[15] = '/uploads/images/bottom/top/03.jpg'
GTPic[16] = '/uploads/images/bottom/top/05.jpg'

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

var GTt
var GTj = 0
var GTp = GTPic.length

var GTpreLoad = new Array()
for (i = 0; i < GTp; i++){
   GTpreLoad[i] = new Image()
   GTpreLoad[i].src = GTPic[i]
}

function runGalleryTop(){
   if (document.all){
      document.images.GalleryTop.style.filter="blendTrans(duration=2)"
      document.images.GalleryTop.style.filter="blendTrans(duration=GTcrossFadeDuration)"
      document.images.GalleryTop.filters.blendTrans.Apply()      
   }
   document.images.GalleryTop.src = GTpreLoad[GTj].src
   if (document.all){
      document.images.GalleryTop.filters.blendTrans.Play()
   }
   GTj = GTj + 1
   if (GTj > (GTp-1)) GTj=0
   GTt = setTimeout('runGalleryTop()', GTgalleryTopSpeed)
}
