I am facing a problem with showing the recently viewed products in my product page.

**Here is my local.xml code:** (I do not know why, but it is not showing all code, so i had to remove "<" from each tag- exmple- action, block etc...)

catalog_product_view translate="label">
    reference name="root">
      action method="setTemplate"><template>page/1column.phtml</template></action>
    <reference name="footer"> 
      block type="reports/product_viewed" name="product.recently.viewed" as="product_recently_viewed" template="reports/product_viewed.phtml"/> 

**Here is my footer.phtml code:**
<div class="footer-container">
    <div class="footer">
    <?php $maniPage = $this->getUrl(''); 
          $currentUrl = Mage::helper('core/url')->getCurrentUrl();
          $url = Mage::getSingleton('core/url')->parseUrl($currentUrl);         
          if ($maniPage == $currentUrl){
            echo $this->takeCategory(12,1) /*12 = brands category 1 = show images*/ ;
        <div class="block-content">                          
              <?php echo $this->getChildHtml('product_recently_viewed') ?>              

**Here is my product_viewed.phtml** (standard file from core)

<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
<div class="block block-list block-viewed">
    <div class="block-title">
        <strong><span><?php echo $this->__('Recently Viewed Products') ?></span></strong>
    <div class="block-content">
        <ol id="recently-viewed-items">
        <?php foreach ($_products as $_item): ?>
            <li class="item">
                <p class="product-name"><a href="<?php echo $this->getProductUrl($_item) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName() , 'name') ?></a></p>
        <?php endforeach; ?>
        <script type="text/javascript">decorateList('recently-viewed-items');</script>
<?php endif; ?>

When I inspect the elements, the <div> from the footer is empty.
All files posted are in my theme. I have my own css so may be it won't be shown as expected, but at least the div should have any data inside, right?
Could you please help me with this one.
Thank you in advance.