<style>
.navbar span.nodown{ background:none !important; }
</style>
<div id="nav">
		<?php
		if(Yii::app()->options->get('system.theme.frontend.enabled_theme')=='styles-latest')
		{
		?>
		<div class="show_mobile"><a href="javascript:void(0)">Select Page</a></div>
		<?php
		}
		?>
        <ul class="nav-container">
          <li class="nav-container-main">
            <ul id="navbar-id" class="navbar">
				<?php
				if(Yii::app()->options->get('system.theme.frontend.enabled_theme')=='styles-latest')
				{
					?>
				 <li class="parent more actives " id="nav-motors" style="border-left:none;"> <a class="home_ " href='<?php echo Yii::app()->createUrl("");?>/' title=""></a> </li>
					<?php
				}
				?>
               <li class="parent more" id="nav-motors"> <a href='#' title=""><span class="more"><?php echo $section->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                    <ul class='nav-col-list'>
                 
                      
						<?php
						foreach($section->categories as $k1=>$v1)
						{
						?>
						<li><a href="<?php echo  Yii::app()->createUrl($v1->section->slug."/".$v1->slug."/list");?>"><?php echo  $v1->category_name ; ?><strong> <?php echo $v1->adsCount; ?> </strong></a> </li>
						
						 
						<?    
						}
						?>
                    </ul>
                  </li>
                </ul>
              </li>
              <li class="parent more" id="nav-classified"> <a href='#' title=""><span class="more"><?php echo $classifieds->category_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                    <ul class='nav-col-list'>
						<?php
						$rowcount=8;
						$first_megamenu  =  $rowcount-1;
						$second_megamenu =  2*$rowcount-1;
						$break_megamenu  =  3*$rowcount;
						if($classifieds->subcategories)
						{
							foreach($classifieds->subcategories as $k2=>$v2)
							{
							if($k2==$break_megamenu) break;
							?>
							<li><a href="<?php echo Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->sub_category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							<?php
							if($k2==  $first_megamenu || $k2==$second_megamenu )
							{
								?>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
								
								<?
							}
							
							
							}
						}
						?>
                   
                   </ul>
				  </li>
                  
             
                </ul>
              </li>
              <li class="parent more" id="nav-property-for-sale"> <a href='#' title=""><span class="more"><?php echo $for_sale->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner ' <?php /*  style="height:<?php echo 40*sizeOf($for_sale->subcategories) ;?>px;" */ ?>>
                  <li class='nav-inner-content'>
                    <ul class='nav-col-list'>
						<?php
						$rowcount=6;
						$first_megamenu  =  $rowcount-1;
						$second_megamenu =  2*$rowcount-1;
						$break_megamenu  =  3*$rowcount;
						if($for_sale->categories)
						{
							foreach($for_sale->categories as $k2=>$v2)
							{
							if($k2==$break_megamenu) break;
							?>
								<li><a href="<?php echo  Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							
						 	<?php
							if($k2==  $first_megamenu || $k2==$second_megamenu )
							{
								?>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
								
								<?
							}
							
							
							}
						}
						?>
						
						
						 
                    </ul>
                  </li>
                  </ul>
              </li>
              <li class="parent more" id="nav-property-for-rent"> <a href='#' title=""><span class="more"><?php echo $for_rent->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                    <ul class='nav-col-list'>
                      
						<?php
						$rowcount=6;
						$first_megamenu  =  $rowcount-1;
						$second_megamenu =  2*$rowcount-1;
						$break_megamenu  =  3*$rowcount;
						if($for_rent->categories)
						{
							foreach($for_rent->categories as $k2=>$v2)
							{
							if($k2==$break_megamenu) break;
							?>
								<li><a href="<?php echo  Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							
						 	<?php
							if($k2==  $first_megamenu || $k2==$second_megamenu )
							{
								?>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
								
								<?
							}
							
							
							}
						}
						?>
                    </ul>
                  </li>
                </ul>
              </li>
              <li class="parent more" id="nav-jobs"> <a href='#' title=""><span class="more">Jobs</span></a>
                <ul id="nav-categories-list-container" class='navbar-inner nav-bar-jobs-section'>
                  
                  <li class='nav-inner-content'>
                    <ul class='nav-col-list'>
                      <?php
						$rowcount_job=17;
						$first_megamenu_job  =  $rowcount_job-1;
						$second_megamenu_job =  2*$rowcount_job-1;
						$break_megamenu_job  =  3*$rowcount_job;
						if($jobs->subcategories)
						{
							foreach($jobs->subcategories as $k2=>$v2)
							{
							if($k2==$break_megamenu_job) break;
							?>
							<li><a href="<?php echo Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->sub_category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							<?php
							if($k2==  $first_megamenu_job || $k2==$second_megamenu_job )
							{
								?>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
								
								<?
							}
							
							
							}
						}
						?>
                   
                </ul>
              </li>
                  <li class="jobs-expanded-style"> <span class="nav-jobs-wanted"> <a href="/jobs-wanted/"> Jobs Wanted <strong><?php echo $jobs->adsCount;?></strong> </a> </span> </li>
                </ul>
              </li>
             
              <li class="parent more" id="nav-community"> <a href='#' title=""><span class="more"><?php echo $travel->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                     <ul class='nav-col-list'>
                        <?php
						if($travel->categories)
						{
							foreach($travel->categories as $k2=>$v2)
							{   
								 
								?>
								<li><a href="<?php echo  Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							    <?php
							}
						}
						?>
                    </ul>
                  </li>
                  
                </ul>
              </li>
              <li class="parent more" id="nav-community"> <a href='#' title=""><span class="more"><?php echo $deals->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                     <ul class='nav-col-list'>
                        <?php
						if($deals->categories)
						{
							foreach($deals->categories as $k2=>$v2)
							{   
								 
								?>
								<li><a href="<?php echo  Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							    <?php
							}
						}
						?>
                    </ul>
                  </li>
                  
                </ul>
              </li>
              <li class="parent more" id="nav-community"> <a href='#' title=""><span class="more"><?php echo $dirctory->section_name;?></span></a>
                <ul id="nav-categories-list-container" class='navbar-inner '>
                  <li class='nav-inner-content'>
                     <ul class='nav-col-list'>
                        <?php
						$rowcount_job=7;
						$first_megamenu_job  =  $rowcount_job-1;
						$second_megamenu_job =  2*$rowcount_job-1;
						$break_megamenu_job  =  3*$rowcount_job;
						if($deals->categories)
						{
							foreach($deals->categories as $k2=>$v2)
							{
							if($k2==$break_megamenu_job) break;
							?>
							<li><a href="<?php echo Yii::app()->createUrl($v2->section->slug."/".$v2->slug."/list");?>"><?php echo  $v2->category_name ; ?><strong> <?php echo $v2->adsCount; ?> </strong></a> </li>
							<?php
							if($k2==  $first_megamenu_job || $k2==$second_megamenu_job )
							{
								?>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
								
								<?
							}
							
							
							}
						}
						?>
                    </ul>
                  </li>
                  
                </ul>
              </li>
               
                <li class="parent more" id="nav-jobs"> <a href="<?php echo Yii::app()->createUrl('article/useful-links');?>" title=""><span class="more nodown">Useful Links</span></a>
                <?php /*
                <ul id="nav-categories-list-container" class='navbar-inner nav-bar-jobs-section'>
                  
                  <li class='nav-inner-content'>
								<ul class='nav-col-list'>
									<li><a href="#"> 	Online Games </strong></a> </li>
									<li><a href="#"> 	Free Software</strong></a> </li>
									<li><a href="#"> 	Video Links</strong></a> </li>
									<li><a href="#"> 	TV (vvitv.com)</strong></a> </li>
									<li><a href="#"> 	Website Templates</strong></a> </li>
									<li><a href="#"> 	SMS Marketing</strong></a> </li>
								</ul>
								</li>
								 <li class='nav-inner-content'>
								 <ul class='nav-col-list'>
									<li><a href="javscript"> 	 <b>Email marketing (Send Enquiry)</b></strong></a> </li>
									<li><a href="#"> 	&nbsp;a.50000 emails </strong></a> </li>
									<li><a href="#"> 	&nbsp;b.Others</strong></a> </li>
								</ul>
								</li>
                </ul>
                * */
                ?>
              </li>
              
              
              
              
              
              
              
              
              
              
              
            </ul>
          </li>
        </ul>
      </div>
