// Set slideShowSpeed (milliseconds)
var olkr_slideShowSpeed = 7500
//var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var olkr_crossFadeDuration = 20
//var crossFadeDuration = 3

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

olkr_Pic[0]="images/GolfClubPicture.jpg"
olkr_Pic[1]="images/GolfClubPicture1.jpg"
olkr_Pic[2]="images/Ducks-And-Ducklings-3.jpg"
olkr_Pic[3]="images/GolfClubPicture3.jpg"
olkr_Pic[4]="images/GolfClubPicture4.jpg"
olkr_Pic[5]="images/GolfClubPicture5.jpg"
olkr_Pic[6]="images/Ducks-And-Ducklings-4.jpg"
olkr_Pic[7]="images/GolfClubPicture7.jpg"
olkr_Pic[8]="images/GolfClubPicture8.jpg"
olkr_Pic[9]="images/Ducks-And-Ducklings-2.jpg"
olkr_Pic[10]="images/GolfClubPicture10.jpg"
olkr_Pic[11]="images/GolfClubPicture11.jpg"
olkr_Pic[12]="images/GolfClubPicture12.jpg"
olkr_Pic[13]="images/GolfClubPicture13.jpg"
olkr_Pic[14]="images/GolfClubPicture14.jpg"
olkr_Pic[15]="images/GolfClubPicture15.jpg"
olkr_Pic[16]="images/GolfClubPicture16.jpg"
olkr_Pic[17]="images/Ducks-And-Ducklings-1.jpg"
olkr_Pic[18]="images/GolfClubPicture9.jpg"
olkr_Pic[19]="images/GolfClubPicture2.jpg"
olkr_Pic[20]="images/GolfClubPicture6.jpg"
olkr_Pic[21]="images/FGC-Centenary-Club.jpg"


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

var olkr_t
var olkr_j = 0
var olkr_p = olkr_Pic.length

var olkr_preLoad = new Array()
for (olkr_i = 0; olkr_i < olkr_p; olkr_i++){
   olkr_preLoad[olkr_i] = new Image()
   olkr_preLoad[olkr_i].src = olkr_Pic[olkr_i]
}

function olkr_runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = olkr_preLoad[olkr_j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   olkr_j = olkr_j + 1
   if (olkr_j > (olkr_p-1)) olkr_j=0
   olkr_t = setTimeout('olkr_runSlideShow()', olkr_slideShowSpeed)
}


