SetTitle("Документы"); $IBLOCK_CODE = "documentation_".SITE_ID; $arFilter = Array("IBLOCK_CODE"=>$IBLOCK_CODE, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y"); $res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, Array("nPageSize"=>50), array()); if($res->SelectedRowsCount()!=0) { $count = $res->SelectedRowsCount(); $rowCount = $count/2; if ($rowCount > intval($rowCount)) $rowCount = intval($rowCount) + 1; ?>