<?php $_items = $this->getCollection(); if (count($_items)>0):  ?>
<div class="collateral-box" id="rr-customer-reviews">
   <ol style="margin-top:15px;">
       <?php foreach ($_items as $k => $_review):  ?>
            <li>
                <a href="<?php echo $_review['url']; ?>"><strong><?php echo $this->htmlEscape($_review['product']); ?></strong></a><br /> <?php echo $this->__('Review by %s', $this->htmlEscape($_review['nickname'])) ?>
                <table class="rr-ratings-list" cellspacing="0">
                    <tbody>
        						<?php if(isset($_review['votes'])) foreach ($_review['votes'] as $_vote): ?>
                        <tr>
                            <td class="label"><strong><?php echo $_vote['rating_code']; ?></strong></td>
                            <td>
                                <div class="rating-box">
                                    <div class="rating" style="width: <?php echo $_vote['percent'] ?>%;"></div>
                                </div>
                            </td>
                        </tr>
                        <?php endforeach; ?>

                    </tbody>
                </table>
                <p>
        				<strong><?php echo $this->htmlEscape($_review['title']) ?></strong>
                <br /><?php 
								 if (Mage::getStoreConfig('reviewrotator/displayoptions/truncatereview') > 0)
                  	$rtext = substr($_review['detail'], 0, Mage::getStoreConfig('reviewrotator/displayoptions/truncatereview'));
                  	if (strlen($rtext) < strlen($_review['detail']))
                  	  $rtext .= "...";
									else
									  $rtext = $_review['detail'];
								echo nl2br($this->htmlEscape($rtext."\n")); echo $this->__('(Posted on %s)', $this->formatDate($_review['created_at']), 'long') ?></p>
            </li>
        <?php if ($k >= $this->getNumberOfReviews()-1) { break;} endforeach; ?>
        
        </ol>
</div>
<?php endif;?>