<?php
if(isset($_GET['page_id']))
{
	$_SESSION['page_id'] 	= $_GET['page_id'];
}
?>
<div id="header">
		<a href="index.php"><img src="admin/client_logo/<?php echo $ram_row['small_logo_image'];?>" alt="MyPortfolio" /></a>
        <ul id="nav">
			<li>
            	<div class="leftRegion"></div>
                <div class="centerRegion"><a <?php if(isset($_SESSION['page_id']) &&($_SESSION['page_id']==0) ){ echo "class='currentPage'"; }?> href="index.php">Home</a></div>
                <div class="rightRegion"></div>
            </li>
           <?php
		   $sql				= mysql_query("SELECT `id`,`page_name` FROM `tbl_menu` where `publish`='1' and `header_show` ='1' order by `page_order` ASC ")or die("Head.php line no 4 ".mysql_error());
		  while($sql_row	= mysql_fetch_array($sql))
		  {
		   ?> 
			<li>
            	<div class="leftRegion"></div>
                <div class="centerRegion"><a <?php if(isset($_SESSION['page_id']) &&($_SESSION['page_id']==$sql_row['id']) ){ echo "class='currentPage'"; }?> href="index1.php?page_id=<?php echo $sql_row['id'] ;?>"><?php echo $sql_row['page_name'] ;?></a></div>
                <div class="rightRegion"></div>
            </li>
            <?php } ?>
		</ul>
        
</div>