<!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>
<%
  import se.datadosen.util.*;

  // Find Stylesheet name base

     base = "$style" ;
     int lastDot = base.lastIndexOf('.');
     if (lastDot != -1) base = base.substring(0,lastDot);

  // Set Root for earlier jAlbum versions

    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%></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="<%= (gKeywords!=void && gKeywords!="") %>"><META NAME="keywords"    CONTENT="<%=gKeywords%>"></ja:if>
<ja:if test="<%= (copyright!=void && copyright!="") %>"><META NAME="copyright"   CONTENT="<%=copyright%>"></ja:if>
<!-- <LINK HREF="styles/default.css" rel=stylesheet> -->
<LINK HREF="$stylePath" rel=stylesheet>
</HEAD>
<body ID="index">
<ja:include page="header.inc" />
<table width="100%">
<TBODY><tr>
    <td align="left"><strong>
    <!-- Multilevel index links for index page -->
    <%
      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, "");
    %>
    </strong></td>
    <td align="right">
    <ja:if exists="totalIndexes"><strong>$indexNum/$totalIndexes</strong></ja:if>
    <ja:else><strong>1/1</strong></ja:else>
    </td>
</tr>
</TBODY></table>
<div class=galleryheader>
<!-- BEGIN user desc -->
<h2><%=title%></h2>
<!-- END user desc -->
</div>
<table width="100%">
<tr>
    <td colspan="3"><%=description%></td>
</tr><tr>
<ja:include page="<%= new File(skinDirectory, "scripts/indexNav.inc").getAbsolutePath() %>">scripts/indexNav.inc NOT INCLUDED</ja:include>
</tr></table>
<!-- Include header.inc from image directory if present -->

<!-- Iterate through images and produce an index table -->
<CENTER><TABLE cellpadding=20 width="60%" cellspacing=20 vAlign=center>
<TBODY>
<ja:rowiterator>
    <TR>
    <ja:coliterator>
    <ja:if test="<%= (style.equals("webdev.css")) %>">
        <TD class=thumbnail WIDTH="$maxThumbWidth" align=center valign="middle" height="280" width="180" >
    </ja:if>
    <ja:else>
        <TD class=thumbnail WIDTH="$maxThumbWidth" align=center valign="middle">
    </ja:else>
            <A HREF="$closeupPath" class="thumbnail">
                <ja:if exists="iconPath">
                    <ja:include page="<%= new File(skinDirectory, "scripts/infoPropsSubFolder.inc").getAbsolutePath() %>">scripts/infoPropsSubFolder.inc NOT INCLUDED</ja:include>
                    <IMG src="<%=iconPath%>" width="$maxThumbWidth" height="$maxThumbHeight" border="0">
                </ja:if>
                <ja:else>
                    <ja:include page="<%= new File(skinDirectory, "scripts/infoPropsImage.inc").getAbsolutePath() %>">scripts/infoPropsImage.inc NOT INCLUDED</ja:include>
                    <IMG class=thumbnail SRC="$thumbPath" WIDTH="$thumbWidth" HEIGHT="$thumbHeight" BORDER=0>
                </ja:else>
                <br>
                <%=label%>
            </A>
        </TD>
    </ja:coliterator>
    </TR>
</ja:rowiterator>
</TBODY>
</TABLE></CENTER>

<table width="100%">
<TR>
<ja:include page="<%= new File(skinDirectory, "scripts/indexNav.inc").getAbsolutePath() %>">scripts/indexNav.inc NOT INCLUDED</ja:include>
</TR>
</table>


<ja:include page="footer.inc" />
<P>
    <A HREF="$generatorUrl" TARGET="_blank"><SMALL>jAlbum</SMALL></A>
</P>
</BODY>
</HTML>
