// (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]  = "The clearest of gurgling rivers and freshest of air can be                 found at Llanystumdwy, birth place of Lloyd George and one of many wonderful locations for woodland and riverside walks, where wildlife is at itsŐ purest.";

Caption[2]  = "Two unique narrow guage railway lines steam out of Porthmadog with the Ffestiniog railway lacing itsŐ way over a spectacular estuary, under the canopies of ancient woodlands and 700ft above sea level, up into the mountains of Blanau Ffestiniog, passing lakes, waterfalls and streams on the way.";

Caption[3]  = "Viewed from the ragged towers of Criccieth Castle above, the Blue Flag beaches below are a sandy oasis for wildlife and seaside pursuits. From the shore, the castle is a reminder of a vanished age of trouble and strife, now stunningly serene and enticing exploration.";

Caption[4]  = "The Italianate village Portmeirion is on a rugged clifftop overlooking Cardigan Bay. With subtropical woodlands and miles of sandy beaches, this colourful and ornate village is a unique architectural work of art.";

Caption[5]  = "A beautifully preserved World Heritage Site castle and award winning beaches, make Harlech a perfect destination for lovers of history, landscape and seaside pursuits.";

Caption[6]  = "A crescent of seaside cottages hugs the cosy harbour of Borth Y Gest where small boats anchor and walks along the coastal path provide breathtaking views across the estuary and out to sea. Tiny rugged coves and sparkling rock pools invite exploration here.";

Caption[7]  = "Ancient oakwoods, rivers and waterfalls, heather moorlands and majestic mountains, Snowdon peaks at 1085metres, but can be enjoyed at many levels, by walkers, climbers and passengers on the Snowdonia Mountain Railway.";

Caption[8]  = "The Llyn Peninsula; the promise of a magical and memorable holiday.";

// =====================================
// 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);
}