<div class="highlited-class hl_boxes {{if $config.iNettoOption == 1}}double_price{{/if}}">
	{{if count( $aHlProducts.aList ) > 0}}
	<div id="product-highlighted-{{$aHlProducts.iBox}}-container" class="product-highlighted-container">
		<h2>{{$aHlProducts.title}}</h2>
		<div id="product-highlighted-{{$aHlProducts.iBox}}" class="product-highlighted box-rounded">
			<ul>
				{{foreach from=$aHlProducts.aList item=aHlProduct}}
					<li id="box{{$aHlProducts.iBox}}-product{{$aHlProduct.iProduct}}" class="boxes{{if !($aHlProduct@iteration is div by 2)}} alternate{{/if}}" >
						<h3><a href="{{$aHlProduct.sLinkName}}">{{$aHlProduct.sName}}</a></h3>
						{{if !empty( $aHlProduct.aDataImage )}}
							<div class="photo" id="box{{$aHlProducts.iBox}}-product{{$aHlProduct.iProduct}}-photo">
								<a href="{{$aHlProduct.sLinkName}}"><img src="{{$config.dir_files}}{{$aProductMinSizes.Highlight}}/{{$aHlProduct.aDataImage.sFileName}}" alt="[{{$aHlProduct.sName}}] {{$aHlProduct.aDataImage.sFileDescription}}" /></a>
						{{else}}
							<div class="nophoto" id="box{{$aHlProducts.iBox}}-product{{$aHlProduct.iProduct}}-photo">
						{{/if}}
								{{if isset($aHlProduct.sDiscountPercent)}}
									<div class="promo discount">{{$lang.Promotion}} -{{$aHlProduct.sDiscountPercent}}%</div>
								{{elseif !empty( $aHlProduct.aPromoted )}}
									{{$iPromotionMain = min( array_keys( $aHlProduct.aPromoted ) )}}
									<div class="promo" style="background-color: {{$config["promoted{{$iPromotionMain}}_color_prom"]}}">{{$config["promoted{{$iPromotionMain}}_name_prom"]}}</div><br />
								{{/if}}
							</div>
						{{if !$config.prices_off}}
							{{if $config.iNettoOption > 0}}
								<p class="price_type netto">{{$lang.Net}}</p>
								{{if isset($aHlProduct.sDiscountPercent)}}
									<div class="price"><span class="value">{{number_format( $aHlProduct.fPrice / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span> <span class="old"><span class="value">{{number_format( $aHlProduct.fCatalogPrice / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span></span></div>
								{{elseif $aHlProduct.fCatalogPrice > $aHlProduct.fPrice}}
									<div class="price">
										<span class="value">{{number_format( $aHlProduct.fPrice / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span>
										{{if !empty( $aHlProduct.fPriceOld )}}
											<span class="old"><span class="value">{{number_format( $aHlProduct.fPriceOld / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
										{{/if}}
									</div>
								{{else}}
									<div class="price">
										<span class="value">{{number_format( $aHlProduct.fPrice / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span>
										{{if !empty( $aHlProduct.fPriceOld )}}
											<span class="old"><span class="value">{{number_format( $aHlProduct.fPriceOld / ( 1 + $aHlProduct.fVatValue ), 2, '.', '' )}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
										{{/if}}
									</div>
								{{/if}}
							{{/if}}
							{{if $config.iNettoOption < 2}}
								{{if $config.iNettoOption == 1}}<p class="price_type gross">{{$lang.Gross}}</p>{{/if}}
								{{if isset($aHlProduct.sDiscountPercent)}}
									<div class="price"><span class="value">{{$aHlProduct.sPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span> <span class="old"><span class="value">{{$aHlProduct.sCatalogPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span></span></div>
								{{elseif $aHlProduct.fCatalogPrice > $aHlProduct.fPrice}}
									<div class="price">
										<span class="value">{{$aHlProduct.sPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span>
										{{if !empty( $aHlProduct.sPriceOld )}}
											<span class="old"><span class="value">{{$aHlProduct.sPriceOld}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
										{{/if}}
									</div>
								{{else}}
									<div class="price">
										<span class="value">{{$aHlProduct.sPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span>
										{{if !empty( $aHlProduct.sPriceOld )}}
											<span class="old"><span class="value">{{$aHlProduct.sPriceOld}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
										{{/if}}
									</div>
								{{/if}}
							{{/if}}
						{{/if}}
					</li>
				{{/foreach}}
			</ul>
			{{if isset($aHlProducts.more)}}
				<p class="more"><a href="{{$aHlProducts.more}}">{{$lang.see_more}} &raquo;</a></p>
			{{/if}}
			<div class="clear"></div>
		</div>
	</div>
	{{/if}}
</div>