<div class="categries_drops">
	{assign var="cat_page" value=0}
	{foreach from=$hierdata key='key' item='item'}
		{if $active_hierarchy == $item.id}
			{assign var="cat_page" value=1}
		{/if}
		{if (isset($active_hierarchy) and $item.id == $active_hierarchy) || $item.id|in_array:$hierarchy_tree}
			{assign var="parent" value=$item.id}
		{/if}
		<div{if (isset($active_hierarchy) and $item.id == $active_hierarchy) || $item.id|in_array:$hierarchy_tree} class="selected"{/if}>
			{*<pre> 
			{$item|@print_r}
			</pre>*}
			<a href="{$item.url}">
				{if $item.id == 2}
					<img src="images/icons/ico_5.png" alt="" />
					<img class="h" src="images/icons/ico_5_h.png" alt="" />
				{elseif $item.id == 1}
					<img src="images/icons/ico_4.png" alt="" />
					<img class="h" src="images/icons/ico_4_h.png" alt="" />
				{else}
					<img src="images/icons/ico_3.png" alt="" />
					<img class="h" src="images/icons/ico_3_h.png" alt="" />
				{/if}
				<span>{$item.name.$kalba}</span>
			</a>
			<div class="sub_drop_container">
				{if $item.image != ''}
					{CGSmartImage src="`$hierarchy_image_location`/`$item.image`" filter_croptofit='425,233,c,1' quality=100 class="ilustration"}
				{/if}
				<div class="cont">
					{if $item.children_exist }
						{Products action="hierarchy" hierarchytemplate="inner1" parent=$item.id one_level=1}
					{/if}
					<div class="descrs">
						<h2>{$item.name.$kalba}</h2>
						<div>
							{$item.description.$kalba}
						</div>
						<br />
						{if $item.file}
							<div>
								<a href="{$hierarchy_image_location}/{$item.file}" target="_blank" class="ext_button yellow f_13">
									<i class="ico left"><i style="background-image:url({root_url}/images/icons/ico_10.png)"></i></i>
									<span>{#download#}</span>
								</a>
							</div>
						{/if}
					</div>
				</div>
			</div>
		</div>



	  {*<li {if isset($active_hierarchy) and $item.id == $active_hierarchy} class="active"{/if}>
	  {if $item.count gt 0}
		 <a href="{$item.url}">{$item.name} ({$item.count})</a>
	  {else}
		 {$item.name} ({$item.count})
	  {/if}

	  {if isset($item.children) }
		{include file=$smarty.template hierdata=$item.children hdepth=$hdepth+1}
	  {/if}

	  </li>*}

	{/foreach}
</div>
