// JavaScript Document

// (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 the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2500;

// Duration of crossfade (seconds)
var crossFadeDuration = 2;

var t;
var j = 2;  // Start on third image (after no change on first call of runSlideShow)
var k = 0;	// Ensures that no image changes on the first call of runSlideShow
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 (j > (p-1)) j=0;
   if (k == 1) {
	   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
	   if (document.all){
		  document.images.SlideShow1.filters.blendTrans.Play()
	   }
   } else if (k == 2) {
	   if (document.all){
		  document.images.SlideShow2.style.filter="blendTrans(duration=2)"
		  document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
		  document.images.SlideShow2.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow2.src = preLoad[j].src
	   if (document.all){
		  document.images.SlideShow2.filters.blendTrans.Play()
	   }
   } else if (k == 3) {
	   if (document.all){
		  document.images.SlideShow3.style.filter="blendTrans(duration=2)"
		  document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
		  document.images.SlideShow3.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow3.src = preLoad[j].src
	   if (document.all){
		  document.images.SlideShow3.filters.blendTrans.Play()
	   }
   }
	
   j ++;
   k ++;
   if (k > 3) k = 1;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

runSlideShow();

