<ja:include once page="bsh/vars.bsh">Code NOT Included</ja:include>
<ja:include once page="bsh/base.bsh">Code NOT Included</ja:include>
<ja:include once page="bsh/common.bsh">Code NOT Included</ja:include>
<ja:include once page="bsh/photographic-meta-info.bsh">Code NOT Included</ja:include>
<ja:include once page="bsh/slide.bsh">Code NOT Included</ja:include>
<ja:include once page="bsh/slide-original.bsh">Code NOT Included</ja:include>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><%= getCurrentSlideFullTitle() %></title>

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

	<!-- 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>

	<ja:if test="<%= hasSlideMetaData() %>">
		<!-- Photographic meta information Support -->
		<script language="javascript" type="text/javascript" src="$resPath/js/photographic-meta-info.js"></script>
	</ja:if>

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

	<ja:if test="<%= isVariableValueEqual( 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="<%= isVariableValueEqual( USER_VAR_INCLUDE_SLIDE_SHOW, imageDirectory, true ) %>">
		<!-- SlideShow Support -->
		<script language="javascript" type="text/javascript" src="$resPath/js/slideshow.js"></script>
	</ja:if>
</head>

<body id="body" onload="startSlideShowCountDown();">

	<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 = getSlideBackgroundPath();
                    String upAction = getActionBlock("$currentPage", "$text.up", 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="pagebody" width="100%" border="0" cellspacing="0" cellpadding="0">
				</ja:else>

					<ja:if test="<%= 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>
							<% writeCurrentOriginalSlide(); %>
						</td>
					</tr>
					<tr>
						<td class="bottomruler"/>
					</tr>

					<ja:if test="<%= 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>