<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//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">
<table>
<tr>
	<td class="nav">

		<div align="left">
			<ja:if exists="parentIndexPage">
				<a target="_top" href="$parentIndexPage"><img class="image" width="47" src="$resPath/up.gif" title="Up" align="absmiddle"></a>
			</ja:if>
			<ja:else>
				<img class="image" src="$resPath/smallalbum.gif" title="" align="absmiddle">
			</ja:else>

		</div>
	</td>
	<td class="nav">$title</td>
</tr>
<tr>
	<td colspan="2">
		<!-- Create Google-like navigation links if more than one index page -->

		<ja:if exists="totalIndexes">
		<div class="googleindex">Index page:
			<%
			  for (i=1; i<=totalIndexes; i++) {
				if (i == indexNum) {
				  out.print("&nbsp;");
				  out.print("<font color=\"yellow\">" + i + "</font>");  // Emphasize current index page
				}
				else {
				  out.print("&nbsp;");
				  out.print("<a href=\"" + engine.getIndexPageName() + (i==1?"":i)
				   + engine.getPageExtension() + "\">" + i + "</a>");
				}
			  }
			%>
		</div>
		</ja:if>
	</td>

</tr>
<tr>
<td colspan="2">

<!-- Iterate through images and produce an index table -->

<table border="0" width="<%= cols*(maxThumbWidth)+16 %>" cellspacing="0" cellpadding="0">
<ja:rowiterator>
	<tr>
	<ja:coliterator>

		<ja:if exists="iconPath">
		<td valign="top">
		</ja:if>
		<ja:else>
		<td valign="bottom">
		</ja:else>

				<a title="$label" target="<%= files[imageNum-1].isDirectory()?"_top":"slide" %>" href="$closeupPath">
				<ja:if exists="iconPath">
					<!-- No frames around icons like folders and movie files -->
					<img src="$iconPath" border="0"><br><small>$label</small>
				</ja:if>
				<ja:else>
					<img class="image" src="$thumbPath" width="$thumbWidth" height="$thumbHeight" border=0><br><small>$label</small>
				</ja:else>
			</a>
		</td>
	</ja:coliterator>
	</tr>
</ja:rowiterator>

</table>
</td>
</tr>
</table>
<a href="$generatorUrl" target="_blank"><small>$generator</small></a>
</body>
</html>
