{if $navigation}

	<ul class="nav_sub" {if !$custom.show_sub}style="display:none"{/if}>
		{foreach from=$navigation item=nav}
			{if $custom.navigation_path[$nav.id]}
				{assign var="current_is_active" value="1"}
			{else}
				{assign var="current_is_active" value="0"}
			{/if}

			<li {if $current_is_active}class="selected"{/if}><a {$nav.url.href}>{$nav.title}</a>
				{if $nav.children}
					{*navigationObject->printNavigationTemplate tpl="navigation_sub_menus.tpl" parent=$navigation[row].id*}
				{/if}
			</li>
		{/foreach}
	</ul>

{/if}

{*if $navigation}

	<table cellspacing="0" cellpadding="0" style="position: absolute; left: 0px; top: 0px; display: none; -moz-user-select: none;" id="subnav_{$global.parent_id}" onselectstart="return false">
	<tr>
		<td>
			<table cellspacing="0" cellpadding="0" width="100%" height="100%" class="navigation_menu">
	
			{section name=row loop=$navigation}
	
					<tr>
						<td class="navigation_item" align="center" title="{$navigation[row].url.description}" valign="middle" id="nav_item_{$navigation[row].id}" onmouseover="insideLayer=true; showSubMenu({$navigation[row].id}, {$navigation[row].parent_id}, this, 1, 0, 0, 0, 2, -1); navOver('{$navigation[row].id}',true, '{$custom.css.navigation_label_root_over.color}');" onmouseout="insideLayer=false; navOut('{$navigation[row].id}',true,'{$custom.css.navigation_label_root.color}');" {if $navigation[row].url.action}style="cursor:pointer; cursor:hand;" onclick="{$navigation[row].url.action};"{else}style="cursor:default;"{/if}>
			
							<table cellspacing="0" cellpadding="0" width="100%">
								<tr>
									<td nowrap width="100%" id="nav_label_{$navigation[row].id}" valign="middle" class="navigation_label">
										{$navigation[row].title|truncate:25:"..."}
									</td>
									<td width="16" align="right">{if $navigation[row].children}<img id="nav_arrow_{$navigation[row].id}" border="0" alt="" src="/mod_bin/general/arrow.php">{/if}</td>
								</tr>
							</table>
				
						</td>
					</tr>
			
			{/section}
	
			</table>
		</td>
	</tr>
	</table>

	{section name=row loop=$navigation}
		{navigationObject->printNavigationTemplate tpl="navigation_sub_menus.tpl" parent=$navigation[row].id}
	{/section}

{/if*}