Magento: Create top category offer box

Create a top category offer box on Magento front page linked to a category and filled with one of selected products from a hidden category.

/var/www/app/design/frontend/default/default/template/catalog/product/top-category.phtml
Download: http://www.panticz.de/sites/default/files/magento/home/top-category.phtml

<?php
$offer = array(
    array('TVs', '/shop/tv.html', 24231),
    array('Computer', '/shop/computer.html', 24238),
    array('Cameras', '/shop/cameras.html', 24245),
    array('RAM', '/shop/ram.html', 24244),
    array('HDD', '/shop/hdd.html', 24243)
);
?>

<div class="category-products">
    <ul class="products-grid">
    <?php for($i = 0; $i < count($offer); $i++): ?>
        <li class="item <?php if($i == 0): ?> first <?php elseif($i - 1 == count($offer)): ?> last <?php endif; ?>">
            <?php $offer_name = $offer[$i][0]; ?>
            <?php $offer_url = $offer[$i][1]; ?>
            <?php $offer_category = $offer[$i][2]; ?>

            <h4><a href="<?php echo $offer_url; ?>"><?php echo $offer_name; ?></a></h4>
            <?php
                $catagory_model = Mage::getModel('catalog/category')->load($offer_category);
                $collection = Mage::getResourceModel('catalog/product_collection');
                $collection->addCategoryFilter($catagory_model);
                $collection->addAttributeToFilter('status', 1);
                $collection->getSelect()->order('rand()');   
                $collection->addStoreFilter();
                $collection->setPageSize(1);
                $collection->setCurPage(1);
            ?>
            <?php if(!empty($collection)): ?>
                <?php foreach ($collection as $_product): ?>
                    <?php $_product = Mage::getModel('catalog/product')->setStoreId($this->store_id)->load($_product->getId()); ?>
                    <?php $_url = $_product->getSku(); ?>
                    <a href="/<?php echo $_url ?>" title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135,73); ?>" width="135" height="73" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" /></a>
                    <h2 class="product-name">
                        <a href="/<?php echo $_url ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a>
                    </h2>
                <?php endforeach ?>
            <?php endif ?>
        </li>
    <?php endfor ?>
    </ul>
</div>