$grab = GetIBlockElement($arItem["ITEM_ID"]); $image1 = CFile::GetPath($grab["PREVIEW_PICTURE"]); $image2 = CFile::GetPath($grab["DETAIL_PICTURE"]);