

// Set slideShowSpeed (milliseconds)
var slideShowSpeed4 = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic4 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic4[0]="http://marcusovgard.com/img/Mainimage01.png"
Pic4[1]="http://marcusovgard.com/img/Mainimage02.png"
Pic4[2]="http://marcusovgard.com/img/Mainimage03.png"
Pic4[2]="http://marcusovgard.com/img/Mainimage04.png"
Pic4[2]="http://marcusovgard.com/img/Mainimage05.png"


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic4.length

var preLoad4 = new Array()
for (i = 0; i < p; i++){
   preLoad4[i] = new Image()
   preLoad4[i].src = Pic4[i]
}

function runSlideShow4(){
   if (document.all){
      document.images.SlideShow4.style.filter="blendTrans(duration=2)"
      document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow4.filters.blendTrans.Apply()      
   }
   document.images.SlideShow4.src = preLoad4[j].src
   if (document.all){
      document.images.SlideShow4.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow4()', slideShowSpeed4)
}
