<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<ja:include page="<%= new File(skinDirectory, "scripts/infoPropsFolder.inc").getAbsolutePath() %>">scripts/infoPropsFolder.inc NOT INCLUDED</ja:include><ja:include page="<%= new File(skinDirectory, "scripts/infoPropsImage.inc").getAbsolutePath() %>">scripts/infoPropsImage.inc NOT INCLUDED</ja:include><%
    File root = (File)album.get("root");  
    if (root == null) {    
        root = outputDirectory;    
        album.put("root", root);  
    }  
    File resDir = new File(root, "res");
%><HTML>
<HEAD>
<TITLE><%=title%> (<%=label%>)</TITLE>
<META NAME="generator" CONTENT="jAlbum">
<ja:if test="<%= (comments!=void  && comments!="")  %>"><META NAME="description" CONTENT="<%=comments%>"></ja:if><ja:else><META NAME="description" CONTENT="<%=description%>"></ja:else>
<ja:if test="<%= (keywords!=void  && keywords!="")  %>"><META NAME="keywords"    CONTENT="<%=gKeywords+", "+keywords%>"></ja:if><ja:else><META NAME="keywords"    CONTENT="<%=gKeywords%>"></ja:else>
<ja:if test="<%= (copyright!=void && copyright!="") %>"><META NAME="copyright"   CONTENT="<%=copyright%>"></ja:if>
<LINK HREF="$stylePath" rel=stylesheet>
<SCRIPT LANGUAGE="javascript">
    showing = false;

    function toggleInfo() {
            if (showing == false) {
                if (document.all || document.getElementById) document.getElementById('imageinfo').style.visibility="visible";   // IE & Gecko
                else document.layers['imageinfo'].visibility="show"; // Netscape 4
                showing = true;
            }
            else {
                if (document.all || document.getElementById) document.getElementById('imageinfo').style.visibility="hidden";    // IE & Gecko
                else document.layers['imageinfo'].visibility="hide";    // Netscape 4
                showing = false;
        }
    }
</SCRIPT>
</HEAD>
<BODY ID="slide">
<ja:include page="header.inc" />
<TABLE WIDTH="100%">
<TR CLASS="head">
<td><strong>
<!-- Multilevel index links for slide pages -->
<%
  void writePath(File dir, String prefix) {
    boolean topLevel = fileVariables.get(dir) == null;
    if (!topLevel)
      writePath(dir.getParentFile(), prefix + "../");
    if (!topLevel) out.print(" | ");
    if (prefix.length() > 0)
      out.print("<a href=\"../" + prefix + engine.getIndexPageName()
       + engine.getPageExtension() + "\">");
    else out.print("<a href=\"../" + indexPage + "\">");
    out.print((topLevel ? album.get("rootName") : dir.getName()) + "</a>");
  }
  if (album.get("rootName") == null) album.put("rootName", title);
  writePath(imageDirectory, "");
%>
 |
<ja:if exists=originalPath>
    <A HREF="$originalPath"><%=label%></A>
</ja:if>
<ja:else>
    <%=label%>
</ja:else>
</strong></td>
<TD CLASS="number" colspan="2" align="right">$imageNum/$totalImages</TD>
</tr><tr>
<ja:include page="<%= new File(skinDirectory, "scripts/slideNav.inc").getAbsolutePath() %>">scripts/slideNav.inc NOT INCLUDED</ja:include>
</TR>
</TABLE>

<DIV class=image>
<TABLE width=0 align=center border=0>
  <TBODY>
  <TR>
    <TD colSpan=2>
    <!-- Image, maybe with link to original -->
    <ja:if exists=originalPath>
        <A HREF="$originalPath">
            <IMG SRC="$imagePath" WIDTH="$imageWidth" HEIGHT="$imageHeight" BORDER=0 ALT="Original image">
        </A>
    </ja:if>
    <ja:else>
        <IMG SRC="$imagePath" WIDTH="$imageWidth" HEIGHT="$imageHeight">
    </ja:else>
    </TD></TR>
  <TR>
    <TD vAlign=top align=left><SPAN class=date><ja:if exists="originalDate">$originalDate</ja:if><ja:else>$fileDate</ja:else></SPAN> </TD>
    <TD align=right><SPAN class=artist></SPAN></TD></TR>
</TBODY></TABLE></DIV><!-- END image table -->

<CENTER>
<table>
<tr>
    <td colspan="2"><H3 class=title><%=label%></H3></td>
</tr>
<tr>
    <td width="50%" valign="top">
    <!-- Always display comment below image (if exists) -->
    <ja:if exists="comment">
        <DIV CLASS="name"><%=comment%></DIV>
    </ja:if><ja:else>
        <!-- Try to extract the comment from a file carrying the same base name as this image -->
        <DIV CLASS="name">
            <ja:include page="<%= new File(imageDirectory, label+".txt") %>" />
        </DIV>
    </ja:else>
    </td>
    <td width="50%" valign="top">
    <ja:if exists="flash">
        <A HREF="javascript:toggleInfo()"><IMG SRC="$resPath/camera.gif" ALT="Fotographic information" BORDER=0></A>
        <BR>
        <DIV class=small ID="imageinfo" STYLE="visibility:hidden;">
        <TABLE>
            <TR><TD>File size</TD><TD>$fileSize</TD></TR>
            <TR><TD>Original date</TD><TD>$originalDate</TD></TR>
            <TR><TD>Resolution</TD><TD>$resolution</TD></TR>
            <TR><TD>Flash</TD><TD>$flash</TD></TR>
            <TR><TD>Focal length</TD><TD>$focalLength</TD></TR>
            <TR><TD>Exposure time</TD><TD>$exposureTime</TD></TR>
            <TR><TD>Aperture</TD><TD>$aperture</TD></TR>
            <TR><TD>Focus Distance</TD><TD>$focusDistance</TD></TR>
            <TR><TD>Metering Mode</TD><TD>$meteringMode</TD></TR>
            <TR><TD>Camera make</TD><TD>$cameraMake</TD></TR>
            <TR><TD>Camera model</TD><TD>$cameraModel</TD></TR>
            <TR><TD>Sensor type</TD><TD>$sensorType</TD></TR>
        </TABLE></DIV>
        </TD>
    </ja:if>
    </td>
</tr>
</table>
</TR>
</TABLE>
</CENTER>
<table width="100%">
<tr>
<ja:include page="<%= new File(skinDirectory, "scripts/slideNav.inc").getAbsolutePath() %>">scripts/slideNav.inc NOT INCLUDED</ja:include>
</tr>
</table>
    <A HREF="$generatorUrl" TARGET="_blank"><SMALL>$generator</SMALL></A>
</BODY>
</HTML>
