?>
">
        <a href="<?php 
        echo generalMethods::getCategorydetailNavigationURL($rowcatalogcategories["category_id"]);
        ?>
" title="<?php 
        echo htmlentities(stripslashes($rowcatalogcategories["category_name"]));
        ?>
"><img src="<?php 
        echo SITE_URL . '/' . $avatarImage;
        ?>
" width="170" height="162" /></a><br />
		
		<div class="product_desc">
		<a href="<?php 
        echo generalMethods::getCategorydetailNavigationURL($rowcatalogcategories["category_id"]);
        ?>
" title="<?php 
        echo htmlentities(stripslashes($rowcatalogcategories["category_name"]));
        ?>
"><?php 
        echo htmlentities($rowcatalogcategories["category_name"]);
        ?>
&nbsp;(<?php 
        echo htmlentities($count_product);
        ?>
)</a>
		</div>
        
    </div>
    $no_margin_class = $count_row == $cells ? 'nomargin' : '';
    ?>
                <div class="pcm_productitem_cat <?php 
    echo $no_margin_class;
    ?>
">
                    <a href="<?php 
    echo generalMethods::getCategorydetailNavigationURL($row_category["category_id"]);
    ?>
"><img src="<?php 
    echo SITE_URL . '/' . $avatarImage;
    ?>
" width="170" height="162" /></a>
					<div class="product_desc">
                    <a href="<?php 
    echo generalMethods::getCategorydetailNavigationURL($row_category["category_id"]);
    ?>
"><?php 
    echo stripslashes($category_name);
    ?>
&nbsp;(<?php 
    echo $count_product_catalog;
    ?>
)</a>
                	</div>
				</div>
                        <?php 
    $rowcnt1++;
    if ($count_row == $cells) {
        $count_row = 1;
    } else {
<script language="javascript"   type="text/javascript"   src="<?php 
echo SITE_URL;
?>
/js/pagingHomepage.js"></script>

<script LANGUAGE="javascript" type="text/javascript">
    function clickSearch()
    {
        document.frmCatalog.submit();
    }
</script>

<div class="pcm_content_rightcolumn"  >
    <div class="pcm_productlisting_wrapper">
        <form name="frmCatalog" action="<?php 
echo generalMethods::getCategorydetailNavigationURL($catid, $page, $pagegroup);
?>
" method="POST" enctype="multipart/form-data" id="frmCatalog">
            <input type="hidden" name="catid" value="<?php 
echo htmlentities($catid);
?>
"  id="catid">
            <!--<div align="left" id="item_details">-->
            <!--items display area start -->
            <?php 
if ($catid != '') {
    ?>

            <div class="pcm_productlisting_topbox">
                <div class="brdcrumb_container">
                        <?php