<!--
doclay = (document.layers)? true : false
docall = (document.all)? true : false
docget = (document.getElementById)? true : false

thisImg = 0
imgCt = 2 - 1
baseCt = 0

//add captions, put initial caption in div at bottom of this page

imageLocation = new Array()
imageLocation[0] = "img/eyebrows1-after.jpg"
imageLocation[1] = "img/eyebrows1-before.jpg"

function layerWrite(id,nestref,text) {

image = imageLocation[thisImg]

if (thisImg > imgCt) {

thisImg = 0

}

if (thisImg < baseCt) {

thisImg = 2 - 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=0 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]
	}

}

//-->
