<h4><{$album_title}></h4>

<!-- Top Nav Bar -->
<table border=0 width="100%" class="outer" cellspacing="0">
  <tr>
    <td align="right" class="even"><{$breadcrumb}>&nbsp; &raquo; <b><{$photoCaption}></b></td>
  </tr>
  <tr>
  	<td><table width="100%" cellspacing="1" cellpadding="0"><tr>
  		<td nowrap class="odd">
		<{if $navLinks.numCurrent > 1}>
<a href="<{$navLinks.first}>" title="First"><img src="images/nav_first.gif" border="0" width="27" height="11" alt="First Photo"></a>
		<{/if}>
		</td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent > 1}>
  		<a href="<{$navLinks.prev}>" title="Previous"><img src="images/nav_prev.gif" border="0" width="72" height="11" alt="Previous Photo"></a>
  		<{/if}>
  		</td>
  		<td nowrap class="odd" style="width:100%; text-align: center; text-size: smaller;"><span class="nav"><{$navLinks.numCurrent}> (of <{$navLinks.numTotal}>)</span></td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent < $navLinks.numTotal}>
  		<a href="<{$navLinks.next}>" title="Next"><img src="images/nav_next.gif" border="0" width="72" height="11" alt="Next Photo"></a>
  		<{/if}>
  		</td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent < $navLinks.numTotal}>
  		<a href="<{$navLinks.last}>" title="Last"><img src="images/nav_last.gif" border="0" width="27" height="11" alt="Last Photo"></a>
  		<{/if}>
  		</td>
  	</tr></table></td>
  </tr>
</table>

<{if ($adminHasCommands) }>
<table border="0" width="100%">
  <tr>
    <td align="right"><{$adminbox}></td>
  </tr>
</table>
<{/if}>

<!-- image -->
<table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr>
    <td style="text-align: center; padding: 10px;">
      <{$photoImage}>
    </td>
  </tr>
</table>

<table border=0 width="100%" cellpadding=0 cellspacing=0>
  <tr>
    <td colspan=3 align=center><span class="caption"><{$editCaption}></span><br /><br /></td>
  </tr>
</table>

<table border="0" width="100%" class="outer" cellspacing="0">
  <tr>
  	<td><table width="100%" cellspacing="1" cellpadding="0"><tr>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent > 1}>
  		<a href="<{$navLinks.first}>" title="First"><img src="images/nav_first.gif" border="0" width="27" height="11" alt="First Photo"></a>
  		<{/if}>
  		</td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent > 1}>
  		<a href="<{$navLinks.prev}>" title="Previous"><img src="images/nav_prev.gif" border="0" width="72" height="11" alt="Previous Photo"></a>
  		<{/if}>
  		</td>
  		<td nowrap class="odd" style="width:100%; text-align: center; text-size: smaller;"><span class="nav"><{$navLinks.numCurrent}> (of <{$navLinks.numTotal}>)</span></td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent < $navLinks.numTotal}>
  		<a href="<{$navLinks.next}>" title="Next"><img src="images/nav_next.gif" border="0" width="72" height="11" alt="Next Photo"></a>
  		<{/if}>
  		</td>
  		<td nowrap class="odd">
  		<{if $navLinks.numCurrent < $navLinks.numTotal}>
  		<a href="<{$navLinks.last}>" title="Last"><img src="images/nav_last.gif" border="0" width="27" height="11" alt="Last Photo"></a>
  		<{/if}>
  		</td>
  	</tr></table></td>
  </tr>
</table>

<table border="0" width="100%">
  <tr>
    <td>
    <!-- The Gallery code version number, linked to the Gallery home page -->
    <span style="font-size: smaller;">
    Powered by <a href="http://gallery.sourceforge.net/" target="_blank">Gallery</a> v<{$gallery_version}> for XOOPS v2
    </span>
    </td>
    <td align="right"><{$adminbox}></td>
  </tr>
</table>

<div style="text-align: center; padding: 3px; margin:3px;">
  <{$commentsnav}>
  <{$lang_notice}>
</div>

<div style="margin:3px; padding: 3px;">
  <!-- start comments loop -->
  <{if $comment_mode == "flat"}>
    <{include file="db:system_comments_flat.html"}>
  <{elseif $comment_mode == "thread"}>
    <{include file="db:system_comments_thread.html"}>
  <{elseif $comment_mode == "nest"}>
    <{include file="db:system_comments_nest.html"}>
  <{/if}>
  <!-- end comments loop -->
</div>

<{if $shutterfly_form == "true"}>
	<form name="sflyc4p" action="http://www.shutterfly.com/c4p/UpdateCart.jsp" method="post">
	  <input type=hidden name=addim value="1">
	  <input type=hidden name=protocol value="SFP,100">
	  <input type=hidden name=pid value="<{$gallery_pid}>">
	  <input type=hidden name=psid value="<{$gallery_psid}>">
	  <input type=hidden name=referid value="gallery">
	  <input type=hidden name=returl value="this-gets-set-by-javascript-in-onClick">
	  <input type=hidden name=imraw-1 value="<{$rawImage}>">
	  <input type=hidden name=imrawheight-1 value="<{$imageHeight}>">
	  <input type=hidden name=imrawwidth-1 value="<{$imageWidth}>">
	  <input type=hidden name=imthumb-1 value="<{$thumbImage}>">
	  <input type=hidden name=imbkprnta-1 value="<{$imageCaption}>">
	</form>
<{/if}>