
var slideShowSpeed = 5000

var crossFadeDuration = 5

var Pic = new Array() 

Pic[0] = 'fejlecek/old-lake-golf-country-club_klubhaz.jpg'
Pic[1] = 'fejlecek/eropean-lakes-golf-country-club_11-es-green.jpg'
Pic[2] = 'fejlecek/pannonia-golf-country-club_14-es-lyuk.jpg'
Pic[3] = 'fejlecek/european-lakes-golf-country-club_5-os-green.jpg'
Pic[4] = 'fejlecek/polus3.jpg'
Pic[5] = 'fejlecek/polus1.jpg'
Pic[6] = 'fejlecek/pannonia-golf-country-club_4-es-lyuk.jpg'
Pic[7] = 'fejlecek/royal-balaton-golf-yacht-club_10-es-fairway.jpg'
Pic[8] = 'fejlecek/european-lakes-golf-country-club_15-os-green.jpg'
Pic[9] = 'fejlecek/polus2.jpg'
Pic[10] = 'fejlecek/pannonia-golf-country-club_6-os-lyuk.jpg'
Pic[11] = 'fejlecek/royal-balaton-golf-yacht-club-_13-as-palyaszakasz.jpg'
Pic[12] = 'fejlecek/budapest-high-land-golf-club-2-es-eluto.jpg'
Pic[13] = 'fejlecek/budapest-high-land-golf-club1esgreen.jpg'
Pic[14] = 'fejlecek/birdland-golf-country-club-palyaszakasz.jpg'
Pic[15] = 'fejlecek/birdland-golf-country-club_14-es-palyaszakasz.jpg'
Pic[16] = 'fejlecek/old-lake-golf-country-club.jpg'
Pic[17] = 'fejlecek/royal-balaton-golf-yacht-club_10-es-green.jpg'
Pic[18] = 'fejlecek/birdland-golf-country-club_16-os-palyaszakasz.jpg'
Pic[19] = 'fejlecek/old-lake-golf-country-club_2.jpg'
Pic[20] = 'fejlecek/budapest-high-land-golf-club8asgreen.jpg' 
Pic[21] = 'fejlecek/boya_eagles_golf_country_club_1.jpg' 
Pic[22] = 'fejlecek/boya_eagles_golf_country_club_2.jpg' 
Pic[23] = 'fejlecek/boya_eagles_golf_country_club_3.jpg' 
Pic[24] = 'fejlecek/olimpia_2012_rio.jpg' 

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 = Pic[i]
}

function 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 = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}