var PhotoSpeed = 4000
var crossFadeDuration = 1
var fot = new Array() 


fot[0] = 'img/title/slide_01.jpg'
fot[1] = 'img/title/slide_02.jpg'
fot[2] = 'img/title/slide_03.jpg'
fot[3] = 'img/title/slide_04.jpg'


var k
var r = 0
var l = fot.length

var preLoad = new Array()
for (i = 0; i < l; i++){
   preLoad[i] = new Image()
   preLoad[i].src = fot[i]
}

function runPhoto(){
   if (document.all){
      document.images.Photo.style.filter="blendTrans(duration=2)"
      document.images.Photo.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.Photo.filters.blendTrans.Apply()      
   }
   document.images.Photo.src = preLoad[r].src
   if (document.all){
      document.images.Photo.filters.blendTrans.Play()
   }
   r = r + 1
   if (r > (l-1)) r=0
   k = setTimeout('runPhoto()', PhotoSpeed)
}
