<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title><?php echo $title;?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le styles -->
    <link href="<?php echo base_url();?>assets/css/bootstrap-main.min.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/css/bootstrap-responsive-main.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/css/docs.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/css/colorbox.css" rel="stylesheet">
	<script data-ad-client="ca-pub-8976754647638360" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
	
  </head>

  <body class="preview" data-spy="scroll" data-target=".subnav" data-offset="50" id="<?php echo $bodyid;?>">
  <div class="navbar navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
       <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </a>
       <a href="<?php echo base_url();?>" class="brand">dewas.co.in</a>
       <div id="main-menu" class="nav-collapse"><ul id="main-menu-left" class="nav">
	
	
	<li class="dropdown">
		<a href="#" data-toggle="dropdown" class="dropdown-toggle">Categories <b class="caret"></b></a>
		<ul id="swatch-menu" class="dropdown-menu">
			<!--<li><a href="/default">All</a></li>
			<li class="divider"></li>-->
			<?php $count=0;foreach($parent_categories as $category){ ?>
			<li><a href="<?php echo base_url().'categories/'.formatText($category->name).'/'.$category->id;?>"><?php echo $category->name;?></a></li>
			<?php } ?>			
			<li class="divider"></li>
			<li><a href="<?php echo base_url().'categories';?>">More >></a>
		</ul>
	</li>
<li><a href="<?php echo base_url().'about';?>" id="swatch-link">About Us</a></li>
<li><a href="<?php echo base_url().'contact';?>" id="swatch-link">Contact Us</a></li>
<!--<li><a href="#" id="swatch-link">Feedback</a></li>-->
</ul>
<ul id="main-menu-right" class="nav pull-right">
	<?php if(!$this->session->userdata('is_login') && !$this->session->userdata('user_id')){ ?>
	<li><a data-original-title="Sign in" href="#" id="sign-in" class="sign-in">Sign In</a></li>
	<li><a data-original-title="Join now" href="#" id="join-now" class="join-now">Join Now</a></li>
	<?php }else { ?>
	<li><a data-original-title="Welcome <?php echo $this->session->userdata('user_name');?>" href="<?php echo base_url().'account'?>" >Welcome <?php echo $this->session->userdata('user_name');?></a></li>
	<li><a data-original-title="Logout" href="<?php echo base_url();?>logout" id="logout">Logout</a></li>
	<?php } ?>
	<li><div class="span"><a class="btn btn-warning center" href="<?php echo base_url().'postad';?>" title="Post free classified ads">Post a Free Ad</a></div></li>
</ul></div>
     </div>
   </div>
 </div>
<div class="container">
<div style="margin-top:60px; min-height:380px;" >
