// start javascript

// Language constants:
var MaxLinks = 50;
var linkList;
var numLinks;

function fillLinksList ()
    {
    // Initialise the arrays
    linkList = new makeEmptyArray(MaxLinks);
    var i = 0;
    linkList[i++] = new makeFilledArray('Home', 'index.html');
    linkList[i++] = new makeFilledArray('About Us', 'about.htm');
    linkList[i++] = new makeFilledArray('Membership', 'members.htm');
    linkList[i++] = new makeFilledArray('Apparatus', '141.htm');
    linkList[i++] = new makeFilledArray('Safety Tips', 'safety1.htm');
    linkList[i++] = new makeFilledArray('Coming Events', 'calendar.htm');
    //linkList[i++] = new makeFilledArray('Special Services', 'services.htm');
    linkList[i++] = new makeFilledArray('Links', 'links.htm');
    numLinks = i;
    }

function displayLinks ()
   {
   fillLinksList();
   var i, button;
   //this.length = makeFilledArray.arguments.length;
   document.write('<center>');
   document.write('  <table border=0 cellspacing=5 cellpadding=5>');
   document.write('    <tr>');
   for (i = 0; i < numLinks; i++)
      {
      document.write('      <td nowrap valign=top halign=middle width=50>');
      document.write('        <center>');
      if (thisPage != linkList[i][0])
         document.write('          <a href="' + linkList[i][1] + '">');
      button = (thisPage == linkList[i][0]) ? "images/b23a.gif" : "images/b21a.gif";
      document.write('          <img align="top" border=0 src="' + button + '" vspace=4 width=50 height=13></a><br>');
      document.write('          <font size=2><center>' + linkList[i][0] + '</center></font>');
      document.write('        </center>');
      document.write('      </td>');
      }
   document.write('    </tr>');
   document.write('  </table>');
   document.write('</center>');
   }


