<!-- hide this script from old browsers-->

// This script opens a new browser window and writes
// HTML to display an image with a title and caption

function BigPic(pTitle,pJpeg,pWidth,pHeight)
{
BP_Window=
window.open("","BigPic","scrollbars,resizable,width=pWidth,height=pHeight");
BP_Window.moveTo(0,0);
BP_Window.resizeTo(screen.width,screen.height);
BP_Window.document.write('<html><head><title>' + pTitle + '</title>');
BP_Window.document.write('</head>');
BP_Window.document.write('<BODY background="../TopGraphics/buttons.jpg">');
BP_Window.document.write('<table summary="BigPic" width="100%" border="0" cellspacing="5" cellpadding="0" height="100%">');
BP_Window.document.write('<tr>');
BP_Window.document.write('<td align="center">');
BP_Window.document.write('<INPUT TYPE="BUTTON" VALUE="Back to Beach Story" ONCLICK="window.close()"; return false>');
BP_Window.document.write('</td>');
BP_Window.document.write('</tr>');
BP_Window.document.write('<tr>');
BP_Window.document.write('<td>');
BP_Window.document.write('<div align="center">');
BP_Window.document.write('<img src="' + pJpeg + '" width="' + pWidth + '" height="' + pHeight + '" border="2" alt="' + pTitle +'">');
BP_Window.document.write('<br>');
BP_Window.document.write('</div>');
BP_Window.document.write('</td>');
BP_Window.document.write('</tr>');
BP_Window.document.write('</table>');
BP_Window.document.write('</body></html>');
BP_Window.document.close();
}

function HomePic(pTitle,pRoot,pFolder,pJpeg,pWidth,pHeight)
{
BP_Window=
window.open("","HomePic","scrollbars,resizable,width=pWidth,height=pHeight");
BP_Window.moveTo(0,0);
BP_Window.resizeTo(screen.width,screen.height);
BP_Window.document.write('<html><head><title>' + pTitle + '</title>');
BP_Window.document.write('</head>');
BP_Window.document.write('<BODY background="' +pRoot + '_graphics/dark.jpg">');
BP_Window.document.write('<table summary="HomePic" width="100%" border="0" cellspacing="5" cellpadding="0" height="100%">');
BP_Window.document.write('<tr>');
BP_Window.document.write('<td align="center">');
BP_Window.document.write('<INPUT TYPE="BUTTON" VALUE="Back to Previous Page" ONCLICK="window.close()"; return false>');
BP_Window.document.write('&nbsp;&nbsp;&nbsp;');
BP_Window.document.write('<INPUT TYPE="BUTTON" VALUE=" Read the Beach Story" ONCLICK="opener.location=&quot;' + pRoot + pFolder + '/' + pFolder + '.html&quot;;self.close()" return false>');
BP_Window.document.write('</td>');
BP_Window.document.write('</tr>');
BP_Window.document.write('<tr>');
BP_Window.document.write('<td>');
BP_Window.document.write('<div align="center">');
BP_Window.document.write('<img src="' + pRoot + pFolder + '/' + pJpeg + '" width="' + pWidth + '" height="' + pHeight + '" border="2" alt="' + pTitle +'">');
BP_Window.document.write('</div>');
BP_Window.document.write('</td>');
BP_Window.document.write('</tr>');
BP_Window.document.write('</table>');
BP_Window.document.write('</body></html>');
BP_Window.document.close();
}


function Header(hBeach,hMap,hLastW,hNextW,hPrBe,hNeBe)
{
Top_Header=
document.write('<DIV>');
document.write('<table summary="Page Header" style="border-collapse: collapse" cellpadding="5" width="100%" border="2">');
document.write('<TR>');
document.write('<TD valign="top" class="header" width="100%">');
document.write(hBeach);
document.write('</TD>');
document.write('</TR>');
document.write('<TR>');
document.write('<TD valign="top" class="darksand" width="100%">');
document.write('<P align="center">');
Buttons(hMap,hLastW,hNextW,hPrBe,hNeBe);
document.write('</P>');
document.write('</TD>');
document.write('</TR>');
document.write('</table>');
document.write('</DIV>');
document.close();
}

function Footer(hNumber,hTH,hMonth,hYear,hMap,hLastW,hNextW,hPrBe,hNeBe)
{
Bot_Footer=
document.write('<BR clear="LEFT">');
document.write('<BR>');
document.write('<DIV>');
document.write('<table summary="Page Header" style="border-collapse: collapse" cellpadding="5" width="100%" border="2">');
document.write('<TR>');
document.write('<TD valign="top" class="darksand" width="100%">');
document.write('<P align="center">');
Buttons(hMap,hLastW,hNextW,hPrBe,hNeBe);
document.write('</P>');
document.write('</TD>');
document.write('</TR>');
document.write('</table>');
document.write('</DIV>');
Copyright(hNumber,hTH,hMonth,hYear);
document.close();
}

function Buttons(hMap,hLastW,hNextW,hPrBe,hNeBe)
{
The_Buttons=
document.write('<INPUT type="button" value="Home" name="bHome" onclick="window.location=&quot;../default.htm&quot;"> ');
document.write('<INPUT type="button" value="Back" name="bBack" onclick="history.go(-1)"> ');
document.write('<INPUT TYPE="BUTTON" VALUE="Map" ONCLICK="window.location = &quot;../Maps/'+hMap+'.html&quot;">');
}

function Copyright(hNumber,hTH,hMonth,hYear)
{
 CRight=
document.write('<div>');
document.write('<P class="copyright">');
document.write('&copy; Graham Link&nbsp;&nbsp;'+hNumber+'<sup>'+hTH+'</sup> '+hMonth+' '+hYear);
document.write('</P>');
document.write('</div>');
}

// done hiding from old browsers -->
