
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 4;

var newwindow = 0 //open links in new window? 1=yes, 0=no

var Picture = new Array();
var Caption = new Array(); 
var Links = new Array();

Picture[1]  = 'images/bestof2000.jpg';
Picture[2]  = 'images/bestof2001.jpg';
Picture[3]  = 'images/bestof2002.jpg';
Picture[4]  = 'images/bestof2003.jpg';
Picture[5]  = 'images/bestof2004.jpg';
Picture[6]  = 'images/bestof2004a.jpg';
Picture[7]  = 'images/bestof2005.jpg';
Picture[8]  = 'images/bestof2006.jpg';
Picture[9]  = 'images/bestof2006a.jpg';
Picture[10]  = 'images/bestof2007.jpg';

Caption[1]  = "The Best of 2000/2001";
Caption[2]  = "The Best of 2001/2002";
Caption[3]  = "The Best of 2002/2003";
Caption[4]  = "The Best of 2003/2004";
Caption[5]  = "The Best of 2004/2005";
Caption[6]  = "The Best of 2004/2005";
Caption[7]  = "The Best of 2005/2006";
Caption[8]  = "The Best of 2006/2007";
Caption[9]  = "The Best of 2006/2007";
Caption[10]  = "The Best of 2007/2008";

Links[1]  = "thebestof.htm";
Links[2]  = "thebestof.htm";
Links[3]  = "thebestof.htm";
Links[4]  = "thebestof.htm";
Links[5]  = "thebestof.htm";
Links[6]  = "thebestof.htm";
Links[7]  = "thebestof.htm";
Links[8]  = "thebestof.htm";
Links[9]  = "thebestof.htm";
Links[10]  = "thebestof.htm";

var tss;
var iss;
var lss;
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;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
lss = jss;
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

function gotoshow(){
if (newwindow)
window.open(Links[lss])
else
window.location=Links[lss]
}


