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


if($_GET['p']==29)
{


 $sql="select * from cmspages where page_id='".$_GET['p']."'";
$result=mysql_query($sql);
$row2=mysql_fetch_array($result);
}
?>

<!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><?php echo stripslashes($page_title)." - ".$row2['page_name'] ?></title>

<!--banner -->


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


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





	
	<link rel="stylesheet" href="lightbox-mac-style-demo_files/screen.css" type="text/css" media="screen">
		
		<!-- Start VisualLightBox.com HEAD section -->
		<link rel="stylesheet" href="lightbox-mac-style-demo_files/vlightbox.css" type="text/css">
		<style type="text/css">#vlightbox a#vlb{display:none}</style>
		<link rel="stylesheet" href="lightbox-mac-style-demo_files/visuallightbox.css" type="text/css" media="screen">
		<script src="lightbox-mac-style-demo_files/jquery-1.js" type="text/javascript"></script>



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


/* End CSS Drop Down Menu */

</style>

</head>

<body onload="start();"> 
<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="2" cellpadding="0">
            <tr>
              <td align="center" valign="top"><br />
                <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                  <td align="left" class="hed" height="50" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $row2['page_heading'];?></td>
                </tr>
                <tr>
                  <td class="txt" align="center">	  
				  <div id="content-machh" align="center" style="margin-left:50px;">
	
	<!-- Start VisualLightBox.com BODY section -->
	<div id="vlightbox">
	<?php  $sql_gallery='SELECT * FROM `tbl_gallery` WHERE STATUS =1';

$rst=mysql_query($sql_gallery);

while($gall_row=mysql_fetch_array($rst))
{?>
	
	<a class="vlightbox" href="uploads/gallery/<?php echo $gall_row['img_name'];?>" title="<?php echo $gall_row['discription'];?>">
	<img src="uploads/gallery/<?php echo $gall_row['thum_name'];?>" alt=" " align="middle">
	<span></span>	</a>
	
	<?php }?>
	
	
	
	</div>
<script type="text/javascript">
	var $VisualLightBoxParams$ = {autoPlay:true,borderSize:39,enableSlideshow:true,startZoom:true};
</script>
		<script src="lightbox-mac-style-demo_files/visuallightbox.js" type="text/javascript"></script>
		<script type="text/javascript"> $.noConflict();</script>
	<!-- End VisualLightBox.com BODY section -->
	</div>
				  
				  <?php //echo $row2['txtbody'];?></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>
