<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>

<div class="b-catalog">
	<div class="ots">
					
		<div class="clear"></div>
		
	</div>
	<div class="b-product">
		<?if(is_array($arResult["PREVIEW_PICTURE"]) || is_array($arResult["DETAIL_PICTURE"])){?>
		<div class="product_pic">
			<?if(is_array($arResult["PREVIEW_IMG"]) && is_array($arResult["DETAIL_PICTURE"]))
			{
				echo CFile::Show2Images($arResult["PREVIEW_IMG"]['SRC'], $arResult["DETAIL_PICTURE"]['ID'], 0, 0, "hspace='0' align='left' vspace='0' border='0' title='".$arResult["NAME"]."'", true,260);
			}
			elseif(is_array($arResult["PREVIEW_IMG"]))
			{
				echo CFile::ShowImage($arResult['DETAIL_PICTURE']['ID'], 0, 0, "border=0 align=left", "", false,260);
			}?>
			<?if(count($arResult["MORE_PHOTO"])>0){?>
				<br /><a href="#more_photo"><?=GetMessage("CATALOG_MORE_PHOTO")?></a>
			<?}?>
		</div>
		<?}?>
		<div class="product_info">
			<ul class="product_details">
			
			<?foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
			<li class="product_details-item">
				<span><?=$arProperty["NAME"]?>:<b>&nbsp;</span><?
				if(is_array($arProperty["DISPLAY_VALUE"])):
					echo implode("&nbsp;/&nbsp;", $arProperty["DISPLAY_VALUE"]);
				elseif($pid=="MANUAL"):
					?><a href="<?=$arProperty["VALUE"]?>"><?=GetMessage("CATALOG_DOWNLOAD")?></a><?
				else:
					echo $arProperty["DISPLAY_VALUE"];?>
				<?endif?></b><br />
			</li>
			<?endforeach?>
			</ul>
			<div class="b-product_price">
			<?if ($arResult["PRICES"]['retail']['PRINT_VALUE_NOVAT']!=$arResult["PRICES"]['retail']['PRINT_DISCOUNT_VALUE_NOVAT'])
			{?>
				<?=GetMessage("PRICE")?> <del class="price_old"><?=$arResult["PRICES"]['retail']['PRINT_VALUE_NOVAT']?></del> <span class="price_new"><?=$arResult["PRICES"]['retail']['PRINT_DISCOUNT_VALUE_NOVAT']?></span>
			<?} else {?>
				<?=GetMessage("PRICE")?> <span class="price_new"><?=$arResult["PRICES"]['retail']['PRINT_VALUE_NOVAT']?></span>
			<?}?>
			</div>			
			<div class="b-product_actions">
				<a href='<?=$arElement["ADD_URL"]?>' data-value="" role="button" class="b-btn license_add"><?=GetMessage("CATALOG_ADD_TO_BASKET")?><i class="btn_crn"></i></a>
			</div>
		</div>
	</div>
	
	<div class="b-catalog-action">

	<a href="<?=$arParams['FORM_ANSWER_LINK'].'?serv='.GetMessage('T_ORDER_PRESENTATION').' &laquo;'.$arResult['NAME'].'&raquo;&field_id='.$arParams['FORM_ANSWER_ID']?>" class="catalog-action_present"><i class="pic"></i><?=GetMessage('ORDER_PRESENTATION')?></a>

	</div>
	
	<div class="b-catalog-tabs b-tabs">
		<ul class="catalog-tabs_head tabs_theads">
			<li class="catalog-tabs_thead tabs_thead"><span class="catalog-tabs_title"><?=GetMessage("DETAIL_TEXT")?></span></li>
		<?if(!$arResult['PROPERTIES']["DETAIL_FEATURES"]){$add_features_style="style='display:none'";}?>
			<li <?=$add_features_style?> class="catalog-tabs_thead tabs_thead"><span class="catalog-tabs_title"><?=GetMessage("DETAIL_FEATURES")?></span></li>
		<?if(!$arResult['PROPERTIES']["DETAIL_PHOTOS"]){$add_photos_style="style='display:none'";}?>
			<li <?=$add_photos_style?> class="catalog-tabs_thead tabs_thead"><span class="catalog-tabs_title"><?=GetMessage("DETAIL_PHOTOS")?></span></li>
		</ul>
		
		
		
		<ul class="catalog-tabs_body tabs_tbodys">
			<li class="catalog-tabs_tbody tabs_tbody ugc">
				<?if($arResult["DETAIL_TEXT"]):?>
					<?=$arResult["DETAIL_TEXT"]?><br />
				<?elseif($arResult["PREVIEW_TEXT"]):?>
					<?=$arResult["PREVIEW_TEXT"]?><br />
				<?endif;?>
				<?if(count($arResult["LINKED_ELEMENTS"])>0):?>
					<b><?=$arResult["LINKED_ELEMENTS"][0]["IBLOCK_NAME"]?>:</b>
					<ul>
						<?foreach($arResult["LINKED_ELEMENTS"] as $arElement):?>
							<li><a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arElement["NAME"]?></a></li>
						<?endforeach;?>
					</ul>
				<?endif?>	
			</li>
			<li class="catalog-tabs_tbody tabs_tbody ugc"><?=$arResult['PROPERTIES']["DETAIL_FEATURES"]['VALUE']['TEXT']?></li>
			<li class="catalog-tabs_tbody tabs_tbody ugc"><?=$arResult['PROPERTIES']["DETAIL_PHOTOS"]['VALUE']['TEXT']?></li>
		</ul>
	</div>
	
	<div class="b-catalog-footer">
		<div class="b-product_price">			
			<?if ($arResult["PRICES"]['retail']['PRINT_VALUE_NOVAT']!=$arResult["PRICES"]['retail']['PRINT_DISCOUNT_VALUE_NOVAT'])
			{?>
				<?=GetMessage("PRICE")?> <span class="price_new"><?=$arResult["PRICES"]['retail']['PRINT_DISCOUNT_VALUE_NOVAT']?></span>
			<?} else {?>
				<?=GetMessage("PRICE")?> <span class="price_new"><?=$arResult["PRICES"]['retail']['PRINT_VALUE_NOVAT']?></span>
			<?}?>		
		</div>
		<div class="b-product_actions">
			<a href='<?=$arElement["ADD_URL"]?>' data-value="" role="button" class="b-btn license_add"><?=GetMessage("CATALOG_ADD_TO_BASKET")?><i class="btn_crn"></i></a>
               
		</div>
	</div>

		<?if(is_array($arResult["SECTION"])):?>
			<br />
			<noindex>
				<a href="<?=$arResult["SECTION"]["SECTION_PAGE_URL"]?>" rel="nofollow"><?=GetMessage("CATALOG_BACK")?> "<?=$arResult['SECTION']['NAME']?>"</a>
			</noindex>
		<?endif?>
</div>