// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// 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] = 'kuvat/logot/harkalogo.gif'
//Pic[1] = 'kuvat/logot/4_m.gif'
Pic[0] = 'kuvat/logot/ypk.jpg'
Pic[1] = 'kuvat/logot/turku_touring.gif'
Pic[2] = 'kuvat/logot/hameen_matkailu.gif'
Pic[3] = 'kuvat/logot/loimaan_seudun_kk.gif'
Pic[4] = 'kuvat/logot/forssan_seudun_kk.gif'
Pic[5] = 'kuvat/logot/Kehittamiskeskus_Oy_Hame_logo.gif'
Pic[6] = 'kuvat/logot/lopen_kunta.gif'
//Pic[7] = 'kuvat/logot/erkka_korpiaho.gif'
//Pic[8] = 'kuvat/logot/forssanlehti.gif'
//Pic[9] = 'kuvat/logot/fmtours.gif'

//Pic[1] = 'kuvat/logot/autokeskus.gif'

//Pic[13] = 'kuvat/logot/elamysportaat.gif'
//Pic[14] = 'kuvat/logot/laakasalo.gif'
//Pic[15] = 'kuvat/logot/marskin_maja.gif'
//Pic[16] = 'kuvat/logot/saastopankki.gif'

// =======================================
// do not edit anything below this line
// =======================================

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)
}

