// counters
<inp2:m_ModuleInclude template="catalog_tab" tab_init="3"/>

// category related statistics
$Catalog.ParentCategoryID = <inp2:c_GetParentCategory/>;

<inp2:m_DefineElement name="category_caption">
	<inp2:m_ifnot check="m_Param" name="is_first">
		<inp2:m_param name="separator"/>
	</inp2:m_ifnot>
	<inp2:m_if check="m_ParamEquals" name="current" value="1" inverse="1">
		<a class="control_link" href="javascript:$Catalog.go_to_cat(<inp2:m_param name="cat_id"/>);"><inp2:m_param name="cat_name"/></a>
	<inp2:m_else/>
		<inp2:m_param name="cat_name"/>
	</inp2:m_if>
</inp2:m_DefineElement>

setInnerHTML('category_path', '<inp2:c_CategoryPath separator=" / " render_as="category_caption" js_escape="1" strip_nl="2"/>');
set_window_title( RemoveTranslationLink(document.getElementById('blue_bar').innerHTML, false).replace(/(<[^<]+>)/g, '').replace(/\s+/g, ' ').trim() );

<inp2:m_if check="m_Get" name="last_template">
	<inp2:m_Get name="last_template" result_to_var="last_template"/>
	<inp2:c_UpdateLastTemplate template="$last_template"/>
<inp2:m_else/>
	<inp2:c_UpdateLastTemplate template="catalog/catalog"/>
</inp2:m_if>

<inp2:m_include t="categories/ci_blocks"/>
<inp2:m_RenderElement name="structure_reload_element"/>