{if !$bUseLightbox} {img max_width="600" src="`$sActualImage`" alt="" src_def="design/pic/noimage_120.jpg"} {else} {if $iWidth > 500 || $iHeight > 500} {img rel="lytebox" onclick="startLytebox('mainimage');" max_width="600" src="`$sActualImage`" src_def="design/pic/noimage_120.jpg" alt="" id="mainimage"} {else} {img max_width="600" src="`$sActualImage`" src_def="design/pic/noimage_120.jpg" alt=""} {/if} {/if}

{if isStaff()}
[ {language text='delete'} ] {if $aItem.feature == 1}[ {language text="unmake_featured"} ]{else}[ {language text="make_featured_763"} ]{/if}
{/if} {$aItem.text|process_code}


{if $iPrevId}<< {language text="prev_pic"} | {/if} {language text="main_gallery"} {if $iNextId}| {language text="next_pic"} >>{/if}


{bookmarks}
{Comments::AddForm type='gallery' alert_id=$aItem.user_id}
{Comments::List type='gallery' totalCount=$aItem.comment}