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

<?if (!empty($arResult)):?>
    <div class="head-nav">
        <span class="menu"> </span>
        <ul class="cl-effect-1">
            <?php foreach($arResult as $arItem): ?>
                <?php if($arParams["MAX_LEVEL"] == 1 && $arItem["DEPTH_LEVEL"] > 1) continue; ?>
                <?php if($arItem["SELECTED"]): ?>
                    <li class="active"><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a></li>
                <?php else: ?>
                    <li><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a></li>
                <?php endif; ?>
            <?php endforeach; ?>
            <div class="clearfix"></div>
        </ul>
    </div>
<?endif?>