// (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 = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 4;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

Picture[1]  = 'bvfc.jpg';
Picture[2]  = 'cfc.jpg';
Picture[3]  = 'eafd.jpg';
Picture[4]  = 'ftvfc.jpg';
Picture[5]  = 'northampton.jpg';
Picture[6]  = 'ptfc.jpg';
Picture[7]  = 'ryan.jpg';
Picture[8]  = 'swfc.jpg';
Picture[9]  = 'lansford.jpg';
Picture[10]  = 'dfc.jpg';
Picture[11]  = 'klecknersville.jpg';
Picture[12]  = 'whitehall.jpg';

Caption[1]  = "Bowmanstown<br>Volunteer Fire Co";
Caption[2]  = "Citizens Fire Co #1<br>Weatherly";
Caption[3]  = "East Allen Township<br>Fire Department";
Caption[4]  = "Franklin Township Volunteer<br>Fire Co #1, Lehighton";
Caption[5]  = "Northampton<br>Fire Department";
Caption[6]  = "Polk Township Fire Co<br>Kresgeville";
Caption[7]  = "Ryan Township Fire & Rescue<br>Barnesville";
Caption[8]  = "South Ward Fire Co<br>Tamaqua";
Caption[9]  = "American Fire Co #1<br>Lansford";
Caption[10]  = "Diligence Fire Co<br>Summit Hill";
Caption[11]  = "Klecknersville Rangers<br>Volunteer Fire Co. #1";
Caption[12]  = "Whitehall Township<br>Fire Department";
// =====================================
// 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);
}