<!--
doclay = (document.layers)? true : false
docall = (document.all)? true : false
docget = (document.getElementById)? true : false

thisImg = 0
imgCt = 4 - 1
baseCt = 0

//add captions, put initial caption in div at bottom of this page

imageLocation = new Array()
imageLocation[0] = "img/photos/scroll_photo1.jpg"
imageLocation[1] = "img/photos/scroll_photo2.jpg"
imageLocation[2] = "img/photos/scroll_photo3.jpg"
imageLocation[3] = "img/photos/scroll_photo4.jpg"

function layerWrite(id,nestref,text) {

image = imageLocation[thisImg]

if (thisImg > imgCt) {

thisImg = 0

}

if (thisImg < baseCt) {

thisImg = 4 - 1
}


currentImg = thisImg + 1

total = imgCt + 1

	if (docget) {
		document.getElementById("tallyspace").innerHTML = currentImg + " of " + total;
		document.slider.src = imageLocation[thisImg]
	} else if (doclay) {

		document.layers["tallyspace"].document.open()
		document.layers["tallyspace"].document.write('<table border=1 cellpadding=0 cellspacing=0 width=200><tr><td>')
		document.layers["tallyspace"].document.write('<span class=ltgrey>')
		document.layers["tallyspace"].document.write(currentImg + " of " + total)
		document.layers["tallyspace"].document.write('<\/span>')
		document.layers["tallyspace"].document.write('<\/td><\/tr><\/table>')
		document.layers["tallyspace"].document.close()
		document.slider.src = imageLocation[thisImg]
	} else if (docall) {
		document.all.tallyspace.innerHTML = currentImg + " of " + total
		document.slider.src = imageLocation[thisImg]
	}

}

//-->
