<div class="main_menu">
{section name=i loop=$menu}
{if $menu[i].razdel}
<div class="menu_razd">{$menu[i].name}</div>
{else}
<a href="{$menu[i].url}">{if $menu[i].icon}<img src="{$menu[i].icon}" alt="" /> {/if}{$menu[i].name}{if $menu[i].counter} <span class="counter">+{$menu[i].counter}</span>{/if}</a>
{/if}
{/section}
</div>
