<div id="header-container"> 
	<div id="header" class="clearfix"> 
		<h1><a href="<?PHP echo $url; ?>"></a></h1> 
       <div id="subnavi"> 
			<div id="subnavi-user"> 
							<ul> 
					<li id="myfriends"><a href="">Mes Amis</a><span class="r"></span></li> 
					<li id="mygroups"><a href="">Mes Clans</a><span class="r"></span></li> 
					<li id="myrooms"><a href="">Mes Apparts</a><span class="r"></span></li> 
				</ul> 
						</div> 
			            <div id="subnavi-search"> 
                <div id="subnavi-search-upper"> 
                <ul id="subnavi-search-links"> 
                    <li><a href="<?PHP echo $url; ?>/help.php" target="habbohelp" onclick="openOrFocusHelp(this); return false">Questions fr&eacute;quentes</a></li> 
					<li><a href="<?PHP echo $url; ?>/logout.php" class="userlink" id="signout">Quitter</a></li> 
				</ul> 
                </div> 
            </div> 
            <div id="to-hotel"> 
			 

					    <a href="<?PHP echo $url; ?>/client.php" class="new-button green-button" target="uberClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Acc&eacute;der &agrave; <?PHP echo $sitename; ?></b><i></i></a> 
						<?PHP if($user['rank'] >= 4) { echo '
						<br><br><br><a href="'.$url.'/administration/" class="new-button red-button"><b>Administration</b><i></i></a>';
						} ?>
						
						</div>            
        </div> 
        <script type="text/javascript"> 
		L10N.put("purchase.group.title", "Create a group");
		document.observe("dom:loaded", function() {
            $("signout").observe("click", function() {
                HabboClient.close();
            });
        });
        </script>

				
<ul id="navi"> 
	<!-- BOUTTON JOUEUR -->
	<?PHP if($pageid == "accueil" || $pageid == "option" || $pageid == "debug") { ?>
	<li  class="metab selected"><strong><?PHP echo $user['username']; ?> ( <b><img src="<?PHP echo $imagepath; ?>images/icon_habbo_small.png" style="vertical-align: bottom;"></b> )</strong>	<span></span> 
	</li>
	<?PHP } else { ?>
	<li  class=""><a href="<?PHP echo $url; ?>/me.php"><?PHP echo $user['username']; ?> ( <b><img src="<?PHP echo $imagepath; ?>images/icon_habbo_small.png" style="vertical-align: bottom;"></b> )</a>	<span></span> 
	</li>
	<?PHP } ?>
	<!-- FIN DU BOUTTON JOUEUR -->
	
	<!-- BOUTTON COMMUNAUTE -->
	<?PHP if($pageid == "communaute" || $pageid == "articles" || $pageid == "staff") { ?>
	<li  class="selected"><a href="<?PHP echo $url; ?>/community.php">Communaut&eacute;</a>	<span></span> 
	</li>
	<?PHP } else { ?>
	<li  class=""><a href="<?PHP echo $url; ?>/community.php">Communaut&eacute;</a>	<span></span> 
	</li>
	<?PHP } ?>
	<!-- FIN DU BOUTTON COMMUNAUTE -->
	
	<!-- BOUTTON CREDITS -->
	<?PHP if($pageid == "credits" || $pageid == "pixels") { ?>
	<li  class="selected"><a href="<?PHP echo $url; ?>/credits.php">Cr&eacute;dits <?PHP echo $sitename; ?></a>	<span></span> 
	</li>
	<?PHP } else { ?>
	<li  class=""><a href="<?PHP echo $url; ?>/credits.php">Cr&eacute;dits <?PHP echo $sitename; ?></a>	<span></span> 
	</li>
	<?PHP } ?>
	<!-- FIN DU BOUTTON CREDITS -->
	
	<!-- BOUTTON BOUTIQUE -->
	<?PHP if($pageid == "boutique" || $pageid == "rareshop" || $pageid == "badgeshop" || $pageid == "jetons" || $pageid == "vipclub") { ?>
	<li class="selected"><a href="<?PHP echo $url; ?>/jetons.php">Boutique</a>	<span></span> 
	</li>
	<?PHP } else { ?>
	<li id="tab-register-now" class="tab-register-now"><a href="<?PHP echo $url; ?>/jetons.php">Boutique</a>	<span></span> 
	<?PHP } ?>
</ul> 
		<div id="habbos-online"><div class="rounded"><span><?PHP echo SystemConfig('users_online'); ?> connect&eacute;s</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 == "accueil" || $pageid == "option" || $pageid == "debug") { ?>
	<?PHP if($pageid == "accueil") { ?>
	<li class=" selected">Accueil</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/me.php">Accueil</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "option") { ?>
	<li class="selected"><a href="<?PHP echo $url; ?>/profile.php">Mes Pr&eacute;ferences</a></li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/profile.php">Mes Pr&eacute;ferences</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "debug") { ?>
	<li class="selected"><a href="<?PHP echo $url; ?>/debuguser.php">Debug&eacute; mon Compte</a></li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/debuguser.php">Debug&eacute; mon Compte</a></li>
	<?PHP } ?>	
	<?PHP } ?>

	<?PHP if($pageid == "communaute" || $pageid == "articles" || $pageid == "staff") { ?>
	<?PHP if($pageid == "communaute") { ?>
	<li class=" selected">Communaut&eacute;</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/community.php">Communaut&eacute;</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "articles") { ?>
	<li class=" selected">Ev&egrave;nement</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/articles.php">Ev&egrave;nement</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "staff") { ?>
	<li class=" selected">Staff</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/staff.php">Staff</a></li>
	<?PHP } ?>
	<?PHP } ?>
	
	<?PHP if($pageid == "credits" || $pageid == "pixels") { ?>
	<?PHP if($pageid == "credits") { ?>
	<li class=" selected">Cr&eacute;dits <?PHP echo $sitename; ?></li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/credits.php">Cr&eacute;dits <?PHP echo $sitename; ?></a></li>
	<?PHP } ?>
	<?PHP if($pageid == "pixels") { ?>
	<li class=" selected">Pixels</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/pixels.php">Pixels</a></li>
	<?PHP } ?>
	<?PHP } ?>
	
	<?PHP if($pageid == "boutique" || $pageid == "rareshop" || $pageid == "badgeshop" || $pageid == "jetons" || $pageid == "vipclub") { ?>
	<?PHP if($pageid == "jetons") { ?>
	<li class=" selected">Jetons</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/jetons.php">Jetons</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "vipclub") { ?>
	<li class=" selected">VIP Club</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/clubvip.php">VIP Club</a></li>
	<?PHP } ?>
	<?PHP if($pageid == "badgeshop") { ?>
	<li class=" selected">BadgeShop</li>
	<?PHP } else { ?>
	<li class=""><a href="<?PHP echo $url; ?>/shopbadge.php">BadgeShop</a></li>
	<?PHP } ?>
	<?PHP } ?>
	
	
	
	</ul> 
    </div> 

</div> 