// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

// Duration of crossfade (seconds)
var leftcrossFadeDuration = 3

// Specify the image files
var slideshow = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0

function Preload_images(){
//alert(p)
	var preLoad= new Array()
	for (i = 0; i < p; i++){
	   preLoad[i] = new Image()
	   preLoad[i].src = slideshow[i]
//	   alert(preLoad[i].src)
	}
	document.images.slide.src = preLoad[j].src
}

function runSlideShow(){
	
   if (document.all){
//	   alert('start slideshow')
      document.images.slide.style.filter="blendTrans(duration=2)"
      document.images.slide.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.slide.filters.blendTrans.Apply()      
   }
   
   if (document.all){
//	   alert('start slideshow 2')
      document.images.slide.filters.blendTrans.Play()
   }
   j = j + 1
//   alert(j)
   if (j > (p-1)) j=0
//   alert('start slideshow 3')
	setTimeout('runSlideShow()', slideShowSpeed)
//	setTimeout("alert('test')", slideShowSpeed)
//   alert('start slideshow 4')
}

