	

	
	
// Specify the image files
	var bannerPic = new Array();
	var eventPic = new Array();
	
	/************************************************************************************************
	*********************************** EDITABLE AREA ***********************************************
	*************************************************************************************************/

	
	// to add more images, just continue the pattern, adding to the array below. Images MUST be 540x120 px. and preferably jpeg
	// remember to increment the bannerPic[number]

	bannerPic[0] = 'http://www.messianictestimony.com/images/newverse1.jpg';
	bannerPic[1] = 'http://www.messianictestimony.com/images/newverse2.jpg';
	bannerPic[2] = 'http://www.messianictestimony.com/images/newverse3.jpg';
	bannerPic[3] = 'http://www.messianictestimony.com/images/newverse4.jpg';
	bannerPic[4] = 'http://www.messianictestimony.com/images/newverse5.jpg';
	bannerPic[5] = 'http://www.messianictestimony.com/images/newverse6.jpg';
	bannerPic[6] = 'http://www.messianictestimony.com/images/newverse7.jpg';
	bannerPic[7] = 'http://www.messianictestimony.com/images/newverse8.jpg';



// Set slideShowSpeed (milliseconds) interval between change
	var slideShowSpeed = 20000;
	
	/************************************************************************************************
	******************************     END OF EDITABLE AREA     *************************************
	*************************************************************************************************/


	
// do not edit anything below this line
	var t;

	var p = bannerPic.length;
	var preLoad = new Array();
	
	for (i = 0; i < p; i++) {
		preLoad[i] = new Image();
		preLoad[i].src = bannerPic[i];
	}

function runSlideShow() {
		
		if (document.all) {
			document.images.slideshow.style.filter="blendTrans(duration=12)";
			document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.slideshow.filters.blendTrans.Apply();
		}

	//  get random number
		varNum1 = Math.round(Math.random()* (p-1));
		document.images.slideshow.src = preLoad[varNum1].src;
		
		//document.getElementById("eventlink").href = links[varNum1];
		//document.getElementById("eventlink").firstChild.data=events[varNum1];
			
		if (document.all) {
			document.images.slideshow.filters.blendTrans.Play();
		}

		t = setTimeout('runSlideShow()', slideShowSpeed);
	
		
		
}// JavaScript Document