<?php 
include("includes/db_config.php");


?>

<!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>Student accommodation, flats, apartments, university halls in Leeds at St. Marks</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks offers Student lets Leeds, letting Leeds, accommodation Leeds, flats Leeds, apartments Leeds, halls Leeds, Leeds university halls style rooms just a short walk from Leeds University."  /> 
<meta name="keywords" http-equiv="Content-Type" content=" Student lets Leeds, Student accommodation Leeds, Student flats Leeds, Student apartments Leed, Student halls Leeds, Leeds university halls "/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />

<link type='text/css' href='css/contact.css' rel='stylesheet' media='screen' />

<!--banner files start here-->

    <script type="text/javascript" src="banner/jquery_002.js"></script>
    <script type="text/javascript" src="banner/jquery.js"></script>

<?php 
 if(strstr($_SERVER['HTTP_USER_AGENT'],'MSIE 7.0'))
    {
?>



	<link rel="stylesheet" type="text/css" href="banner/iecss.css">

    <!-- Javascript -->

    <script type="text/javascript" src="banner/ieconfig.js"></script>
<?php }
 elseif(strstr($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0'))
    {
?>


	<link rel="stylesheet" type="text/css" href="banner/iecss.css">
	
    <script type="text/javascript" src="banner/ieconfig.js"></script>

<?php } else {?>



	<link rel="stylesheet" type="text/css" href="banner/slider.css">
	
    <!-- Javascript -->
    
    <script type="text/javascript" src="banner/config.js"></script>
	
	
<?php }?>
<!--banner end-->
<link href="css/styler.css" rel="stylesheet" type="text/css" />

<style type="text/css" media="screen">


/* End CSS Drop Down Menu */

</style>

</head>

<body > 
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td align="center"><table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" valign="top" bgcolor="#f1f1f1"><?php include("includes/header.php");?>
          <table width="800" border="0" cellspacing="0" cellpadding="0">
            <tr height="300">
              <td>
			  
			  <?php  $sql_banner="select * from tbl_banner where status=1 Order By sort_order ASC";
			   $banner_result=mysql_query($sql_banner);
			   $countimg=mysql_num_rows($banner_result);
			   $zindex=$countimg+2;
			   if($countimg >7){$dis_margin=(($countimg*27)-($countimg));}
			   elseif($countimg <6){$dis_margin=(($countimg*27)+($countimg));}
			   elseif($countimg >11){$dis_margin=(($countimg*27)-($countimg-100));}
			   else{$dis_margin=($countimg*27);}
			    $totcount=$countimg;
			   $ul=0;
			   $bannerimg='';
			   $buttons='';
			   $diccription='';
			   $img_num=0;
			   $button_id='';
			   ?>
				
			  
			  <div id="slider" class="grid_16">
    <div class="grid_10 alpha">
	<?php   while($banner_row=mysql_fetch_array($banner_result))
						{   $img_num++; 
						   $countimg--;
					$bannerimg.='<li style="z-index: '.$zindex.'; position: absolute; display: list-item;"><a href="'.$banner_row['img_url'].'"><img src="uploads/banner/'.$banner_row['img_name'].'" alt="first image" width="800" height="3000px"></a></li>';
						
						if($img_num==1){$button_id='id="button_selected"';};
						
						$buttons.='<li '.$button_id.'  class="slide_'.($img_num-1).'" >'.$img_num.'</li>';
						
						$diccription.='<li style="z-index: '.$zindex.'; position: absolute; display: list-item; list-style:none;"><h2></h2><p style="margin-left:'.$dis_margin.'px; margin-top:20px;color:#FFFFFF;">	&nbsp;&nbsp;| &nbsp;&nbsp;'.$banner_row['discription'].'</p></li>';
						
						  }  ?>
	
  <ul class="innerfade" style="position: relative; height: 130px;list-style:none;" id="portfolio">
	  
	  <?php echo $bannerimg;?>
  </ul>
      <ul id="slide_nav">
      	<!--<li id="button_selected" class="slide_0" >1</li>-->
		<?php echo $buttons;?>
      	<!--<li class="slide_1">2</li>
      	<li class="slide_2">3</li>
      	<li class="slide_3">4</li>
      	<li class="slide_4">5</li>-->
		
      </ul>
   
	 <SCRIPT language="JavaScript">



	 var ScreenWidth=screen.width;
//alert(ScreenWidth);
	 var fnlwdth=(ScreenWidth-1024);
	 var mrgwith=(fnlwdth/2)+100;
	// alert(fnlwdth);
	// alert(mrgwith);
	document.getElementById('slide_nav').style.marginLeft=mrgwith+'px';
	
	</script>
    </div> <!--<ul id="slide_control">
    	<li id="first_button" class="first_button"></li>
        <li id="prev_button" class="prev_button"></li>
        <li id="pause_button" class="pause_button"><span style="display: none;"> pause</span></li>
        <li id="next_button" class="next_button"></li>
        <li id="last_button" class="first_button"></li>
      </ul>-->
    <ul id="portfolio-desc" class="grid_<?php echo $totcount;?> alpha omega">
    		<?php echo $diccription;?>
	      <!--	<li style="z-index: 5; position: absolute; display: list-item; list-style:none;"><h2></h2><p style="margin-left:170px; margin-top:20px;color:#FFFFFF;">	LOREN IPSUM DOLOR SIT AMET 1 Goes here</p></li>
	      	<li style="z-index: 4; position: absolute; display: none; list-style:none;"><h2></h2><p style="margin-left:170px; margin-top:20px;color:#FFFFFF;">LOREN IPSUM DOLOR SIT AMET</p></li>
	      	<li style="z-index: 3; position: absolute; display: none; list-style:none;"><h2></h2><p style="margin-left:170px; margin-top:20px;color:#FFFFFF;">LOREN IPSUM DOLOR SIT AMET</p></li>
	      	<li style="z-index: 2; position: absolute; display: none; list-style:none;"><h2></h2><p style="margin-left:170px; margin-top:20px;color:#FFFFFF;">LOREN IPSUM DOLOR SIT AMET</p></li>
	      	<li style="z-index: 1; position: absolute; display: none; list-style:none;"><h2></h2><p style="margin-left:170px; margin-top:20px;color:#FFFFFF;">LOREN IPSUM DOLOR SIT AMET</p></li>-->
	</ul>
	
	 
	<div class="clear"> &nbsp; </div>
  </div></td>
            </tr>
            <tr>
              <td><table width="800" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="8" colspan="2" bgcolor="#333333"></td>
                </tr>
                <tr>
                  <td width="23" class="hNmbr"><img src="images/crnr.jpg" width="23" height="36" /></td>
                  <td width="777" class="hNmbr"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center"><a href="#" class="nmb"></a></td>
                        <td align="center"><a href="#" class="nmb"></a></td>
                        <td align="center"><a href="#" class="nmb"></a><a href="#" class="nmb"></a></td>
                        <td align="center"><a href="#" class="nmb"></a></td>
                        <td align="center"><a href="#" class="nmb"></a></td>
                        <td align="center"><a href="#" class="nmb"></a></td>
                        <td width="30" align="center"> </td>
                        <td align="left"></td>
                    </tr>
          </table></td>
                </tr>
                </table></td>
            </tr>
        </table>
		  <table width="800" border="0" cellspacing="2" cellpadding="0">
            <tr>
              <td align="center" valign="top"><br />
			  
			  <?php $home_sql="select * from cmspages where `type`='tabs' and status=1 Order By sort_order ASC";
			  $home_result=mysql_query($home_sql);
			  $td=0;
			  $colsp=0;
			//  $parent_tab_count=mysql_num_rows($parent_result);
			  $home_row=mysql_fetch_array($home_result);?>
                <table width="496" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                  <td align="left" class="hed"><h2>Welcome to your new home in Leeds.</h2></td>
                </tr>
                <tr>
                  <td class="txt"><?php echo stripslashes($home_row['txtbody']); ?></td>
                </tr>
          </table>
                <table width="496" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="40" align="left" class="hed"><h2>GALLERY</h2></td>
                  </tr>
                  <tr>
                    <td class="txt"><table width="495" border="0" cellpadding="0" cellspacing="0" class="glryBg">
                      <tr>
                        <td align="center" valign="middle"><table width="95%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="75" align="center" valign="middle"><a href="gallery.html"><img src="images/img.jpg" width="85" height="63" class="imgBdr" border="0" /></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/11.jpg" width="85" height="63" class="imgBdr" border="0" /></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/2.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/3.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/4.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                          </tr>
                          <tr>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/5.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/6.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/7.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/8.jpg" width="85" height="63" class="imgBdr" border="0"/></a></td>
                            <td align="center" valign="middle"><a href="gallery.html"><img src="images/9.jpg" width="85" height="63" class="imgBdr" /></a></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
          </table>
                <br />
                <table width="496" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="txt"><img src="images/bner.jpg" width="497" height="86" /></td>
                  </tr>
              </table></td>
              <td align="right" valign="top"><?php include("includes/rightcolum.php");?></td>
            </tr>
        </table>
          <br />
          <?php include('includes/footer.php');?></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
