
getCurrentCategory()?>
getCurrentChildCategories()?>
count()):?>
foreach ($_categories as $_category):?>
if($_category->getIsActive()):
$cur_category=Mage::getModel('catalog/category')->load($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
$catName = $this->getCurrentCategory()->getName();
if($_imageUrl=!$this->getCurrentCategory()->getImageUrl()):?>
if($_imageUrl=$this->getCurrentCategory()->getImageUrl()):?>
endif;
endif;?>
setCurrentCategory($_maincategorylisting); ?>
