// JavaScript Document

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


Picture[1] = '/images/slideshow/2011_treeplant1.jpg';
Picture[2] = '/images/slideshow/2011_treeplant2.jpg';
Picture[3] = '/images/slideshow/2011_treeplant3.jpg';
Picture[4] = '/images/slideshow/2011_treeplant4.jpg';
Picture[5] = '/images/slideshow/2010_roadcleanup1.jpg';
Picture[6] = '/images/slideshow/2010_roadcleanup2.jpg';
Picture[7] = '/images/slideshow/2010_roadcleanup3.jpg';
Picture[8] = '/images/slideshow/2010_roadcleanup4.jpg';
Picture[9] = '/images/slideshow/2010_roadcleanup5.jpg';
Picture[10] = '/images/slideshow/2010_roadcleanup6.jpg';
Picture[11] = '/images/slideshow/May9-troutstocking1.jpg';

Caption[1]  = "<b>Pilkington Concession 7/8 Bridge Tree Plant May 2011</b>";
Caption[2]  = "<b>Pilkington Concession 7/8 Bridge Tree Plant May 2011</b>";
Caption[3]  = "<b>Pilkington Concession 7/8 Bridge Tree Plant May 2011</b>";
Caption[4]  = "<b>Pilkington Concession 7/8 Bridge Tree Plant May 2011</b>";
Caption[5]  = "<b>Road Cleanup 2010</b>";
Caption[6]  = "<b>Road Cleanup 2010</b>";
Caption[7]  = "<b>Road Cleanup 2010</b>";
Caption[8]  = "<b>Road Cleanup 2010</b>";
Caption[9]  = "<b>Road Cleanup 2010</b>";
Caption[10]  = "<b>Road Cleanup 2010</b>";
Caption[11]  = "<b>Trout Stocking 2007</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);
}

