<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

if (!defined("IN_HOLOCMS")) { header("Location: index.php"); exit; }

if(empty($body_id)){
$body_id = "home";
}

 

?>
<body id="<?php echo $body_id; ?>" class="<?php if(!$logged_in){ echo "anonymous"; } ?> ">
<div id="overlay"></div>




<div id="header-container">
	<div id="header" class="clearfix">
		<h1><a href="../index.php"></a></h1>
       <div id="subnavi">
			<div id="subnavi-user">
                            <?php if($logged_in){ ?>
				<ul>
	<li id="myfriends"><a href="#"><span>I miei Amici</span></a><span class="r"></span></li>
	<li id="mygroups"><a href="#"><span>I miei Gruppi</span></a><span class="r"></span></li>
	<li id="myrooms"><a href="#"><span>Le mie Stanze</span></a><span class="r"></span></li>
				</ul>



                            <?php } elseif(!$logged_in){ ?>
                                <div class="clearfix">&nbsp;</div>
                            
<?php } ?>
			</div>
        <?php if(!$logged_in){ ?>
            <div id="subnavi-login">
                <form action="../index.php?anonymousLogin" method="post" id="login-form">
            		<input type="hidden" name="page" value="<?php echo $pageid; ?>" />
                    <ul>
                        <li>
                            <label for="login-username" class="login-text"><b>Username</b></label>
                            <input tabindex="1" type="text" class="login-field" name="username" id="login-username" />
		                    <a href="#" id="login-submit-new-button" class="new-button" style="float: left; display:none"><b>Entra</b><i></i></a>
                            <input type="submit" id="login-submit-button" value="Entra" class="submit"/>
                        </li>
                        <li>
                            <label for="login-password" class="login-text"><b>Password</b></label>
                            <input tabindex="2" type="password" class="login-field" name="password" id="login-password" />
                            <input tabindex="3" type="checkbox" name="_login_remember_me" value="true" id="login-remember-me" />
                            <label for="login-remember-me" class="left">Ricorda i miei dati</label>
                        </li>
                    </ul>
                </form>
                <div id="subnavi-login-help" class="clearfix">
                    <ul>
                        <li class="../register"><a href="../forgot/reset" id="forgot-password"><span>Ho dimenticato Username/password</span></a></li>
                    	<li><a href="../register-go"><span>Registrati, e' gratis!</span></a></li>
                    </ul>
                </div>
<div id="remember-me-notification" class="bottom-bubble" style="display:none;">
	<div class="bottom-bubble-t"><div></div></div>
	<div class="bottom-bubble-c">
					Cliccando qui, deciderai di restare connesso finch&egrave non cliccherai su 'Esci' 
	</div>
	<div class="bottom-bubble-b"><div></div></div>
</div>
            </div>
        </div>
		<script type="text/javascript">
			LoginFormUI.init();
			RememberMeUI.init("right");
		</script>
        <?php } else { ?>
            <div id="subnavi-search">
                <div id="subnavi-search-upper">
                <ul id="subnavi-search-links">
<li><a href="../stats"><font color="#42b1c5">Statistiche</font></a></li>
<li><a href="../logout" class="userlink">Esci</a></li>
	</ul>
                </div>
<br><br><a href="/client" class="new-button green-button" target="client" onclick="HabboClient.openOrFocus(this); return false;"><b>Entra in Hotel</b><i></i></a>
            </div>
        </div>
        <script type="text/javascript">
		L10N.put("purchase.group.title", "Crea un gruppo");
        </script>
        <?php } ?>
<ul id="navi">

        <?php if($pageid > 0 && $pageid < 4  || $pageid == "908" || $pageid == "myprofile"  && $logged_in == true){ ?>
        <li class="selected"><strong><?php echo $name; ?></strong><span></span></li><?php } elseif($logged_in == true){ ?>
        <li class=" "><a href="../index.php"><?php echo $name; ?></a><span></span></li><?php } elseif($logged_in !== true){ ?>
        <li id="tab-register-now"><a href="../register" target="_self">Registrati ora!</a><span></span></li><?php } ?>



<?php if($pageid == 4 || $pageid > 3  && $pageid < 6 || $pageid == "profile" || $pageid == "908" || $pageid == "com" || $pageid == "8" || $pageid == "9" || $pageid == "712" || $pageid == "staffapp" || $pageid == "802" || $pageid == "rare" || $pageid == "801" || $pageid == "999"){ ?>

	<li class="selected"><strong>Community</strong><span></span></li><?php } else { ?>
	<li class=" "><a href="../community">Community</a><span></span></li><?php } ?>
		
<?PHP if($pageid == "boutique" ||$pageid == "achaap" || $pageid == "respect" || $pageid == "rareshop" || $pageid == "royalclub" || $pageid == "shopvip" || $pageid == "vipclub" || $pageid == "shoproom" || $pageid == "shopbots" || $pageid == "badgeshop" || $pageid == "godia") { ?> <li class="selected"><strong>Negozio</strong><span></span></li> 
</li>
	<?PHP } else { ?>
	<li id="tab-register-now" class="tab-register-now"><a href="../shopbadge">Negozio</a><span></span>
	<?PHP } ?>	

<?PHP if($pageid == "80" || $pageid == "280") { ?>	<li class="selected"><strong>Promozioni</strong><span></span></li> 
</li>
	<?PHP } else { ?>
	<li id="tab-register-now" class="tab-register-now"><a href="../promo">Promozioni</a>	<span></span> 
	<?PHP } ?>		

        <?php if($user_rank > 5 && $logged_in == true){ ?>
	<?php 	$_SESSION['HK_SESSION_NAME'] = $name;
			$_SESSION['HK_RANK'] = $user_rank	?>
        <li id="tab-register-now">
<a href="../Amministrazione/" target="_self"><b>Amministrazione</b></a><span></span>
        <?php } ?>
</ul>


<div style="z-index:400;width: 64px; height: 73px; margin-bottom:-20px; margin-top:-47px; margin-right:170px; float: right; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&amp;action=wav&amp;direction=3&amp;head_direction=3&amp;gesture=srp&amp;size=b&amp;img_format=gif);"></div>

	<div id="habbos-online"><div class="rounded"><span><strong><?php echo $online_count; ?></strong> <?php echo $shortname; ?> Online</span></div></div>

	</div>
</div>

<div id="content-container">

<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">

	<ul>
	
	
<?php if($pageid > 0 && $pageid < 4 || $pageid == "908" || $pageid == "myprofile" || $pageid == "9000"){ ?>

	<?php if($pageid == "1"){ ?>
	<li class="selected">Home<?php } else { ?>
	<li class=""><a href="../me">Home</a><?php } ?>
</li>

	<?php if($pageid == "myprofile"){ ?>
	<li class="selected">La mia pagina<?php } else { ?>
	<li class=""><a href="../user_profile?name=<?php echo $rawname; ?>">La mia pagina</a><?php } ?>
</li>

	<?php if($pageid == "2" && $logged_in){ ?>
	<li class="selected">Impostazioni Account<?php } elseif($logged_in){ ?>
	<li class=""><a href="../profile">Impostazioni Account</a><?php } ?>
</li>

	<?php if($pageid == "9000"){ ?>
	<li class="selected">Sbugga<?php } else { ?>
	<li class=""><a href="../sbugga">Sbugga</a><?php } ?>


<?php } else if($pageid == 4 || $pageid > 3  && $pageid < 6 || $pageid == "profile" || $pageid == "712" || $pageid == "com" || $pageid == "8" || $pageid == "9" || $pageid == "999"){ ?>

	<?php if($pageid == "com"){ ?>
	<li class="selected">Community<?php } else { ?>
	<li class=" "><a href="../community">Community</a><?php } ?>

	<?php if($pageid == "4"){ ?>
	<li class="selected">News<?php } else { ?>
	<li class=" "><a href="../news">News</a><?php } ?>

	<?php if($pageid == "8"){ ?>
	<li class="selected"><?php } else { ?>
	<li class=" "><a href="../"></a><?php } ?>

	<?php if($pageid == "9"){ ?>
	<li class="selected">Fm e Dj<?php } else { ?>
	<li class=" "><a href="../soccer">Soccer</a><?php } ?>

	<?php if($pageid == "999"){ ?>
	<li class="selected">Vip<?php } else { ?>
	<li class=" "><a href="../vip">Vip</a><?php } ?>

	<?php if($pageid == "712"){ ?>
	<li class="selected">Classifiche<?php } else { ?>
	<li class=" "><a href="../classifiche">Classifiche</a><?php } ?>
              
<?php } else if($pageid == "9999" || $pageid > 5 && $pageid < 8 || $pageid == "9999b"){ ?>

	<?php if($pageid == "9999"){ ?>
	<li class="selected ">Promozioni<?php } else { ?>
	<li class=" "><a href="../promo">Promozioni</a><?php } ?>

	<?php if($pageid == "7"){ ?>
	<li class="selected last">Crediti<?php } else { ?>
	<li class=" last"><a href="../credits">Crediti</a><?php } ?>

<?php } ?>
</li>
				
<?PHP if($pageid == "boutique" ||$pageid == "achaap" ||$pageid == "shopvip" || $pageid == "respect" || $pageid == "rareshop" || $pageid == "royalclub" || $pageid == "jetons" || $pageid == "vipclub" || $pageid == "shoproom" || $pageid == "shopbots" || $pageid == "badgeshop" || $pageid == "godia") { ?>

	<?PHP if($pageid == "badgeshop") { ?>
	<li class=" selected">Badge Shop</li><?PHP } else { ?>
	<li class=""><a href="../shopbadge">Badge Shop</a></li><?PHP } ?>
	
	<?PHP if($pageid == "rareshop") { ?>
	<li class=" selected">Rari Shop</li><?PHP } else { ?>
	<li class=""><a href="../rareshop">Rari Shop</a></li><?PHP } ?>
	
	<?PHP if($pageid == "shoproom") { ?>
	<li class=" selected">Room Shop</li><?PHP } else { ?>
	<li class=""><a href="../roomshop">Room Shop</a></li><?PHP } ?>

	<?PHP if($pageid == "respect") { ?>
	<li class=" selected">VIP Shop</li><?PHP } else { ?>
	<li class=""><a href="../shopvip">VIP Shop</a></li><?PHP } ?>

<?PHP } ?>	
</li>
</ul>


	</div>
</div>

<?php if($notify_maintenance){ ?>
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px; width: 75%"><b>Attenzione:</b> l'Hotel &egrave momentaneamente in Manutenzione!</div>
<?php } ?>



       </div>
