
<?php
/**
 * Cart cross sell items template
 *
 * @see Mage_Checkout_Block_Cart_Crosssell
 */
?>
<?php if($this->getItemCount()): ?>
<div class="crosssell">
  
    <h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
  

    <ul id="crosssell-products-list" class="products-grid first odd">
    <?php foreach ($this->getItems() as $_item): ?>
        <li class="item">
           <a href="<?php echo $_item->getProductUrl() ?>" class="fancybox quick-view" id="fancybox358"><?php echo $this->__('Details');?></a>
          <a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>">
             <img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail'); ?>" class="small-image" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" />             
          </a>
          <div class="prod_image_detail">
           
            <a class="product-name" href="<?php echo $_item->getProductUrl() ?>">
               <?php $prod_name = $this->htmlEscape($_item->getName());  if(strlen($prod_name) > 20) {echo substr($prod_name,0,20)."...";}else {echo $prod_name;}?>
            </a>
             <?php echo $this->getPriceHtml($_item, true) ?>
            <div class="actions">
               <?php if($_item->isSaleable()): ?>
                  <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
               <?php else: ?>
                  <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
               <?php endif; ?>
            </div> <!--actions-->
          </div> <!--prod_image_detail-->        
        </li>
    <?php endforeach; ?>
    </ul>
    <script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
</div>  <!--crosssell-->
<?php endif; ?>
