<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title><?php echo("$name"); ?></title>

	<link href="<?php echo("$imgpath"); ?>styles/css.css" type="text/css" rel="stylesheet"/>
	
	<script language="JavaScript" type="text/javascript">
	var habboClient = true;
	var habboReqPath = "<?php echo("$sitepath"); ?>";
	var habboStaticFilePath = "<?php echo("$imgpath"); ?>";
	document.habboLoggedIn = <?php echo("$_SESSION[logedin]") ?>;
	</script>

<script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/prototype.js"></script>
	<script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/effects.js"></script>

<script src="<?php echo("$imgpath"); ?>js/habbo.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
window.onload = resizeWin;
window.onerror = function() { return true; };
window.onunload = clearOpener;
ensureOpenerIsLoggedIn();
addClientUnloadHook();
Event.observe(document, "keypress", function(e) { if (e.keyCode == Event.KEY_BACKSPACE) { Event.stop(e); } });
</script>
	
    <!--[if IE]>
    <link href="<?php echo("$imgpath"); ?>ie-all.css" type="text/css" rel="stylesheet" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link href="<?php echo("$imgpath"); ?>ie6.css" type="text/css" rel="stylesheet" />
    <![endif]-->

	<meta name="build" content="5.0.14 - 20070808153637 - uk" />
</head>

<body id="client">

<div id="client-topbar" style="display:none">
  <div class="logo"><img src="<?php echo("$imgpath"); ?>images/popup/popup_topbar_habbologo.gif" alt="" align="middle"/></div>
  <div class="habbocount"><div id="habboCountUpdateTarget">
</div>
<?php $online = $mysql->UsersOnline(); ?>
<?php echo("$online"); ?> Habbos Online
	<script language="JavaScript" type="text/javascript">
		setTimeout(function() {
			HabboCounter.init(600);
		}, 20000);
	</script>
</div>
  <div class="logout"><a href="<?php echo("$sitepath"); ?>account/logout?origin=popup">logout</a></div>
</div>

<div>

<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" id="habbo" width="720" height="540">
<param name="src" value="<?php echo("$dcrs"); ?>">
<param name="swRemote" value="swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true' ">
<param name="swStretchStyle" value="none">
<param name="swText" value="">
<param name="bgColor" value="#000000">
<?php if($ssostatus === 'yes') { ?>   <param name="sw6" value="use.sso.ticket=1;sso.ticket=<?php echo("$serverhost"); ?>"><?php } ?>
   <param name="sw2" value="connection.info.host=<?php echo("$serverhost"); ?>;connection.info.port=<?php echo("$serverport"); ?>">
   <param name="sw4" value="connection.mus.host=game.habbohotel.co.uk;connection.mus.port=30001">
   <param name="sw3" value="client.reload.url=<?php echo("$sitepath"); ?>client">
   <param name="sw1" value="site.url=<?php echo("$sitepath"); ?>;url.prefix=<?php echo("$sitepath"); ?>">
   <param name="sw5" value="external.variables.txt=<?php echo("$vars"); ?>;external.texts.txt=<?php echo("$texts"); ?>">
<!--[if IE]>You need Shockwave plugin (free and safe to download) in order to enter Habbo Hotel. <a href="/hotel/welcome_to_habbo_hotel/how_to_get_started.html">Read more >></a><![endif]-->
<embed src="<?php echo("$dcrs"); ?>" bgColor="#000000" width="720" height="540" swRemote="swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true'" swStretchStyle="none" swText="" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/" 
<?php if($ssostatus === 'yes') { ?>    sw6="use.sso.ticket=1;sso.ticket=<?php echo("$serverhost"); ?>" <?php } ?>
    sw2="connection.info.host=<?php echo("$serverhost"); ?>;connection.info.port=<?php echo("$serverport"); ?>"  
    sw4="connection.mus.host=game.habbohotel.co.uk;connection.mus.port=30001"  
    sw3="client.reload.url=<?php echo("$sitepath"); ?>client"  
    sw1="site.url=<?php echo("$sitepath"); ?>;url.prefix=<?php echo("$sitepath"); ?>"  
    sw5="external.variables.txt=<?php echo("$vars"); ?>;external.texts.txt=<?php echo("$texts"); ?>"></embed>
<noembed>You need Shockwave plugin (free and safe to download) in order to enter Habbo Hotel.</noembed>
</object>

</div>
</body>
</html>