// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

for (i = 1; i <= 6; i++) {
	Pic[i] = '/images/banners/' + i + '.jpg';
}

// do not edit anything below this line
var t;
var j = 1;
var p = Pic.length;
var preLoad = new Array();
for (i = 1; i <= p; i++) {
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}
function photos() {
	if (document.all) {
		document.images.photo.style.filter="blendTrans(duration=2)";
		document.images.photo.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.photo.filters.blendTrans.Apply();
	}
	document.images.photo.src = preLoad[j].src;
	if (document.all) {
		document.images.photo.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 1;
	t = setTimeout('photos()', slideShowSpeed);
}