/*
To add an award, upload the image to the images directory,
then continue the pattern below, adding a new line for each image.
*/
var Pic = new Array();
Pic[0] = 'images/link/3.gif';
Pic[1] = 'images/link/2.jpg';
Pic[2] = 'images/link/2.jpg';
Pic[3] = 'images/link/3.gif';
Pic[4] = 'images/link/4.jpg';
Pic[5] = 'images/link/5.jpg';
Pic[6] = 'images/link/6.gif';

// How long will each award display (in milliseconds)?
var displayTime = 2000;

// Duration of crossfade (in seconds)?
var crossFadeDuration = 3;

// do not edit anything below this line
var t;
var p = Pic.length;
var j = Math.round(Math.random() * p);
var preLoad = new Array();
preLoad[j] = new Image();
preLoad[j].src = Pic[j];

function runSlideShow() {
	if (document.all) {
		document.images.awardImages.style.filter="blendTrans(duration=2)";
		document.images.awardImages.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.awardImages.filters.blendTrans.Apply();
	}
	document.images.awardImages.src = preLoad[j].src;
	if (document.all) {
		document.images.awardImages.filters.blendTrans.Play();
	}
	oldj = j;
	j = Math.floor(Math.random() * p);
	if (oldj == j) {
		j = Math.floor(Math.random() * p);
	}
	preLoad[j] = new Image();
	preLoad[j].src = Pic[j];
	t = setTimeout('runSlideShow()', displayTime);
}
