// =======================================

// set the following variables

// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;

// Duration of crossfade (seconds)
var crossFadeDuration = 1;

// Specify the image files
var Pic = new Array() // don't touch this
var Caption = new Array() // don't touch this


Pic[0] = '../bw2/Taste06_006.jpg';
Pic[1] = '../bw2/Taste06_014.jpg';
Pic[2] = '../bw1/STPBW_022.jpg';
Pic[3] = '../bw2/Taste06_008.jpg';
Pic[4] = '../bw1/STPBW_003.jpg';
Pic[5] = '../bw1/STPBW_019.jpg';

Caption[0] = '';
Caption[1] = '';
Caption[2] = '';
Caption[3] = '';
Caption[4] = '';
Caption[5] = '';



// =======================================
// do not edit anything below this line
// =======================================

var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
var preLoadCaption = new Array();

for (i = 0; i < p; i++){

   preLoad[i] = new Image();
   preLoadCaption[i] = new Image();
   preLoad[i].src = Pic[i];
   //preLoadCaption[i].src = Caption[i];

}

function runSlideShow(){

   if (document.all){
      // document.images.slide.style.filter="blendTrans(duration=1)";
      // document.images.slide.style.filter="blendTrans(duration=crossFadeDuration)";
      // document.images.slide.filters.blendTrans.Apply();      

	document.images.slide.style.filter="revealTrans(duration=crossFadeDuration,transition=0)";
	document.images.slide.filters.revealTrans.Apply();  

	// document.images.caption.style.filter="blendTrans(duration=crossFadeDuration)";
      	// document.images.caption.filters.blendTrans.Apply();    

   }

   document.images.slide.src = preLoad[j].src
   //document.images.caption.src = preLoadCaption[j].src



   if (document.all){
	document.images.slide.filters.revealTrans.Play();
	//document.images.caption.filters.blendTrans.Play();
   }

   j = j + 1;

   if (j > (p-1)) j=0;

   t = setTimeout('runSlideShow()', slideShowSpeed);

}

