<!-- content_item/main_default.tpl begin -->
<div class="content_item">
	<div class="title_wrapper" style="height:100px;">
		<div class="title"><h3>{$shopArticle->name}</h3></div>
		{if $shopArticle->number}<span class="item_number">Artikel-Nr.: {$shopArticle->number}</span>{/if}
		
		<div style="position:absolute;right:10px;top:45px;height:50px;width:120px;background: transparent url({$SHOP_DIR}/images/manufacturers/{$shopArticle->manufacturer_data->logo}) no-repeat center center;"></div>
		
	</div>

	<div class="content_sub_item">
		<!-- left area -->
		<div class="left_area">
			<!-- content_item/thumbnails.tpl begin -->
			<img id="big_image" src="{$SHOP_DIR}images/article/{$shopArticle->files[0]->file_name}" />
			
			{*
			{if isset($shopArticle->files[0]) && $shopArticle->files[0]->file_name}
				<div id="image_detailed_container_outer">
				{if $shopArticle->shop_bargain_price_1 > 0}
					<div class="bargain_logo"></div>
				{/if}
				
					<div id="image_detailed_container_inner">
					{foreach item=file from=$shopArticle->files}
						<a class="detailImage" href="{$SHOP_DIR}images/article/{$file->file_name}"  rel="lightbox-big" title="{$shopArticle->name}" style="background-image: url({$SHOP_DIR}images/article/details_{$file->file_name})"></a>
					{/foreach}
					</div>
				</div>
			{/if}
			
			<div id="thumbContainer">
				<div id="thumbScrollContainer" style="width:{if $shopArticle->files|@count > 4}{$shopArticle->files|@count|ceil*91}{else}364{/if}px;">
					{foreach item=file from=$shopArticle->files}
						<a class="thumbimage" href="{$SHOP_DIR}images/article/{$file->file_name}" rel="lightbox-small" title="{$shopArticle->name}" style="background-image: url({$SHOP_DIR}images/article/thumb_{$file->file_name});"></a>
					{/foreach}
					<br style="clear:left;" />
				</div>
			</div>*}
		</div>
		<!-- right area -->
		<div class="right_area">
			<div id="lupe" style="position: relative;border: 1px solid #000000;overflow:hidden;width:300px;height:300px;">
				<img src="{$SHOP_DIR}images/article/{$shopArticle->files[0]->file_name}" style="position: relative;" />
			</div>
	       
			<div class="price_box" style="position:relative;top:10px;">
			
				<div id="item_left_menu">
					<a href="#tabs_1" rel="left_tabs_1" class="tab_wrapper active selected">
						<span>Preise</span>
					</a>
					{*<a href="#tabs_2" rel="left_tabs_2" class="tab_wrapper">
						<span>Finanzierung</span>
					</a>*}
					<div style="clear:left;"></div>
				</div>
				
				<div id="left_description_tabs">
						<div class="left_tab_content active" id="left_tabs_1" style="position:relative;">
						
						<br />
						{if $shopArticle->shop_bargain_price_1 > 0}
							<div style="position:relative;float:left;width:175px;min-height:100px;text-align:right;">
								<strong class="pricelabel">Sonderpreis!</strong><br />
								<strong class="pricetag">
									{if !$no_prices}
										{$shopArticle->shop_bargain_price_1|number_format:"2":",":"."} &euro;
									{else}
										Preis nach Login!
									{/if}
								</strong><br />
									
								{if !$no_prices}
								<span class="pricesaving">Sie sparen {$shopArticle->shop_price_1-$shopArticle->shop_bargain_price_1|number_format:"2":",":"."} &euro;</span>
								{/if}
							</div>
							<div style="position:relative;float:left;width:175px;min-height:100px;text-align:right;">
								<strong class="oldpricelabel">Unser Preis</strong><br />
								<strong class="oldprice">
									{if !$no_prices}
										{$shopArticle->shop_price_1|number_format:"2":",":"."} &euro;
									{else}
										Preis nach Login!
									{/if}
								</strong>
							</div>
							<div style="clear:both;"></div>
						


						{elseif $shopArticle->shop_price_1 > 0}
							<div class="box_rightalign">
								<strong class="pricelabel">Unser Preis</strong>

								<div style="padding-top:10px;">
									<strong class="pricetag">
									{if !$no_prices}
										{$shopArticle->shop_price_1|number_format:"2":",":"."} &euro;
									{else}
										Preis nach Login!
									{/if}
									</strong>
								</div>
								
							</div>
						{else}
							<div class="box_rightalign">
								<strong class="pricelabel">Unser Preis</strong>

								<div style="padding-top:10px;">
									auf Anfrage
								</div>
							</div>
						{/if}
						
						
							<div style="padding-top:10px;height:91px;">
								{if !$no_prices && ( $shopArticle->shop_price_1 > 0 || $shopArticle->shop_bargain_price_1 > 0)}
								{if $shopArticle->shippable != 0}
								<div id="cart_button_box">
								
									<img style="position:absolute;top:7px;left:6px;" src="{$THEME_DIR}/media/images/widgets/shoppingcart_button_icon.png" />
									<form method="post">
										<div style="position:absolute;left:50px;top:3px;text-align:center;">
											<div class="graylabel">Anzahl</div>
											<input class="amountbox" type="text" value="1" name="amount" />
										</div>
										<input class="cartbutton" type="submit" value="&gt;&gt; Jetzt kaufen" />
									</form>
								
								</div>
								{/if}
								{/if}
								
								{if $shopArticle->item_types}
								<div style="position:relative;width:350px;text-align:right;color:#ff0000;font-size:12px;">
								{foreach item=item_type from=$shopArticle->item_types}
									{if $item_type->item_type_definition_is_active == 1}
									<span style="font-weight:bold;">{$item_type->item_type_definition_name}</span> - {$item_type->item_type_text}<br />
									{/if}
								{/foreach}
								</div>
								{/if}
								
								<div style="position:relative;width:350px;text-align:right;">Alle Preise {$shopArticle->price_tax_text}</div>
								<div class="box_rightalign" style="padding-top:5px;">
								{if $shopArticle->inventory < 1}
								Artikel bestellt | 
								{else}
								Bestand: {$shopArticle->inventory} | 
								{/if}
								{if $shopArticle->shippable == 1}
									<font class="item_shippable">lieferbar</font><br>
								{elseif $shopArticle->shippable == 3}
									<font class="item_shippable_unknown">lieferzeit unbekannt</font><br>
								{elseif $shopArticle->shippable == 0}
									<font class="item_not_shippable">nicht lieferbar</font><br>
								{elseif $shopArticle->shippable == 2 && $shopArticle->available_from && $shopArticle->available_till != '0000-00-00'}
									<font class="item_shippable_from_till">lieferbar von {$shopArticle->available_from} bis {$shopArticle->available_till}</font><br>
								{elseif $shopArticle->shippable == 2 && $shopArticle->available_from}
									<font class="item_shippable_from">lieferbar ab {$shopArticle->available_from}</font><br>
								{/if}
									{*<a href="/Versandkosten/">zzgl. Versandkosten</a>*}
								</div>
							</div>
							<br />
						
						
						{*
						{if $no_prices}
						Versandkostenberechnung:<br />
						<select id="select_shipping_calc">
							<option value="0">Lieferung nach:</option>
							{foreach item=country from=$countries}
							<option value="{$country.id}">{$country.name}</option>
							{/foreach}
						</select>
						<br />
						{foreach item=country from=$countries}
							<div id="shipping_{$delivery_method.id}">
								{if $country.delivery_methods}
									{foreach item=delivery_method from=$country.delivery_methods}
										{$delivery_method.name}: {$delivery_method.price} &euro;<br />
									{/foreach}
								{else}
									Keine Versandm&ouml;glichkeit in dieses Land!
								{/if}
							</div>
						{/foreach}
						{/if}
						*}
						
						
						<!-- content_item/graduated_prices.tpl begin --> 
						{if $shopArticle->graduated_prices|is_array && $shopArticle->graduated_prices}

							<strong style="position:relative;color:#000000;font-size:12px;font-weight:bold;">Staffelpreise</strong>
							<table class="graduatedPrices">
							{foreach item=gradPrice key=quantity from=$shopArticle->graduated_prices}
								<tr style="background:#cccccc;">
									<td>&nbsp;ab {$quantity} St&uuml;ck</td>
									{if $gradPrice.bargain > 0}
										<td style="text-align: right;color:#04418c;">
										{if !$no_prices}
											{$gradPrice.bargain|number_format:"2":",":"."} &euro;
										{else}
											Preis nach Login!
										{/if}
										</td>
										<td style="text-decoration: line-through; text-align: right;color:#000000;">
										{if !$no_prices}
											{$gradPrice.price|number_format:"2":",":"."} &euro;
										{else}
											Preis nach Login!
										{/if}
										</td>
									{else}
										<td></td>
										<td style="text-align: right;color:#333333;">
										{if !$no_prices}
											{$gradPrice.price|number_format:"2":",":"."} &euro;
										{else}
											Preis nach Login!
										{/if}
										</td>
									{/if}
									<td style="text-align: center;">
									{if $shopArticle->shippable != 0}
										<form method="post">
											<input type="hidden" value="{$quantity}" name="amount" />
											<input class="graduatedCart" type="submit" value="" />
										</form>
									{/if}
									</td>
								</tr>
							{/foreach}
							</table>
						{/if}
						<!-- content_item/graduated_prices.tpl end --> 
						
						
						
						</div>

						<div class="left_tab_content" id="left_tabs_2">
							Derzeit bieten wir leider keine Finanzierung an!
						</div>
				</div>
				
			</div>
		</div>
		<div style="clear:both;"></div>

		<div style="position:relative;height:30px;top:10px;width:720px;background:#eeeeee;border:1px solid #cccccc;">
			{if $shopArticle->files|@count > 4}
					<div style="position: absolute;top:5px;left:10px;width:340px;">
						<div id="thumbPageInfo">Bilder 1 bis 4 von {$shopArticle->files|@count}</div>
						<input id="thumbSlideLeft" class="thumbSlider" type="button" value="&lt;&nbsp;&lt;&nbsp;zur&uuml;ck" />
						<input id="thumbSlideRight" class="thumbSlider" type="button" value="weiter&nbsp;&gt;&nbsp;&gt;" />
					</div>
			{/if}
			<div id="facebook_share_item"></div>
			<form method="post">
				<input type="hidden" name="memorize" value="true" />
				<input type="submit" class="remember_button" value="Artikel merken" name="remember_button" />
			</form>
		</div>

		<!-- footer area -->
		<!-- content_item/description_tabs.tpl begin --> 
			<div id="item_menu">
				{if $shopArticle->tab_title}
					{foreach from=$shopArticle->tab_title item=title key=title_id name=titles}
						<a href="#" rel="tabs_{$title_id}" class="tab_wrapper {if $smarty.foreach.titles.first}active selected{/if}">
							<span>{$title}</span>
						</a>
					{/foreach}
				{else}
					<a href="#tabs_1" rel="tabs_1" class="tab_wrapper active selected">
						<span>Beschreibung</span>
					</a>
					{if $shopArticle->documents}
					<a href="#tabs_2" rel="tabs_2" class="tab_wrapper selected">
						<span>Datenblatt</span>
					</a>
					{/if}
					{if $system_configuration.shop_item_opinion_active == 1}
					<a href="#tabs_3" rel="tabs_3" class="tab_wrapper selected">
						<span>Meinungen</span>
					</a>
					{/if}
					{if $shopArticle->assignedItemSet}
					<a href="#tabs_4" rel="tabs_4" class="tab_wrapper selected">
						<span>Zubeh&ouml;r</span>
					</a>
					{/if}
				{/if}
			
				<div style="clear:left;"></div>
			</div>
			<div id="description_tabs">
				{if $shopArticle->tab_content}
					{foreach from=$shopArticle->tab_content item=content key=content_id name=contents}
						<div class="tab_content {if $smarty.foreach.contents.first}active{/if}" id="tabs_{$content_id}">
							{if $smarty.foreach.contents.first}
								{if $shopArticle->schema_data_attributes}
									<table>
										{foreach from=$shopArticle->schema_data_attributes item=attribute}
											{if $attribute.show_detail && $attribute.value}
												<tr>
													{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
														<td>{$attribute.name}</td>
														<td class="attrRight">{$attribute.value} {$attribute.unit}</td>
													{/if}
												</tr>
											{/if}
										{/foreach}
									</table>
									<br />
								{/if}
								
								{$content}
								
								
							{/if}
						</div>
					{/foreach}
				{else}
					<div class="tab_content active" id="tabs_1">
						<div style="position:relative;width:450px;float:left;">
							{$shopArticle->detail_description}
						</div>
						<div style="position:relative;width:210px;padding-top:6px;padding-left:20px;float:left;">	
							<div id="itemBarcode" style="position:absolute;top:0px;right:0px;">{$shopArticle->ean_code}</div>
							<table width="100%" style="position:relative;top:70px;">
							{if $shopArticle->sample_price && $shopArticle->sample_unit}
							<tr>
								{if $shopArticle->uvp > 0}
									<td style="font-weight:bold;">UVP:</td>
									<td style="text-align:right;">{$shopArticle->uvp|number_format:"2":",":"."} &euro;</td>
								{/if}
							</tr>
							{/if}
							{if $shopArticle->sample_price && $shopArticle->sample_unit}
							<tr>
								{if $shopArticle->sample_price !== 0.000}
									<td style="font-weight:bold;">Grundpreis:</td>
									<td style="text-align:right;">{$shopArticle->sample_price|number_format:"2":",":"."} &euro; / {$shopArticle->sample_unit}</td>
								{/if}
								{*
								{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
									<td style="font-weight:bold;">Grundpreis:</td>
									<td style="text-align:right;">{$shopArticle->sample_price|number_format:"2":",":"."} &euro; / {$shopArticle->sample_unit}</td>
								{/if}
								*}
							</tr>
							{/if}
							{if $shopArticle->schema_data_attributes}
								{foreach from=$shopArticle->schema_data_attributes item=attribute}
									{if $attribute.show_detail && $attribute.value}
										<tr>
											{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
												<td style="font-weight:bold;">{$attribute.name}:</td>
												<td style="text-align:right;">{$attribute.value} {$attribute.unit}</td>
											{/if}
										</tr>
									{/if}
								{/foreach}
							{/if}
							</table>
						</div>
						<div style="clear:both;"></div>		
					</div>
					<div class="tab_content" id="tabs_2">
						<table border="0" cellspacing="2" callpadding="2">
						{foreach item=file from=$shopArticle->documents}
							<tr>
							  <td><img src="{$PARENT_THEME_DIR}/media/images/mime_postscript.png" /></td>
							  <td>
							    <a class="document" target="_blank" href="{$SHOP_DIR}documents/article/{$file->file_name}" title="{$file->alt}">{$file->alt}</a>
							  </td>
							</td>
						{/foreach}
						</table>
					</div>
					<div class="tab_content" id="tabs_3">
						{if $customer}
						<form method="post">
						<input type="hidden" name="create_opinion" value="1" />
						Bewertung: 
						<input type="radio" name="rang" value="1">
						<input type="radio" name="rang" value="2">
						<input type="radio" name="rang" value="3">
						<input type="radio" name="rang" value="4">
						<input type="radio" name="rang" value="5">
						<br />
						Meinung:<br />
						<textarea name="opinion_text" style="width:100%;height:200px;"></textarea><br />
						Autor: {$customer->firstname} {$customer->surname}<br />
						<input type="submit" name="Bewertung absenden" />
						<hr />
						</form>
						{/if}
						{if $shopArticle->opinion}
						Kundenrezensionen:<br/>
						{foreach item=rezension from=$shopArticle->opinion}
						Bewertung: {$rezension->rang}<br />
						Meinung: {$rezension->opinion_text}<br />
						Erstellt: {$rezension->user_name}, {$rezension->timestamp}<br />
						<hr />
						{/foreach}
						{else}
						Es ist f&uuml;r diesen Artikel noch keine Bewertung abgegeben worden.
						{/if}
					</div>
					<div class="tab_content" id="tabs_4">
								
						{if $shopArticle->assignedItemSet}
						<div class="content_box_item_list">
							<div class="box_content">
								{if $shopArticle->assignedItemSet}
									{foreach name=ArticleList item=shopItem from=$shopArticle->assignedItemSet}
										{if $shopItem->short_uri}
											{assign var=itemSuri value="/SHOP_ARTICLE/`$shopItem->short_uri`.html"}
										{else}
											{assign var=itemSuri value="/index.php?item_id=`$shopItem->id`"}
										{/if}
												
											<div class="list_item_box" style="margin-left:0px;">
												{if $shopItem->shop_bargain_price_1 > 0}
													<div class="bargain_logo"></div>
												{/if}
												<a class="item_box_info" href="{$serverProtocol}://{$servername}{$itemSuri}"><span title="{$shopItem->name}">{$shopItem->name|truncate:90:"...":true}</span></a>
												<a class="item_box_image" href="{$serverProtocol}://{$servername}{$itemSuri}" {if $shopItem->file_name != ''}style="background-image:url({$SHOP_DIR}images/article/overview_{$shopItem->file_name});"{/if}></a>
														
												<div class="item_box_price">
												{if !$no_prices && $shopItem->price_type == "1"}
													{if $shopItem->shop_price_1}
														{if $shopItem->shop_bargain_price_1 > 0}
															<div>
																<div class="bargain_price">
																	<span class="old_price">{$shopItem->shop_price_1|number_format:2:',':" "}&nbsp;&euro;</span> {$shopItem->shop_bargain_price_1|number_format:2:',':" "}&nbsp;&euro; *
																</div>
															</div>
														{else}
															<div class="normal_price">
																{$shopItem->shop_price_1|number_format:2:',':" "}&nbsp;&euro; *
															</div>
														{/if}
													{else}
														<div class="price_text">auf Anfrage</div>
													{/if}
												{else}
													<div class="price_text">auf Anfrage</div>
												{/if}
												</div>
											</div>
						
									{/foreach}
						
									<div style="clear:both;"></div>
								{else}
									<p>Keine Produkte vorhanden.</p>
								{/if}
							</div>
							{$system_configuration.shop_item_friends_footertext|replace:"\n":"<br />"}
							<div class="box_footer" style="clear:both; margin-bottom:20px;"></div>
						</div>
						{/if}
					</div>
				{/if}
			</div>
			
			<!-- content_item/description_tabs.tpl end --> 
					
				</div>
						
					
				
			</div>
			
			<!-- content_item/main_default.tpl end --> 
