var slideshowSpeed = 6000
var crossFadeDuration = 15

var Pic = new Array()

Pic[0] = 'kullar/kullnio/images/omslag_054.jpg'
Pic[1] = 'kullar/kullnio/images/omslag1_055.jpg'

var t
var po = 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[po].src
   if (document.all){
      document.images.slideshow.filters.blendTrans.Play()
   }
   po = po + 1
   if (po > (p-1)) po=0
   t = setTimeout('runslideshow()', slideshowSpeed)

}