<!-- main menu -->

<ul id="main_menu">
	{foreach name='mMenu' from=$main_menu item='mainMenu'}{if $mainMenu.Key == 'home' && $pageInfo.Key == 'home'}{else}<li><a {if $page == $mainMenu.Path}class="active"{/if} {if $mainMenu.No_follow || $mainMenu.Login}rel="nofollow" {/if}title="{$mainMenu.title}" href="{if $mainMenu.Page_type != 'external'}{$rlBase}{/if}{if $pageInfo.Controller != 'add_listing' && $mainMenu.Controller == 'add_listing' && !empty($category.Path) && !$category.Lock}{if $config.mod_rewrite}{$mainMenu.Path}/{$category.Path}/{$steps.plan.path}.html{else}?page={$mainMenu.Path}&amp;step={$steps.plan.path}&amp;id={$category.ID}{/if}{else}{if $mainMenu.Page_type == 'external'}{$mainMenu.Controller}{else}{if $config.mod_rewrite}{if $mainMenu.Path != ''}{$mainMenu.Path}.html{$mainMenu.Get_vars}{/if}{else}{if $mainMenu.Path != ''}?page={$mainMenu.Path}{$mainMenu.Get_vars|replace:'?':'&amp;'}{/if}{/if}{/if}{/if}"><span class="center">{$mainMenu.name}</span></a></li>{/if}{/foreach}<li class="more"><img src="{$rlTplBase}img/blank.gif" alt="" /></li>
</ul>

<ul id="main_menu_more"><li class="hide"></li></ul>

<!-- main menu end -->