// JavaScript Document

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'kepek/Maurice_Lacroix_2.jpg';
Pic[1] = 'kepek/Breitling.jpg';
Pic[2] = 'kepek/ALCoro.jpg';
Pic[3] = 'kepek/Maurice_Lacroix_1.jpg';
Pic[4] = 'kepek/Rado.jpg';
Pic[5] = 'kepek/Vertu_Ferrari.jpg';
Pic[6] = 'kepek/Maurice_Lacroix_3.jpg';
Pic[7] = 'kepek/Certina_DS_Action_new.jpg';
Pic[8] = 'kepek/Longines.jpg';
Pic[9] = 'kepek/Maurice_Lacroix_4.jpg';
Pic[10] = 'kepek/Tissot_Odaci_T.jpg';
Pic[11] = 'kepek/Schoeffel.jpg';

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad1 = new Array()
for (i = 0; i < p; i++){
   preLoad1[i] = new Image()
   preLoad1[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 = preLoad1[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

