var slideShowSpeed = 5000
var crossFadeDuration = 3
 
var Pic2 = new Array()
 
Pic2[0] = 'tpl_img/38/FullScreen3.jpg'
Pic2[1] = 'tpl_img/38/FullScreen1.jpg'
Pic2[2] = 'tpl_img/38/FullScreen2.jpg' 
Pic2[3] = 'tpl_img/38/FullScreen3.jpg' 
 
var t
var j = 0
var p = Pic2.length
 
var preLoad2 = new Array()
for (i = 0; i < p; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[i]
}
 
function runSlideShow(){
   if (document.all){
      document.getElementById("SlideShow").style.filter="blendTrans(duration=2)"
      document.getElementById("SlideShow").style.filter="blendTrans(duration=crossFadeDuration)"
      document.getElementById("SlideShow").filters.blendTrans.Apply()      
   }
   document.getElementById("SlideShow").style.backgroundImage = "url(" + preLoad2[j].src + ")"; 
   if (document.all){
      document.getElementById("SlideShow").filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

