// JavaScript Document



// (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 = 5000;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'assets/buildingprocess/setup1.jpg';
Picture[2]  = 'assets/buildingprocess/setup2.jpg';
Picture[3]  = 'assets/buildingprocess/setup3.jpg';
Picture[4]  = 'assets/buildingprocess/setup4.jpg';
Picture[5]  = 'assets/buildingprocess/setup5.jpg';
Picture[6]  = 'assets/buildingprocess/setup6.jpg';
Picture[7]  = 'assets/buildingprocess/setup7.jpg';
Picture[8]  = 'assets/buildingprocess/setup8.jpg';

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!
//Caption[1]  = "This is the first caption.";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var inc=18;

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

function runSlideShow(){
document.images.PictureBox.src = preLoad[jss].src;
//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.getElementById) document.getElementById("IMGNumberBox").innerHTML= "( "+jss+" of 8)";

jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

function next() {
clearTimeout(tss);
runSlideShow();
}
function previous() {
clearTimeout(tss);
if (jss>2)
	jss = jss - 2;
else if (jss==1)
		jss=pss-1;
	 else
		jss = 1;
runSlideShow();
}
function pause() {
clearTimeout(tss);
}