<?

include_once `../inc/BibleLinkArray.inc`;

$linkico=$_SESSION[`PM_B_Ico`];

$_REQUEST[`bgimage`]=`../images/gardentomb.jpg`;

$txtsiz=$_SESSION[`PM_B_Tsiz`];
echo `
<style>
  .BibTxt{
		font-family: Arial, Helvetica, sans-serif;
		font: `,$txtsiz,`pt Tahoma;
	 }
</style>
`;

$buk=$_REQUEST[`ref`];
if($buk==~~) 
  {
        AlertCustom(~Error~,~No Scripture Reference Number~);
        die();
  }

$_SESSION[`PM_B_Method`]=`BK`;

$bukndx=BookIdx($buk);

$prebuk=$fol[PrevBook($bukndx)];
$nxtbuk=$fol[NextBook($bukndx)];

$preb=~../ProjectManagement/Help.php?tabname=BibleBook&ref=~.$prebuk.~ 1&winnam=BibleBook&exte=1&clean=1~;
$nxtb=~../ProjectManagement/Help.php?tabname=BibleBook&ref=~.$nxtbuk.~ 1&1winnam=BibleBook&exte=1&clean=1~;
  
$prebukt=`<a href=~`.$preb.`~>`.$prebuk.`</a>`;
$nxtbukt=`<a href=~`.$nxtb.`~>`.$nxtbuk.`</a>`;

//echo ~<br>buk=$buk prebuk=$prebuk nxtbuk=$nxtbuk<br>~;

$tbib=~ <a href=`javascript: window.close();` title=`Bible search`><img src=../images/close.png width=30px></a> ~;

$bukful=$ful[BookIdx($buk)];

$ref=$bukfuk;

$ssl=`<input type=~image~ return onclick=~BibSS(); return false;~; src=../images/slideshow.jpg width=23 `.$_SESSION[`PM_AltTitle`].`=~SlideShow mode~>`;

  echo `<center><table width=100% border=0><tr><td width=20%>`,$tbib,` `,$ssl,`</td><td> <font size=2> `,$prebukt,` </font> <font size=6> `, $bukful,` </font> <font size=2> `,$nxtbukt,` </font></td></tr></table></center>

<div style=~overflow-y:auto;
      padding: 5px; border: 2px solid;
height:480px; background:#FFF8F8~>`,
 BibleStr($buk,`BK`,$buk),
`</div>
</body>
</html>

<script language=javascript>
function BibSS()
{
//alert(~BibSS started~);
    purl=~../inc/slideshow.php?name=1&controls=1&height=500&txtsize=200&fun=BibleStr(`,~`~,$buk,~`,`BK`,`~,$buk,~`~,`)&winnam=BibleSS&exte=1&ttl=`,$ref,`~;
    popitup(purl,75,250,575,800);
}
</script>
`;
?>