<ul class="top-menu">
    {assign var="top_par" value=0}
    {foreach from=$nodelist item=node name=topm}
        {if $node->depth==2}
            <li class="{if $node->extra1}imprnt {/if}{if ($node->current == true) || ($node->parent) }selected{assign var="top_par" value=$node->id}{/if}{if $node->children_exist} has-submenu{/if}">
                <a href="{$node->url}"{if $node->target} target="{$node->target}"{/if}>
                    {$node->menutext}
                </a>

                {menu template="topmenu3" childrenof=$node->id number_of_levels="1"}
                {*menu childrenof=$node->id template="mainmenu2" number_of_levels="1"*}
            </li>
        {/if}
    {/foreach}
</ul>
