// slideshow script
var slideShowSpeed1 = 7000; 
var crossFadeDuration1 = 3; 

var currIMG1 = 0; 
var currIMG2 = 0; 
var currIMG3 = 0; 
var currIMG4 = 0; 
var currIMG5 = 0; 
var currIMG6 = 0; 

var Pic1 = new Array() 
Pic1[0] = 'imgs/slideshow01/recovery11.gif' 
Pic1[1] = 'imgs/slideshow01/PBS_AmBarn.jpg' 
Pic1[2] = 'imgs/slideshow01/PBS_BoatYardBuilding.jpg' 
Pic1[3] = 'imgs/slideshow01/PBS_IndustriaWorkshop.jpg' 
Pic1[4] = 'imgs/slideshow01/PBS_outbuild2.jpg' 
Pic1[5] = 'imgs/slideshow01/PBS_garages.jpg' 

var Caption1 = new Array() 
Caption1[0] = "Large"; 
Caption1[1] = "American"; 
Caption1[2] = "Boat Yard"; 
Caption1[3] = "Industrial"; 
Caption1[4] = "Agricultural"; 
Caption1[5] = "Multiple"; 

var Caption2 = new Array() 
Caption2[0] = "Workshop"; 
Caption2[1] = "Barn"; 
Caption2[2] = "Building"; 
Caption2[3] = "Workshop"; 
Caption2[4] = "Buildings"; 
Caption2[5] = "Garages"; 

var nPix1 = Pic1.length-1; 
var preLoad1 = new Array() 
for (i=0; i<nPix1+1; i++) 
{ 
preLoad1[i] = new Image() 
preLoad1[i].src = Pic1[i] 
} 

function runSlideShow1(){ 
document.getElementById("Cap1").innerHTML = Caption1[currIMG1]; 
document.getElementById("Cap2").innerHTML = Caption2[currIMG1]; 
document.getElementById("SlideShow1").style.filter="blendTrans(duration=2)"; 
document.getElementById("SlideShow1").style.filter="blendTrans(duration=crossFadeDuration1)"; 
document.getElementById("SlideShow1").filters.blendTrans.Apply(); 
document.getElementById("SlideShow1").src = preLoad1[currIMG1].src; 
document.getElementById("SlideShow1").filters.blendTrans.Play(); 
currIMG1++ 
if (currIMG1 > (nPix1)){currIMG1=0} 
setTimeout('runSlideShow1()',slideShowSpeed1); 
} 
