<script type="text/javascript">
<!--
var ipb_lang_tt_prompt = "{$this->ipsclass->lang['tt_prompt']}";
var ipb_lang_js_del_1  = "{$this->ipsclass->lang['js_del_1']}";
var ipb_lang_js_del_2  = "{$this->ipsclass->lang['js_del_2']}";
var addquotebutton     = "{$this->ipsclass->vars['img_url']}/p_mq_add.gif";
var removequotebutton  = "{$this->ipsclass->vars['img_url']}/p_mq_remove.gif";
var unselectedbutton = "{$this->ipsclass->vars['img_url']}/topic_unselected.gif";
var selectedbutton   = "{$this->ipsclass->vars['img_url']}/topic_selected.gif";
var lang_gobutton    = "{$this->ipsclass->lang['f_go']}";
var lang_suredelete  = "{$this->ipsclass->lang['del_confirm']}";
var lang_nodelete  = "{$this->ipsclass->lang['del_no_act']}";
var lang_clickme = "{$this->ipsclass->lang['click_to_enlarge']}";
var js_error_no_permission = "{$this->ipsclass->lang['gal_js_error_no_permission']}";
-->
</script>
	
<table class='ipbtable' cellspacing='0'>
	<tr>
  		<td width='70%' align='center' valign='top'>
  			{$info['image']}
  		</td>
  		<td width='30%' valign='top' id='left_block'>
			<div class="borderwrap">
                <div class='maintitle'>{$info['caption']}</div>
	 			<table class='ipbtable' cellspacing='0'>
					<tr>
						<th class='subtitle'>{$this->ipsclass->lang['uploaded_by']} {$info['author']} {$this->ipsclass->lang['on']} {$info['date']}</th>
					</tr>
					<tr>
						<td class='row2'>{$this->ipsclass->lang['views']} {$info['views']} &middot; {$this->ipsclass->lang['img_comments']} {$info['comments']}</td>
					</tr>
				<if="$this->ipsclass->vars['gallery_allow_usercopyright'] != 'disabled' AND $info['copyright'] != ''">
					<tr>
						<td class='row1'>{$info['copyright']}</td>
					</tr>
				</if>
				<if="$this->ipsclass->vars['gallery_use_rate'] == 1">
					<tr>
						<td class='formsubtitle' align='center'><div class='popmenubutton' id='menu-rating-{$info['id']}-0'><a href='#menu-rating-{$info['id']}-0'>{$this->ipsclass->lang['gallery_rating']}</a> {$info['rate']} <img src='{$this->ipsclass->vars['img_url']}/menu_action_down.gif' alt='V' title='{$this->ipsclass->lang['global_open_menu']}' border='0' /></div></td>
					</tr>
				</if>
					<tr>
						<td class='formbuttonrow'>{$info['pin_button']}{$info['edit_button']}{$info['move_button']}{$info['delete_button']}{$info['report_button']}</td>
					</tr>
				<if="$info['description'] != ''">
					<tr>
						<th>{$this->ipsclass->lang['desc_table_header']}</th>
					</tr>
					<tr>
						<td class='row2'>{$info['description']}</td>
					</tr>
				</if>
				<if="$info['metahtml'] != ''">
					{$info['metahtml']}
				</if>
			</table>
			</div>
  		</td>
 	</tr>
</table>
<if="$show==1 OR $this->ipsclass->vars['gallery_display_photostrip']==1">
<table class='ipbtable'>
	<tr>
		<td width="20%" nowrap="nowrap">&nbsp;</td>
		<td align="right" width="80%" style='padding-right:0px;' >{$info['favorite_button']}&nbsp;{$info['ecard_button']}&nbsp;{$info['comment_button']}</td>
	</tr>
</table>
</if>
<if="$this->ipsclass->vars['gallery_use_rate'] == 1">
<script type="text/javascript">
  ids_to_imgs[0] = {$info['id']};
  menu_build_menu(
  "menu-rating-{$info['id']}-0",
<if="$info['canrate'] == 0">
  new Array( "<div style='width:104px;padding:6px;'><div style='font-size:10px;'>{$this->ipsclass->lang['gal_total_votes']}: {$info['ratings_count']}</div></div>"
		    ) );
<else />
	<if="$info['_my_rate'] > 0">
	  new Array( "<div style='width:104px;padding:6px;'><div style='font-size:10px;'>{$this->ipsclass->lang['gal_your_vote']}: {$info['_my_rate']}<br />{$this->ipsclass->lang['gal_total_votes']}: {$info['ratings_count']}</div></div>"
			    ) );
	<else />
	  new Array( "<div style='width:104px;padding:6px;'><div style='font-size:10px;'><i>{$this->ipsclass->lang['gal_total_votes']}: {$info['ratings_count']}</i></div>"
	   			+"<form name='rateform' action='{$this->ipsclass->base_url}&amp;automodule=gallery&amp;req=rate&amp;img={$info['id']}&amp;op=dorate&amp;st={$this->ipsclass->input['st']}' method='POST'>"
	   			+'<input type="radio" name="rating" id="r5"  onclick="rate_value=5" value="5"> &nbsp; <label for="r5"><img src="{$this->ipsclass->vars['img_url']}/rating_5.gif" alt="*****" border="0" /></label><br />'
	   			+'<input type="radio" name="rating" id="r4" onclick="rate_value=4" value="4"> &nbsp; <label for="r4"><img src="{$this->ipsclass->vars['img_url']}/rating_4.gif" alt="****" border="0" /></label><br />'
	   			+'<input type="radio" name="rating" id="r3" onclick="rate_value=3" value="3"> &nbsp; <label for="r3"><img src="{$this->ipsclass->vars['img_url']}/rating_3.gif" alt="***" border="0" /></label><br />'
	   			+'<input type="radio" name="rating" id="r2" onclick="rate_value=2" value="2"> &nbsp; <label for="r2"><img src="{$this->ipsclass->vars['img_url']}/rating_2.gif" alt="**" border="0" /></label><br />'
	   			+'<input type="radio" name="rating" id="r1" onclick="rate_value=1" value="1"> &nbsp; <label for="r1"><img src="{$this->ipsclass->vars['img_url']}/rating_1.gif" alt="*" border="0" /></label><br />'
	   			+"<div align='center'><input type='submit' value=' {$this->ipsclass->lang['dd_rate_button']} ' onclick='do_ajax_rate( {$info['id']}, event)' /></div>"
	   			+"</form></div>"
			    ) );
	</if>
</if>
 </script>
</if>