// (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 = 4000; // 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/lights2.jpg';
preLoad[0][1] = "DRK Event Lighting - your event lighting specialists"; // alt text

preLoad[1] = new Array();
preLoad[1][0] = new Image();
preLoad[1][0].src = 'images/lights3.jpg';
preLoad[1][1] = "DRK Event Lighting - your event lighting specialists"; // alt text

preLoad[2] = new Array();
preLoad[2][0] = new Image();
preLoad[2][0].src = 'images/lights4.jpg';
preLoad[2][1] = "DRK Event Lighting - your event lighting specialists"; // alt text

preLoad[3] = new Array();
preLoad[3][0] = new Image();
preLoad[3][0].src = 'images/lights1.jpg';
preLoad[3][1] = "DRK Event Lighting - your event lighting specialists"; // 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);
}

