// (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 slideshow variables
// =======================================
var slideShowSpeed = 5000; // Set slideShow Speed in milliseconds
var crossFadeDuration = 2; // Duration of crossfade in seconds

// Specify the images (with width, height, and alt text)
var preLoad = new Array()

preLoad[0] = new Array();
preLoad[0][0] = new Image();
preLoad[0][0]. src = 'images/slideShow/Slide1.jpg';
preLoad[0][1] = "Two women at a recent Common Grounds meeting."; // alt text

preLoad[1] = new Array();
preLoad[1][0] = new Image();
preLoad[1][0].src = 'images/slideShow/Slide2.jpg';
preLoad[1][1] = "Three women at a recent Common Grounds gathering."; // alt text

preLoad[2] = new Array();
preLoad[2][0] = new Image();
preLoad[2][0].src = 'images/slideShow/Slide3.jpg';
preLoad[2][1] = "Three women praying at a recent Common Grounds meeting."; // alt text

preLoad[3] = new Array();
preLoad[3][0] = new Image();
preLoad[3][0].src = 'images/slideShow/Slide4.jpg';
preLoad[3][1] = "Two women laughing before a recent Common Grounds discussion."; // alt text

preLoad[4] = new Array();
preLoad[4][0] = new Image();
preLoad[4][0].src = 'images/slideShow/Slide5.jpg';
preLoad[4][1] = "Two women posing for a picture at Common Grounds."; // alt text

preLoad[5] = new Array();
preLoad[5][0] = new Image();
preLoad[5][0].src = 'images/slideShow/Slide6.jpg';
preLoad[5][1] = "Two women posing for a picture at Common Grounds."; // alt text

preLoad[6] = new Array();
preLoad[6][0] = new Image();
preLoad[6][0].src = 'images/slideShow/Slide7.jpg';
preLoad[6][1] = "Two women posing for a picture at Common Grounds."; // alt text

preLoad[7] = new Array();
preLoad[7][0] = new Image();
preLoad[7][0].src = 'images/slideShow/Slide8.jpg';
preLoad[7][1] = "Four women posing for a picture at Common Grounds."; // alt text

preLoad[8] = new Array();
preLoad[8][0] = new Image();
preLoad[8][0].src = 'images/slideShow/Slide9.jpg';
preLoad[8][1] = "Two women at a recent Common Grounds meeting."; // alt text

preLoad[9] = new Array();
preLoad[9][0] = new Image();
preLoad[9][0].src = 'images/slideShow/Slide10.jpg';
preLoad[9][1] = "A woman laughing during a segment of Common Grounds."; // alt text

preLoad[10] = new Array();
preLoad[10][0] = new Image();
preLoad[10][0].src = 'images/slideShow/Slide11.jpg';
preLoad[10][1] = "Two women posing for the camera."; // alt text

preLoad[11] = new Array();
preLoad[11][0] = new Image();
preLoad[11][0].src = 'images/slideShow/Slide12.jpg';
preLoad[11][1] = "Three friends at a recent Common Grounds meeting."; // alt text

preLoad[12] = new Array();
preLoad[12][0] = new Image();
preLoad[12][0].src = 'images/slideShow/Slide13.jpg';
preLoad[12][1] = "Two women posing for a picture."; // alt text

preLoad[13] = new Array();
preLoad[13][0] = new Image();
preLoad[13][0].src = 'images/slideShow/Slide14.jpg';
preLoad[13][1] = "Four women in a group discussing the day's topic."; // alt text

preLoad[14] = new Array();
preLoad[14][0] = new Image();
preLoad[14][0].src = 'images/slideShow/Slide15.jpg';
preLoad[14][1] = "A group photo from a recent Common Grounds gathering."; // alt text


// Declare looping vars
var t;
var j = 0;
var p = preLoad.length;


function runSlideShow(){
	// set a blending transition (for IE)
	if (document.all){
		document.images.SlideShow.style.filter="blendTrans(duration=2)"
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.SlideShow.filters.blendTrans.Apply()      
	}
	
	// switch the image and set its properties
	document.images.SlideShow.src = preLoad[j][0].src;
	document.images.SlideShow.alt = preLoad[j][1];
	
	// apply the blending transition
	if (document.all){
		document.images.SlideShow.filters.blendTrans.Play()
	}
	
	// increment the counter
	j = j + 1;
	
	// if counter is beyond the end of the array, return to beginning
	if (j > (p-1)) j=0;
	
	// set this function to execute again in defined # of milliseconds
	t = setTimeout('runSlideShow()', slideShowSpeed);
}


