﻿// slideshow script


// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'images/ss_images/index/ss1.jpg'; alt="Peterhead Scottish Week";
Picture[2]  = 'images/ss_images/index/ss1a.jpg'; alt="Peterhead Scottish Week";
Picture[3]  = 'images/ss_images/index/ss2.jpg'; alt="Peterhead Scottish Week";
Picture[4]  = 'images/ss_images/index/ss2a.jpg'; alt="Peterhead Scottish Week";
Picture[5]  = 'images/ss_images/index/ss3.jpg'; alt="Peterhead Scottish Week";
Picture[6]  = 'images/ss_images/index/ss3a.jpg'; alt="Peterhead Scottish Week";
Picture[7]  = 'images/ss_images/index/ss4.jpg'; alt="Peterhead Scottish Week";
Picture[8]  = 'images/ss_images/index/ss4a.jpg'; alt="Peterhead Scottish Week";
Picture[9]  = 'images/ss_images/index/ss5.jpg'; alt="Peterhead Scottish Week";
Picture[10]  = 'images/ss_images/index/ss5a.jpg'; alt="Peterhead Scottish Week";
Picture[11]  = 'images/ss_images/index/ss6.jpg'; alt="Peterhead Scottish Week";
Picture[12]  = 'images/ss_images/index/ss6a.jpg'; alt="Peterhead Scottish Week";
Picture[13]  = 'images/ss_images/index/ss7.jpg'; alt="Peterhead Scottish Week";
Picture[14]  = 'images/ss_images/index/ss7a.jpg'; alt="Peterhead Scottish Week";
Picture[15]  = 'images/ss_images/index/ss8.jpg'; alt="Peterhead Scottish Week";
Picture[16]  = 'images/ss_images/index/ss8a.jpg'; alt="Peterhead Scottish Week";
Picture[17]  = 'images/ss_images/index/ss9.jpg'; alt="Peterhead Scottish Week";
Picture[18]  = 'images/ss_images/index/ss10.jpg'; alt="Peterhead Scottish Week";

// =====================================
// Do not edit anything below this line!
// =====================================

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=4)";
document.images.picturebox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.picturebox.filters.blendTrans.Apply();}
document.images.picturebox.src = preLoad[jss].src;

if (document.all) document.images.picturebox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

