	

	
	
// 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 500x200 px. and preferably jpeg
	// remember to increment the bannerPic[number]
	
		bannerPic[0] = 'http://www.albaweddings.com/images/indeximage1.jpg';
		bannerPic[1] = 'http://www.albaweddings.com/images/indeximage2.jpg';
		bannerPic[2] = 'http://www.albaweddings.com/images/indeximage3.jpg';
		bannerPic[3] = 'http://www.albaweddings.com/images/indeximage4.jpg';
	



	// Set slideShowSpeed (10000 = 10 seconds) interval between change
		var slideShowSpeed = 5000;
	
	/************************************************************************************************
	******************************     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






	

	
