﻿// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 4;
// Specify the image files


var j = 0;
var t;

function runSlideShow(imageID) {
if (document.all) {
document.getElementById(imageID).style.filter="blendTrans(duration=2)";
document.getElementById(imageID).style.filter="blendTrans(duration=crossFadeDuration)";
    try
    {
        document.getElementById(imageID).filters.blendTrans.Apply();
    }
    catch(err){}
}
document.getElementById(imageID).src = preLoad[j].src;
if (document.all) {
    try
    {
        document.getElementById(imageID).filters.blendTrans.Play();
    }
    catch(err){}
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow(\''+imageID+'\')', slideShowSpeed);
}
//  End -->