<div class="fancy-blocks-section">
    <div class="fancy-blocks service-menu">
        {assign var="n" value=0}
        {foreach from=$nodelist item=node name=pagr key=key}
            {if $node->depth==2}
                {$n=$n+1}
                <div class="{if ($node->current == true) || ($node->parent) }selected{/if} {if $node->children_exist}has-submenu{/if}">
                    <a href="{$node->url}"{if $node->target} target="{$node->target}"{/if}>
                        <span class="ico"><img src="/images/icons/icon{$n}.png" alt=""></span>
                        <span class="label">{$node->menutext}</span>

                        {capture assign="parent_alias"}{$node->url}{/capture}
                    </a>
                    {menu childrenof=$node->id template="servicemenu2" number_of_levels="1"}
                </div>
            {/if}
        {/foreach}
    </div>
</div>