{if $shopArticles}
	<!-- indi:content_box_item_list -->
	<script type="text/javascript" src="{$PARENT_THEME_DIR}/media/js/content_box_item_list.js"></script>

	<script type="text/javascript">
		{if $useInfinityScroll}
			useInfinityScroll = true;
		{else}
			useInfinityScroll = false;
		{/if}
	</script>

	{if isset($producerSelection) && $producerSelection}
		{assign var=link_attributes value="producerId=`$producerSelection`"}
		{assign var=list_title value=$shopProducers[$producerSelection]}
	{/if}

	{if $system_configuration.item_image_server_uri}
		{assign var=SHOP_DIR value="{$system_configuration.item_image_server_uri}"}
	{/if}

	<div class="content_box_item_list">
		{* Header 
		********************************************}

		<div class="listheader">
			<div class="top">
				{if $block->style && ((isset($content_box_title) && $content_box_title) || (isset($structureData) && $structureData->name))}
					<{$block->style}>{if isset($content_box_title) && $content_box_title}{$content_box_title}{elseif isset($structureData)}{$structureData->name}{/if}</{$block->style}>
				{/if}

				<!-- sort list -->
				{if !(isset($hide_listoptions) && $hide_listoptions)}
					<div class="sort_wrapper">
						<div class="title" style="display:inline-block;top:15px;left:20px;z-index:9999;">Sortiere nach</div>
						<div class="sort_selection">
							<div class="menu_arrow"><span></span></div>
							<div class="selected_name" style="top:13px;">
								{if $sort_by == 'name_up' || $sort_by == 'name_down'}Bezeichnung<input type="hidden" id="sort_selection_item" name="sort_selection_item" value="name" />{/if}
								{if $sort_by == 'number_up' || $sort_by == 'number_down'}Artikelnummer<input type="hidden" id="sort_selection_item" name="sort_selection_item" value="number" />{/if}
								{if $sort_by == 'manufacturer_up' || $sort_by == 'manufacturer_down'}Hersteller<input type="hidden" id="sort_selection_item" name="sort_selection_item" value="manufacturer" />{/if}
								{if $sort_by == 'price_up' || $sort_by == 'price_down'}Preis<input type="hidden" id="sort_selection_item" name="sort_selection_item" value="price" />{/if}
							</div>
							<div class="menu_field">
								<div style="position:absolute;left:110px;top:27px;height:1px;width:28px;background:#ffffff;z-index:100;"></div>
								<div class="category_menu">
									<ul>
										<li><a class="sort_item" rel="name" href="{$currentSURI}" title="Bezeichnung">Bezeichnung</a></li>
										<li><a class="sort_item" rel="number" href="{$currentSURI}" title="Artikelnummer">Artikelnummer</a></li>
										<li><a class="sort_item" rel="manufacturer" href="{$currentSURI}" title="Hersteller">Hersteller</a></li>
										<li><a class="sort_item" rel="price" href="{$currentSURI}" title="Preis">Preis</a></li>
									</ul>
								</div>
							</div>
						</div>
						<div class="sort_direction_up {if $sort_by == 'name_up' || $sort_by == 'number_up' || $sort_by == 'manufacturer_up' || $sort_by == 'price_up'}sort_up_active{/if}"></div>
						<div class="sort_direction_down {if $sort_by == 'name_down' || $sort_by == 'number_down' || $sort_by == 'manufacturer_down' || $sort_by == 'price_down'}sort_down_active{/if}"></div>

						<form id="sort_by" method="post" action="{$currentSURI}">
							<input type="hidden" name="sort_by" id="sort_by_selector" value="{$sort_by}">
						</form>
					</div>
				{/if}
			</div>
			{if !(isset($hide_pagination) && $hide_pagination)}
				<div class="bottom">
					<!-- item shown -->
					<div class="list_item_shown_wrapper">
						<a class="pagingButton {if $itemsPerPage == 24}activ{/if}" title="24 Artikel" rel="24" href="#">24</a>|<a title="48 Artikel" class="pagingButton {if $itemsPerPage == 48}activ{/if}" rel="48" href="#">48</a>|<a title="Alle Artikel" class="pagingButton {if $itemsPerPage == 9999}activ{/if}" rel="9999" href="#">alle</a>

						<form id="pagingSelectorForm" method="post">
							<input type="hidden" name="pagingSelector" value="" id="pagingSelector">
						</form>
					</div>

					<!-- pagination -->
					{if $shopArticles && isset($found_pages) && $found_pages > 1}
						<div class="pagination">
							{if $found_showing_page > 1}
								<a rel="{$found_showing_page-1}" title="Seite zurück" class="pagination_button pagination_back" href="#">&nbsp;</a>
							{else}
								<a title="Seite zurück" class="pagination_back inactive">&nbsp;</a>
							{/if}

							{section name=pageloop start=1 loop=$found_pages+1}
								{if ($found_showing_page >= $smarty.section.pageloop.index - 6 && $found_showing_page <= $smarty.section.pageloop.index + 6) || $smarty.section.pageloop.index < 7 || $smarty.section.pageloop.index > $found_pages - 6}
									<a title="Seite {$smarty.section.pageloop.index}" rel="{$smarty.section.pageloop.index}" href="#" class="pagination_button {if $found_showing_page == $smarty.section.pageloop.index}highlight{/if}">{$smarty.section.pageloop.index}</a>
								{elseif $smarty.section.pageloop.index == 7 || $smarty.section.pageloop.index == $found_pages - 7}
									<span>[...]</span>
								{/if}
							{/section}

							{if $found_showing_page < $found_pages}
								<a title="Seite vor" rel="{$found_showing_page+1}" class="pagination_button pagination_forward" href="#">&nbsp;</a>
							{else}
								<a title="Seite vor" class="pagination_forward inactive">&nbsp;</a>
							{/if}

							<form id="paginationForm" method="post">
								<input type="hidden" name="page"  value="" id="paginationSeite">
							</form>
						</div>
					{/if}
				</div>
			{/if}
		</div>

		{if $search_item_categories}
			<div class="content_box_structure_family_list full_box">
				<div class="family_list_content clearfix">
					{if isset($content_box_title) || $content_box_title}
						<div class="title_wrapper">
							<h1>
								{if isset($content_box_title) && $content_box_title}
									{$content_box_title}
								{elseif isset($structureData)}
									{$structureData->name}
								{/if}

								{if $shopArticles|@count > 0}
									({$shopArticles|@count} Treffer)
								{/if}
							</h1>
						</div>
					{/if}

					<div class="grandchildren">
						<br />
						{foreach $search_item_categories as $child}
							{foreach $child->children as $grandchild}
								{if $grandchild->active == 1}
									<a title="{$grandchild->name}" href="./index.php?search_item={$search_item}&search_item2={$search_item2}&search_item3={$search_item3}&item_category={$grandchild->id}" style="margin-bottom:2px;">
										{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$structure->name_en}
											{$child->name} <span></span> {$grandchild->name} ({$grandchild->found_items})
										{else}
											{$child->name} <span></span> {$grandchild->name_en} ({$grandchild->found_items})
										{/if}
									</a>
								{/if}
							{/foreach}
						{/foreach}
					</div>
				</div>
			</div>
		{/if}








		{* List 
		********************************************}

		<div class="listcontent" style="min-height:800px;">
			{include file='item_box_loop.tpl'}
		</div>

		{* Footer 
		********************************************}

		<div class="listfooter">
			<div class="top">
				{$system_configuration.shop_itemlist_footertext|replace:"\n":"<br />"}
			</div>
			{if !(isset($hide_pagination) && $hide_pagination)}
				<div class="bottom">
					<!-- item shown -->
					<div class="list_item_shown_wrapper">
						<a title="24 Artikel" class="pagingButton {if $itemsPerPage == 24}activ{/if}" rel="24" href="#">24</a>|<a title="48 Artikel" class="pagingButton {if $itemsPerPage == 48}activ{/if}" rel="48" href="#">48</a>|<a title="Alle Artikel" class="pagingButton {if $itemsPerPage == 9999}activ{/if}" rel="9999" href="#">alle</a>

						<form id="pagingSelectorForm" method="post">
							<input type="hidden" name="pagingSelector" value="" id="pagingSelector">
						</form>
					</div>


					<!-- pagination -->
					{if $shopArticles && isset($found_pages) && $found_pages > 1}
						<div class="pagination">
							{if $found_showing_page > 1}
								<a title="Seite zurück" rel="{$found_showing_page-1}" class="pagination_button pagination_back" href="#">&nbsp;</a>
							{else}
								<a title="Seite zurück" class="pagination_back inactive">&nbsp;</a>
							{/if}

							{section name=pageloop start=1 loop=$found_pages+1}
								{if ($found_showing_page >= $smarty.section.pageloop.index - 6 && $found_showing_page <= $smarty.section.pageloop.index + 6) || $smarty.section.pageloop.index < 7 || $smarty.section.pageloop.index > $found_pages - 6}
									<a title="Seite {$smarty.section.pageloop.index}" rel="{$smarty.section.pageloop.index}" href="#" class="pagination_button {if $found_showing_page == $smarty.section.pageloop.index}highlight{/if}">{$smarty.section.pageloop.index}</a>
								{elseif $smarty.section.pageloop.index == 7 || $smarty.section.pageloop.index == $found_pages - 7}
									<span>[...]</span>
								{/if}
							{/section}

							{if $found_showing_page < $found_pages}
								<a title="Seite vor" rel="{$found_showing_page+1}" class="pagination_button pagination_forward" href="#">&nbsp;</a>
							{else}
								<a title="Seite vor" class="pagination_forward inactive">&nbsp;</a>
							{/if}

							<form id="paginationForm" method="post">
								<input type="hidden" name="page"  value="" id="paginationSeite">
							</form>
						</div>
					{/if}
				</div>
			{/if}
		</div>
	</div>
{/if}