{include file='header.tpl' p="general"} 

<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top">
	<div id="reg_box">
	<h3 class="captions">{$lang.genre}</h3>
		<div id="list_cats">
		{list_categories}		
		</div>
	</div>	
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.members}</h3>
	{if $logged_in == '1'}
	{include file='loggedin_body.tpl'} 
	{else}
	{include file='login_body.tpl'} 
	{/if}
	</div>	
	</td>
    <td width="738" valign="top">
	<div id="browse_main">
	<table width="100%" border="0" cellspacing="3" cellpadding="3">
      <tr>
        <td width="50%" valign="top">
		{if $cat_name}
		<h2>{$cat_name} {$lang.top_m_videos}</h2>
		{else}
		<h2>{$lang.top_m_videos}</h2>
		{/if}
		</td>
        <td width="50%" valign="top">
		<div id="sorting">
		{$lang.sorting}: 
		<select name="categories" size="1" onChange="javascript:document.location=this.value;">
		<option value="{$smarty.const._URL}/topvideos.{$smarty.const._FEXT}">{$lang.select}</option>
		<optgroup label="{$lang.by_time}">
			<option value="{$smarty.const._URL}/topvideos.{$smarty.const._FEXT}">{$lang.any_time}</option>
			<option value="{$smarty.const._URL}/topvideos.{$smarty.const._FEXT}?do=recent" {if $smarty.get.do == 'recent'}selected="selected"{/if}>
				{$chart_days}
			</option>
		</optgroup>
		<optgroup label="{$lang.by_cat}">
			{$categories_list}
		</optgroup>
		</select>
		</div>
		</td>
      </tr>
    </table>
		<div id="topvideos_results">
		<table width="100%" border="0" cellspacing="2" cellpadding="5">
		  <tr class="heading">
			<td width="20"><strong>{$lang.rank}</strong></td>
			<td width="10">&nbsp;</td>
			<td><strong>{$lang.artist}</strong></td>
			<td><strong>{$lang.video}</strong></td>
			<td width="100"><strong>{$lang.views}</strong></td>
		  </tr>
			{$results}
		</table>

		</div>
	</div>
	</td>
  </tr>
</table>
{include file='footer.tpl'} 