{if $angebote_array}

<script type="text/javascript">
<!-- //
$(function() {ldelim}
	 $('#container-offers ul').tabs({ldelim} fx: {ldelim} opacity: 'toggle' {rdelim} {rdelim});
{rdelim});

$(document).ready(function()
{ldelim}
	$('div.offers_inshop').toggleElements( {ldelim} fxAnimation:'hide', fxSpeed:'normal', className:'toggler',onClick:OffersCloser,onHide:OffersOpener{rdelim} );
{rdelim});

function OffersOpener() {ldelim}$.cookie('offers_inshop','opened', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});{rdelim}
function OffersCloser() {ldelim}$.cookie('offers_inshop', '', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});{rdelim}
// -->
</script>

<div class="round">
<div class="offers_inshop {if $smarty.cookies.offers_inshop=='opened'}{else}opened{/if}" title="{#Shop_Offers#}">
<div id="container-offers">
<ul>
{foreach from=$angebote_array item=pa name=offers}
{assign var=count_oc value=$count_oc+1}
{if $count_oc % $colums_offers==0 && !$smarty.foreach.offers.last || ($smarty.foreach.offers.first)}
{assign var=oc value=$oc+1}
	<li><a href="#offers-{$oc}"><span>{#Shop_artpage#} {$oc}</span></a></li>
{/if}
{/foreach}
</ul>
<div class="clear"></div>


<div id="offers-1">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    {foreach from=$angebote_array item=p name=offers}
    {assign var=offers_split value=$offers_split+1}
    {if $offers_split % $colums_offers==0 && !$smarty.foreach.offers.last || ($smarty.foreach.offers.first)}
    {assign var=offers_div_split value=$offers_div_split+1}
    {/if}

    {assign var=count_of value=$count_of+1}

<td style="width:{$colums_width_offers}%">
<script language="javascript" type="text/javascript">
<!--
$(document).ready(function(){ldelim}
var options = {ldelim}target:'#ajaxbasket',  timeout:   3000 {rdelim}; 
$('#ajop_products_{$p.Id}').submit(function() {ldelim}
jQuery.blockUI({ldelim} message: '<h2>{#Shop_ProdAddedToBasket#}</h2>'{rdelim}); 
setTimeout(jQuery.unblockUI, 2000); 
$(this).ajaxSubmit(options); 
return false;  {rdelim}); {rdelim}); 
-->
</script>


<div class="shop_newest_boxes">
<div class="{if $count_of % $colums_offers==0}shop_newest_first{else}shop_newest_second{/if}" {if $count > $newest_colums}style="border-top:0px"{/if}>
<form class="jNice" id="ajop_products_{$p.Id}" method="post" action="{if !$p.Vars && $p.Lagerbestand>0}index.php?p=shop{else}index.php?p=shop&amp;action=showproduct&amp;id={$p.Id}{/if}">
<div class="shop_product_text" {popup text=$p.Titel|koobispecialchars}>
<div class="shop_image_newstart">
<a title="{$p.Titel|koobispecialchars}" href="{$p.ProdLink}"><img class="shop_productimage_left" src="{$p.Bild_Mittel}" alt="" border="0" /></a>
</div>

<div class="shop_product_title_new">
<a title="{$p.Titel|koobispecialchars}" href="{$p.ProdLink}">{$p.Titel|escape:html|stripslashes|truncate:25}</a>
</div>

</div>
<div class="shop_price_detail_footer">
{*
{#Arrow#}<a title="{$p.Titel|koobispecialchars}" href="{$p.ProdLink}">{#Shop_moreInfo#}</a><br /><br />
*}

{if $p.Preis_Liste > 0}
{#Shop_instead#}&nbsp;&nbsp;<span class="shop_price_old">{$p.Preis_Liste|numformat} {$currency_symbol}</span>
<br/>
{/if}

{if $p.Vars}{#Shop_priceFrom#} {/if} 
{if $show_price_images==1}
<br />{$p.Preis|imgsrt}{$currency_symbol|imgletter}<br />
{else}
	<span class="shop_price">{$p.Preis|numformat} {$currency_symbol} *</span>
{/if}
	{if $no_nettodisplay!=1}
	{if $price_onlynetto != 1}
	<br />
	<div class="shop_subtext">
    {if $shopsettings->NettoKlein==1}
    {#Shop_netto#} {$p.netto_price|numformat} {$currency_symbol}
    <br />
    {/if}
    {* {include file="$incpath/shop/tax_inf_small.tpl"} *}
    </div>
	{/if}
	
	{if $price_onlynetto == 1 && $p.price_ust_ex != ''}
	<br />
	<div class="shop_subtext">
    {include file="$incpath/shop/tax_inf_small.tpl"}
    </div>
	{/if}
	{/if}
	
    {if $p.Fsk18==1 && $fsk_user!=1}
    <br /><br />
    <button class="shop_buttons_big" type="button" onclick="location.href='{$p.ProdLink}';"><img src="{$imgpath}/shop/basket_simple.png" alt="" border="0" /> {#buttonDetails#}</button>
    {else}
	{if !$p.Vars  && $p.Lagerbestand>0}
	 <input type="hidden" name="amount" value="1" />
    <input type="hidden" name="action" value="to_cart" />
    <input type="hidden" name="redir" value="{redir}" />
    <input type="hidden" name="product_id" value="{$p.Id}" />
    <input type="hidden" name="ajax" value="1" />
    <noscript><input type="hidden" name="ajax" value="0" /></noscript>
    <div id="ajop_products_basketmessage_{$p.Id}">
	<br /><br />
    </div><button class="shop_buttons_big" type="submit"><img src="{$imgpath}/shop/basket_simple.png" alt="" border="0" /> {#Shop_toBasket#}</button>
    {else}
	<input type="hidden" name="cid" value="{$p.Kategorie}" />
	<input type="hidden" name="parent" value="{$p.Parent}" />
	<input type="hidden" name="navop" value="{$p.Navop}" />
	<br /><br />
    <button class="shop_buttons_big" type="button" onclick="location.href='{$p.ProdLink}';"><img src="{$imgpath}/shop/basket_simple.png" alt="" border="0" /> {#buttonDetails#}</button>
	{/if}
    {/if}
	</div>
	</form>
</div>
</div>
</td>
{if $count_of % $colums_offers==0 && !$smarty.foreach.offers.last}
</tr>
</table>
</div>

<div id="offers-{$offers_div_split}">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
{/if}


{/foreach}
</tr></table>
</div>
</div>
</div>
</div>
{/if}