<!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"); ?><?php if($page == 'home') { ?> ~ Habbo home: <?php echo("$homez") ?><?php } ?></title>

<?php
$home = mysql_fetch_array(mysql_query("SELECT * FROM homes WHERE owner = '$homez'"));
if($page == 'credits') {
$ads = 'no';
}
if($path[1] == 'edit' && $edit == 'yes') {
$_SESSION[edit] = 'true';
} if($path[1] == 'exit' && $edit == 'yes') {
$_SESSION[edit] = 'no';
}
?>
    
    <link href="<?php echo("$imgpath"); ?>styles/css.css" type="text/css" rel="stylesheet"/>
    <link href="<?php echo("$imgpath"); ?>styles/boxes.css" type="text/css" rel="stylesheet"/>
    <link href="<?php echo("$imgpath"); ?>styles/homes.css" type="text/css" rel="stylesheet"/>
    <?php if($path[0] == 'account') { ?><link href="<?php echo("$imgpath"); ?>/styles/process.css" type="text/css" rel="stylesheet"/><?php } ?>

    <script language="JavaScript" type="text/javascript">
    <?php $logedin = $_SESSION['login']; ?>
	var habboReqPath = "<?php echo("$sitepath"); ?>";
	var habboStaticFilePath = "<?php echo("$imgpath"); ?>";
	document.habboLoggedIn =<?php echo("$logedin"); ?>;
	window.name = "habboMain";
	</script>
    <link rel="stylesheet" type="text/css" href="http://images.habbohotel.co.uk/web/web-5.0.22/styles/myhabbo/myhabbo.css">
    <link rel="stylesheet" type="text/css" href="<?php echo("$imgpath"); ?>styles/skins.css">
    <link rel="stylesheet" href="<?php echo("$imgpath"); ?>css/lightbox.css" type="text/css" />
    <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/builder.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/habbo.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/hobojax.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/registration.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/swfobject.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/validation.js"></script>
    <script language="JavaScript" type="text/javascript" src="<?php echo("$imgpath"); ?>js/lightbox.js"></script>



    <!--[if IE]>
    <link href="<?php echo("$imgpath"); ?>styles/ie-all.css" type="text/css" rel="stylesheet" />
    <![endif]-->

    <!--[if lt IE 7]>
    <link href="<?php echo("$imgpath"); ?>styles/ie6.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
    body { behavior: url(<?php echo("$imgpath"); ?>js/csshover.htc); }
    </style>
    <![endif]-->
</head>

<body id="<?php echo("$pageid"); ?>">
<?php include ''. $include .''; ?>
</body>

</html>