// Set slideShowSpeed (milliseconds)
var slideShowSpeed_ks = 5000

// Duration of crossfade (seconds)
var crossFadeDuration_ks = 3

// Specify the image files
var Pic_ks = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic_ks[0] = 'images_kidsSpace/image01.jpg'
Pic_ks[1] = 'images_kidsSpace/image02.jpg'
Pic_ks[2] = 'images_kidsSpace/image03.jpg'
Pic_ks[3] = 'images_kidsSpace/image04.jpg'
Pic_ks[4] = 'images_kidsSpace/image05.jpg'
Pic_ks[5] = 'images_kidsSpace/image06.jpg'



// =======================================
// do not edit anything below this line
// =======================================

var k
var j = 0
var l = Pic_ks.length

var preLoad_ks = new Array()
for (m = 0; m < l; m++){
   preLoad_ks[m] = new Image()
   preLoad_ks[m].src = Pic_ks[m]
}

function runSlideShow_ks(){
   if (document.all){
      document.images.SlideShow_ks.style.filter="blendTrans(duration=2)"
      document.images.SlideShow_ks.style.filter="blendTrans(duration=crossFadeDuration_ks)"
      document.images.SlideShow_ks.filters.blendTrans.Apply()      
   }
   document.images.SlideShow_ks.src = preLoad_ks[j].src
   if (document.all){
      document.images.SlideShow_ks.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (l-1)) j=0
   k = setTimeout('runSlideShow_ks()', slideShowSpeed_ks)
}