

var i = 0;
var path = new Array();

// LIST OF SLIDES
path[0] = "image/slide0.jpg";
path[1] = "image/slide1.jpg";
path[2] = "image/slide2.jpg";
path[3] = "image/slide3.jpg";
path[4] = "image/slide4.jpg";
path[5] = "image/slide5.jpg";
path[6] = "image/slide6.jpg";
path[7] = "image/slide7.jpg";
path[8] = "image/slide8.jpg";
path[9] = "image/slide9.jpg";

function swapImage()
{
   document.slide.src=path[i];
   if(i<path.length-1){i++;}else{i=0;}
   setTimeout("swapImage()",3000);
}




var slideShowSpeed = 5000
var crossFadeDuration = 3
var Pic = new Array()

Pic[0] = 'images/jslide1.jpg'
Pic[1] = 'images/jslide2.jpg'
Pic[2] = 'images/jslide3.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 runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      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('runSlideShow()', slideShowSpeed)
}
