<script language="javascript"> 

	function RefreshUserCount()
	{
		var html = $.ajax({
		  url: "online.php",
		  async: false
		}).responseText;
			$('.OnlineCount').fadeOut(200, function () {
			$('.OnlineCount').css("display", "none")
			$('.OnlineCount').html(html + ' <?php echo $lang['users_online']; ?>')
			$('.OnlineCount').fadeIn(200)
		});
		setTimeout("RefreshUserCount()",120000);
	}
	RefreshUserCount();
</script>

<div class="top"> 
	<a href="./"><img src="./Public/Styles/<?php echo $currentstyle ?>/Images/logo.png" /></a>
	<div style="float:right">
		<div class="usersBox" style="width:140px;">
			<div class="OnlineCount"><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online']; ?></div>
			<br/><a href="logout.php"><?php echo $lang['sign_out']; ?></a>
		</div>
		<div id="enter-hotel">
			<div class="open">
				<a href="client/" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><?php echo $lang['enter_hotel']; ?><i></i></a>
				<b></b>
			</div>
		</div>
	</div>
	
		<div class="navBar">
				<div class="navButton" ref="Home" onClick="location.href='me.php'"><a href="me.php"><?php echo $lang['nav_home']; ?></a></div>
                <div class="navButton" ref="Community" onClick="location.href='community.php'"><a href="community.php"><?php echo $lang['nav_community']; ?></a></div>
                <?php if($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username']))) {?><div class="navButton" ref="Housekeeping" onClick="location.href='housekeeping'"><a href="housekeeping"><?php echo $lang['nav_housekeeping']; ?></a></div><?php } ?>
		</div>
</div> 