<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<? if(!isset($_SESSION["egoUserName"])){
	?>
        <tr>
          <td><span class="blue">SGC Forum </span> &nbsp; &nbsp; <span class="topmenu"><a href="signin.php">Sign In </a></span> &nbsp; &nbsp; <span class="topmenu"><a href="register.php">Create Account</a></span></td>
        </tr>
   <? }else{ ?>
        <tr>
          <td><span class="blue">SGC Forum </span> &nbsp; &nbsp; Welcome <?=$_SESSION["egoUserName"]; ?>, &nbsp; &nbsp; 
          <? 
		  

		  if($_SESSION["egoUserType"]=="Admin"){   ?>
			<span class="topmenu"><a href="approval.php">Account Activation</a></span> &nbsp; &nbsp; <span class="topmenu"><a href="mgaccount.php">Account List</a></span>&nbsp; &nbsp;           
          <? } ?>
          
          <span class="topmenu"><a href="account.php">My Account</a></span> &nbsp; &nbsp; <span class="topmenu"><a href="index.php">Discussions</a></span>&nbsp; &nbsp; <span class="topmenu"><a href="logout.php">Logout </a></span> </td>
        </tr>
   
   <? } ?>
    </table>