// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// Set slideShowSpeed (milliseconds)
var adslideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

var t
var j = 0
var p = adPic.length

var preadLoad = new Array()
for (i = 0; i < p; i++){
   preadLoad[i] = new Image()
   preadLoad[i].src = adPic[i]
}

function runadSlideShow(){
   if (document.all){
      document.images.adSlideShow.style.filter="blendTrans(duration=3)"
      document.images.adSlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.adSlideShow.filters.blendTrans.Apply()      
   }
   document.images.adSlideShow.src = preadLoad[j].src;
   document.getElementById('adSlideShowLink').href = adPicLink[j];
   if (document.all){
      document.images.adSlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runadSlideShow()', adslideShowSpeed)
}
