<?
if(!$_SESSION["egoUser"]){
					print("<script type='text/javascript'>location.href='index.php'</script>");

}else if ($_SESSION["egoUser"]){ 

	$menulist=explode(",",$_SESSION["egoAccess"]);
	

?>  
<table width="90%" border="0" cellpadding="0" cellspacing="0">  
  <tr>
    <td colspan="2"  class="MenuTitle"">Login as <? echo $_SESSION["egoUser"]; ?>	</td>
</tr>
  <tr>
    <td width="12"><div align="center"></div></td>
    <td width="1081" class="subItem"><a href="logOut.php"><img src="images/logout.jpg" align="absmiddle" border="0"/> Logout</a> </td>
  </tr>
  <tr>
    <td colspan="2"  class="MenuTitle"">&nbsp;	</td>
</tr>
  <tr>
    <td colspan="2">
	<div class="navbar">
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem" >Profile</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:inline;">
		<div class="subItem"><a href="profile.php">Update Profile</a></div>
	</div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<br>

<!-- *********************************Start Menu****************************** -->
<? if((array_search("User",$menulist)==true) || (array_search("NewValue",$menulist)==true)){ ?>
<div class="mainDiv" >
<div class="topItem" >Setup</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:inline;">
<? if(array_search("User",$menulist)==true){ ?>
		<div class="subItem"><a href="user.php">User</a></div>
<? } ?>
<? if(array_search("Rooms",$menulist)==true){ ?>
	    <div class="subItem"><a href="rooms.php">Rooms</a></div>
<? } ?>
<? if(array_search("Products",$menulist)==true){ ?>
		<div class="subItem"><a href="products.php">Products</a></div>
<? } ?>



	</div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<br>
<? } ?>
<? if(array_search("Membership",$menulist)==true){ ?>
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem"  >Membership</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:none;">
		<div class="subItem"><a href="newMembers.php">New Membership</a></div>
		<div class="subItem"><a href="members.php">Membership Search</a></div>	
        </div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<br>
<? } ?>


<? if(array_search("Reservation",$menulist)==true){ ?>
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem"  >Reservation</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:none;">
		<div class="subItem"><a href="reservNew.php">New Reservation</a></div>
		<div class="subItem"><a href="reservConfirm.php">Make Confirm Reservation</a></div>	
		<div class="subItem"><a href="reservCancel.php">Make Cancel Reservation</a></div>	

        </div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<br>
<? } ?>

<? if(array_search("Report",$menulist)==true){ ?>
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem"  >Report</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:none;">
		<div class="subItem"><a href="ppl_personRpt.php">Membership Details</a></div>		
		<div class="subItem"><a href="reservList.php">Reservation List</a></div>	
		<div class="subItem"><a href="userlogRpt.php">User Log</a></div>			
        </div>
</div>
</div>
<? } ?>
<!-- *********************************End Menu****************************** -->
<script type="text/javascript" src="xpmenuv21.js"></script>	</td>
  </tr>
</table>


<? } ?>