<div class="menu{if !isset($indexSG)} menuBoxSub{/if}" id="menu" style="z-index: 2;">

<ul id="nav">
	<li><a href="{$urlMain}" >START</a></li>
                {assign var=countMenuArray value=$arrayTree|@count} 
								{foreach from=$arrayTree item=item name=mainMenu key=key}
								{assign var=id value=$item->GetId()}
								{assign var=lang value=$item->GetLang()}
								{assign var=url value=$item->GetUrlWithType()}
								{assign var=urlName value=$item->GetUrl()}
								{assign var=name value=$item->GetMenuName()}
								{assign var=subname value=$item->GetSubname()}
								{if !$name} {assign var=name value=$item->GetName()}{/if}
								{if $item->GetType() == 1}
									<li {if $smarty.foreach.mainMenu.last}style="border-right: 0px"{/if}><a href="{$url}" >{$name}</a>{if $item->GetHaveChildren()}<a class="moreLink" href="#" title="" onclick="showHide('#moreLink_{$id}');" >&vee;</a>{/if}
									{if $item->GetHaveChildren()}
										<ul id="moreLink_{$id}" >
											{foreach from=$item->arrayChildren item=objElementSub key=idElementSub name=mainSubMenu}
											{assign var=urlSub value=$objElementSub->GetUrlWithType()}
											{assign var=idParentSub value=$objElementSub->GetId()}
											<li ><a  href="{$urlSub}" >{$objElementSub->GetElementName()}</a>											</li>
											{/foreach}
										</ul>
									{/if}
									
									</li>

                {/if}
								{/foreach}	
								
</ul>		
					
				<div class="cb"></div>
		</div>				
							
		{literal}
	
		{/literal}					 
		
                    