<div class="box latest">
    <ul>
      <?php $i=1; foreach ($products as $product) { $i++; ?>      
      <li <?php 
	  		if($i%3==0){
				echo 'class="second"';
			}
		  ?>>
        <?php if ($product['thumb']) { ?>        
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
			<?php if($product['special']) :?>
                <span class="promo">promo</span>
            <?php endif; ?>
        </div>
        <?php } ?>
        <div class="prodInfo">
        <h2 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h2>
        <?php if ($product['price']) { ?>
        <div class="price">
          <?php if (!$product['special']) { ?>
          	<p><?php echo $product['price']; ?></p>
          <?php } else { ?>
          	<p><span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span></p>
          <?php } ?>
        </div>
        </div>
        <?php } ?>
      </li>
      <?php } ?>
    </ul>
    <div class="clear"></div>
</div>
