// The Swindon Loyal Image Slide Show

//set image paths
src = ["images/image1a.jpg", "images/image2a.jpg", "images/image3a.jpg", "images/image4a.jpg", "images/image5a.jpg"]


//set corresponding urls
url = ["#", "#", "#", "#", "#"]

//set duration for each image
duration = 5;

//load images and duration time between switch
pic=[]; ct=0;
function changePic() {
var n=(ct+1)%src.length;
if (pic[n] && (pic[n].complete || pic[n].complete==null)) {
document["imageChange"].src = pic[ct=n].src;
}
pic[n=(ct+1)%src.length] = new Image;
pic[n].src = src[n];
setTimeout("changePic()",duration*1000);
}
function linkTo(){
location.href = url[ct];
} onload = function(){
if (document.images)
changePic();
}

