// Javascript settings
  // ****************************
  // Variable Assignments
  // ****************************

// Positional translations
var SD = 1;
var WM = 2;
var DC = 3;
var CHAP = 4;
var CHAR = 5;
var ALM = 6;
var JW = 7;
var JD = 8;
var SW = 9;
var IG = 10;
var TREAS = 11;
var SEC = 12;
var TYL = 13;
var ST = 14;

 
  // ****************************
  // Class Definitions
  // ****************************

function myEvent(eventText, eventDate) {
  this.eventText = eventText;
  this.eventDate = eventDate;
}

function myPicture(pictureName, pictureFile, width, height, thumbFile, thumbWidth, thumbHeight) {
  this.pictureName = pictureName;
  this.pictureFile = pictureFile;
  this.width = width;
  this.height = height;
  this.thumbFile = thumbFile;
  this.thumbWidth = thumbWidth;
  this.thumbHeight = thumbHeight;
}

function myOfficer(title, name, rank, yearInOffice) {
  var nameAndTitle;
  var fullName;
  this.title = title;
  this.name = name;
  this.rank = rank;
  this.yearInOffice = yearInOffice;
  this.nameAndTitle = title + " " + name;
  if (rank.length > 1) {
    this.fullName = this.nameAndTitle + " " + rank;
  }
  else {
    this.fullName = this.nameAndTitle;
  }
}

function myMaster(officer, occupation, notes) {
  this.officer = officer;
  this.occupation = occupation;
  this.notes = notes;
}


//***********************************
// Edit these values only
//

// The pictureArray is used to display pictures from Lodge events such as Ladies Night.
// It is stored in an array so that users can scroll between pictures using previousPicture
// and nextPicture functionality.

var pictureArray = new Array(new myPicture("1","ladies_2009/1", 533, 400, "ladies_2009/1t", 53, 40),
                           new myPicture( "2", "ladies_2009/2", 533,400,  "ladies_2009/2t", 53, 40),
                           new myPicture( "3", "ladies_2009/3", 533,400,  "ladies_2009/3t", 53, 40),
                           new myPicture( "4", "ladies_2009/4", 533,400,  "ladies_2009/4t", 53, 40),
                           new myPicture( "5", "ladies_2009/5", 533,400,  "ladies_2009/5t", 53, 40),
                           new myPicture( "6", "ladies_2009/6", 530,320,  "ladies_2009/6t", 53, 32),
                           new myPicture( "7", "ladies_2009/7", 530,299,  "ladies_2009/7t", 53, 29),
                           new myPicture( "8", "ladies_2009/8", 533,400,  "ladies_2009/8t", 53, 40),
                           new myPicture( "9", "ladies_2009/9", 533,400,  "ladies_2009/9t", 53, 40),
                           new myPicture("10", "ladies_2009/10", 533,400, "ladies_2009/10t", 53, 40),
                           new myPicture("11", "ladies_2009/11", 400,450, "ladies_2009/11t", 40, 45),
                           new myPicture("12", "ladies_2009/12", 533,400, "ladies_2009/12t", 53, 40),
                           new myPicture("13", "ladies_2009/13", 533,400, "ladies_2009/13t", 53, 40),
                           new myPicture("14", "ladies_2009/14", 533,400, "ladies_2009/14t", 53, 40),
                           new myPicture("15", "ladies_2009/15", 485,260, "ladies_2009/15t", 48, 26),
                           new myPicture("16", "ladies_2009/16", 530,370, "ladies_2009/16t", 53, 37),
                           new myPicture("17", "ladies_2009/17", 533,400, "ladies_2009/17t", 53, 40),
                           new myPicture("18", "ladies_2009/18", 400,450, "ladies_2009/18t", 40, 45),
                           new myPicture("19", "ladies_2009/19", 533,400, "ladies_2009/19t", 53, 40),
                           new myPicture("20", "ladies_2009/20", 533,400, "ladies_2009/20t", 53, 40),
                           new myPicture("21", "ladies_2009/21", 533,400, "ladies_2009/21t", 53, 40),
                           new myPicture("22", "ladies_2009/22", 533,400, "ladies_2009/22t", 53, 40),
                           new myPicture("23", "ladies_2009/23", 533,400, "ladies_2009/23t", 53, 40),
                           new myPicture("24", "ladies_2009/24", 533,400, "ladies_2009/24t", 53, 40),
                           new myPicture("25", "ladies_2009/25", 533,400, "ladies_2009/25t", 53, 40),
                           new myPicture("26", "ladies_2009/26", 533,350, "ladies_2009/26t", 53, 35),
                           new myPicture("27", "ladies_2009/27", 533,400, "ladies_2009/27t", 53, 40)
                          );


// The eventsArray is used in tickertape processing to decide the
// active message to display (i.e. the first event whose event date
// is not in the past). Therefore this array must be in chronological
// order starting with the earliest!!

	var eventsArray = new Array(new myEvent("Lodge BBQ", "21/08/2010"),
			   new myEvent("GPC and L of I", "03/09/2010"),
                           new myEvent("L of I", "10/09/2010"),
                           new myEvent("Lodge Meeting", "17/09/2010"),
                           new myEvent("L of I", "24/09/2010"),
                           new myEvent("L of I", "08/10/2010"),
                     	   new myEvent("L of I", "23/10/2010"),
                     	   new myEvent("L of I", "12/11/2010"),
                     	   new myEvent("Lodge Meeting", "19/11/2010"),
                     	   //new myEvent("L of I Festival", "22/11/2009"),
                     	   new myEvent("L of I", "26/11/2010"),
                     	   new myEvent("L of I", "10/12/2010"),
                     	   new myEvent("Lodge Meeting", "17/12/2010"),
                           new myEvent("L of I", "07/01/2011"),
                      	   new myEvent("GPC and L of I", "21/01/2011"),             
                     	   new myEvent("L of I", "11/02/2011"),
                     	   new myEvent("Lodge Meeting", "18/02/2011"),
                           new myEvent("L of I", "25/02/2011"),
                           new myEvent("L of I", "11/03/2011"),
                     	   new myEvent("L of I", "25/03/2011"),
                     	   new myEvent("L of I", "08/04/2011"),
                     	   new myEvent("Lodge Meeting", "15/04/2011"),
                     	   new myEvent("GPC and L of I", "22/04/2011"),
                     	   //new myEvent("Ladies Festival", "25/04/2010"),
                           new myEvent("L of I - Installation Rehearsal", "06/05/2011"),
                           new myEvent("L of I - Installation Rehearsal", "13/05/2011"),
                           new myEvent("Installation Meeting", "19/05/2011"),
                           new myEvent("The meeting schedule for next year is yet to be decided", "31/12/2099")
                           );

// Wardens, Deacons and IG
// Separate settings for the posts that change annually

var currentSW = new myOfficer("W.Bro.","J. Button","","");
var currentJW = new myOfficer("Bro.","R. Novis","","");
var currentSD = new myOfficer("Bro.","J. Corbett","","");
var currentJD = new myOfficer("Bro.","M. Robinson","","");
var currentIG = new myOfficer("Bro.","L. Kerrison","","");
var currentST = new myOfficer("Bros.","G.Martin, M Whitty, P Rayner, L Pinto da Silva","","");

// The mastersArray is used to hold previous and present Masters details
// for display in pastmast.htm and wherever the current master is refered to

var mastersArray = new Array(new myMaster(new myOfficer("V.W.Bro. The Rev.", "C.H. Mosse", "MA PGCh. <BR>P Dep Prov GM","1966"), "Clerk in Holy Orders",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "R.W. Draper", "PPrSGW", "1967"), "Chartered Surveyor", "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "S.P. Porthouse", "PPrG&nbsp;Supt&nbspWks", "1968"),"Company Director - Finance",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "J.C. Haydon", "PJGD&nbsp;&nbsp;PProvSGW","1969"), "Manufacturers' Agent",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "H.J. Merryfield", "PPrG&nbsp;Supt&nbsp;Wks", "1970"), "Welfare Tutor", "*"),
                           new myMaster(new myOfficer("W.Bro.", "W.H.D. Lyons", "PPrAG Reg", "1971"),"School Teacher",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "M.A.T. Male", "PPrSGD","1972"), "Director - Stationers",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "D.R.G. Round", "PPrGSwdB", "1973"),"Butcher",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "D.E.G. Patterson", "PPrGSwdB","1974"), "Florist",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "W.F.T. Weeding", "PPrGSwdB", "1975"),"Police Officer",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "J.A.H. Richardson", "PPrGSuptWks", "1976"),"Scrap Metal Dealer",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "J.H. Thompson", "QPM&nbsp;&nbsp;PPrGStB","1977"), "Police Officer",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "J.P. Fattorini", "PPrGSwdB", "1978"),"Flight Simulator Technician",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "P.G.G. Miller", "PPrGSwdB","1979"), "Chartered Accountant",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "A.D. McNeill", "PPrJGW", "1980"), "Building Contractor", "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "S.C. Long", "PPrGReg", "1981"),"Furniture Retailer",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "K.V. Parker", "PAGDC&nbsp;&nbsp;PProv G Treas", "1982"),"Chartered Accountant",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "G.A. Ray", "PPrGrSupt Wks", "1983"),"Lecturer -Catering",  "H"),
                           new myMaster(new myOfficer("W.Bro.", "D.G. Dutton", "PPrAGDC", "1984"),"Director - Flight Simulator Co",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "R.H. Taylor", "PAGDC&nbsp;&nbsp;PProvSGW","1985"),  "Architect", "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "R.H. Taylor", "PAGDC&nbsp;&nbsp;PProvSGW","1986"), "Architect",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "B. Pulham", "PPrG&nbsp;Supt&nbsp;Wks", "1987"),"Travel Agent",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "N. Pulham", "PPrGSwdB", "1988"),"Company Sales Representative",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", " N.C. Bayne", "PPrGSwdB", "1989"),"Display Goods Manufacturer",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "R.V. St Clair", "PPrGSuptWks PPrJGD(Bucks)", "1990"),"Police Officer",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "S. Thompson", "PProvgSwdB", "1991"),"Director - Builders Merchants",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "L.H. Buck T.D.", "PPrAGDC", "1992"),"Stockbroker",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "J.A. Buck", "&nbsp;", "1993"),"Osteopath",  ".+"),
                           new myMaster(new myOfficer("W.Bro.", "R.W. Draper", "PPrSGW", "1994"),"Chartered Surveyor",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "M.J. Lewis", "ProvGSupt Wks", "1995"),"Architect",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "J.D. Hoile", "PProvSGD", "1996"),"Architect",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "M.H.W. Dean", "LGR", "1997"),"Banker",  "*"),
                           new myMaster(new myOfficer("W.Bro.", "G.M. Field", "&nbsp;", "1998"),"Building Contractor",  ".+"),
                           new myMaster(new myOfficer("W.Bro.", "B.L. Goatcher", "PPrAGDC", "1999"), "Director - Builders Merchant", "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "S.F. Hope", "&nbsp;", "2000"),"Restaurateur",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "K.A. Tompsett", "PPrAGDC", "2001"),"Travel Agent",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "N.H. Pulham", "PPrGSwdB", "2002"),    "Company Sales Representative",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "A.R. Braybrooke", "PPrSGD (Surrey)","2003"), "Department Head - FE College",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "R.W. Saunders", "&nbsp;","2004"), "Architect",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "Barry Kerrison", "&nbsp;","2005"), "Building Contractor",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "S Patel", "&nbsp;","2006"), "Newsagent",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "Brian Kerrison", "&nbsp;","2007"), "Building Contractor",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "J.M. Elsom", "&nbsp;","2008"), "International Troubleshooter",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "J.N. Button", "&nbsp;","2009"), "Electrician",  "&nbsp;"),
                           new myMaster(new myOfficer("W.Bro.", "R. Newton", "&nbsp;","2010"), "Architect",  "&nbsp;")
                           );

// The treasurersArray is used to hold previous and present Treasurers details
var treasurersArray = new Array(new myOfficer("W.Bro.", "H.R.Dixon", "", "1966-75"),
                           new myOfficer("W.Bro.", "H.J.Merryfield", "PPrG Supt Wks", "1975-80"),
                           new myOfficer("W.Bro.", "W.F.T. Weeden","PPrGSwdB", "1980-96"),
                           new myOfficer("W.Bro.", "G.A.Ray", "PPrGrSupt Wks","1996-99"),
                           new myOfficer("W.Bro.", "M.Belluscio", "",  "1999-00"),
                           new myOfficer("W.Bro.", "N.C.Bayne","PPrSGD", "2000-")
                           );

// The secretariesArray is used to hold previous and present Secretaries details
var secretariesArray = new Array(new myOfficer("W.Bro.", "R.E.Ibett","", "1966-70"),
                           new myOfficer("W.Bro.", "J.C.Haydon","PJGD&nbsp;&nbsp;PProvSGW", "1970-85"),
                           new myOfficer("W.Bro.", "K.V.Parker", "PAGDC&nbsp;&nbsp;PProv G Treas","1985-91"),
                           new myOfficer("W.Bro.", "N.C.Bayne","PPrSGD", "1991-00"),
                           new myOfficer("W.Bro.", "S.F.Thompson", "PProvSGD","2000-2006"),
                           new myOfficer("W.Bro.", "R.W. Saunders", "","2006-")
                           );

// The tylersArray is used to hold previous and present Tylers details
var tylersArray = new Array(new myOfficer("W.Bro.", "F.J.Walton", "", "1966-69"),
                           new myOfficer("W.Bro.", "W.J.Asserati", "", "1969-75"),
                           new myOfficer("W.Bro.", "H.T.Prince", "", "1976-85"),
                           new myOfficer("W.Bro.", "F.J.Walton", "", "1985-99"),
                           new myOfficer("W.Bro.", "T.E.Benfield","PPrGSuptWks",  "1999-2007"),
                           new myOfficer("W.Bro.", "A.R. Braybrooke","PPrSGD (Surrey)",  "2007-2010"),
                           new myOfficer("W.Bro.", "M.J. Lewis", "ProvGSupt Wks",  "2010-")
                           );

// The chaplainsArray is used to hold previous and present Chaplain details
var chaplainsArray = new Array(new myOfficer("W.Bro.", "G.C.Richardson","PPrAGDC", "1966-67"),
                           new myOfficer("W.Bro.", "A.R.Tapp","", "1967-75"),
                           new myOfficer("W.Bro.", "H.W.D Lyons", "PPrAG Reg","1975-78"),
                           new myOfficer("W.Bro.", "D.E.G.Patterson","PPrGSwdB", "1978-85"),
                           new myOfficer("W.Bro.", "J.P.Fattorini","PPrGSwdB", "1985-88"),
                           new myOfficer("W.Bro.", "S.C.Long","PPrGSwdB", "1988-89"),
                           new myOfficer("W.Bro.", "A.R.Tapp", "","1989-96"),
                           new myOfficer("W.Bro.", "W.F.T. Weeden","PPrGSwdB",  "1996-98"),
                           new myOfficer("W.Bro.", "S.C.Long", "PPrGSwd B","1998-02"),
                           new myOfficer("W.Bro.", "R.V. St Clair", "PPrJGD PPrJGD(Bucks)", "2002-07"),
                           new myOfficer("W.Bro.", "N.H.Pulham","PPrAG Reg", "2007-")
                           );

// The docArray is used to hold previous and present Director of Ceremonies details
var docArray = new Array(new myOfficer("W.Bro.", "B.M.Fletcher","", "1966-70"),
                           new myOfficer("W.Bro.", "R.W.Draper","PPrSGW", "1970-89"),
                           new myOfficer("W.Bro.", "A.D.McNeill","PPrGSwdB", "1989-94"),
                           new myOfficer("W.Bro.", "R.H.Taylor","PAGDC&nbsp;&nbsp;PProvSGW", "1994-98"),
                           new myOfficer("W.Bro.", "N.H.Pulham","PPrAG Reg", "1998-01"),
                           new myOfficer("W.Bro.", "J.D.Hoile", "PProvSGD", "2001-08"),
                           new myOfficer("W.Bro.", "S.F.Thompson", "PProvSGD","20008-")
                           );

// The charityArray is used to hold previous and present Charity Steward details
var charityArray = new Array(new myOfficer("W.Bro.", "G.C.Richardson","PPrAGDC", "1976-90"),
                           new myOfficer("W.Bro.", "R.W.Draper","PPrSGW", "1990-94"),
                           new myOfficer("W.Bro.", "L.H.Buck","", "1994-95"),
                           new myOfficer("W.Bro.", "R.W.Draper", "PPrSGW","1995-99"),
                           new myOfficer("W.Bro.", "K.A.Tompsett","", "1999-01"),
                           new myOfficer("W.Bro.", "B.W.Pulham", "PPrGSuptWks","2001-2009"),
                           new myOfficer("W.Bro.", "K.A.Tompsett", "","2009-")
                           );

// The almonersArray is used to hold previous and present Almoners details
var almonersArray = new Array(new myOfficer("W.Bro.", "W.F.T.Weeden","", "1966-67"),
                           new myOfficer("W.Bro.", "G.C.Richardson","PPrAGDC", "1967-76"),
                           new myOfficer("W.Bro.", "D.R.G.Round","PPrGSwdB", "1976-81"),
                           new myOfficer("W.Bro.", "K.N.Symons","", "1981-84"),
                           new myOfficer("W.Bro.", "D.R.G.Round", "PPrGSwdB","1984-86"),
                           new myOfficer("W.Bro.", "G.A.Ray","PPrGrSupt Wks", "1986-93"),
                           new myOfficer("W.Bro.", "R.V.St Clair","PPrJGD PPrJGD(Bucks)", "1993-01"),
                           new myOfficer("W.Bro.", "S.F.Thompson","PProvSGD", "2001-02"),
                           new myOfficer("W.Bro.", "K.A.Tompsett", "", "2002-")                           
                           );

var secretaryEmail = "rob&#64;rsparchitects.co.uk";
var lastUpdated = "08th August 2010";
                          
var tickerTapeMessage = "Next Meeting - ";
var overrideMessage = "";

// End of edit section
//***********************************

  // **********************
  // Officer/Post utilities
  // **********************
  
  function getCurrentArray(office) {
    var array;
    if (office == WM) {
      array = mastersArray;
    }
    else if (office == DC) {
      array = docArray;
    }
    else if (office == CHAP) {
      array = chaplainsArray;
    }
    else if (office == CHAR) {
      array = charityArray;
    }
    else if (office == ALM) {
      array = almonersArray;
    }
    else if (office == TREAS) {
      array = treasurersArray;
    }
    else if (office == SEC) {
      array = secretariesArray;
    }
    else if (office == TYL) {
      array = tylersArray;
    }
    return array;
  }

  function displayMasters() {
    for (var i=0; i<getCurrentArray(WM).length-1; i++) {
      document.write("<tr>");
      document.write("  <td width='5%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(      getCurrentArray(WM)[i].notes);
      document.write("    </font>");
      document.write(" </td>");
      document.write("  <td width='30%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(     getCurrentArray(WM)[i].officer.nameAndTitle);
      document.write("    </font>");
      document.write("  </td>");
      document.write("  <td width='30%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(     getCurrentArray(WM)[i].officer.rank);
      document.write("    </font>");
      document.write("  </td>");
      document.write("  <td width='30%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(      getCurrentArray(WM)[i].occupation);
      document.write("    </font>");
      document.write("  </td>");
      document.write(" <td width='5%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(     getCurrentArray(WM)[i].officer.yearInOffice);
      document.write("    </font>");
      document.write(" </td>");
      document.write("</tr>");
    }
  }
  
  function displayOfficers(type) {
    for (var i=0; i<getCurrentArray(type).length; i++) {
      document.write("<tr>");
      document.write("  <td width='70%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(     getCurrentArray(type)[i].name);
      document.write("    </font>");
      document.write("  </td>");
      document.write("  <td width='30%'>");
      document.write("    <font face='Arial' size='3' color='#3300FF'>");
      document.write(     getCurrentArray(type)[i].yearInOffice);
      document.write("    </font>");
      document.write("  </td>");
      document.write("</tr>");
    }

  }


function getCurrentMaster() {
  return getCurrentArray(WM)[getCurrentArray(WM).length-1].officer;
}

function getCurrentTreasurer() {
  return getCurrentArray(TREAS)[getCurrentArray(TREAS).length-1];
}

function getCurrentSecretary() {
  return getCurrentArray(SEC)[getCurrentArray(SEC).length-1];
}

function getCurrentDC() {
  return getCurrentArray(DC)[getCurrentArray(DC).length-1];
}

function getCurrentChaplain() {
  return getCurrentArray(CHAP)[getCurrentArray(CHAP).length-1];
}

function getCurrentCharitySteward() {   
  return getCurrentArray(CHAR)[getCurrentArray(CHAR).length-1];
}

function getCurrentAlmoner() {   
  return getCurrentArray(ALM)[getCurrentArray(ALM).length-1];
}

function getCurrentTyler() {   
  return getCurrentArray(TYL)[getCurrentArray(TYL).length-1];
}


function getCurrentSD() {
  return currentSD;
}

function getCurrentJD() {
  return currentJD;
}

function getCurrentSW() {
  return currentSW;
}

function getCurrentJW() {
  return currentJW;
}

function getCurrentIG() {
  return currentIG;
}

function getCurrentST() {
  return currentST;
}


var postArray = new Array("",
                          getCurrentSD(),
                          getCurrentMaster(),
                          getCurrentDC(),
                          getCurrentChaplain(),
                          getCurrentCharitySteward(),
                          getCurrentAlmoner(),
                          getCurrentJW(),
                          getCurrentJD(),
                          getCurrentSW(),
                          getCurrentIG(),
                          getCurrentTreasurer(),
                          getCurrentSecretary(),
                          getCurrentTyler(),
                          getCurrentST());

function getCurrentOfficer(indexValue) {
  return postArray[indexValue];
}

function getPostArray(key) {
  document.write(getCurrentOfficer(key).fullName);
}

function getSecretaryEmail() {
  return secretaryEmail;
}

function getSecretaryEmailLink(subject, prompt) {
  document.write('<A HREF="mailto:' + getSecretaryEmail() + '?subject=' + subject + '"');
  document.write('>' + prompt + '</A>');
}

function getLastUpdated() {
  document.write(lastUpdated);
}

