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

$APPLICATION->IncludeComponent(
	"bitrix:search.page",
	"",
	Array(
		"TAGS_PAGE_ELEMENTS" => $arParams["TAGS_PAGE_ELEMENTS"], 
		"TAGS_PERIOD" => $arParams["TAGS_PERIOD"], 
		"TAGS_URL_SEARCH" => $arResult["URL_TEMPLATES"]["search"], 
		"DETAIL_URL" => $arResult["URL_TEMPLATES"]["detail"],
		"SECTIONS_TOP_URL" => $arResult["URL_TEMPLATES"]["sections_top"],
		"TAGS_INHERIT" => $arParams["TAGS_INHERIT"], 
		
		"FONT_MAX" => $arParams["FONT_MAX"],
		"FONT_MIN" => $arParams["FONT_MIN"],
		"COLOR_NEW" => $arParams["COLOR_NEW"],
		"COLOR_OLD" => $arParams["COLOR_OLD"],
		"SHOW_CHAIN" => $arParams["TAGS_SHOW_CHAIN"], 
		"CELL_COUNT"	=>	$arParams["CELL_COUNT"],
		"WIDTH" => "100%",  
		
		"PAGE_RESULT_COUNT" => (empty($arParams["PAGE_RESULT_COUNT"]) ? 50 : $arParams["PAGE_RESULT_COUNT"]),
		"PAGER_TEMPLATE" => $arParams["PAGE_NAVIGATION_TEMPLATE"],
		"CACHE_TYPE" => $arParams["CACHE_TYPE"],
		"CACHE_TIME" => $arParams["CACHE_TIME"],

		"IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
		"IBLOCK_ID" => $arParams["IBLOCK_ID"],
		"SECTION_ID" => $arResult["VARIABLES"]["SECTION_ID"],
		"SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"],
		
		"USE_PERMISSIONS" => $arParams["USE_PERMISSIONS"],
		"GROUP_PERMISSIONS" => $arParams["GROUP_PERMISSIONS"],
		
		"CACHE_TYPE" => $arParams["CACHE_TYPE"],
		"CACHE_TIME" => 0,
		
		"SHOW_TAGS" => $arParams["SHOW_TAGS"], 
		"arrWHERE" => Array(), 
		"arrFILTER" => array("iblock_".$arParams["IBLOCK_TYPE"]), 
		"arrFILTER_iblock_".$arParams["IBLOCK_TYPE"] => array($arParams["IBLOCK_ID"]),
		
		"ALBUM_PHOTO_THUMBS_WIDTH"	=>	$arParams["ALBUM_PHOTO_THUMBS_WIDTH"],
		"ALBUM_PHOTO_WIDTH"	=>	$arParams["ALBUM_PHOTO_WIDTH"],
		"THUMBS_SIZE"	=>	$arParams["THUMBS_SIZE"],
		"PREVIEW_SIZE"	=>	$arParams["PREVIEW_SIZE"],
		"SET_TITLE"	=>	$arParams["SET_TITLE"]
	),
	$component
);
?>