<ja:include once page="bsh/slide-original.bsh">Code NOT Included</ja:include>

<%
	Common commonModel = (Common)origSlideModel;
	AbstractSlide absSlideModel = (AbstractSlide)origSlideModel;

	origSlideModel.updateVars();
%>

<ja:include page="includes/html-header.inc" />
<html>
<head>
	<title><%= origSlideModel.getCurrentSlideFullTitle() %></title>

	<!-- Include Header Common Parts -->
	<ja:include page="includes/common-header.inc" />

	<ja:if test="<%= origSlideModel.isVariableValueEqual( Constants.USER_VAR_INCLUDE_META_TAGS_ON_SLIDES, imageDirectory, true ) %>">
		<!-- Include Meta-Tags -->
		<ja:include page="includes/metatags-header.inc" />
	</ja:if>

	<!-- Navigation Support -->
	<script language="javascript" type="text/javascript" src="$resPath/js/nav-slide.js"></script>

	<ja:if test="<%= origSlideModel.isVariableValueEqual( Constants.USER_VAR_INCLUDE_KEYBOARD_SUPPORT, imageDirectory, true ) %>">
		<!-- Keyboard Support -->
		<script language="javascript" type="text/javascript" src="$resPath/js/keyboard.js"></script>
	</ja:if>

	<ja:if test="<%= origSlideModel.isVariableValueEqual( Constants.USER_VAR_INCLUDE_SLIDE_SHOW, imageDirectory, true ) %>">
		<!-- SlideShow Support -->
		<script language="javascript" type="text/javascript" src="$resPath/js/multiple-onloads.js"></script>
		<script language="javascript" type="text/javascript" src="$resPath/js/slideshow.js"></script>
	</ja:if>

	<!-- Page Setup -->
	<script language="javascript" type="text/javascript">
		<ja:include page="includes/setup-slide-common.js">JavaScript Code NOT Included</ja:include>
		<ja:include page="includes/setup-slide-original.js">JavaScript Code NOT Included</ja:include>
	</script>
</head>

<body id="body">

	<ja:include page="includes/slide-photographic-meta-info.inc" />
	<ja:include page="includes/help.inc" />

	<!-- table for entire slide page -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="100%" height="100%">
				<!-- table for top path bar -->
				<ja:include page="includes/slide-topbar.inc" />
			</td>
		</tr>
		<tr>
			<td align="center">
				<!-- table of navigation icons and slide image -->
				<%
					String slideBackgroundPath = origSlideModel.getSlideBackgroundPath();
                    String upAction = origSlideModel.getActionBlock("$currentPage", "$text.up", origSlideModel.getIconSetPath(imageDirectory) + "/up.gif");
				%>
				<ja:if test="<%= slideBackgroundPath!=null %>">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" background="${slideBackgroundPath}">
						<tr>
							<td height="5"><img src="$resPath/empty.gif" alt=""/></td>
						</tr>
				</ja:if>
				<ja:else>
					<table class="original-slide-pagebody" width="100%" border="0" cellspacing="0" cellpadding="0">
				</ja:else>

					<ja:if test="<%= origSlideModel.hasTopNavigationBar() %>">
						<tr valign="top">
							<td width="100%">
								<ja:include page="includes/slide-top-navigation.inc" />
							</td>
						</tr>
					</ja:if>

					<tr>
						<td class="topruler"/>
					</tr>
					<tr>
						<td>
							<%= origSlideModel.getCurrentOriginalSlideContent(); %>
						</td>
					</tr>
					<tr>
						<td class="bottomruler"/>
					</tr>

					<ja:if test="<%= origSlideModel.hasBottomNavigationBar() %>">
						<tr valign="top">
							<td width="100%">
								<ja:include page="includes/slide-bottom-navigation.inc" />
							</td>
						</tr>
					</ja:if>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<!-- Page Footer -->
				<ja:include page="includes/footer.inc" />
			</td>
		</tr>
	</table>

	<script language="javascript" type="text/javascript">pageSetup();</script>
</body>
</html>