<div id="selMainNavLinks">
	<h2>Navigational Links</h2>
  	<div class="clsMainMenuMiddle">
	  <div class="clsMainMenuLeft">
		<div class="clsMainMenuRight">
			<div class="clsClearFix">
				<div class="clsMainMenuLeftDiv">
					<ul class="clsClearfix">
						<li class="{$populateTopMenu_arr.questions.class}" id="selQuestionMenu" onmouseover="activeTopMenu('selQuestionMenu');" onmouseout="inActiveTopMenu('selQuestionMenu');"><span><a href="{$populateTopMenu_arr.questions.url}"><span class="clsTopAnswersLink">{$LANG.answers}</span></a></span></li>
						{if chkIsAllowedModule(array('forums'))}
							<li class="{$populateTopMenu_arr.forums.class}" id="selForumsMenu" onmouseover="activeTopMenu('selForumsMenu');" onmouseout="inActiveTopMenu('selForumsMenu');"><span><a href="{$populateTopMenu_arr.forums.url}"><span class="clsTopForumsLink">{$LANG.forums}</span></a></span></li>
						{/if}
						{if chkIsAllowedModule(array('blog'))}
						 	<li class="{$populateTopMenu_arr.blogs.class}" id="selBlogsMenu" onmouseover="activeTopMenu('selBlogsMenu');" onmouseout="inActiveTopMenu('selBlogsMenu');"><span><a href="{$populateTopMenu_arr.blogs.url}"><span class="clsTopBlogsLink">{$LANG.blogs}</span></a></span></li>
						{/if}
					    {if chkIsAllowedModule(array('debate'))}
							 <li class="{$populateTopMenu_arr.debate.class}" id="selDebatesMenu" onmouseover="activeTopMenu('selDebatesMenu');" onmouseout="inActiveTopMenu('selDebatesMenu');"><span><a class="" href="{$populateTopMenu_arr.debate.url}"><span class="clsTopdebateLink">{$LANG.header_debates}</span></a></span></li>
						{/if}
						{if chkIsAllowedModule(array('mail'))}
						  	<li class="{$populateTopMenu_arr.mail.class}" id="selMailMenu" onmouseover="activeTopMenu('selMailMenu');" onmouseout="inActiveTopMenu('selMailMenu');"><span><a href="{$populateTopMenu_arr.mail.url}"><span class="clsTopInboxLink">{$LANG.inbox}</span></a></span></li>
                        {/if}
                        {if isMember() and chkIsPaymentUpgradeAllowed()}
 		                       <li class="clsTopPaymentLink {$populateTopMenu_arr.payment.class}" id="selPaymentMenu" onmouseover="activeTopMenu('selPaymentMenu');" onmouseout="inActiveTopMenu('selPaymentMenu');"><span><a class="" href="{$populateTopMenu_arr.payment.url}"><span class="clsTopPaymentLink">{$LANG.header_upgrade_link}</span></a></span></li>
						{/if}
						{if !isMember()}
							<li class="clsTopLoginLink {$populateTopMenu_arr.login.class}" id="selLoginMenu" onmouseover="activeTopMenu('selLoginMenu');" onmouseout="inActiveTopMenu('selLoginMenu');"><span><a href="{$populateTopMenu_arr.login.url}"><span class="clsTopLoginLink">{$LANG.header_login_link}</span></a></span></li>
						{elseif $CFG.admin.module.facebook && $myobj->isFacebookUser() && isMember()}
							<li class="clsTopLoginLink {$populateTopMenu_arr.logout.class}" id="selLogoutMenu"  onmouseover="activeTopMenu('selLogoutMenu');" onmouseout="inActiveTopMenu('selLogoutMenu');"><span><a class="" href="javascript:void(0);" onclick="facebookLogout();"><span class="clsTopLoginLink">{$LANG.header_logout_link}</span></a></span></li>
						{else}
							<li class="clsTopLoginLink {$populateTopMenu_arr.logout.class}" id="selLogoutMenu" onmouseover="activeTopMenu('selLogoutMenu');" onmouseout="inActiveTopMenu('selLogoutMenu');"><span><a href="{$populateTopMenu_arr.logout.url}"><span class="clsTopLoginLink">{$LANG.header_logout_link}</span></a></span></li>
						{/if}
				  	</ul>
			  	</div>
			  	{if isMember()}
					<div class="clsMainMenuRightDiv">
						<div class="clsUserMenuImage">
							<div class="clsFloatleft">
								{if  isUserImageAllowed()}
									{if displayProfileImage($populateTopMenu_arr.user_details, 'small', false)}{/if}
								{/if}
							</div>
							<div class="clsUserIcon">
								<a class="" href="#" onclick="showHideDiv('selShowMenuUserDetails'); return false;"></a>
								<div class="clsPopupUserDetail" id="selShowMenuUserDetails" style="display:none;">
								<div class="clsInnerPopupDiv">
									<div class="clsUserPopContainer">
									<ul>
										<li><a href="{$populateTopMenu_arr.myprofile.url}">{$LANG.header_view_profile}</a></li>
										<li><a href="{$populateTopMenu_arr.editprofile.url}">{$LANG.header_edit_profile}</a></li>
										<li><a href="{$populateTopMenu_arr.logout.url}">{$LANG.header_logout_link}</a></li>
									</ul>
									</div>
									<div class="clsUserPopContainerPoints">
										<span>{$populateTopMenu_arr.userLevelNumber}</span>
										 {$LANG.header_total_points}<b>&nbsp;{$populateTopMenu_arr.userLog.total_points}</b>
									</div>
								</div>
						</div>
							</div>

						</div>
						<div class="clsUserMenuName">
							<p>{$LANG.header_welcome_link}<span><a href="{$populateTopMenu_arr.myprofile.url}">{$populateTopMenu_arr.user_details.display_name}</a></span></p>
						</div>
					</div>
				{/if}
		  	</div>
		</div>
	  </div>
	</div>
</div>