			<!-- PHP Remarks Support -->
			<%
				String imageIdPath = rootOutputDirectory.getName().concat(outputDirectory.toString().substring(rootOutputDirectory.toString().length()));

				imageIdPath = imageIdPath.replace('\\','/') + "/";
			%>
			<?php
				include "$resPath/php/remarks.php";
				$userRemarks = new UserRemarks("${imageIdPath}","$indexPage");
			?>
			<!-- 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="<%= indexModel.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="<%= indexModel.isVariableValueEqual( Constants.USER_VAR_REMARKS_FORCE_VISIBLE, imageDirectory, true ) %>">
					showRemarks();
               	</ja:if>
			</script>
