// Specify the image files
var Pic = new Array();
var Lin = new Array();
// to add more images, just continue
// the pattern, adding to the array below
properties = 'yell sapp.jpg,#|';

Ref = properties.split("|");



Lin[0] = '#'
Lin[1] = '#'
Lin[2] = '#'
Lin[3] = '#'

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Whether images are shown randomly (otherwise sequential)
var randomDisplay = false;

// do not edit anything below this line
var z;
var t;
var c;
var j = 0;
var p = Ref.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
isplit=Ref[i].split(",");
Pic[i]=isplit[0];
Lin[i]=isplit[1];
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

function runSlideShow(l) {

if (document.all) {
document.images.main.style.filter="blendTrans(duration=2)";
document.images.main.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.main.filters.blendTrans.Apply();
}

if (randomDisplay == true) {
	c = Math.floor(Math.random()*p);
	if (z = c) {
		c = Math.floor(Math.random()*p);
	}
	document.images.main.src = preLoad[c].src;
	mainlink.href = Lin[c];
	z = c;
} else {
//  alert(preLoad[l].src+'         '+preLoad[l].src.indexOf('.jpg'));
         if (preLoad[l].src.indexOf('.jpg')>1) {
	document.images.main.src = preLoad[l].src;
	mainlink.href = Lin[l];
         }
}
if (document.all) {
document.images.main.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow(' + j + ')', slideShowSpeed);
}


