// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.
// SlideShow with [Captions and] Cross-Fade
// via http://www.sitescripts.com/JavaScript/Image_Display/page2ta.html
// Shows images. Works in Browsers: NS4-7,IE4-7,FF>1.5, Opera8
// We need a generic picture to start with for users who do not have JS enabled.
// Fade effect only in IE; degrades gracefully in other browsers.
// Code for captions removed and resized for our purposes, Alistair Warwick 18/11/05

// Set the slideshow speed (in milliseconds) normally = 8000
var SlideShowSpeed = 6000;

// Set the duration of crossfade (in seconds) normally = 4
var CrossFadeDuration = 4;

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.
Picture[1]  = 'assets/cyclic/Pocklington320x227.jpg'; // Pocklington young people's course 2008
Picture[2]  = 'assets/cyclic/Organist320x227.jpg'; // PLG playing Sarum College organ
Picture[3]  = 'assets/cyclic/Liverpool320x227.jpg'; // Celebration Day Liverpool 2008
Picture[4]  = 'assets/cyclic/Sals_SB320x227.jpg'; // Salisbury singing break 2008
Picture[5]  = 'assets/cyclic/Thokosa320x227.jpg'; // South Africa 2007
//Picture[1]  = 'assets/cyclic/MYCatDunblane320x227.jpg'; // MYC at Dunblane Cathedral http://theartofmusic.co.uk/5130
//Picture[2]  = 'assets/cyclic/walking.jpg'; // three girl choristers striding along
//Picture[3]  = 'assets/cyclic/SCS_Southwark2_320x227rgb.jpg'; //SCS at Southwark
//Picture[4]  = 'assets/cyclic/childrensChoirNativity065.jpg'; // children's nativity directed by Leah Perona-Wright
//Picture[5]  = 'assets/cyclic/geoff_light_320x227.jpg'; // Geoff Weaver
// Picture[2]  = 'assets/cyclic/80mosaic13medium.jpg'; // text of 80th anniversary celebrations
// Picture[5]  = 'assets/cyclic/singing.jpg'; rather orangey picture of young people singing
// Picture[4]  = 'assets/cyclic/clevelandlodge320x227_65_2.jpg';
// Picture[4]  = 'assets/cyclic/laughing_320x227_80.jpg';
// Picture[n]  = 'assets/cyclic/choir2_320x227.jpg;' view from behind of singers at York ISSC Celebration 2005
// Picture[nn] = '

// =====================================
// Do not edit anything below this line!
// I did, to remove code for captions (AW 18/11/05)
// And I did, to add Opera 8 Support (dansoper 28/04/06)
// =====================================

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.images.PictureBox.filters){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();
}
if (document.getElementById) document.getElementById("PictureBox").src =
preLoad[jss].src;
else document.images.PictureBox.src = preLoad[jss].src;
if (document.images.PictureBox.filters)
document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
// JavaScript Document
