{if $MENU != ''}
	<!-- Menu -->
	<div id="block_top_menu" class="sf-contener clearfix col-sm-10">
		<div class="container-title"><div class="cat-title">{l s="Menu" mod="blocktopmenu"}</div></div>
        <div class="container-menu">
		<ul class="sf-menu clearfix menu-content">
			{$MENU}
			{if $MENU_SEARCH}
				<li class="sf-search noBack" style="float:right">
					<form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get">
						<p>
							<input type="hidden" name="controller" value="search" />
							<input type="hidden" value="position" name="orderby"/>
							<input type="hidden" value="desc" name="orderway"/>
							<input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'html':'UTF-8'}{/if}" />
						</p>
					</form>
				</li>
			{/if}
		</ul>
        </div>
	</div>
	<!--/ Menu -->
{/if}

{literal}
    <script>
        if($('body').attr('id') == 'module-privatesales-home'){
            $('#block_top_menu ul li:first-child').addClass('active');
        }
        else if($('body').attr('id') == 'manufacturer'){
            $('#block_top_menu ul li:nth-child(2)').addClass('active');
        }
        else if($('body').attr('id') == 'module-psblog-posts'){
            $('#block_top_menu ul li:nth-child(5)').addClass('active');
        }
        else if($('body').attr('id') == 'cms' && $('body').hasClass('cms-6')){
            $('#block_top_menu ul li:nth-child(4)').addClass('active');
        }
        else{
            $('#block_top_menu ul li:nth-child(3)').addClass('active');
        }
    </script>
{/literal}
{*{if $page_name == "module-privatesales-home"}
    {literal}
    <script>
        $('#block_top_menu ul li:first-child').addClass('active');
    </script>
    {/literal}
{/if}

{if $page_name == "manufacturer"}
    {literal}
    <script>
        $('#block_top_menu ul li:nth-child(2)').addClass('active');
    </script>
    {/literal}
{/if}

{if $page_name == "cms"}
    {literal}
    <script>
        if($('body').hasClass('cms-6')){
            $('#block_top_menu ul li:nth-child(4)').addClass('active');
        }
        else{
            $('#block_top_menu ul li:nth-child(3)').addClass('active');
        }
    </script>
    {/literal}
{/if}

{if $page_name == "module-psblog-posts"}
    {literal}
    <script>
        $('#block_top_menu ul li:nth-child(5)').addClass('active');
    </script>
    {/literal}
{/if}*}