<%
	out.print(constants.DOCTYPE);
	chameleon.updateVars();
	chameleon.initSlide();
%>
<HTML>
<HEAD>
${markOfTheWebStr}
<meta http-equiv="Content-Type" content="text/html;charset=$textEncoding">
<meta name="Keywords" content="photo,album,gallery,$title,$label<ja:if exists="comment">,<%=chameleon.stripHTML(comment)%></ja:if><ja:if exists="keywords">,$keywords</ja:if><ja:if exists="author">,$author</ja:if>">
<ja:if test=${usePageTransition}><meta http-equiv="Page-Enter" content="blendTrans(Duration=${pageTransitionDelay})">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=${pageTransitionDelay})"></ja:if>
<TITLE>${simplePath}/$label</TITLE>
<ja:include page="includes/slidescripts.inc" />
<link href="$stylePath" rel="stylesheet">
<ja:if test=${subStyleDefined}><link href="$resPath/substyle.css" rel="stylesheet"></ja:if>
<style type="text/css">
body { background-image: url($resPath/bg.gif); background-repeat: repeat-x; }
</style>
</HEAD>

<BODY ID="body" onload="<ja:if test=${doSlideShow}>show_timer(); show_out();</ja:if> keypresslistener();">
<CENTER>
<TABLE style="height:54px;" cellspacing="0" cellpadding="0" border="0">
<TR><TD valign="middle">
<!-- Header of slide pages -->
<TABLE style="width:${tableWidth}px;" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD style="width:31px;"><a href="../$indexPage" onmouseover="document.idx.src=idx1.src" onmouseout="document.idx.src=idx0.src"><img src="$resPath/idx.gif" width="31" height="31" border="0" title="$text.indexPage" name="idx" alt=""></a></TD>
<TD style="width:20px;"><IMG SRC="$resPath/hdr_left.gif" width="20" height="31" border="0" alt=""></TD>
<TD align="left" valign="middle" style="background:url($resPath/hdr_mid.gif);" class="title" nowrap="nowrap">${slidePath}</TD>
<TD style="width:20px;"><IMG SRC="$resPath/hdr_right.gif" width="20" height="31" border="0" alt=""></TD>
<TD style="width:31px;">
<ja:if exists="previousPage"><a href="$previousPage" onmouseover="document.prev.src=prev1.src" onmouseout="document.prev.src=prev0.src"><img src="$resPath/prev.gif" width="31" height="31" border="0" title="$text.previousImage" name="prev" alt=""></a></TD></ja:if>
<ja:else><IMG SRC="$resPath/prev_disabled.gif" width="31" height="31" title="$text.atFirstPage" border="0" alt=""></TD></ja:else>
<TD style="width:31px;">
<ja:if exists="nextPage"><a href="$nextPage" onmouseover="document.next.src=next1.src" onmouseout="document.next.src=next0.src"><img src="$resPath/next.gif" width="31" height="31" border="0" title="$text.nextImage" name="next" alt=""></a></TD></ja:if>
<ja:else><IMG SRC="$resPath/next_disabled.gif" width="31" height="31" title="$text.atLastPage" border="0" alt=""></TD></ja:else>
<ja:if test=${doSlideShow}><TD style="width:31px;"><a href="javascript:void(0)" onmouseover="show_over();" onmouseout="show_out();" onmousedown="show_down();" ondblclick="change_delay();"><img src="$resPath/show.gif" width="31" height="31" border="0" title="$text.startStopSlideShow - $text.changeSpeed" name="show" alt=""></a></TD></ja:if>
</TR></TABLE>
</TD></TR></TABLE><BR>
<ja:include page="header.inc" />
<ja:if test=${printOrderOn}><TABLE style="height:14px;" cellspacing="0" cellpadding="0" border="0"><TR><TD><ja:if test=${printOrderOn}><ja:include page="printing.inc" /></ja:if><ja:else>&nbsp;</ja:else></TD></TR></TABLE></ja:if>
<ja:if test=${tableAtTop}><TABLE style="width:${tableWidth}px;" class="infotable" cellspacing="0" cellpadding="2">
<ja:if test=${firstRowAtTop}><TR><TD ${tsCellWidthStr}align="center" valign="middle" class="smalltxt">${slideText}</TD>
<ja:if test=${printOrderOn}><TD <ja:if test=<%=chameleon.tColSpanStr.length() > 0%>>style="width:120px" </ja:if>align="center" valign="middle" class="smalltxt"><a href="javascript:submitOrderForm()" title="$text.ui.t_printService">$text.order</a><ja:if test=<%=((originalPath == void) && ((imageWidth > imageHeight)? (imageWidth < 800):(imageHeight < 800)) || ((originalWidth > originalHeight)? (originalWidth < 800):(originalHeight < 800)))%>>&nbsp;<img src="$resPath/danger.gif" alt="" width="13" height="13" border="0" align="middle" title="$text.resolutionWarning"></ja:if></TD> <!-- On-line image printing service --></ja:if>
<ja:if test=${downloadIconOn}><TD align="center" valign="middle"><ja:if exists="originalPath"><A href="$originalPath" target="_blank"><IMG src="$resPath/download.gif" title="$text.downloadImage - <%=fileSize/1024%>kB" width="17" height="17" border="0" alt=""></A></ja:if><ja:else><A href="$imagePath" target="_blank"><IMG src="$resPath/download.gif" title="$text.downloadImage" width="17" height="17" border="0" alt=""></A></ja:else></TD><!-- Download Image --></ja:if>
</TR></ja:if>
<ja:if test=<%=chameleon.slideLinksPositionTop && totalImages != void && totalImages > 1%>><TR><TD ${tColSpanStr}align="center" valign="middle" class="<ja:if test=<%=(imageNum>=100)%>>x</ja:if>smalltxt"><%=chameleon.slideLinkList()%></TD></TR></ja:if>
<ja:if test=<%=chameleon.thumbsPositionTop && (chameleon.slideThumbList.length() > 0)%>><TR><TD ${tColSpanStr}align="center" valign="middle" nowrap="nowrap">${slideThumbList}</TD></TR></ja:if>
<ja:if test=<%=chameleon.exifPositionTop && (chameleon.metadata.length() > 0)%>><TR><TD ${tColSpanStr}align="center" valign="middle" class="smalltxt">${metadata}</TD></TR></ja:if>
</TABLE><BR></ja:if>
${imagemapCode}
<TABLE border="0" cellspacing="0" cellpadding="0"><TR>
<ja:if test=${thumbsPositionBothSides}>${slideThumbListLeft}</ja:if>
<TD style="width:${tableWidth}px;" align="center" valign="middle">
<ja:if test=<%=iconPath != void && iconPath != null || chameleon.isMovie%>>
<ja:if test=${isMovie}><ja:if test=${embedMovies}><IFRAME src="../${originalPage}" width="${movieWidth}" height="<%=chameleon.movieHeight+64%>" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></IFRAME></TD> <!-- Embedded movie --></ja:if>
<ja:else><A href="javascript:void(0)"><IMG SRC="$thumbPath" border="0" title="$fileName - <%=chameleon.getSizeAsString(fileSize)%>" alt="" onClick="window.open('../<%=chameleon.convertApostrophe(chameleon.originalPage)%>','originalmovie','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,copyhistory=no,resizable=yes,width=<%=movieWidth+28%>,height=<%=movieHeight+92%>')" border="0" alt=""></A></TD><!-- Linked movie --></ja:else></ja:if>
<ja:else><A HREF="$closeupPath" target="_blank"><IMG SRC="$thumbPath" border="0" title="$fileName - <%=fileSize/1024%>kB" alt=""></A></TD><!-- Other file --></ja:else>
</ja:if><ja:else><ja:if exists="originalPath"><A href="javascript:void(0)"><IMG SRC="$imagePath" class="slideImage" width="$imageWidth" height="$imageHeight" ${copyProtectStr}TITLE="$text.originalImage [$fileName - <%=fileSize/1024%>kB]"<ja:if test=<%=!chameleon.imageNavigationNone%>> usemap="#imagemap"</ja:if><ja:else> onClick="window.open('${originalPage}','originalslide','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes')"</ja:else> alt=""></A></TD>
</ja:if><ja:else><IMG SRC="$imagePath" class="slideImage" width="$imageWidth" height="$imageHeight" ${copyProtectStr}TITLE="$text.downsizedImage [$fileName - <%=fileSize/1024%>kB]"<ja:if test=<%=!chameleon.imageNavigationNone%>> usemap="#imagemap"</ja:if> alt=""></TD>
</ja:else></ja:else><ja:if test=${thumbsPositionBothSides}>${slideThumbListRight}</ja:if></TR></TABLE>
<ja:if test=${tableAtBottom}><BR><!-- Comment and image data at BOTTOM -->
<TABLE style="width:${tableWidth}px;" class="infotable" cellspacing="0" cellpadding="2">
<ja:if test=${firstRowAtBottom}><TR><TD ${tsCellWidthStr}align="center" valign="middle" class="smalltxt">${slideText}</TD>
<ja:if test=${printOrderOn}><TD <ja:if test=<%=chameleon.tColSpanStr.length() > 0%>>style="width:120px" </ja:if>align="center" valign="middle" class="smalltxt"><a href="javascript:submitOrderForm()" title="$text.ui.t_printService">$text.order</a><ja:if test=<%=((originalPath == void) && ((imageWidth > imageHeight)? (imageWidth < 800):(imageHeight < 800)) || ((originalWidth > originalHeight)? (originalWidth < 800):(originalHeight < 800)))%>>&nbsp;<img src="$resPath/danger.gif" alt="" width="13" height="13" border="0" align="middle" title="$text.resolutionWarning"></ja:if></TD> <!-- On-line image printing service --></ja:if>
<ja:if test=${downloadIconOn}><TD align="center" valign="middle"><ja:if exists="originalPath"><A href="$originalPath" target="_blank"><IMG src="$resPath/download.gif" title="$text.downloadImage - <%=fileSize/1024%>kB" width="17" height="17" border="0" alt=""></A></ja:if><ja:else><A href="$imagePath" target="_blank"><IMG src="$resPath/download.gif" title="$text.downloadImage" width="17" height="17" border="0" alt=""></A></ja:else></TD><!-- Download Image --></ja:if>
</TR></ja:if>
<ja:if test=<%=chameleon.slideLinksPositionBottom && totalImages != void && totalImages > 1%>><TR><TD ${tColSpanStr}align="center" valign="middle" class="<ja:if test=<%=(imageNum>=100)%>>x</ja:if>smalltxt"><%=chameleon.slideLinkList()%></TD></TR></ja:if>
<ja:if test=<%=chameleon.thumbsPositionBottom && (chameleon.slideThumbList.length() > 0)%>><TR><TD ${tColSpanStr}align="center" valign="middle" nowrap="nowrap">${slideThumbList}</TD></TR></ja:if>
<ja:if test=<%=chameleon.exifPositionBottom && (chameleon.metadata.length() > 0)%>><TR><TD ${tColSpanStr}align="center" valign="middle" class="smalltxt">${metadata}</TD></TR></ja:if>
<ja:if test=${includeGuestBook}><TR><TD ${tColSpanStr}align="center" valign="middle"><ja:include page="includes/guestbook.inc" /></TD></TR></ja:if>
<ja:if test=${includeNavHelpOnPage}><TR><TD ${tColSpanStr}align="center" valign="middle" class="xsmalltxt">${slideHelp}</TD></TR></ja:if>
<ja:if test=${albuminfoInTable}><TR><TD ${tColSpanStr}align="center" valign="middle" class="xsmalltxt">${slideInfo}</TD></TR></ja:if>
</TABLE></ja:if>
<ja:include page="footer.inc" />
<ja:if test=<%=!chameleon.albuminfoInTable%>><BR><SPAN class="xsmalltxt">${slideInfo}</SPAN></ja:if>
<BR>&nbsp;</CENTER>
${soundCode}
<ja:if exists="nextPage"><script language="javascript" type="text/javascript">
next_image=new Image(); next_image.src="<%=next.get("imagePath")%>";
</script></ja:if>
<ja:if exists="previousPage"><script language="javascript" type="text/javascript">
previous_image=new Image(); previous_image.src="<%=previous.get("imagePath")%>";
</script></ja:if>
</BODY>
</HTML>