
//
// The following should casue a bunch of images to be preloaded.
// Fully paths are specified to keep it independent of the slideshow
// in case other images need to be preloaded.
//

extraImages=new Array()
extraImages[0] = "images/slidesprar/shw01.jpg"
extraImages[1] = "images/slidesprar/shw02.jpg"
extraImages[2] = "images/slidesprar/shw03.jpg"
extraImages[3] = "images/slidesprar/shw04.jpg"


//
// These are the variables needed for the slideshow
//

ImgId="slideprar"
ImgPath = "images/slidesprar"
ImgSuffix = "jpg"
FilePrefix = "shw0"
var NumImg = 4

//
// This function automatically runs a slide show through once pausing for 2 seconds.
//
// For other slide shows, just change the above parameters. Not the functions or information below.
//


// Set the slideshow speed (in milliseconds)

var delay = 2000
var tmr
var curimg = 1
 
function runSlideShow(){
	if (curimg > (NumImg)) {
		curimg = 1
	}	
	else {
		tmr = setTimeout('runSlideShow()', delay)
	}
	document.getElementById(ImgId).src = ImgPath+"/"+FilePrefix+curimg.toString()+"."+ImgSuffix
	curimg = curimg + 1
}
 
function extraInit () {
	runSlideShow();
}