
var speed = 3000
var duration = 1
var slide_pic = new Array()
slide_pic[0] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/001.jpg'
slide_pic[1] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/002.jpg'
slide_pic[2] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/003.jpg'
slide_pic[3] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/004.jpg'
slide_pic[4] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/005.jpg'
slide_pic[5] = 'http://www.fotowalzl.at/wp-content/themes/fw-theme/images/slideshow/006.jpg'


var t
var j = 0
var p = slide_pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = slide_pic[i]
}

function slideshow(){
   if (document.all){
      document.images.slideshow.style.filter="blendTrans(duration=1)"
      document.images.slideshow.style.filter="blendTrans(duration=duration)"
      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('slideshow()', speed)
}