
	appname = navigator.appName;
	appversion = navigator.appVersion;
	majorver = appversion.substring(0,1);
	
	//var imageDir = "images/2000/"		// reset this if necessary

	//var imgArray = new Array(
	//	new Array("alexis2000.jpg", "Emergency Cap'n - Brian Camarote"),
	//	new Array("carrieStatz.jpg", "Carrie Statz")
	//	)
	
	var photoIndex = 0
	var args = location.href.split("?")
	if (args.length > 1) {		// A SPECIFIC IMAGE WAS REQUESTED
		photoIndex = args[1]
//		document.forms[0].imgMenu.selectedIndex = photoIndex
	}
	
	function firstPhoto() {
		photoIndex = 0
		showPhoto()
	}
	
	function nextPhoto() {
		if (++photoIndex >= imgArray.length) photoIndex = 0
		showPhoto()
	}
	
	function prevPhoto() {
		if (--photoIndex < 0) photoIndex = imgArray.length - 1
		showPhoto()
	}
	
	function showPhoto() {
		document.forms[0].imgMenu.selectedIndex = photoIndex
		if (appname == "Netscape") {
			<!--- parent.photoFrame.document.photoImg.src = imgArray[photoIndex][0] --->
			parent.photoFrame.location.replace("photoBody.html?p=" + imageDir + imgArray[photoIndex][0] + 
											"&c=" + escape(imgArray[photoIndex][1]))
		}
		else {
			parent.photoFrame.location.replace("photoBody.html?p=" + imageDir + imgArray[photoIndex][0] + 
											"&c=" + escape(imgArray[photoIndex][1]))
			//document.photo.src = imgArray[photoIndex][0]
			//document.forms[0].caption.value = "photo " + photoIndex + ": " + imgArray[photoIndex][1]
			//document.forms[0].caption.size = document.forms[0].caption.value.length
		}
	}

	function selectImage() {
		// alert(document.forms[0].imgMenu.options[document.forms[0].imgMenu.selectedIndex].value)
		photoIndex = document.forms[0].imgMenu.selectedIndex
		showPhoto()
	}
	
	function buildImageMenu() {
		var index
		document.writeln('<select name="imgMenu" size="1" onchange="selectImage()">')
		for (index=0; index<imgArray.length; index++) {
		   if (photoIndex - index == 0)
				document.writeln('<option value=' + index + ' selected>' + imgArray[index][1])
		   else
				document.writeln('<option value=' + index + '>' + imgArray[index][1])
		}
		document.writeln('</select>')
	}

