// (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 =4000;

// 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/slideshow/firstpagelogo.jpg';
Picture[2]  = 'images/slideshow/harper1.jpg';
Picture[3]  = 'images/slideshow/leantoshelter1.jpg';
Picture[4]  = 'images/slideshow/mapping1.jpg';
Picture[5]  = 'images/slideshow/geocache_1.jpg';
Picture[6]  = 'images/slideshow/helitrain_1.jpg';
Picture[7]  = 'images/slideshow/helihoverexit.jpg';
Picture[8]  = 'images/slideshow/bleakerlake1.jpg';
Picture[9]  = 'images/slideshow/shuttlepatient1.jpg';
Picture[10]  = 'images/slideshow/heligroup04.jpg';
Picture[11]  = 'images/slideshow/ropetrain_1.jpg';
Picture[12]  = 'images/slideshow/rope_cheryl.jpg';
Picture[13]  = 'images/slideshow/bridgepainting.jpg';
Picture[14]  = 'images/slideshow/charitychallenge06.jpg';
Picture[15]  = 'images/slideshow/hugatree.jpg';
Picture[16]  = 'images/slideshow/04santa1.jpg';
Picture[17]  = 'images/slideshow/04santa2.jpg';
Picture[18]  = 'images/slideshow/wildfires03_1.jpg';
Picture[19]  = 'images/slideshow/wildfires03_2.jpg';
Picture[20]  = 'images/slideshow/05santa1.jpg';
Picture[21]  = 'images/slideshow/05santa2.jpg';
Picture[22]  = 'images/slideshow/06oct_cave4.jpg';
Picture[23]  = 'images/slideshow/06oct_cave3.jpg';
Picture[24]  = 'images/slideshow/06oct_cave1.jpg';
Picture[25]  = 'images/slideshow/06oct_cave2.jpg';
Picture[26]  = 'images/slideshow/06santa1.jpg';
Picture[27]  = 'images/slideshow/06santa2.jpg';
Picture[28]  = 'images/slideshow/juno_working.jpg';
Picture[29]  = 'images/slideshow/lastpage.jpg';

// 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]  = "Kamloops Search and Rescue Slideshow";
Caption[2]  = "Wilderness Training";
Caption[3]  = "Survival Skills";
Caption[4]  = "Navigation - Mapping ";
Caption[5]  = "Geo-cacheing ";
Caption[6]  = "Helicopter Training";
Caption[7]  = "Hover Exits";
Caption[8]  = "Patient Access";
Caption[9]  = "Patient Packaging";
Caption[10]  = "Teamwork!";
Caption[11]  = "Rope Rescue Training ";
Caption[12]  = " ";
Caption[13]  = "Community Involvement - Bridge Painting";
Caption[14]  = "Community Awareness - Charity Challenge";
Caption[15]  =  "Adventure Smart School Program";
Caption[16]  = "Santa Parade 2004";
Caption[17]  = " ";
Caption[18]  = "Community Support - Wildfires 2003 ";
Caption[19]  = "";
Caption[20]  = "Santa Parade 2005";
Caption[21]  = "";
Caption[22]  = "Cave Rescue Training Oct 2006";
Caption[23]  = "Monty Lake area";
Caption[24]  = "Joint Training venture with Regional SARs";
Caption[25]  = "";
Caption[26]  = "Santa Parade 2006";
Caption[27]  = "";
Caption[28]  = "Juno - Hover Exit Training";
Caption[29]  = "That others may live";
// =====================================
// 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();
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
