<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Album: <: pAlbum_Name() :> | Picture: <:=Name(This_Image):></title>
  <: Meta() :>  <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />
  <link rel="home" href="<: $_ = Parent_Album(); s/^<a href='(.+)'>.*<\/a>$/$1/; print; :>" title="Album home" />
  <link rel="top" href="<: $_ = Parent_Album(); s/^<a href='(.+)'>.*<\/a>$/$1/; print; :>" title="Album home" />
  <link rel="previous" href=<: Set_Image_Prev(); print Image_Page_URL(); :> title="Previous image" />
  <link rel="next" href=<: Set_Image_Next(); print Image_Page_URL(); :> title="Next image" />
  <link rel="up" href=<:=Back():> title="Back to thumbnail page" />
  <link rel="stylesheet" type="text/css" href="/screenstyle.css" />
</head>
<body>

<div class="container">

<div class="albumblock"><h1><: print Path('album_name') :></h1>
</div>

<div><ul class="navbar">
                 <li><a href="/" class="nav">Home</a></li>
                 <li><a href="/Album" class="nav">Photo Album</a></li>
                 <li><a href="/Forums" class="nav">Forums</a></li>
                 <li><a href="/Mail" class="nav">Web Mail</a></li>
</ul></div>

<?php
if ( isset($_POST["passphrase"]) ) {
  if ( strncmp($_POST["passphrase"], "somedumbpass", 25) == 0 ) {
    $_SESSION["passphrase"] = $_POST["passphrase"];

  }
}
if ( ! isset($_SESSION["passphrase"]) ) {
  if ( strncmp($_SESSION["passphrase"], "somedumbpass", 25) != 0 ) {
    echo "<div class=\"content\">\n";
    echo "\tWe are sorry for the inconvenience, but this section is protected.\n";
    echo "\tPlease enter the passphrase to continue.  If you don't have the passphrase,\n";
    echo "\tyou can request it from the\n";
    echo "\t<a href=\"mailto:webmaster@website.com\">Site Administrator</a><br><br>\n\n";

    echo "\t<form method=\"post\" action\"/index.php\">\n";
    echo "\t\tPassphrase: <input type=text name=\"passphrase\">\n";
    echo "\t</form>\n";
    echo "</div>\n";
    exit (0);
  }
}
?>

<ul class="menu">
<: while (Parent_Albums()) { _:>
  <: if (Parent_Albums_Left() > 1) { _:>
    <li>
    <: pParent_Album() :> &raquo;
  <: } else { _:>
    <li>
    <: pParent_Album() :>
  <: } _:>
  </li>
  <: Next_Parent_Album() :>
<: } _:>
  <li class="up">
    <a href=<:=Back():>>Go up</a>
  </li>
</ul>

<: if (isHeader()) { _:>
<h2>
  <:pHeader():>
</h2>
<: } _:>

<div class="album_content">
<center>
  <:=Get(This_Image,'href','image'):>
  <:=Image(This_Image,'medium'); :> </a>
  <div class="caption">
    <:=Caption(This_Image); :>
  </div>
</center>
</div>

<!--<div class="spacer">&nbsp;</div>-->

<div class="album_content">
<div class="thumbs2">

<: $prev = Prev(This_Image, $opt->{image_loop}); :>
	<div class="wrapname" style="float: left">
		<div class="wrap1">
		<div class="wrap2">
		<div class="wrap3">
		<div class="wrap4">
		<div class="wrap5">
			<:=Get($prev,'href','image_page'); :>
			<:=Image($prev,'thumb') :> </a>
		</div>
		</div>
		</div>
		</div>
		</div>
</div>

<: $next = Next(This_Image, $opt->{image_loop}); :>
	<div class="wrapname" style="float: right">
		<div class="wrap1">
		<div class="wrap2">
		<div class="wrap3">
		<div class="wrap4">
		<div class="wrap5" >
			<:=Get($next,'href','image_page'); :>
			<:=Image($next,'thumb') :> </a>	  
		</div>
		</div>
		</div>
		</div>
		</div>
</div>
			
</div>

<div class="footer">
<div class="spacer">&nbsp;</div>

<address>
<: Credit() :> on <:=scalar localtime:>
<br />&nbsp;<span class="helmar">Dropshadow CSS theme by Kurt Edelmann- modified CSS styles from Helmar Weiland & Pat Carr</a></span>
</address>
</div>

</body>
</html>
