			<!-- PHP Remarks Support -->
			<?php
				include "$resPath/php/remarks.php";
				$userRemarks = new UserRemarks("<%= slideModel.getCurrentSlideViewerRemarksId(); %>", "$currentPage", "$resPath");
			?>
			<!-- PHP Remarks Support -->

            <a name="remarksheader"></a>
            <div class="remarksheader">
	            <span id="remarkscount"></span>&nbsp;$text.remarks-section
 				<span class="small">
                	&nbsp;&nbsp;&nbsp;[<a href="javascript:toggleRemarksVisibility()" title="$text.remarks-info"
						<ja:if test="<%= slideModel.hasStatusBar() %>">
	                		onmouseover="setStatusbarTip('$text.remarks-info', 0);" onmouseout="setStatusbarTip('&nbsp;',0);"
	                	</ja:if>
                	>$text.toggle-remarks</a>]
                </span>
            </div>

			<div id="remarks" class="remarksbody" style="visibility:hidden; display:none;">
				<?php
					$userRemarks->executeAction();
				?>
			</div>
			<script language="javascript">
				setRemarksCount( "<?php $userRemarks->showRemarksCount(); ?>" );

				<?php $userRemarks->forceDisplayRemarksIfNecessary(); ?>
				<ja:if test="<%= slideModel.isRemarksSectionAlwaysOpen() %>">
					showRemarks();
				</ja:if>
				<ja:if test="<%= slideModel.isRemarksSectionOpenIfRemarksExist() %>">
					<?php $userRemarks->displayRemarksIfNotEmpty(); ?>
				</ja:if>
			</script>
