{include file="$gentemplates/$header_tpl"}
	{include file="$gentemplates/classified_menu.tpl"}<div>&nbsp;</div>
	<div class="club_content">
        <div class="content_header"><h3>{$lang.classified.catalog}</h3></div>
        <div class="content_header">
            {foreach name=c item=cat key=id_cat from=$tree}
			   {if $cat.level==2}
					<p>
							{if $cat.tree_count==0}
								<h4>{$cat.name}&nbsp;{$cat.tree_count}</h4>
							{else}
								<h4><a href="{$list_link}id={$id_cat}">{$cat.name}</a>&nbsp;{$cat.tree_count}</h4>
							{/if}
					</p>
				{else}
					{if $cat.tree_count>0}<a href="{$list_link}id={$id_cat}">{/if}
					{$cat.name}
					{if $cat.tree_count>0}</a>{/if}&nbsp;{$cat.tree_count}{if $cat.last!=1},&nbsp;{/if}
				{/if}
			{/foreach}
        </div>
    </div>
{include file="$gentemplates/$footer_tpl"}