// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

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

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

var Picture = new Array(); // don't change this
var Caption = 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/interest/01.gif';
Picture[2]  = '../images/interest/02.gif';
Picture[3]  = '../images/interest/03.gif';
Picture[4]  = '../images/interest/04.gif';
Picture[5]  = '../images/interest/05.gif';
Picture[6]  = '../images/interest/06.gif';
Picture[7]  = '../images/interest/07.gif';
Picture[8]  = '../images/interest/08.gif'; 

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "Whitby's bustling harbour and town evoke tales of Captain Cook, fishermen and smugglers of old; a rich convergence of history, culture and landscape where the moors meet the sea.";

Caption[2]  = "Cottages cling like bird's nests to a cliff face in Staithes, its' cobbled streets as packed and jumbled as the boat jammed harbour. This gem of a village is also a geologist's dream.";

Caption[3]  = "The secret, cobbled streets of Robin Hoods Bay tumble precariously towards the bay, once privy to many a smuggler's yield. Now fishermen, families and fossil hunters reap rewards in the breathtakingly beautiful village, replenished at the cosy cafes and snug pubs awaiting their return.";

Caption[4]  = "The shadow of Whitby's Abbey withholds the dark secrets of Bram Stoker's Dracula. Nearby, the beautifully historic St Mary's Church grants those who climb the 199 ancient steps which lead to it from the town, a wonderful view of Whitby and the harbour; a sight inspiring many artists.";

Caption[5]  = "Peace, tranquillity and beauty can be found on the heather clad North Yorkshire Moors National Park, with its' hidden waterfalls, ancient forests and rolling dales. For those on cycle, foot or horseback there are infinite hidden treasures which can be enjoyed off the beaten track.";

Caption[6]  = "Brightly painted cottages cling to the foot of the salt washed cliffs, in the picture postcard seaside village of Runswick, with its' wide sandy bay, lifeboat station and huge rolling waves.";

Caption[7]  = "Explore rock pools teeming with sea life in Sandsend, a picturesque village set against a backdrop of cliffs with meandering streams leading to a long sandy Blue Flag beach.";

Caption[8]  = "Hills of purple, fields of green, a nostalgic ride on a North Yorkshire Moors train takes passengers to the forests of Levisham, the village of Goathland made famous on 'Heartbeat', and a bygone era of steam, in the 1950's junction of Grosmont.";

// =====================================
// 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=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();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
