{strip}
<ul>
{foreach item=headerMenu from=$headerMenus name=headerMenus key=$key}
    {fetch_sections assign=subHeaderMenus from=$headerMenu.sectionId status="V" topMenu=1 level=2}
    {if !empty($subHeaderMenus)}
        <li>
            <a class="drop-down" href="{$SITE_URL}{$headerMenu.url}" {if isset($section.sectionId) && $headerMenu.sectionId eq $section.sectionId}class="active"{/if}>
                {$headerMenu.alias}
            </a>
            <ul>
                {foreach item=subHeaderMenu from=$subHeaderMenus name=subHeaderMenus}
                    <li><a href="{if !empty($subHeaderMenu.externalLink)}{$subHeaderMenu.externalLink}{else}{$SITE_URL}{$subHeaderMenu.url}{/if}">{$subHeaderMenu.name}</a></li>
                {/foreach}
            </ul>
        </li>
    {else}
        <li><a href="{$SITE_URL}{$headerMenu.url}" {if isset($section.sectionId) && $headerMenu.sectionId eq $section.sectionId}class="active"{/if}>{$headerMenu.alias}</a></li>
    {/if}
{/foreach}
</ul>
{/strip}