<?php
$promo = mysql_query("SELECT * FROM promo WHERE page = '$page'");
$online = $mysql->UsersOnline();
$mainmenu[all] = mysql_query("SELECT * FROM menu WHERE who = 'all'");
$mainmenu[admin] = mysql_query("SELECT * FROM menu WHERE who = 'admin'");
$promonews = mysql_query("SELECT * FROM news");
$v3boxcol[1] = mysql_query("SELECT * FROM pages WHERE page = '$page' AND colum = '1'");
$v3boxcol[2] = mysql_query("SELECT * FROM pages WHERE page = '$page' AND colum = '2'");
$v3boxcol[3] = mysql_query("SELECT * FROM pages WHERE page = '$page' AND colum = '3'");
?>
<body id="home" >


<div id="overlay"></div>

<h1 id="main-header"><?php echo("$name"); ?></h1>


<div id="wrapper">
		<div align="center"><div class="ad-scale ad-leader">
	<table>
		<tr><td class="ad-header-tl"></td><td class="ad-header-t"></td><td class="ad-header-tr"></td></tr>

		<tr><td class="ad-header-ml"></td><td class="ad-header-m"><h5>Advertisement</h5></td><td class="ad-header-mr"></td></tr>
		<tr><td class="ad-content-ml"></td><td class="ad-content-m" align="center" valign="top">
Ads coming later.
</td><td class="ad-content-mr"></td></tr>
		<tr><td class="ad-content-bl"></td>	<td class="ad-content-b"></td><td class="ad-content-br"></td></tr>
	</table>

</div>
</div>
<div id="top_wrap">
	<div id="top">
		<div id="topdim"></div>
		<div id="top-elements">
			<table id="topbar">
			<tr>
				<td id="topbar-count">
<?php echo("$online"); ?> Habbos Online
		</td>
				<td id="topbar-menu" align="center">
					<ul>
						<li id="myhabbo" class="selected" onmouseover="switchTab('myhabbo')">
							<div><a href="#" class="topbar-menu-link" onclick="return false;">My Habbo</a></div>
						</li><li id="mycredits" onmouseover="if (switchTab('mycredits') && document.habboLoggedIn) updateCredits()" onmouseout="fadeTab('myhabbo')">
							<div><a href="#" class="topbar-menu-link" onclick="return false;">My Credits</a></div>
						</li><li id="habboclub" onmouseover="if (switchTab('habboclub') && document.habboLoggedIn) updateHabboClub()" onmouseout="fadeTab('myhabbo')">
							<div><a href="#" class="topbar-menu-link" onclick="return false;">Habbo Club</a></div>

						</li>
					</ul>
				</td>
				<td id="topbar-status" class="<?php if ($logedin == 'true') { ?>  loggedin <?php } else { ?> notloggedin <?php } ?>">
						<?php if ($logedin == 'true') { ?>Logged in as <b><?php echo("$habboname"); ?></b><?php } else { ?>Not logged in<?php } ?>
						
				</td>
			</tr>
			</table>

			<div id="habbologo"><a href="<?php echo("$sitepath"); ?>"></a></div>
			    <div id="enter-hotel">
	                <a href="<?php echo("$sitepath"); ?>client" id="enter-hotel-link" target="client" onclick="openOrFocusHabbo(this); return false;"></a>
	            </div>
        <?php include("tab.php"); ?>
		</div>
		<script language="JavaScript" type="text/javascript">
		$("tabmenu").style.left = (Position.cumulativeOffset($("myhabbo"))[0] - Position.cumulativeOffset($("top"))[0]) + "px";
		</script>
		<div id="mainmenu">
	          <ul>
	              <li id="leftspacer">&nbsp;</li>
	                         <li <?php echo("$homeactive"); ?>>
	                         		<span class="left"></span>
	                         		<a href="<?php echo("$sitepath"); ?>index.html"><img src="<?php echo("$imgpath"); ?>images/navi_icons/tab_icon_02_hotel.gif" alt=""/> HOME</a>
	                         		<span class="right"></span>
	                         </li>
	                         <?php if(!mysql_num_rows($mainmenu[all])=="0"){
	                         	while($menu = mysql_fetch_array($mainmenu[all])){ ?>
	                         <li <?php if($page == $menu[url]) { ?>id="active" <?php } ?>>
	                         		<span class="left"></span>
	                         		<a href="<?php echo("$sitepath"); ?><?php echo("$menu[url]"); ?>"><img src="<?php echo("$imgpath"); ?><?php echo("$menu[img]"); ?>" alt=""/> <?php echo("$menu[name]"); ?></a>
	                         		<span class="right"></span>
	                         </li>
	                         <?php } ?>
	                         <?php if($edit == 'yes') {
	                         	while($menu = mysql_fetch_array($mainmenu[admin])){ ?>
	                         <li <?php if($page == $menu[url]) { ?>id="active" <?php } ?>>
	                         		<span class="left"></span>
	                         		<a href="<?php echo("$sitepath"); ?><?php echo("$menu[url]"); ?>"><img src="<?php echo("$imgpath"); ?><?php echo("$menu[img]"); ?>" alt=""/> <?php echo("$menu[name]"); ?></a>
	                         		<span class="right"></span>
	                         </li>
	                         <?php } } } if($edit == 'yes') { ?>
	                         <li >
	                         		<span class="left"></span>
	                         		<a href="<?php echo("$sitepath"); ?>acp"><img src="<?php echo("$imgpath"); ?>images/navi_icons/tab_icon_02_hotel.gif" alt=""/> ACP</a>
	                         		<span class="right"></span>
	                         </li>
	                         <?php } ?>
	                         <li class="last">
	                         		<span class="left"></span>
	                         		<a href="<?php echo("$sitepath"); ?>help"><img src="<?php echo("$imgpath"); ?>images/navi_icons/tab_icon_08_hep.gif" alt=""/> HELP</a>
	                         		<span class="right"></span>
	                         </li>
	         </ul>
	     </div>
	     <?php if($page == 'home' && $path[1] == 'edit') { ?>
	     <div id="main-content">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-home">
				<iframe src="/home/edit/frame/<?php echo("$homez"); ?>" width="100%" height="800px" frameborder="0" scrolling="no"></iframe>
	     <?php } else { ?>
	     <div id="submenu">
	        <?php if($habboname == $homez && !$edithome=="true" && $page == 'home'){ ?><a href="edit/<?php echo $homez; ?>"><div id="edit-button"></div></a><?php } ?>
	        <?php if($_SESSION[edit] == 'true' && $edit == 'yes') { ?>
	        <?php if($page == 'acp') { 
	        } else { 
	          if($page == 'home') {
	          } else {
	           ?>
	        <a href="<?php echo("$sitepath"); ?><?php echo("$page") ?>/exit" alt=""><div id="cancel-button"></div></a>
	        <?php } } } ?>
	        <?php 
	        if($edit == 'yes') {
	         if($page == 'home') { 
	          } else {
	           if($page == 'acp') { 
	           } else {
	           if($_SESSION[edit] == 'true') { 
	          } else {
	         ?>
	        <a href="<?php echo("$sitepath"); ?><?php echo("$page") ?>/edit"><div id="edit-button"></div></a>
	        <?php } } } } ?>
             <div class="subnav">
	         </div>
	     </div>

	</div>
</div>

<?php if($page == 'home' or $page == 'profile') { ?>
<div id="main-content">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-home">
		
<?php } else { ?>
<div id="main-content">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-home">

	<tr><td colspan="6" style="height: 4px;"></td></tr>

	<tr>
	
		<td rowspan="2" style="width: 8px;">&nbsp;</td>

	
		<td valign="top" style="width: 740px;">
		
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr><td colspan="4" style="padding-bottom: 3px;">
				<?php } ?>
				<?php if($page == 'acp' && $edit == 'yes') { ?>
				
				
				
				<td valign="top" style="width: 215px;" class="habboPage-col">	
				
				<div class="v3box black">
				<div class="v3box-top"><h3>ADD A Page</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="Addpage-form">
				<p>
				<input type="hidden" value="addpage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="menu name" name="name" id="name" />
				</p>
				<p>
				<input type="text" value="url  e.g credits" name="url" id="url" />
				</p>
				<p class="last">
				<input type="submit" value="ADD" name="ADD" class="process-button" id="addmenu-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>
				
				<div class="v3box black">
				<div class="v3box-top"><h3>Make Page Open to all</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="open-form">
				<p>
				<input type="hidden" value="openpage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="Page name" name="name" id="name" />
				</p>
				<p class="last">
				<input type="submit" value="GO" name="GO" class="process-button" id="open-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>


				</td>
        <td valign="top" style="width: 215px;" class="habboPage-col">	
        
        <div class="v3box black">
				<div class="v3box-top"><h3>Delete A Page</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="Deletepage-form">
				<p>
				<input type="hidden" value="deletepage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="name" name="name" id="name" />
				</p>
				<p class="last">
				<input type="submit" value="Delete" name="Delete" class="process-button" id="Delete-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>
				
				<div class="v3box black">
				<div class="v3box-top"><h3>Close A Page</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="close-form">
				<p>
				<input type="hidden" value="closepage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="Page name" name="name" id="name" />
				</p>
				<p class="last">
				<input type="submit" value="GO" name="GO" class="process-button" id="close-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>
				
				</td>
				<td valign="top" style="width: 215px;" class="habboPage-col rightmost">
				<div class="v3box black">
				<div class="v3box-top"><h3>Rename A Page</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="Rename-form">
				<p>
				<input type="hidden" value="renamepage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="name" name="name" id="name" />
				</p>
				<p>
				<input type="text" value="New Name" name="other" id="other" />
				</p>
				<p class="last">
				<input type="submit" value="Rename" name="rename" class="process-button" id="Rename-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>
				</td>
				
				<td valign="top" style="width: 215px;" class="habboPage-col rightmost">
				<div class="v3box black">
				<div class="v3box-top"><h3>Change Image</h3></div>
				<div class="v3box-content">
				<div class="v3box-body">
				<form action="<?php echo("$sitepath"); ?>acp" method="post" id="Rename-form">
				<p>
				<input type="hidden" value="editpageimage" name="menu" id="menu" />
				</p>
				<p>
				<input type="text" value="name" name="name" id="name" />
				</p>
				<p>
				<input type="text" value="New Image URL" name="other" id="other" />
				</p>
				<p class="last">
				<input type="submit" value="Edit" name="Edit" class="process-button" id="Rename-submit" />
				</p>
				</form>
				<div class="clear"></div></div></div>
				<div class="v3box-bottom"><div></div></div></div>
				</td>
				
				<td rowspan="2" valign="top" style=" margin-left: 4px; width: 150px;">
				</td>
				<?php } elseif($page == 'home') { ?><?php 
				
				
				include 'homes.php';
				 ?><?php } elseif($page == 'profile' && $logedin == 'true') {
				 ?>
				 <link href="http://images.habbohotel.com/habboweb/17/13d/web-gallery/styles/profile.css" type="text/css" rel="stylesheet"/>
				 <?
				 include 'profile.php';
				 
				 } else { ?>
<?
if(!mysql_num_rows($promo)=="0"){
while($promoinfo = mysql_fetch_array($promo)){
include 'changer.php';
?>
<script type="text/javascript">
var promoPages = [
	{ image: "<img src=\"<?php echo("$promoinfo[image1]") ?>\" / alt=\"\"\>", links: [
			"<a href=\"<?php echo("$sitepath") ?>account/login\" target=\"account/login\" onclick=\"openOrFocusHabbo(this); return false;\"\>Register</a\>"
			, 
			"<a href=\"<?php echo("$sitepath") ?>client\" target=\"client\" onclick=\"openOrFocusHabbo(this); return false;\"\>Enter Hotel</a\>"
			
	], text:"<?php echo("$promoinfo[bottom1]") ?><br /\>" },

	{ image: "<img vspace=\"0\" hspace=\"0\" border=\"0\" align=\"bottom\" src=\"<?php echo("$promoinfo[image2]") ?>\" / alt=\"\"\>", links: [
			"<a href=\"<?php echo("$sitepath") ?><?php echo("$promoinfo[link2]") ?>\"><?php echo("$promoinfo[button2]") ?></a>", 
			"<a href=\"<?php echo("$sitepath") ?>client\" target=\"client\" onclick=\"openOrFocusHabbo(this); return false;\"\>Enter the Hotel</a\>"
			
	], text:"<?php echo("$promoinfo[bottom2]") ?><br /\>" },

	{ image: "<img vspace=\"0\" hspace=\"0\" border=\"0\" src=\"<?php echo("$promoinfo[image3]") ?>\" / alt=\"\"\>", links: [
			"<a href=\"<?php echo("$sitepath") ?><?php echo("$promoinfo[link3]") ?>\"><?php echo("$promoinfo[button3]") ?></a>", 
			"<a href=\"<?php echo("$sitepath") ?>client\" target=\"client\" onclick=\"openOrFocusHabbo(this); return false;\"\>Enter Hotel</a\>"
			
	], text:"<?php echo("$promoinfo[bottom3]") ?><br /\>" },

	{ image: "<img src=\"<?php echo("$promoinfo[image4]") ?>\" / alt=\"\"\>", links: [
			"<a href=\"<?php echo("$sitepath") ?><?php echo("$promoinfo[link4]") ?>\"><?php echo("$promoinfo[button4]") ?></a>", 
			"<a href=\"<?php echo("$sitepath") ?>client\" target=\"client\" onclick=\"openOrFocusHabbo(this); return false;\"\>Enter the Hotel</a\>"
			
	], text:"<?php echo("$promoinfo[bottom4]") ?><br /\>" },

	{ image: "<img src=\"<?php echo("$promoinfo[image5]") ?>\" / alt=\"\"\>", links: [
			"<a href=\"<?php echo("$sitepath") ?><?php echo("$promoinfo[link5]") ?>\"><?php echo("$promoinfo[button5]") ?></a>", 
			"<a href=\"<?php echo("$sitepath") ?>client\" target=\"client\" onclick=\"openOrFocusHabbo(this); return false;\"\>Enter the Hotel</a\>"
			
	], text:"<?php echo("$promoinfo[bottom5]") ?><br /\>" }
];
</script>
<div id="promoarea">
  <div id="promoheader">
    <h2>Top stories</h2>
    <ul style="display: none" id="promoheader-selectors">
      <li><a href="#" class="selected" onclick="showPromo(0); return false;">1</a></li>
      <li><a href="#" onclick="showPromo(1); return false;">2</a></li>
      <li><a href="#" onclick="showPromo(2); return false;">3</a></li>
      <li><a href="#" onclick="showPromo(3); return false;">4</a></li>
      <li><a href="#" onclick="showPromo(4); return false;">5</a></li>
    </ul>
	<script type="text/javascript">
	$('promoheader-selectors').style.display = "block";
	</script>
  </div>
  <div id="promocontent">
    <div id="promobody">
      <p id="promoimage">
<a href="<?php echo("$sitepath") ?>client" target="client" onclick="openOrFocusHabbo(this); return false;">
<img src="<?php echo("$promoinfo[image1]") ?>" / alt="">
</a>      	
      </p>
      <div class="promotext"><p id="promotext-content">
<?php echo("$promoinfo[bottom1]") ?><br /></p></div>
      <div id="promolinks">

      <ul id="promolinks-list">
          <li><a href="<?php echo("$sitepath") ?>account/login" target="client" onclick="openOrFocusHabbo(this); return false;">Register</a></li>
          <li><a href="<?php echo("$sitepath") ?>client" target="client" onclick="openOrFocusHabbo(this); return false;">Enter Hotel</a></li>
      </ul>
      </div>
    </div>
  </div>
</div>
<div id="newsbox">
	<div id="newsbox-header">
		<h2>What's New</h2>
	</div>
	<div id="newsbox-text">
<?
	if(!mysql_num_rows($promonews)=="0"){
	while($news = mysql_fetch_array($promonews)){
?>
<?php if($news[newdate] == 'yes') { ?><div class="hr">&nbsp;</div><?php } ?>

		<div class="newsitem">		
			<h3><span class="articledate"><?php echo("$news[date]"); ?></span> 			
			<a href="<?php echo("$news[url]"); ?>"><?php echo("$news[title]"); ?></a></h3>
			<p>
				<?php echo("$news[comment]"); ?>
			</p>
		</div>
		<?php } } ?>
	<div id="newsbox-footer">
		<div class="promo-button"><a href="/news" alt="">More News</a></div>
	</div>
</div>
</td>
</tr>
<tr>
<?php } } ?>
	<td valign="top" style="width: 215px;" class="habboPage-col">	
		<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		<a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>addbox=1&colum=1&page=<?php echo("$page"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/add.gif" alt=""/></a>Add Box
	  <?php } ?>
	  <?
	  if(!mysql_num_rows($v3boxcol[1])=="0"){
	  while($v3box = mysql_fetch_array($v3boxcol[1])){
	  if($edit == 'yes' && $_SESSION[edit] == 'true') { } else {
		include 'changer.php'; }
	  ?>
    <div class="v3box <?php echo("$v3box[colore]") ?>">
     <?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		 <form action="<?php echo("$sitepath"); ?><?php echo("$page"); ?><?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>id=<?php echo("$v3box[id]"); ?>" method="post" id="change-form">
		 <div class="v3box-top"><h3><input type="text" value="<?php echo("$v3box[title]") ?>" name="title" id="title" />&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><br><?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
     </h3></div>
	   <div class="v3box-content">
		 <div class="v3box-body">
		 <p>
		 <textarea name="boxcontent" id="boxcontent" cols="20" rows="12"/><?php echo("$v3box[content]"); ?></textarea>
		 </p>
		 <p class="last">
		<input type="submit" value="change" name="save" class="process-button" id="change-submit" />
	</p>
</form>
		<?php } else { ?>
			<div class="v3box-top"><h3><?php echo("$v3box[title]") ?>&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><?php if($edit == 'yes' && $_GET[editcolore] == 'true' && $_SESSION[edit] == 'true') { ?><a href="<?php ("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
</h3></div>
	<div class="v3box-content">
		<div class="v3box-body">
<?php echo("$v3box[content]") ?><?php } ?>
			<div class="clear"></div>

		</div>
	</div>
	<div class="v3box-bottom"><div></div></div>
</div>
<?php } } ?>
</td>
<td valign="top" style="width: <?php if($page == 'credits') { ?>310<?php } else { ?>215<?php } ?>px;" class="habboPage-col">	
	<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		<a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>addbox=1&colum=2&page=<?php echo("$page"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/add.gif" alt=""/></a>Add Box
	<?php } ?>
<?
if(!mysql_num_rows($v3boxcol[2])=="0"){
while($v3box = mysql_fetch_array($v3boxcol[2])){
if($edit == 'yes' && $_SESSION[edit] == 'true') { } else {
include 'changer.php'; }
?>
    <div class="v3box <?php echo("$v3box[colore]") ?>">
     <?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		 <form action="<?php echo("$sitepath"); ?><?php echo("$page"); ?><?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>id=<?php echo("$v3box[id]"); ?>" method="post" id="change-form">
		 <div class="v3box-top"><h3><input type="text" value="<?php echo("$v3box[title]") ?>" name="title" id="title" />&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><br><?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
     </h3></div>
	   <div class="v3box-content">
		 <div class="v3box-body">
		 <p>
		 <textarea name="boxcontent" id="boxcontent" cols="<?php if($page == 'credits') { ?>32<?php } else { ?>20<?php } ?>" rows="12"/><?php echo("$v3box[content]"); ?></textarea>
		 </p>
		 <p class="last">
		<input type="submit" value="change" name="save" class="process-button" id="change-submit" />
	</p>
</form>
		<?php } else { ?>
			<div class="v3box-top"><h3><?php echo("$v3box[title]") ?>&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><?php if($edit == 'yes' && $_GET[editcolore] == 'true' && $_SESSION[edit] == 'true') { ?><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
</h3></div>
	<div class="v3box-content">
		<div class="v3box-body">
<?php echo("$v3box[content]") ?><?php } ?>
			<div class="clear"></div>

		</div>
	</div>
	<div class="v3box-bottom"><div></div></div>
</div>
<?php } } ?>
<?php if($page == 'credits') { ?>
<?
$credits = $mysql->GetUser($_SESSION['username'], 'credits');
?>
<div class="nobox">
	
	<div class="nobox-content">		
 <div class="v2box brown darkest">
	<div class="headline"><h3>My Habbo Purse</h3></div>
	<div class="border"><div></div></div>
	<div class="body">
<p>
You can use Habbo Coins for buying furniture and playing games in Habbo Hotel or enhancing your Habbo Home page content. <a href="/credits">Learn more!</a>
</p>
<?php if ($_SESSION['login'] == 'true') { ?>

<div class="purse-balance">
	You have <span class="purse-balance-amount">&nbsp;<span class="habbocredits"><?php echo("$credits") ?></span>&nbsp;</span> Habbo Coins
</div>


<div class="purse-buymore">
	<a href="credits" class="colorlink"><span>Buy more coins</span></a>
</div>


<div id="purse-redeem">
	
	<div id="purse-form-container" >
<?
 if ($code == 'yes') { ?>
thank you for purchasing habbo coins.
<?php } else { ?>
	If you have a Coins or furniture redemption code, enter it below to get your stuff.
	<?php } ?>
	<form method="post" action="<?php echo("$sitepath"); ?>credits" id="purse-redeem-form">
		<input type="text" name="redeem-code" size="30" id="redeem-code" />
		<input type="hidden" name="doRedeem" value="yes" id="doredeem"/>
		<input type="image" src="<?php echo("$imgpath"); ?>images/button/arrow_button.gif" class="arrow-button" align="top"/>
	</form>
	</div>
</div>
<?php } else { ?>
<p>
<a href="credits" class="colorlink"><span>Buy more coins</span></a>
</p>

<div id="purse-redeem">
<div>
	<div class="content-beige">
		<div class="content-beige-body">
	You are not logged in.
		<div class="clear"></div>
		</div>

	</div>
	<div class="content-beige-bottom">
		<div class="content-beige-bottom-body"></div>
	</div>
</div>
</div>
<?php } ?>
		<div class="clear"></div>
	</div>
	<div class="bottom"><div></div></div>
</div>
</div>
<?php } ?>
					</td>
					</td>
					<td valign="top" style="width: 310px;" class="habboPage-col rightmost">
							<?php if($ads == 'yes') { ?>
							<div class="ad-scale ad300">
	<table>
		<tr><td class="ad-header-tl"></td><td class="ad-header-t"></td><td class="ad-header-tr"></td></tr>
		<tr><td class="ad-header-ml"></td><td class="ad-header-m"><h5>Advertisement</h5></td><td class="ad-header-mr"></td></tr>
		<tr><td class="ad-content-ml"></td><td class="ad-content-m" align="center" valign="top"><script language='JavaScript' type='text/javascript'>
<!--
   var awrz_rnd = Math.floor(Math.random()*99999999999);
   var awrz_protocol = location.protocol.indexOf('https')>-1?'https:':'http:';
   if (!document.phpAds_used) document.phpAds_used = ',';
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write (awrz_protocol+"//ads.habbohotel.co.uk/max/adjs.php?n=a77de0ac");
   document.write ("&zoneid=713");
   document.write ("&exclude=" + document.phpAds_used);
   document.write ("&loc=" + escape(window.location));
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ('&r=' + awrz_rnd);
   document.write ("&ct0=" + escape(document.phpAds_ct0));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads.habbohotel.co.uk/max/adclick.php?n=a77de0ac' target='_blank'><img src='http://ads.habbohotel.co.uk/max/adview.php?zoneid=713&n=a77de0ac' border='0' alt=''></a></noscript>
</td><td class="ad-content-mr"></td></tr>
		<tr><td class="ad-content-bl"></td>	<td class="ad-content-b"></td><td class="ad-content-br"></td></tr>
	</table>
</div>
<?php } ?>
		<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		<a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>addbox=3&colum=1&page=<?php echo("$page"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/add.gif" alt=""/></a>Add Box
	  <?php } ?>
	  <?
	  if(!mysql_num_rows($v3boxcol[3])=="0"){
	  while($v3box = mysql_fetch_array($v3boxcol[3])){
	  if($edit == 'yes' && $_SESSION[edit] == 'true') { } else {
		include 'changer.php'; }
	  ?>
    <div class="v3box <?php echo("$v3box[colore]") ?>">
     <?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?>
		 <form action="<?php echo("$sitepath"); ?><?php echo("$page"); ?><?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>id=<?php echo("$v3box[id]"); ?>" method="post" id="change-form">
		 <div class="v3box-top"><h3><input type="text" value="<?php echo("$v3box[title]") ?>" name="title" id="title" />&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><br><?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
     </h3></div>
	   <div class="v3box-content">
		 <div class="v3box-body">
		 <p>
		 <textarea name="boxcontent" id="boxcontent" cols="20" rows="12"/><?php echo("$v3box[content]"); ?></textarea>
		 </p>
		 <p class="last">
		<input type="submit" value="change" name="save" class="process-button" id="change-submit" />
	</p>
</form>
		<?php } else { ?>
			<div class="v3box-top"><h3><?php echo("$v3box[title]") ?>&nbsp<?php if($edit == 'yes' && $_SESSION[edit] == 'true') { ?> <a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>nobox=1&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/del.gif" alt=""/></a><?php } ?><?php if($edit == 'yes' && $_GET[editcolore] == 'true' && $_SESSION[edit] == 'true') { ?><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=blue&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/blue.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=green&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/green.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=black&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/black.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=orange&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/orange.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=yellow&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/yellow.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=lightgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/lightgrey.gif" alt=""/></a><a href="<?php echo("$page"); ?><?php if($htaccess == 'v0') { ?>?<?php } ?><?php  if($htaccess == 'v1') { ?>&<?php } ?>boxcolore=darkgrey&id=<?php echo("$v3box[id]"); ?>" alt=""><img src="<?php echo("$imgpath"); ?>images/button/darkgrey.gif" alt=""/></a><?php } ?>
</h3></div>
	<div class="v3box-content">
		<div class="v3box-body">
<?php echo("$v3box[content]") ?><?php } ?>
			<div class="clear"></div>
		</div>
	</div>
	<div class="v3box-bottom"><div></div></div>
</div>
<?php } } ?>
</tr>
</table>
</td>
<td rowspan="2" style="width: 4px;"></td>

		<td rowspan="2" valign="top" style=" margin-left: 4px; width: 176px;"><?php if($ads == 'yes') { ?>
<div id="ad_sidebar">
<div class="cooperation"><table height="120" width="168" valign='middle' align='center' border="0" cellpadding="0" cellspacing="0" background="http://images.habbohotel.ch/c_images/themes/partner_box.gif">
<tr><td>


<script language='JavaScript' type='text/javascript'>
<!--
   var awrz_rnd = Math.floor(Math.random()*99999999999);
   var awrz_protocol = location.protocol.indexOf('https')>-1?'https:':'http:';
   if (!document.phpAds_used) document.phpAds_used = ',';
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write (awrz_protocol+"//ads.habbogroup.com/max/adjs.php?n=a452162c");
   document.write ("&zoneid=1094");
   document.write ("&exclude=" + document.phpAds_used);
   document.write ("&loc=" + escape(window.location));
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ('&r=' + awrz_rnd);
   document.write ("&ct0=" + escape(document.phpAds_ct0));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads.habbogroup.com/max/adclick.php?n=a452162c' target='_blank'><img src='http://ads.habbogroup.com/max/adview.php?zoneid=1094&n=a452162c' border='0' alt=''></a></noscript>


</td></tr>
</table></div><?php } ?>
<?php if($ads == 'yes') { ?>
			
	<div class="ad-scale ad160">

	<table>
		<tr><td class="ad-header-tl"></td><td class="ad-header-t"></td><td class="ad-header-tr"></td></tr>
		<tr><td class="ad-header-ml"></td><td class="ad-header-m"><h5>Advertisement</h5></td><td class="ad-header-mr"></td></tr>
		<tr><td class="ad-content-ml"></td><td class="ad-content-m" align="center" valign="top"><script language='JavaScript' type='text/javascript'>
<!--
   var awrz_rnd = Math.floor(Math.random()*99999999999);
   var awrz_protocol = location.protocol.indexOf('https')>-1?'https:':'http:';
   if (!document.phpAds_used) document.phpAds_used = ',';
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write (awrz_protocol+"//ads.habbohotel.co.uk/max/adjs.php?n=a65b6b4d");
   document.write ("&zoneid=114");
   document.write ("&exclude=" + document.phpAds_used);
   document.write ("&loc=" + escape(window.location));
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ('&r=' + awrz_rnd);
   document.write ("&ct0=" + escape(document.phpAds_ct0));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads.habbohotel.co.uk/max/adclick.php?n=a65b6b4d' target='_blank'><img src='http://ads.habbohotel.co.uk/max/adview.php?zoneid=114&n=a65b6b4d' border='0' alt=''></a></noscript>
</td><td class="ad-content-mr"></td></tr>
		<tr><td class="ad-content-bl"></td>	<td class="ad-content-b"></td><td class="ad-content-br"></td></tr>
	</table>
</div>
<?php } } } ?>
</table>
</table>
</div>
<div class="subnav"></div>
	<div id="outer"><div id="outer-content">

	<div id="footer">
	<div id="footer-top"><div id="footer-content">
<?php echo("$footer"); ?>
</div></div>
	<div id="footer-bottom"><div id="footer-bottom-content"></div></div>
</div>
	</div></div>
	<div id="outer-bottom"><div id="outer-bottom-content"></div></div>
</body>
</html>