Version 4.0 beta

";
if($chapter!="")
include("gallery/".$chapter.".php");
else
include("gallery/default.php");
if(($image=="20")&&($page!=$maxpage))
{
$nextimage="1";
$nextpage=$page+1;
}
else
{
if(($page!=$maxpage)||($image!=$maximage))
{
$nextimage=$image+1;
$nextpage=$page;
}
else
{
$forward="";
}
}
if(!isset($forward))
$forward="

";
if ($chapter!="")
$image="".$chapter."_".$page."_".$image."";
else
$image="".$page."_".$image."";
?>