{!# special head_content - this defines styles used for the close box
    as well as the JavaScript necessary to maintain the cookie which
    indicates whether the imageinfo box is hidden or displayed
#!}
{!set head_content '
<style type="text/css">
.xbutton {
float:right;
height:13px;
width:12px;
font-family:arial,helvetica,sans-serif;
font-size:12px;
font-weight:bold;
text-align:center;
border-top:1px silver solid;
border-left:1px silver solid;
border-right:1px black solid;
border-bottom:1px black solid;
background:gray;
color:silver;
}
.xbutton a,.xbutton a:visited {
color:silver;
text-decoration:none;
}
.xbutton a:hover {
text-decoration:none;
color:white;
}
.xbutton a:active {
color:black;
}
</style>
<script language="JavaScript">
function setCookie(name,value)
{
  var nextyear = new Date();
  nextyear.setFullYear(nextyear.getFullYear()+1);
  document.cookie = escape(name)+"="+escape(value)+";path={site_path}/;expires="+nextyear.toGMTString();
}
</script>' 1!}


<div class="backnext">
<table>
<tr><td width="50%" align="right">
{!if defined(prev_id)
    '<b><a href="{site_path}/document.php?id={prev_id}">&larr;<span>Back</span></a></b>&nbsp;'
    '&nbsp;'
!}
</td><td>
{!if defined(next_id)
  '&nbsp;<b><a href="{site_path}/document.php?id={next_id}"><span>Next</span>&rarr;</a></b>'
  '&nbsp;'
!}
</td></tr></table>
</div>
<div class="image">
    <p class="imageframe">
    {!if defined(image_full_size)
        '<img src="{doc_file}" border="0" alt="{doc_title}" title="{doc_title}"/>'
        '<a href="{site_path}/document.php?id={doc_id}&full=1"><img {doc_image_default} border="0"
            alt="{doc_title}" title="{doc_title}"/></a>'
    !}
    <br/>
    Copyright &copy;{!date 'Y' '{doc_created}'!}, {!if defined(image_copyright) '{image_copyright}' '{doc_user_name}'!}
    </p>
    <div class="description">
    {doc_body}
    </div>
</div>

<div class="infotablewrapper">
<table class="infotable" {!if '{_COOKIE_hideinfo}+0' 'style="display:none;"'!}>
    <tr><th>Photographer: </th>
        <td>
        {!if '{_COOKIE_hideinfo}+0'
        ''
        '<div class="xbutton"><a href="{site_path}/document.php?id={doc_id}"
            title="Click to hide image information box"
            onClick="setCookie(&#34;hideinfo&#34;,1);">X</a></div>'
        !}
        <a href="{site_path}/user.php?id={doc_user_id}">{doc_user_name}</a>
        {!user_indicators doc!}
        </td>
        </tr>
    <tr><th>Folder: </th>
        <td>{!if '{doc_folder_id}'
        '<a href="{site_path}/folder.php?id={doc_folder_id}">{doc_folder_name}</a>'
        !} </td>
        </tr>
    <tr><th>Uploaded: </th>
        <td>{!date '{site_date_format} {site_time_format}' '{doc_created}'!} </td>
        </tr>
{!if '({allow_ratings}+0)&&(iseditor({doc_user_id})||{doc_rating_count}>4)'
    '<tr><th>Current Rating: </th>
     <td>{doc_rating:%.2f}/{doc_rating_count:%d}<br/>
     <a href="{site_path}/ratings.php?id={doc_id}">View all ratings</a><br/>
     <a href="{site_path}/deleterating.php?id={doc_id}">Delete my rating</a>
     </td></tr>'
!}
{!if defined(doc_share_count)
    '<tr><th>Sharing: </th>
     <td>{doc_share_count:%d} time(s).
     </td></tr>'
!}
    <tr><th>Copying allowed: </th>
        <td>{!if '{copying_allowed}+0' 'Yes' 'No'!}
            {!if '{copying_allowed}+0'
                '<a href="#" onClick="document.sflyc4p.submit();return false;">
                    Print this photo on Shutterfly</a>'
            !}
        </td>
        </tr>
    <tr><th>Model release available: </th>
        <td>{!if '{image_model_release}+0' 'Yes' 'No'!}</td>
        </tr>
    <tr><th>Camera: </th>
        <td>{image_camera}</td>
        </tr>
    <tr><th>Lens: </th>
        <td>{image_lens}</td>
        </tr>
    <tr><th>Film: </th>
        <td>{image_film}</td>
        </tr>
    <tr><th>Exposure: </th>
        <td>{image_exposure}</td>
        </tr>
    <tr><th>Flash: </th>
        <td>{!if '{image_flash}+0' 'Yes' 'No'!}</td>
        </tr>
    <tr><th>Support: </th>
        <td>{image_support}</td>
        </tr>
    <tr><th>Filtration: </th>
        <td>{image_filter}</td>
        </tr>
    <tr><th>Adjustments (digital/darkroom): </th>
        <td>{image_adjustment}</td>
        </tr>
    <tr><th>Scan resolution: </th>
        <td>{image_height}x{image_width}</td>
        </tr>
</table>
</div>

{template:comment}

{!if '{copying_allowed}+0'
    '<form id="shutterfly" 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="C4P">
      <input type="hidden" name="psid" value="AFFL">
      <input type="hidden" name="referid" value="a2iXxMnVb">
      <input type="hidden" name="offerid" value="34049">
      <input type="hidden" name="returl" value="{site_url}/document.php?id={doc_id}">
      <input type="hidden" name="imraw-1" value="{site_url}/{doc_file}">
      <input type="hidden" name="imrawheight-1" value="{image_height}">
      <input type="hidden" name="imrawwidth-1" value="{image_width}">
      <input type="hidden" name="imthumb-1" value="{site_url}/{doc_file_150}">
      <input type="hidden" name="imbkprntb-1" value="Hi">
    </form>'
!}