<!-- Tray -->
	<div id="tray" class="box">

		<p class="f-left box">

			<!-- Switcher -->
			<span class="f-left" id="switcher">
				<a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="images/switcher-1col.gif" alt="1 Column" /></a>
				<a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="images/switcher-2col.gif" alt="2 Columns" /></a>
			</span>

			Project: <strong><?php echo SITE_NAME; ?></strong>

		</p>

		<p class="f-right">User: <strong><?php echo $_SESSION['admin_fname'].' '.$_SESSION['admin_lname'] ?></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="admin-login.php?act=logout" id="logout">Log out</a></strong></p>

	</div> <!--  /tray -->

	<hr class="noscreen" />

	<!-- Menu -->
	<div id="menu" class="box">

		<ul class="box f-right">
        <li><a href="<?php echo SITE_URL; ?>siteadmin"><span><strong>Dashboard</strong></span></a></li>
			<li><a href="<?php echo SITE_URL; ?>" target="_blank"><span><strong>Visit Site &raquo;</strong></span></a></li>
		</ul>
		<?php 
		if($_SESSION['admin_access']!='Full'){
			$admin_access = explode(',',$_SESSION['admin_access']);
		}else{
			$admin_access = array();
		}
		$fname=basename($_SERVER['SCRIPT_FILENAME']);
		?>
		<ul class="box">
        <?php if($_SESSION['admin_access']=='Full' || ( in_array('1',$admin_access)) ){ ?>
			<li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'"><div><a href="adminlist.php"><span>Admin</span></a>
				<?php if($event_access[1] && in_array('add',$event_access[1]) || $_SESSION['admin_access']=='Full'){ ?>
                <!-- Dropdown menu -->
                <div class="drop">
                    <ul class="box">
                        <li><a href="addadmin.php">Add Admin</a></li>
                    </ul>
                </div> <!-- /drop -->
                <?php } ?>
			</div></li>
            <?php } if($_SESSION['admin_access']=='Full' || ( in_array('5',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?> 
			<li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'"><div><a href="pagelist.php"><span>Pages</span></a>
				<?php if($event_access[5] && in_array('add',$event_access[5]) || $_SESSION['admin_access']=='Full'){ ?>
                <!-- Dropdown menu -->
				<div class="drop">
					<ul class="box">
						<li><a href="addpage.php">Add Page</a></li>
					</ul>
				</div> <!-- /drop -->
                <?php } ?>
			</div></li> 
            <?php } if($_SESSION['admin_access']=='Full' || ( in_array('3',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?> 
			 <?php // Package Module?>
            <?php }	if($_SESSION['admin_access']=='Full' || ( in_array('6',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?> 
			<li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'"><div><a href="newslist.php"><span>News</span></a>
				<?php if($event_access[6] && in_array('add',$event_access[6]) || $_SESSION['admin_access']=='Full'){ ?>
                <!-- Dropdown menu -->
				<div class="drop">
					<ul class="box">
						<li><a href="addnews.php">Add News</a></li>
					</ul>
				</div> <!-- /drop -->
                <?php } ?>
			</div></li>
            <?php }	if($_SESSION['admin_access']=='Full' || ( in_array('7',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?> 
			<li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'"><div><a href="testimoniallist.php"><span>Community insights</span></a>
				<?php if($event_access[7] && in_array('add',$event_access[7]) || $_SESSION['admin_access']=='Full'){ ?>
                <!-- Dropdown menu -->
				<div class="drop">
					<ul class="box">
						<li><a href="addtestimonial.php">Add insights</a></li>
					</ul>
				</div> <!-- /drop -->
                <?php } ?>
			</div></li> 
            <?php }	
			  if($_SESSION['admin_access']=='Full' || ( in_array('10',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?>	
            <li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'"><div><a href="gallerylist.php"><span>Image Gallery</span></a>
				<?php if($event_access[10] && in_array('add',$event_access[10]) || $_SESSION['admin_access']=='Full'){ ?>
                <!-- Dropdown menu -->
				<div class="drop">
					<ul class="box">
						<li><a href="addgallery.php">Add Image</a></li>
					</ul>
				</div> <!-- /drop -->
                <?php } ?>
			</div></li>      
            <?php } if($_SESSION['admin_access']=='Full' || ( in_array('8',$admin_access)) ){ ?>
                    
            <li><a href="setting.php"><span>Settings</span></a></li>
            <?php } ?>
		</ul>
		
</div> <!-- /header -->
