margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript "src="js/jquery.min.js"></script>

</head>

<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<?php 
if (UserFunctions::isUserAuthenticated()) {
    $details = ADAO::getUserdetailsById($_SESSION['id']);
    echo '<tr><td><table width="220" height="30" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr>
          <td width="110"><span style="color:#fff;font-size:12px">Welcome ' . $details['name'] . '</span></td>
		   <td width="10"><span style="color:#fff">|</span></td>
          <td width="100"> <a href="logout.php" style="color:#fff;text-decoration:none;font-size:12px">Logout</a></td>
		  </tr>
		  </table></td></tr>
		   ';
} else {
    ?>

  <tr>
    <td height="30">
    <form id="form1" name="form1" method="post" action="checkUsersLogin.php">
      <table width="936" height="25" border="0" align="right" cellpadding="0" cellspacing="0">
<?php

require_once "administrator/includes/ADAO.php";
$res = ADAO::getDefaultCommunityList();
?>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/bodytop.jpg" width="1000" height="8" /></td>
  </tr>
  <tr>
    <td background="images/bodybg.jpg"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="619">
        <?php 
foreach ($res as $row) {
    $det = ADAO::getUserdetailsById($row['user_id']);
    ?>
        <table width="600" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td width="600" height="112"><table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5" colspan="3"><img src="images/searchbartop.jpg" width="590" height="6" /></td>
              </tr>
              <tr>
                <td width="2" height="110" background="images/searchbarlft.jpg"></td>
                <td width="586" height="110" background="images/searchbarbodybg.jpg"><table width="570" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="163" rowspan="2">&nbsp;</td>
                      <td width="407" height="33"><table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="292"><div id="add_title"><h3><a href="#"><?php