
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 4;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'banner/Home.JPG'
Pic[1] = 'banner/Bedrooms.JPG'
Pic[2] = 'banner/Site.JPG'
Pic[3] = 'banner/SleepingBeauty.JPG'
Pic[4] = 'banner/Food.JPG'
Pic[5] = 'banner/Lawn.JPG'
Pic[6] = 'banner/Nature.JPG'
Pic[7] = 'banner/Field.JPG'
Pic[8] = 'banner/Home.JPG'
Pic[9] = 'banner/Bedrooms.JPG'

// do not edit anything below this line
var tSlideTimer;
var iCheck = 0;
var pLength = Pic.length;
var preLoad = new Array();

for (iIndex = 0; iIndex < pLength; iIndex++) 
{
    preLoad[iIndex] = new Image();
    preLoad[iIndex].src = Pic[iIndex];
}

function fnRunSlideShow()
{
    if (document.all) 
    {
        document.images.SlideShow.style.filter="blendTrans(duration=4)";
        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
        document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[iCheck].src;
    if (document.all) 
    {
        document.images.SlideShow.filters.blendTrans.Play();
    }
    iCheck = iCheck + 1;
    if (iCheck > (pLength - 1))
    {
        iCheck = 0;
    }
    tSlideTimer = setTimeout('fnRunSlideShow()', slideShowSpeed);
}
