/*
* This script contains Javascript that will set up a standard page footer for
* all pages that are part of the Town of Arlington Treasurer's site.
*
* Note that you may predefine the boolean variable NoPageFooter true to cause
* this script to leave off the standard page footer.  Otherwise, if it is not
* defined or defined false, the standard page footer will be emitted.
*/

/*****************************************************************************/

var TreasAddress = '<b>Treasurer\'s Office/Town Hall:</b> ' +
                   '730 Massachusetts Ave., Arlington, MA  02476';
var TreasPhone = '<b>Phone:</b> 781-316-3030';
var TreasEmail = 'treasurer@town.arlington.ma.us';
var TreasHours = 'Hours: Mon.-Wed. 8 a.m. to 4 p.m.; ' +
                 'Thurs. 8 a.m. to 7 p.m.; Fri. 8 a.m. to noon';

/*****************************************************************************/

var SecureURLPrefix = '';               // Secure prefix for URLs in this page
var NoPageFooterInt;

// Determine which set of pages we're embedded within: http; or https.
if (document.URL.match(/\/Billing\/(Scripts|Content)\//))
  { SecureURLPrefix = '/Billing/Content'; }

// Check if the user wants the standard page footer.  If so, emit it.
if (typeof(NoPageFooter) != 'boolean') { NoPageFooterInt = false; }
else { NoPageFooterInt = NoPageFooter; }

if (!NoPageFooterInt)
  {
  document.write(
    '<table width=100% border=0 cellspacing=0 cellpadding=0>' +
      '<tr><td align=center valign=middle>' +
        '<p style="margin-top: 10px;">' +
          '<font class="FooterLarge">'+TreasAddress+'<br></font>' +
          '<font class="FooterSmall">'+TreasPhone+'&nbsp;&nbsp;&nbsp;' +
            '<a href="mailto:'+TreasEmail+'">'+TreasEmail+'</a><br>' +
          TreasHours+'<br></font>' +
      '</td></tr>' +
    '</table>');
  }

// Close off the table that aligns the menu, content, etc.
document.write(
    '</td><td width=9>' +
      '<img src="'+SecureURLPrefix+'/Page/OneByOne.gif" ' +
        'width=9 height=200 border=0 alt="Page border, right edge"><br>' +
    '</td></tr>' +
  '</table>');

// The page trailer.
document.write(
    '<img src="'+SecureURLPrefix+'/Page/PageBorder_Bottom.gif" ' +
      'width='+PageWidth+' height=23 border=0 ' +
      'alt="Page border, bottom edge"><br>' +
  '</td></tr>');

// Done framing and centering the Web page.
document.write('</table></center>');
