var slideShowSpeed = 4000

var crossFadeDuration = 3

var Pic = [
		   
['images/hp_slideshow_1.jpg','#'],   

['images/hp_slideshow_2.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][0];
}

function runSlideShow1(){

   if (document.all){
      document.images.SlideShow1.style.filter="blendTrans(duration=2)"
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow1.filters.blendTrans.Apply()
   }
   document.images.SlideShow1.src = preLoad[j].src
   document.images.SlideShow1.link = Pic[j][1];
   //document.images.SlideShow1.onclick = function(){window.open(this.link)};
   if (document.all){
      document.images.SlideShow1.filters.blendTrans.Play()
   }
   j = j + 1;
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow1()', slideShowSpeed)
}



