{{$bHideSocial = true}}
{{include 'head.tpl'}}
</head><body class="compare">
<div id="compare-head">
	<div id="logo"><img src="{{$config.dir_templates}}images/logo.png" alt="{{$config.title}}" /></div>
	<div class="navi-actions">
		<a class="print" href="javascript:window.print();">{{$lang.print}}</a>
	</div>
</div>
{{if !empty( $aProducts )}}
	<div id="compare-wrapper"><table id="compare">
	<tr class="param delete"><th><a class="delete-all" href="#">{{$lang.Delete_all}}</a></th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}"><a class="delete" href="#">{{$lang.Delete}}</a></td>
		{{/foreach}}
	</tr>

	<tr class="param name"><th>{{$lang.Name}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}"><a href="{{$aProduct.sLinkName}}">{{$aProduct.sName}}</a></td>
		{{/foreach}}
	</tr>

	<tr class="param"><th>{{$lang.Photo}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}">
		{{if isset($aProduct.aDataImage)}}
			<div class="photo">
				<a href="{{$aProduct.sLinkName}}"><img src="{{$config.dir_files}}{{$aProductMinSizes.List}}/{{$aProduct.aDataImage.sFileName}}" alt="{{$aProduct.aDataImage.sFileDescription}}" /></a>
			</div>
		{{else}}
			<div class="nophoto">
			</div>
		{{/if}}
		</td>
		{{/foreach}}
	</tr>

	{{if !$config.prices_off}}
		<tr class="param"><th>{{$lang.Price}}</th>
			{{foreach from=$aProducts item=aProduct}}
			<td class="product-{{$aProduct.iProduct}}">
			<div class="price">
			{{if isset($aProduct.sCatalogPrice)}}
				{{$lang.Your_price}}: <span class="value">{{$aProduct.sPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span> 
				<span class="catalog">{{$lang.Catalog_price}}: <span class="value">{{$aProduct.sCatalogPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
			{{else}}
				{{$lang.Price}}: <span class="value">{{$aProduct.sPrice}}</span> <span class="currency">{{$config.currency_symbol}}</span>
			{{/if}}
			{{if isset($aProduct.sPriceOld)}}
				<span class="old">{{$lang.Price_old}}: <span class="value">{{$aProduct.sPriceOld}}</span> <span class="currency">{{$config.currency_symbol}}</span></span>
			{{/if}}
			</div>
			</td>
			{{/foreach}}
		</tr>
	{{/if}}

	<tr class="param"><th>{{$lang.Producer}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}">{{$aProduct.sProducer}}</td>
		{{/foreach}}
	</tr>

	<tr class="param"><th>{{$lang.Producers_page}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}"><a href="{{$aProduct.sProducerURL}}">{{$aProduct.sProducerURL}}</a></td>
		{{/foreach}}
	</tr>

	<tr class="param"><th>{{$lang.Weight}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}">{{if isset($aProduct.sWeightDisplayed)}}{{$aProduct.sWeightDisplayed}}{{else}}{{$aProduct.sWeight}}{{/if}}</td>
		{{/foreach}}
	</tr>

	<tr class="param"><th>{{$lang.Size}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}">{{$aProduct.sSizeXYZ}}</td>
		{{/foreach}}
	</tr>

	{{foreach from=$aAttributes item=aAttribute}}
	<tr class="attribute"><th>{{$aAttribute.sName}}</th>
		{{foreach from=$aProducts item=aProduct}}
		<td class="product-{{$aProduct.iProduct}}">{{if is_array($aProduct.aAttributes[$aAttribute@key].aValues)}}{{foreach from=$aProduct.aAttributes[$aAttribute@key].aValues item=sValue}}{{$sValue}}{{if !$sValue@last}} / {{/if}}{{/foreach}}{{/if}}</td>
		{{/foreach}}
	</tr>
	{{/foreach}}
	<tr><th>Link</th>
	{{foreach from = $aProducts item = aProduct}}
		{{*<td><a class="button" href="{{$aProduct.sLinkName}}">{{$lang.basket_add_product}}</a></td>*}}
		<td class="product-{{$aProduct.iProduct}}">
		{{if $aProduct.iVisiblePrice}}
			{{if isset( $sBasketPage ) && ( $aProduct.iNotForSale == 0 ) && ( $aProduct.iCanBuy > 0 )}}
				{{if $aProduct.iVariantCount == 1}}
					<a target="_blank" class="basket direct" href="{{$sBasketPage}}iProductAdd={{$aProduct.iProduct}}&amp;iQuantity=4" rel="nofollow" title="{{$lang.basket_add}} - {{$aProduct.sName}}">{{$lang.basket_add}}</a>
				{{else}}
					<a target="_blank" class="basket" href="{{$aProduct.sLinkName}}" rel="nofollow" title="{{$lang.basket_add}} - {{$aProduct.sName}}">{{$lang.basket_add}}</a>
				{{/if}}
			{{else}}
				<p class="available">{{$lang.Ask_about_product}}<br /><a href=mailto:{{$config.orders_email}}>{{$config.orders_email}}</a></p>
			{{/if}}
		{{else}}
			<p class="available">{{$lang.Ask_about_product}}<br /><a href=mailto:{{$config.orders_email}}>{{$config.orders_email}}</a></p>
		{{/if}}
		</td>
	{{/foreach}}
	</tr>
	

	</table></div>
{{else}}
	<div class="message" id="error">
		<h3>
			{{$lang.Compare_empty}}
		</h3>
	</div>
{{/if}}
</body></html>