вот модифицированый photo.detail
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="photo-detail">
table cellspacing="0" cellpadding="0" border="0" width="100%" class="tekst3">
<tr>
<td align="center" width="20%">
<?if(is_array($arResult["PREV"][1])):?>
<a href="<?=$arResult["PREV"][1]["DETAIL_PAGE_URL"]?>"><<</a>
<?else:?>
<?endif?>
</td>
<td align="center" width="20%">
<?if(is_array($arResult["PREV"][0])):?>
<a href="<?=$arResult["PREV"][0]["DETAIL_PAGE_URL"]?>">< Попередній</a>
<?else:?>
<?endif?>
</td>
<td align="center" width="20%">
<?=GetMessage("NO_OF_COUNT",array("#NO#"=>$arResult["CURRENT"]["NO"],"#TOTAL#"=>$arResult["CURRENT"]["COUNT"]))?>
</td>
<td align="center" width="20%">
<?if(is_array($arResult["NEXT"][0])):?>
<a href="<?=$arResult["NEXT"][0]["DETAIL_PAGE_URL"]?>">Наступний ></a>
<?else:?>
<?endif?>
</td>
<td align="center" width="20%">
<?if(is_array($arResult["NEXT"][1])):?>
<a href="<?=$arResult["NEXT"][1]["DETAIL_PAGE_URL"]?>">>></a>
<?else:?>
<?endif?>
</td>
</tr>
</table>
</div>
А в catalog.element вставил вызов фотогалереи компелксный 2.0
Спасибо всем за помощь