<!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 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<ja:if exists="aaa">Den finns</ja:if>
<table align="center" background="$resPath/blue-brain-dark.gif" cellpadding="0" cellspacing="0" border="0" width="80%" height="40">
	<tr background="$resPath/blue-brain-dark.gif">
		<td nowrap valign="bottom" width="33%"><img src="$resPath/corner-w-ll.gif" width="20" height="20"></td>
		<td align="center" nowrap width="33%">
			<h1>$title</h1>
		</td>
		<td nowrap valign="bottom" width="33%" align="right"><img src="$resPath/corner-w-lr.gif"></td>
	</tr>
</table>
<!-- Iterate through images and produce an index table -->
<table align="center" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td align="left" nowrap>&nbsp;</td>
		<td align="center" nowrap>
			<!-- Link to parent index, if any -->
			<ja:if exists="parentIndexPage"> <a href="$parentIndexPage"><img src="$resPath/up.gif" border=0 alt="Up one level" align="absmiddle"></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 align="absmiddle"></a>
			</ja:if> <ja:else> <img src="$resPath/previous_disabled.gif" alt="At first page" align="absmiddle">
			</ja:else>
			<!-- Next button -->
			<ja:if exists="totalIndexes"><b>$indexNum</b> of $totalIndexes</ja:if><ja:if exists="nextIndexPage"> <a href="$nextIndexPage"><img src="$resPath/next.gif" alt="Next page" border=0 align="absmiddle"></a>
			</ja:if><ja:else> <img src="$resPath/next_disabled.gif" alt="At last page" align="absmiddle">
			</ja:else></ja:if>
		</td>
	</tr>
</table>

<table border="0" align="center" cellspacing="0" cellpadding="4">
	<ja:rowiterator>
	<tr>
		<ja:coliterator>
		<td valign="top" class="bordertopright">

			<ja:if exists="fileSize">
				<table border="0" cellspacing="2" cellpadding="1" align="left" width="250">
					<tr class="rowFirst">
						<td nowrap valign="top">Picture</td>
						<td nowrap valign="top"><b>$label</b></td>
					</tr>
					<tr class="rowSecond">
						<td nowrap valign="top">Width x Height</td>
						<td nowrap valign="top"><ja:if exists=originalPath>
							<a href="$originalPath" target="_blank" title="To download the picture. Right click and choose &quot;Save Target As...&quot;">$originalWidth x $originalHeight <img src="$resPath/download.gif" border="0"></a> </ja:if>
						</td>
					</tr>
					<tr class="rowFirst">
						<td nowrap valign="top">Size @ 300dpi</td>
						<td nowrap valign="top"><%=(int)(originalWidth/11.8);%>mm x <%=(int)(originalHeight/11.8);%>mm
						<br>
							<%=(float)((int)(originalWidth/3))/100;%>&quot; x <%=(float)((int)(originalHeight/3))/100;%>&quot;
						<!--( Formateringstest:
						<%=
						import java.text.*;
						NumberFormat fmt = NumberFormat.getInstance();
						fmt.format(originalWidth/11.8);
						%>
						)-->
						</td>
					</tr>
					<tr class="rowSecond">
						<td nowrap valign="top">File size</td>
						<td nowrap valign="top"><%=(float)((int)(fileSize/10000))/100;%>Mbytes</td>
					</tr>
					<tr class="rowFirst">
						<td nowrap valign="top">Format</td>
						<td nowrap valign="top"><ja:if exists=formatName>$formatName</ja:if><!--<ja:if exists=compressionLevel> ($compressionLevel)</ja:if>--></td>
					</tr>
					<tr class="rowSecond">
						<td nowrap valign="top">Date</td>
						<td nowrap valign="top">$fileDate<!--<ja:if exists=originalDate> ($originalDate)</ja:if>--></td>
					</tr>
					<tr class="rowFirst">
						<td nowrap valign="top">
						<%
							File textFile = new File(imageDirectory, label+".txt");
							if (textFile.exists())
							out.println("File comment:");
						%>

						</td>
						<td>
						<%
							//out.println(files[0].getParent() + "\\" + label + ".txt");
							//out.println(imageDirectory + "\\" + label + ".txt");
							File textFile = new File(imageDirectory, label+".txt");
							if (textFile.exists())
							out.println(se.datadosen.util.IO.readTextFile(textFile));
						%>

						<!--<ja:if exists=comment>$comment</ja:if>-->
						</td>
					</tr>
				</table>
				<a href="$closeupPath">
					<ja:if exists="iconPath">
					<!-- No frames around icons like folders and movie files -->
						<img src="$iconPath" width="$thumbWidth" height="$thumbHeight" border=0>
						<br>
					<!--<small>$label</small>-->
					</ja:if>
					<ja:else>
						<img class="image" src="$thumbPath" width="$thumbWidth" height="$thumbHeight" border=0 title="Click for preview picture of &quot;$label ($imageWidth x $imageHeight)&quot;"><br>
						<!--<small>$label</small>-->
					</ja:else>
					</a>
			</ja:if>
			<ja:else>
			<table border="0" cellspacing="2" cellpadding="1" align="center" width="250" height="120">
				<tr><td align="center" valign="middle" width="$maxThumbWidth">
				<a href="$closeupPath"><img src="$iconPath" width="$thumbWidth" height="$thumbHeight" border=0>
				<br>$label</a>
				</td></tr>
			</table>
			</ja:else>
		</td>
		</ja:coliterator>
	</tr>
	</ja:rowiterator>
</table>
<table align="center" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td align="left" nowrap>&nbsp;</td>
		<td align="center" nowrap>
			<!-- Link to parent index, if any -->
			<ja:if exists="parentIndexPage"> <a href="$parentIndexPage"><img src="$resPath/up.gif" border=0 alt="Up one level" align="absmiddle"></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 align="absmiddle"></a>
			</ja:if> <ja:else> <img src="$resPath/previous_disabled.gif" alt="At first page" align="absmiddle">
			</ja:else>
			<!-- Next button -->
			<ja:if exists="totalIndexes"><b>$indexNum</b> of $totalIndexes</ja:if><ja:if exists="nextIndexPage"> <a href="$nextIndexPage"><img src="$resPath/next.gif" alt="Next page" border=0 align="absmiddle"></a>
			</ja:if><ja:else> <img src="$resPath/next_disabled.gif" alt="At last page" align="absmiddle">
			</ja:else></ja:if>
		</td>
	</tr>
</table>
<br>
<div class="generator">
	<p>
	<a href="$generatorUrl" target="_blank">$generator</a>
	</p>
</div>
</body>
</html>
