// 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] = 'images/slideshow01/double_garage.jpg' 
Pic1[1] = 'images/slideshow01/am_barn_garaport.jpg' 
Pic1[2] = 'images/slideshow01/cp_carport.jpg' 
Pic1[3] = 'images/slideshow01/industry.jpg' 
Pic1[4] = 'images/slideshow01/multiple_garage.jpg' 
Pic1[5] = 'images/slideshow01/out_back.jpg' 

var Caption1 = new Array() 
Caption1[0] = "Double"; 
Caption1[1] = "Barn with"; 
Caption1[2] = "Dutch Gable"; 
Caption1[3] = "Industrial"; 
Caption1[4] = "Multiple"; 
Caption1[5] = "Out Back"; 

var Caption2 = new Array() 
Caption2[0] = "Garages"; 
Caption2[1] = "Garaport"; 
Caption2[2] = "Carports"; 
Caption2[3] = "Sheds"; 
Caption2[4] = "Garages"; 
Caption2[5] = "Sheds"; 

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); 
} 
