{*
			<ul id="nav_main">
				<li><a href="#">HOME</a></li>
				<li class="selected">
					<a href="#">ABOUT IFOS</a>
					<ul class="nav_sub">
						<li><a href="#">Mission & History</a>
						<li><a href="#">IFOS Activities</a>
						<li class="selected"><a href="#">Board of IFOS</a>
					</ul>
				</li>
				<li><a href="#">GENERAL SECRETARY</a></li>
				<li><a href="#">REGIONAL SECRETARIES</a></li>
				<li><a href="#">SOCIETY MEMBERS</a></li>
			</ul>


*}

{* getting current navigation path *}

{if $custom.nav_item_from_url}
	{assign_nav_path id=$custom.nav_item_from_url object="g_obj_tdyn0302"}
{/if}


<ul id="nav_main">
	{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} {if $nav.children}onClick="toggle_sub_menu(this)" style="cursor: pointer; cursor: hand;"{/if}>{$nav.title}</a>
			{if $nav.children}
				{navigationObject->printNavigationTemplate tpl="navigation_sub_menus.tpl" parent=$nav.id show_sub=$current_is_active}
			{/if}
		</li>
	{/foreach}
</ul>


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