<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=$textEncoding">
<title>$title</title>
<link href="$stylePath" rel=stylesheet>
</head>

<body id="index">
<center>

<!-- Link to parent index, if any -->
<ja:if exists="parentIndexPage">
<a href="$parentIndexPage"><img src="$resPath/up.gif" border=0 alt="Up one level"></a>
</ja:if>

<!-- Create navigation buttons if more than one index page -->
<ja:if exists="totalIndexes">
	<!-- Previous button -->
	<ja:if exists="previousIndexPage">
		<a href="$previousIndexPage"><img src="$resPath/previous.gif" alt="Previous page" border=0></a>
	</ja:if>
	<ja:else>
		<img src="$resPath/previous_disabled.gif" alt="At first page">
	</ja:else>

	<!-- Next button -->
	<ja:if exists="nextIndexPage">
		<a href="$nextIndexPage"><img src="$resPath/next.gif" alt="Next page" border=0></a>
	</ja:if>
	<ja:else>
		<img src="$resPath/next_disabled.gif" alt="At last page">
	</ja:else>
</ja:if>

<h1>$title</h1>

<ja:include page="header.inc" />
<ja:if exists="description">$description</ja:if>

<!-- Iterate through images and produce an index table -->
<table CELLSPACING=0 CELLPADDING=10>
<ja:rowiterator>
	<tr>
	<ja:coliterator>
		<td  width="<%=1.5 * maxThumbWidth%>">
			<ja:if exists="iconPath">
				<!-- No frames around icons like folders and movie files -->
				<a href="$closeupPath">
				<img src="$iconPath" width="$thumbWidth" height="$thumbHeight" border=0 alt="$label"><br>
				<small>$label</small>
				</a>
			</ja:if>
			<ja:else>
				<span class="camera">
				<a href="$closeupPath" title="Click to see $fileName">
					<img class="image" src="$thumbPath" width="$thumbWidth" height="$thumbHeight" alt="$label">
					<br>
				</a>
				<%
					// Handle multiple choices in a simple way by using a HashMap
					Map map = new HashMap();
					map.put("Nothing", "");
					map.put("Number", "$imageNum");
					map.put("Label", label);
					map.put("File name", fileName);
					map.put("Comment", (comment != void) ? comment : "");
					map.put("Date", (originalDate != void) ? originalDate : fileDate);
					out.print(map.get(thumbnailText));
				%>
				</span>
			</ja:else>
		</td>
	</ja:coliterator>
	</tr>
</ja:rowiterator>
</table>

<p>
<ja:include page="footer.inc" />
</p>

</center>
<p><small>
 <a title="Album generated by $generator" href="$generatorUrl" target="_blank">$generator</a>
 <ja:if exists="copyright">Copyright: $copyright</ja:if>
</small></p>

</body>
</html>
