<script type="text/javascript">
/* <![CDATA[ */
{literal}

function redirect(rate)
{
	location.href="plugin.php?plugin={/literal}{$plugin_name}{literal}&rate="+rate;
}

function redirect2(rate)
{
	location.href="plugin.php?plugin={/literal}{$plugin_name}{literal}&gender="+rate;
}

function redirect3(rate)
{
	location.href="plugin.php?plugin={/literal}{$plugin_name}{literal}&age="+rate;
}
function swapColor(id, bgcolor, color) {
  if (bgcolor != '') { document.getElementById(id).style.backgroundColor = bgcolor; }
  else{document.getElementById(id).style.backgroundColor = "transparent";}
  if (color != '') { document.getElementById(id).style.color = color; }
}

{/literal}
/* ]]> */
</script>


<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="100%"  class="module_detail_inside">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
		<td class="module_head">{$lang.user_title}</td>
	</tr>
</table>
<center>

<table border="0" width="80%">
  <tr>
    <td width="100%" colspan="4" align="center"><form action="#" name="hotornot">
      {$lang.show_me} <select name="gender" onChange="redirect2(document.hotornot.gender.value)">
      										<option value="1" {if $gender == 1}selected{/if} >{$lang.opt1}</option>
      										<option value="2" {if $gender == 2}selected{/if} >{$lang.opt2}</option>
      										<option value="3" {if $gender == 3}selected{/if} >{$lang.opt3}</option>      										      										
      								 </select>
									 <select name="age" onChange="redirect3(document.hotornot.age.value)">
      										<option value="1" {if $age == 1}selected{/if} >{$lang.opt4}</option>
      										<option value="2" {if $age == 2}selected{/if} >{$lang.opt5}</option>
      										<option value="3" {if $age == 3}selected{/if} >{$lang.opt6}</option>      										      										
      										<option value="4" {if $age == 4}selected{/if} >{$lang.opt7}</option>      										      										      										
      										<option value="5" {if $age == 5}selected{/if} >{$lang.opt8}</option>      										      										      										      										
      								 </select>      								 
      								 </form>
    </td>
  </tr>
  <tr valign="top">
  {if $lastdata.rating == 0}
  <td width="25%">
  </td>
  {/if}
      {if $lastdata.rating != 0}
    <td width="50%" valign="top" align="center" style="padding-top:10px;border-color:black;border-width:thin">
    <br/>
      <b>{$lang.desc1}</b>
      <h2><b>{$lastdata.rating}</b></h2>
<center>
      <table border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td  width="100%" class="module_detail_inside">
      <table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="module_head" height="20" style="padding-left:2px;padding-right:2px" align="center">     
			<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?id={$lastdata.id}','center',650,600)" class="module_head"><font color="White">
				<small>{$lang.clickhere} {$lang.clickhere2}</small> </font></a>		
			</td>
		</tr>
		<tr style="background-color:#FFFFFF">
			<td><center>
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center">
		<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?id={$lastdata.id}','center',650,600)">
         	<img src="getsnap.php?id={$lastdata.id}&amp;typ=tn" border="0" class="smallpic" alt="" />
      	</a>	
      			</td>
      		</tr>
      	</table></center>
			</td>
		</tr>
	  </table>
</table>	  
</center>

      <b>{$lang.desc4} {$lastdata.totalratings} {$lang.desc5}</b><br/>
      {if $lastdata.rate != ""}<b>{if $lastdata.gender == "M"}{$lang.desc3}{/if}{if $lastdata.gender == "F"}{$lang.desc2}{/if} {$lastdata.rate}</b><br/>{/if}    

    </td>
      {/if}
    <td width="50%" align="center" style="padding-top:5px" valign="top">
    {if $error != 1}<h2>{$data.username}</h2>
<center>
      <table border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td  width="100%" class="module_detail_inside">
      <table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="module_head" height="20"  style="padding-left:2px;padding-right:2px" align="center">     
			<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?id={$lastdata.id}','center',650,600)" class="module_head"><font color="White">
				<small>{$lang.clickhere} {$lang.clickhere2}</small></font></a><br/>		
			</td>
		</tr>
		<tr style="background-color:#FFFFFF">
			<td><center>
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center">
		<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?id={$lastdata.id}','center',650,600)">
         	<img src="getsnap.php?id={$data.id}&amp;typ=pic" border="0" class="smallpic" alt="" />
      	</a>	
      			</td>
      		</tr>
      	</table></center>
			</td>
		</tr>
	  </table>
</table>	  
</center>
    <form action="#" name="voteform">
 					<table border="0" width="100%">
  						<tr>	
    						<td width="10%" align="center"><div id="r1" onmouseover="swapColor('r1','#204080','#ffffff');" onmouseout="swapColor('r1','','#000000');" onclick="document.voteform.c1.checked=true;redirect(1)"><input type="radio" name="c1" value="1" onclick="redirect(1)" /><br/>1</div></td>
    						<td width="10%" align="center"><div id="r2" onmouseover="swapColor('r2','#202F70','#ffffff');" onmouseout="swapColor('r2','','#000000');" onclick="document.voteform.c2.checked=true;redirect(2)"><input type="radio" name="c2" value="2" onclick="redirect(2)" /><br/>2</div></td>
    						<td width="10%" align="center"><div id="r3" onmouseover="swapColor('r3','#3F2060','#ffffff');" onmouseout="swapColor('r3','','#000000');" onclick="document.voteform.c3.checked=true;redirect(3)"><input type="radio" name="c3" value="3" onclick="redirect(3)" /><br/>3</div></td>
    						<td width="10%" align="center"><div id="r4" onmouseover="swapColor('r4','#5F2050','#ffffff');" onmouseout="swapColor('r4','','#000000');" onclick="document.voteform.c4.checked=true;redirect(4)"><input type="radio" name="c4" value="4" onclick="redirect(4)" /><br/>4</div></td>
    						<td width="10%" align="center"><div id="r5" onmouseover="swapColor('r5','#7F1F4F','#ffffff');" onmouseout="swapColor('r5','','#000000');" onclick="document.voteform.c5.checked=true;redirect(5)"><input type="radio" name="c5" value="5" onclick="redirect(5)" /><br/>5</div></td>
    						<td width="10%" align="center"><div id="r6" onmouseover="swapColor('r6','#90103F','#ffffff');" onmouseout="swapColor('r6','','#000000');" onclick="document.voteform.c6.checked=true;redirect(6)"><input type="radio" name="c6" value="6" onclick="redirect(6)" /><br/>6</div></td>
    						<td width="10%" align="center"><div id="r7" onmouseover="swapColor('r7','#B0102F','#ffffff');" onmouseout="swapColor('r7','','#000000');" onclick="document.voteform.c7.checked=true;redirect(7)"><input type="radio" name="c7" value="7" onclick="redirect(7)" /><br/>7</div></td>
    						<td width="10%" align="center"><div id="r8" onmouseover="swapColor('r8','#CF0F1F','#ffffff');" onmouseout="swapColor('r8','','#000000');" onclick="document.voteform.c8.checked=true;redirect(8)"><input type="radio" name="c8" value="8" onclick="redirect(8)" /><br/>8</div></td>
    						<td width="10%" align="center"><div id="r9" onmouseover="swapColor('r9','#E0000F','#ffffff');" onmouseout="swapColor('r9','','#000000');" onclick="document.voteform.c9.checked=true;redirect(9)"><input type="radio" name="c9" value="9" onclick="redirect(9)" /><br/>9</div></td>
    						<td width="10%" align="center"><div id="r10" onmouseover="swapColor('r10','#F00000','#ffffff');" onmouseout="swapColor('r10','','#000000');" onclick="document.voteform.c10.checked=true;redirect(10)"><input type="radio" name="c10" value="10" onclick="redirect(10)" /><br/>10</div></td>
  						</tr>
			<tr>
				<td><b>{$lang.not}</b></td>
				<td colspan="8"></td>
				<td><b>{$lang.hot}</b></td>
			</tr>
					</table>
	{else}
	<font color="Red"><b>{$lang.error}</b></font>
    {/if}
    </form>
    </td>
  {if $lastdata.rating == 0}
  <td width="25%">
  </td>
  {/if}
  </tr>
</table>

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