<?if(!defined("B_PROLOG_INCLUDED")||B_PROLOG_INCLUDED!==true)die();?>
<?if($arParams["ADD_MONTH_CHANGE"]=="Y"):?>
	<div class="calend-div-item">
			<div id="calend">
				<?foreach($arResult['MONTHS'] as $htmlMonth):?>		
					<?=$htmlMonth['HTML']?>		
				<?endforeach?>
		</div>
	</div>
<?else:?>
	<?foreach($arResult['MONTHS'] as $htmlMonth):?>
		<div class="calend-div-item">
			<div id="calend">
				<?=$htmlMonth['HTML']?>
			</div>
		</div>
	<?endforeach?>
<?endif?>
<?if($arParams["CALENDAR_TYPE"]=="year" && $arParams["ADD_MONTH_CHANGE"]!="Y"):?>
	<div class="clear-c"></div>
	<div class="legend">
		<table cellspacing="1" cellpadding="0" border="0" class="month">			
			<tbody>
				<tr>
					<th colspan="2"><?=GetMessage("LEGEND")?></th>					
				</tr>
				<tr>
					<td class="marked">8</td>
					<td class="caption"><?=GetMessage("CELEBRATION")?></td>
				</tr>
				<tr>
					<td class="green-c ">7</td>
					<td class="caption"><?=GetMessage("REDUCED")?></td>
				</tr>
				<tr>
					<td class="today"><?=date('d')?></td>
					<td class="caption"><?=GetMessage("TODAY")?></td>
				</tr>
			</tbody>
		</table>
	</div>
<?endif?>