<div class="home_teaser" style="margin-top:15px;">
<? $home_categories = $this->MFuncs->getRandHomeCategories(); ?>
<? $home_sub_categories = $this->MFuncs->getRandHomeSubCategories(); ?>
<? $home_sub_sub_categories = $this->MFuncs->getRandHomeSubSubCategories(); ?>
<? if (($home_categories) || ($home_sub_categories) || ($home_sub_sub_categories)) { ?>
      <div class="subcolumns">
      <? if ($home_categories) { ?>
  <? foreach($home_categories as $home_categories=>$home_category): ?>
 <? $prd = $this->MFuncs->getRandProductbyCat($home_category['cat_id']); ?>
      <div style="width:310px; float:left; margin-right:10px; margin-left:10px; box-shadow:0px 0px 5px #888888; margin-bottom:15px;">
          <div id="main_borders">
      <div style="width:150px; height:210px; margin-bottom:5px; padding-top:5px; float:left; margin-right:10px;  border:thin solid #e3e3e3; ">
    <center>
			<? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
                  <?=anchor('product_price/cat/'.$home_category['cat_id'].'/priceasc', '<img src="'.base_url().'images/prds/thumb/'.$prd['image'].'" style="max-height:200px; max-width:150px;" style="padding-right:5px;" />');?>
                  <? }
		  else { ?>
          <img src="<?=base_url()?>images/no_image.jpg" style="max-height:200px;"/>
          <? } ?>   
    </center>
    </div>
<div style="float:left; width:130px;">
    <? $cat_name = $this->MFuncs->RemoveTones($home_category['cat_name']); ?>
                  <h2 style="height:60px; overflow:hidden;"><?=anchor('product_price/cat/'.$home_category['cat_id'].'/priceasc', $cat_name);?></h2>
           	<div class="buttons" style="margin:0 20px 0 20px;">
 			<?=anchor('product_price/cat/'.$home_category['cat_id'].'/priceasc', $this->lang->line('btn_view_prds'),array('id'=>'continue','class'=>'positive'))?>
			</div>

</div>        
        <div class="clear">&nbsp;</div>
		  </div>
        </div>
 <? endforeach ?>
  <? } ?>
      <? if ($home_sub_categories) { ?>
  <? foreach($home_sub_categories as $home_sub_categories=>$home_sub_category): ?>
 <? $prd = $this->MFuncs->getRandProductbySubCat($home_sub_category['sub_id']); ?>
      <div style="width:313px; float:left; margin-right:10px; margin-left:10px; box-shadow:0px 0px 5px #888888;">
          <div id="main_borders">
      <div style="width:150px; height:210px; margin-bottom:5px; padding-top:5px; float:left; margin-right:10px; border:thin solid #e3e3e3; ">
    <center>
			<? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
                  <?=anchor('product_price/sub/'.$home_sub_category['sub_id'].'/priceasc', '<img src="'.base_url().'images/prds/thumb/'.$prd['image'].'" style="max-height:200px; max-width:150px;" style="padding-right:5px;" />');?>
                  <? }
		  else { ?>
          <img src="<?=base_url()?>images/no_image.jpg" style="max-height:200px;"/>
          <? } ?>   
    </center>
    </div>
<div style="float:left; width:130px;">
     <? $subcat_name = $this->MFuncs->RemoveTones($home_sub_category['name']); ?>
                 <h2 style="height:60px; overflow:hidden;"><?=anchor('product_price/sub/'.$home_sub_category['sub_id'].'/priceasc', $subcat_name);?></h2>
           	<div class="buttons" style="margin:0 20px 0 20px;">
 			<?=anchor('product_price/sub/'.$home_sub_category['sub_id'].'/priceasc', $this->lang->line('btn_view_prds'),array('id'=>'continue','class'=>'positive'))?>
			</div>

</div>        
        <div class="clear">&nbsp;</div>
		  </div>
        </div>
 <? endforeach ?>
  <? } ?>
      <? if ($home_sub_sub_categories) { ?>
  <? foreach($home_sub_sub_categories as $home_sub_sub_categories=>$home_sub_sub_category): ?>
 <? $prd = $this->MFuncs->getRandProductbySubSubCat($home_sub_sub_category['sub_sub_id']); ?>
      <div style="width:313px; float:left; margin-right:10px; margin-left:10px; box-shadow:0px 0px 5px #888888;">
          <div id="main_borders">
      <div style="width:150px; height:210px; margin-bottom:5px; padding-top:5px; float:left; margin-right:10px; border:thin solid #e3e3e3; ">
    <center>
			<? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
                  <?=anchor('product_price/subsub/'.$home_sub_sub_category['sub_sub_id'].'/priceasc', '<img src="'.base_url().'images/prds/thumb/'.$prd['image'].'" style="max-height:200px; max-width:150px;" style="padding-right:5px;" />');?>
                  <? }
		  else { ?>
          <img src="<?=base_url()?>images/no_image.jpg" style="max-height:200px;"/>
          <? } ?>   
    </center>
    </div>
<div style="float:left; width:130px;">
     <? $sub_subcat_name = $this->MFuncs->RemoveTones($home_sub_sub_category['name']); ?>
                  <h2 style="height:60px; overflow:hidden;"><?=anchor('product_price/subsub/'.$home_sub_sub_category['sub_sub_id'].'/priceasc', $sub_subcat_name);?></h2>
           	<div class="buttons" style="margin:0 20px 0 20px;">
 			<?=anchor('product_price/subsub/'.$home_sub_sub_category['sub_sub_id'].'/priceasc', $this->lang->line('btn_view_prds'),array('id'=>'continue','class'=>'positive'))?>
			</div>

</div>        
        <div class="clear">&nbsp;</div>
		  </div>
        </div>
 <? endforeach ?>
  <? } ?>
	</div>       
        <div class="clear">&nbsp;</div>
<? } ?>
</div>