{if count($menu) > 1}
<div id="menu">
<ul id="tablist">
{foreach from=$menu key=name item=submenu name=menu}
{if $submenu._hasSubmenu}
	<li>
		<span>{$name|translate}</span>
		<ul>
		{foreach from=$submenu key=sname item=url name=submenu}
	                {if strpos($sname, '_') !== 0}
			<li><a href='index.php{$url._url|@urlRewriteWithParameters}' {if isset($currentAdminMenuName) && $sname==$currentAdminMenuName}class='active'{/if}>{$sname|translate}</a></li>
	                {/if}
		{/foreach}
		</ul>
	</li>
{/if}
{/foreach}
</ul>
</div>
{/if}
