// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 10000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 4;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

//Define the pictures
Picture[1]  = 'images/imagerotator/1.jpg';
Picture[2]  = 'images/imagerotator/2.jpg';
Picture[3]  = 'images/imagerotator/3.jpg';
Picture[4]  = 'images/imagerotator/4.jpg';
Picture[5]  = 'images/imagerotator/5.jpg';

//Captions to go with the pictures
Caption[0] = 'We can supply video screens for your event or party.';
Caption[1] = 'We have several disco packages to suit any venue or budget.';
Caption[2] = 'Bookmeadisco.com Have Public Liability Insurance, as required by many venues';
Caption[3] = 'Bookmeadisco.com`s equipment is regularly PAT tested for electrical safety';
Caption[4] = 'We have a massive library of music, from classic hits to the current Top 40';
Caption[5] = 'Ask about the karaoke option for your party';
Caption[6] = 'All of our customers receive a written contract to confirm their booking';
Caption[7] = 'We specialise in weddings, and other prestige events.';
Caption[8] = 'We pride ourselves on 100% customer satisfaction.';
Caption[9] = 'Visit our website regularly for our latest news.';
Caption[10] = 'You can use our online booking form to place an enquiry.';
Caption[11] = 'Our DJs have many years of experience, in a wide variety of venues';
Caption[12] = 'We have appeared at many venues, large and small, in MK, Herts, Beds and Bucks'

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
var randomnumber=Math.floor(Math.random()*13);
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= '<div class=clsStoryHeading>' + Caption[randomnumber] + '</div>';
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
