<%
	void writeCurrentOriginalSlide()
	{
		File myfile = files[imageNum-1];
		Map vars = (Map)fileVariables.get(myfile);

		if( isMovieFile(myfile) )
			block = getMovieBlock(myfile.getName(), getMovieSlideSize());
		else
		{
			String img_template = "<img src=\"{0}\" alt=\"{1}\"/>";
			String link_template = "<a href=\"{0}\" title=\"{1}\">{2}</a>";

			if( isVariableValueEqual( USER_VAR_INCLUDE_MOVE_FORWARD_FACILITY, imageDirectory, true ) )
			{
				if( nextPage!=void )
				{
					block = MessageFormat.format(img_template, new Object[] {vars.get("originalPath"), getFromResourceBundle("next-slide")});
					block = MessageFormat.format(link_template, new Object[] {"javascript:nextPage()", getFromResourceBundle("next-slide"), block});
				}
				else
					block = MessageFormat.format(img_template, new Object[] {vars.get("originalPath"), getFromResourceBundle("on-last-slide")});
			}
			else
			{
				block = MessageFormat.format(img_template, new Object[] {vars.get("originalPath"), getFromResourceBundle("up")});
				block = MessageFormat.format(link_template, new Object[] {vars.get("currentPage"), getFromResourceBundle("up"), block});
			}
		}

		out.println( block );
	}
%>