var slideShowhomeSpeed = 4000

var crossFadeDuration = 3

var Pic = new Array()

Pic[0] = 'images/photo-home2.jpg'

Pic[1] = 'images/photo-home3.jpg'

Pic[2] = 'images/photo-home4.jpg'

Pic[3] = 'images/photo-home8.jpg'

Pic[4] = 'images/photo-home.jpg'

Pic[5] = 'images/photo-home6.jpg'

Pic[6] = 'images/photo-home7.jpg'

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 runSlideShowhome(){

if (document.all){

document.images.SlideShowhome.style.filter="blendTrans(duration=2)"

document.images.SlideShowhome.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShowhome.filters.blendTrans.Apply() 

}

document.images.SlideShowhome.src = preLoad[j].src

if (document.all){

document.images.SlideShowhome.filters.blendTrans.Play()

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShowhome()', slideShowhomeSpeed)

}

