<ul>
    {foreach from=$nodelist item=node2 name=pagr}
        {if $node2->depth==2}
            <li class="{if ($node2->current == true) || ($node2->parent) }selected{/if}">
                <a href="{$node2->url}"{if $node2->target} target="{$node2->target}"{/if}>{$node2->menutext}</a>
                {*menu childrenof=$node2->id template="mainmenu3" number_of_levels="1"*}
            </li>
        {/if}
    {/foreach}
</ul>