// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 5;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...

Picture[1]  = 'comfortable-bed.jpg';
Picture[2]  = 'two-comfortable-beds.jpg';
Picture[3]  = 'x-lhi-entrance.jpg';
Picture[4]  = 'x-lhi-hall.jpg';
Picture[5]  = 'moose-guest.jpg';
Picture[6]  = 'x-plane-white.jpg';
Picture[7]  = 'moose-bear.jpg';
Picture[8]  = 'x-yellow-plane.jpg';
Picture[9]  = 'x-lhi-water1.jpg';
Picture[10]  = 'x-sky1.jpg';
Picture[11]  = 'x-sky2.jpg';
Picture[12]  = 'x-sky3.jpg';
Picture[13] = 'x-sunset1.jpg';

// Specify the Captions...

Caption[1]  = "One very cozy bed";
Caption[2]  = "Two very cozy beds";
Caption[3]  = "Come on in";
Caption[4]  = "Clean and bright";
Caption[5]  = "Guests visit from all over";
Caption[6]  = "Planes take off...";
Caption[7]  = "I'm watching you, buddy!";
Caption[8]  = "...and planes land";
Caption[9]  = "Lake Hood Inn";
Caption[10]  = "Lake Hood and the Chugach Mountains";
Caption[11]  = "Who needs a car?";
Caption[12]  = "Lake Hood";
Caption[13] = "Lake Hood sunset";

// =====================================
// 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);
}