{assign_variable:gallery_name="hpgallery"}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>{exp:gallery:entries gallery="{gallery_name}" limit="1" log_views="off"}{title}{/exp:gallery:entries}</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=gallery/gallery_css}' /> 
<style type='text/css' media='screen'>@import "{stylesheet=gallery/gallery_css}";</style>
</head>

<body>


{exp:gallery:entries gallery="{gallery_name}"}

<table class="tableBorder" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr>
<td class='imageBG'>

<img src="{medium_url}"  class="border" width="{medium_width}" height="{medium_height}" border="0" title="{title}" />

<div class="title">
{title}
</div>

{if allow_comments}
<div class="commentlink">
<a href="{id_path=gallery/comments}">{if total_comments == 0}No comments have been submitted yet{/if}{if total_comments == 1}1 person has commented{/if}{if total_comments   > 1}{total_comments} people have commented{/if}</a>
</div>
{/if}

<div class="stats">
This image has been viewed {views} {if views == 1}time{/if}{if views != 1}times{/if}
</div>

</td>
</tr>
</table>

{/exp:gallery:entries}


<div class="windowclose"><a href="#" onclick="window.close();">Close Window</a></div>

</body>
</html>
