// JavaScript Document

var ShowSpeed = 3000;
var FadeDuration = 4;
var Picture = new Array();
var Caption = new Array();


Picture[1] = '/images/slideshow/swan_creek_tree_plant_2008_2_young_men.gif';
Picture[2] = '/images/slideshow/swan_creek_tree_plant_2008_2_young_women.gif';
Picture[3] = '/images/slideshow/swan_creek_tree_plant_2008_3_people.gif';
Picture[4] = '/images/slideshow/swan_creek_tree_plant_2008_creek.gif';
Picture[5] = '/images/slideshow/swan_creek_tree_plant_2008_three_people.gif';
Picture[6] = '/images/slideshow/swan_creek_tree_plant_2008_truck.gif';
Picture[7] = '/images/slideshow/May9-troutstocking1.jpg';
Picture[8] = '/images/slideshow/May9-troutstocking2.jpg';
Picture[9] = '/images/slideshow/May9-troutstocking3.jpg';
Picture[10] = '/images/slideshow/300pxIMGP0394-cropped.jpg';
Picture[11] = '/images/slideshow/apr2007-roadside-cleanup.jpg';


Caption[1]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[2]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[3]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[4]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[5]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[6]  = "<b>Swan Creek Tree Plant May 2008</b>";
Caption[7]  = "<b>Trout Stocking 2007</b>";
Caption[8]  = "<b>Trout Stocking 2007</b>";
Caption[9]  = "<b>Trout Stocking 2007</b>";
Caption[10]  = "<b>Clean Roads Courtesy of FOGR</b>";
Caption[11]  = "<b>Clean Roads Courtesy of FOGR</b>";



//main part

var show;
var image;
var time = 1;
var view = Picture.length-1;

var preLoad = new Array();
for (image = 1; image < view+1; image++){
preLoad[image] = new Image();
preLoad[image].src = Picture[image];}


function runShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=FadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[time].src;

if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[time];

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
time = time + 1;
if (time > (view)) time=1;
show = setTimeout('runShow()', ShowSpeed);
}
