<!--		
		// ****************************************** //
		// Gallery                                    //
		// ****************************************** //
		
		
		var galleryImgName = '';
		var arrowImgPath = '../images/arrow-hist-';
		var arrowImgType = '.gif';
		// other variables are set within the head of each gallery series page
		
		function gallery(action,goBackwardButton,goForwardButton) {					
			if (document.images) {	
			// If the back arrow is clicked and the image isn't the first in the series
				if ((action == 'back') && (imgNum != 1)) {
					imgNum = imgNum - 1;
					galleryImgName = series + imgNum + fileType;
					// Change the arrow image depending upon where you are in the gallery
					if (imgNum == 1) {
						document.images['back'].src = arrowImgPath + 'back-off' + arrowImgType;
					} 					
					if (imgNum == count - 1) {
						document.images['forward'].src = arrowImgPath + 'forward' + arrowImgType;
					}
			// else if the forward arrow is clicked and the image isn't the last in the series
				} else if ((action == 'forward') && (imgNum < count)) {
					imgNum = imgNum + 1;
					galleryImgName = series + imgNum + fileType;
					// Preload the next image in the gallery
					imgPreload = new Image();
					imgPreload.src = series + (imgNum + 1) + fileType;
					// Change the arrow image depending upon where you are in the gallery
					if (imgNum == count) {
						document.images['forward'].src = arrowImgPath + 'forward-off' + arrowImgType;
					} 					
					if (imgNum != 1) {
						document.images['back'].src = arrowImgPath + 'back' + arrowImgType;
					}
			// else do nothing
				} else {
					return false;
				}
		    document.images['img_series'].src = galleryImgPath + galleryImgName;
			}
		}
		
//-->
