
/*-----------------------------------------------------------------------------------*/
/*  The following seven functions are used on each web page which displays a photo.  */
/*-----------------------------------------------------------------------------------*/

var ThisPage, FinalPage

function ZSTART( a , b )
{
   ThisPage = a
   FinalPage = b
   document.write( '<center><table width="640" border="0" cellspacing="0" cellpadding="10">' )
}

function ZLINKS( )
{
   document.write( '<tr><td width="640"><center>' )
   document.write( '<img src="../GIF/AA_nav.gif" id="nav" usemap="#NAV">' )
   document.write( '</td><td width="0"></td></tr>' )
}

function ZTITLE( title )
{
   document.write( '<tr><td width="640"><center>' )
   document.write( '<font face="Arial, Helvetica, Verdana, sans-serif" size="3">' )
   document.write( '<b>' + title + '</b></font></center></td></tr>' )
   document.write( '<tr><td colspan="2" class="pic"><center>' )
}

function ZCOPYR( name, width, height )
{
   document.write( '</center></td></tr>' )

   copyright = "Copyright &copy; 2008 Alan Zirkle"

   if ( typeof ThisPage == "number" )
      position = ThisPage + '&nbsp; of &nbsp;' + FinalPage + ' &nbsp; &nbsp; '
   else
      position = ""
   document.write( '<tr><td class="cpy" width="640"><p class="cpy">' +
                                               position + copyright + '</p></td></tr>' )

   document.write( '<tr><td width="640">' )
}

function ZIMAGE( )
{
}

/*  Do not use </p> in ZTEXT, because we may add    */
/*  some text which must be in the same paragraph   */
/*  (i.e. "This is the final image...").            */

function ZTEXT( text )
{
   document.write( '<p class="tx">' + text )
}

function ZFINAL( )
{
   document.write( '<b><font color="#FFCC00">&nbsp; ' +
                           'This is the final image in this collection.</font></b></p>' )
}

function ZMAPS( wide, high, prev, coll, next, alt_prev, alt_next )
{
   document.write( '<map name="NAV">' )
   document.write( '<area shape="rect" coords="00,00,31,29" href="' + prev + '.html"' )
   document.write( ' alt=" ' + alt_prev + ' " title=" ' + alt_prev + ' ">' )
   document.write( '<area shape="rect" coords="38,00,66,29" href="' + coll + '.html"' )
   document.write( ' alt=" Return To This Collection&rsquo;s Main Page "' )
   document.write( ' title=" Return To This Collection&rsquo;s Main Page ">' )
   document.write( '<area shape="rect" coords="73,0,104,29" href="' + next + '.html"' )
   document.write( ' alt=" ' + alt_next + ' " title=" ' + alt_next + ' ">' )
   document.write( '</map>' )

   document.write( '<map name="PIC">' )
   document.write( '<area shape="rect" coords="0,0,' + wide + ',' + high + '" href="' +
                                                                             next + '.html"' )
   document.write( ' alt=" Click Anywhere In Photo To ' + alt_next + ' "' )
   document.write( ' title=" Click Anywhere In Photo To ' + alt_next + ' ">' )
   document.write( '</map>' )
}

/*-----------------------------------------------------------------------------------*/
/*  The following function is used in the main pages of collections (albums).        */
/*-----------------------------------------------------------------------------------*/

function ZCOLUMN( start )	/*  "start" is 27, 53, ... ( 26 * n + 1 )  */
{
   document.write( '</ol></b></td><td class="c" valign="top"><b><ol start="' + start + '">' )
}
