// Set slideShowSpeed (milliseconds)
var crossFadeDuration = 8000;

// Specify the image files
var slideShowSpeed = 8000;

// Duration of crossfade (milliseconds)
// to add more images, just continue
// the pattern, adding to the array below
var Pic = new Array(
'images/HomeBanner1.jpg',
'images/HomeBanner2.jpg',
'images/HomeBanner3.jpg',
'images/HomeBanner4.jpg'
);



// do not edit anything below this line
function randorder(){ return (Math.round(Math.random())-0.5); } 
Pic.sort(randorder);

var t,j=0,p=Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

function runSlideShow() {
	if (document.all) {
		var o=document.getElementById("rotate");
		o.style.filter="blendTrans(duration=30)";
		o.style.filter="blendTrans(duration=crossFadeDuration)";
		o.filters.blendTrans.Apply();
		o.src = preLoad[j].src;
		o.filters.blendTrans.Play();
	} else {
		var o=document.getElementById("rotate");
		o.src = preLoad[j].src;
	}
	j++;
	if (j>(p-1)) j=0;
	t=setTimeout('runSlideShow()', slideShowSpeed);
}

