	// calculate total number of images in the viewer-slideshow.htm file and 
	// initialize each element in the gallery forms with image ordinal, so the image
	// number displayed is correct

for ( galleryIndex=0 ; galleryIndex < document.forms.length-1 ; galleryIndex++) {
	for (imageIndex=0 ; imageIndex < document.forms[galleryIndex].length ; imageIndex++ ) {
		document.forms[galleryIndex].slide[imageIndex].dataFld = ++numImgs ;
	}
}

// display total number of images after the "OF"
	
document.write( numImgs );

