//------------------------------
//	Created by: Het Wep
//------------------------------

// Set WepSliderSpeed (milliseconds)
var WepSliderSpeed = 2500

// Duration of crossfade (seconds)
var crossFadeDuration = 3



// =======================================
// do not edit anything below this line
// =======================================

// Randomize the numers...
function Randum(N) { return  (N*(Math.random()%1))|0 }

var t
var j = 0 //when there is no random  //j = Randum(TotalPics) 
var p = Pic.length
var preLoad = new Array()

for (i = 0; i < p; i++){
	preLoad[i] = new Image()
	preLoad[i].src = Pic[i]
}


function runWepSlider(){
   if (document.all){
      document.images.WepSlider.style.filter="blendTrans(duration=2)"
      document.images.WepSlider.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.WepSlider.filters.blendTrans.Apply()      
   }
   document.images.WepSlider.src = preLoad[j].src
   if (document.all){
      document.images.WepSlider.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runWepSlider()', WepSliderSpeed)
}
