/* This is the included javascript for doing catwalk reports.
It's very simple, but can work for both captioned and counted images.
*/
function displayPic(ind) {
document.display.src=imglist[ind];
if (captions.length > 0) {
	document.getElementById('pictitle').firstChild.nodeValue=captions[ind];
}
else {
	document.getElementById('pictitle').firstChild.nodeValue=(ind+1)+" of "+ln;
}
count=ind;
}

function nextPic() {
if (count < (ln -1)) {
count ++
} else {
count=0}
displayPic(count);
}

function prevPic() {
if (count > 0)  {
count --;
} else {
count=(ln-1)
}
displayPic(count);

}

