{** 2007-2012 PrestaShop ** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.**  @author PrestaShop SA <contact@prestashop.com>*  @copyright  2007-2012 PrestaShop SA*  @version  Release: $Revision: 6594 $*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)*  International Registered Trademark & Property of PrestaShop SA*}<script type="text/javascript" src="{$js_dir}js/jquery.jcarousel.min.js"></script><script type="text/javascript">    jQuery(document).ready(function() {    $('#carousel').jcarousel({    wrap: 'circular',    scroll:1});});</script><!-- MODULE Home Featured Products --><div class="carousel">    <div class="row">        {if isset($products) AND $products}            {assign var='liHeight' value=250}            {assign var='nbItemsPerLine' value=4}            {assign var='nbLi' value=$products|@count}            {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}            {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}            <ul id="carousel">                {foreach from=$products item=product name=homeFeaturedProducts}                    {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo}                {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}                <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}item first{elseif $smarty.foreach.homeFeaturedProducts.last}last_                    item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}">                    <div class="products-box">                    {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <div class="featured-product">&nbsp;</div>{/if}                {if isset($product.new) && $product.new == 1}<div class="products-new">{l s='New' mod='homefeatured'}</div>{/if}                <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product-image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}"  alt="{$product.name|escape:html:'UTF-8'}" /> </a>                <div class="shadow-s">&nbsp;</div>                <div class="pro-info">                    <h2 class="product-name"><a href="{$product.link}" title="{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h2>                </div>                <div class="price-box">                    <span class="regular-price" id="product-price-44">        {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{else} <span class="price"></span> {/if}    </span></div><div class="clear"></div></div></li>{/foreach}        </ul>{else}    <p>{l s='No featured products' mod='homefeatured'}</p>{/if}</div></div><!-- end featured product  -->