{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>
	{if ($show_tags == 1) && (count($tags) > 0)}
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.tags}</h3>
	<br />
	{foreach from=$tags item=tag key=k}
		{$tag.href}
	{/foreach}
	</div>
	{/if}
	</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"><h2>{$gv_category_name} </h2></td>
        <td width="50%" valign="top">
		<div id="sorting">
		{$lang.sorting}: 
		<ul>		{if $smarty.const._SEOMOD == '1'}
		<li><a href="{$smarty.const._URL}/browse-{$gv_cat}-videos-{$gv_pagenumber}-date.html" rel="nofollow" class="{if $gv_sortby == 'date'}selectedli{/if}">{$lang.date}</a></li>
		<li><a href="{$smarty.const._URL}/browse-{$gv_cat}-videos-{$gv_pagenumber}-views.html" rel="nofollow" class="{if $gv_sortby == 'views'}selectedli{/if}">{$lang.views}</a></li>
		<li><a href="{$smarty.const._URL}/browse-{$gv_cat}-videos-{$gv_pagenumber}-rating.html" rel="nofollow" class="{if $gv_sortby == 'rating'}selectedli{/if}">{$lang.rating}</a></li>
		<li><a href="{$smarty.const._URL}/browse-{$gv_cat}-videos-{$gv_pagenumber}-artist.html" rel="nofollow" class="{if $gv_sortby == 'artist'}selectedli{/if}">{$lang.artist}</a></li>
		{else}
		<li><a href="{$smarty.const._URL}/category.php?cat={$gv_cat}&page={$gv_pagenumber}&sortby=date" rel="nofollow" class="{if $gv_sortby == 'date'}selectedli{/if}">{$lang.date}</a></li>
		<li><a href="{$smarty.const._URL}/category.php?cat={$gv_cat}&page={$gv_pagenumber}&sortby=views" rel="nofollow" class="{if $gv_sortby == 'views'}selectedli{/if}">{$lang.views}</a></li>
		<li><a href="{$smarty.const._URL}/category.php?cat={$gv_cat}&page={$gv_pagenumber}&sortby=rating" rel="nofollow" class="{if $gv_sortby == 'rating'}selectedli{/if}">{$lang.rating}</a></li>
		<li><a href="{$smarty.const._URL}/category.php?cat={$gv_cat}&page={$gv_pagenumber}&sortby=artist" rel="nofollow" class="{if $gv_sortby == 'artist'}selectedli{/if}">{$lang.artist}</a></li>
		{/if}
		</ul>
		</div>
		</td>
		</tr>
		<tr>
	        <td colspan="2" valign="top">
		{if !empty($list_subcats)}	
		<div id="list_subcats">
		<h4>{$lang.related_cats}</h4>
		<ul>
		{$list_subcats}
		</ul>
		</div>
		{/if}
		</td>
        </tr>
    </table>
		<div id="browse_results">
		{$problem}
		<ul>
		{$results}
		</ul>
		</div>
		<table width="100%" border="0" cellspacing="2" cellpadding="2">
		  <tr>
			<td width="33%"><a href="{$smarty.const._URL}/rss.php?c={$cat_id}"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_rss_s.gif" alt="" border="0" width="16" height="16" align="absmiddle" /></a> <span class="pag">{$page_count_info}</span></td>
			<td width="33%" align="right">
				{$pagination}
			</td>
		  </tr>
		</table>
	</div>
	</td>
  </tr>
</table>
{include file='footer.tpl'} 