var slideShowSpeed = 5000;

var crossFadeDuration = 15;

var Pic = new Array();

//if you want to add more images go ahead and add Pic[X] = 'path' (X is the next number in the sequence)
//you can take away images too, by deleting that line of code.
//the order in which the below are in is the order that the pictures will rotate.. make sure that the last
//image is the image that you start with on the page
Pic[0] = 'images/r1.jpg'
Pic[1] = 'images/r2.jpg'
Pic[2] = 'images/r3.jpg'

var t;
var j = 0;
var 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) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
