function makeBanner() {
  document.write("<CENTER><TABLE width=740>");

  // shire device
  document.write("<TR>");
  document.write("<TD VALIGN=MIDDLE><IMG SRC='Elements/VSmallOakleaf.gif'</TD>");
  document.write("<TD VALIGN=MIDDLE><IMG SRC='Elements/ACGDevice1vs.gif'></TD>");

  // links
  document.write("<TD VALIGN=MIDDLE><CENTER><TABLE width=100%>");

  // links row 1
  document.write("<TR>");
  makeLink("index.html", "Home");
  makeLink("officers.html", "Officers");
  makeLink("calendar.html", "Calendar");
  makeLink("activities.html", "Activities");
  makeLink("maps.html", "Maps");

  // links row 3
  document.write("</TR><TR>"); 
  makeLink("photos/", "Photos");
  makeLink("events.html", "Events");
  makeLink("newcomers.html", "Newcomers");
  makeLink("articles.html", "Articles");
  makeLink("links.html", "Links");

  document.write("</TR></TABLE></CENTER></TD>");

  // Shire name
  document.write("<TD VALIGN=MIDDLE><I><B><CENTER>");
  document.write("Shire of<BR><BIG><BIG>Abhainn<BR>Ciach<BR>Ghlais</TD>");
  document.write("<TD VALIGN=MIDDLE><IMG SRC='Elements/VSmallOakleaf.gif'>");
  document.write("</TD></TR></TABLE></CENTER>");
}

function makeLink(location, name) {
  document.write("<TD  align=center><I>");
  document.write("<A HREF='http://www.eg.bucknell.edu/~acg/");
  document.write(location);
  document.write("' target='_top'>");
  document.write(name);
  document.write("</A>");
}

function makeHeader() {
  document.write("<CENTER>");
  document.write("<IMG SRC='Elements/ivy1hozdl.gif' width=375>");
  document.write("<IMG SRC='Elements/ivy1hozdr.gif' width=375>");
  document.write("</CENTER>");
}

function makeFooter() {
  document.write("<CENTER><P>");
  document.write("<IMG SRC='Elements/ivy1hozul.gif' ALIGN=BOTTOM width=375>");
  document.write("<IMG SRC='Elements/ivy1hozur.gif' ALIGN=BOTTOM width=375>");

  document.write("<P>   <!-- Site Meter -->");
  document.write("<script type='text/javascript'"); 
  document.write("src='http://s34.sitemeter.com/js/counter.js?site=s34scaacg'>");
  document.write("</script>");
  document.write("<noscript>");
  document.write("<a href='http://s34.sitemeter.com/stats.asp?site=s34scaacg'"); 
  document.write("target='_top'>");
  document.write("<img src='http://s34.sitemeter.com/meter.asp?site=s34scaacg'"); 
  document.write("alt='Site Meter' border='0'/></a>");
  document.write("</noscript>");
  document.write("   <!-- Copyright (c)2006 Site Meter -->");
  document.write("</CENTER>");
}

// Used by photos
function makeLinks(x) {
  document.write("<CENTER><TABLE cellspacing=10><TR>");
  makeLink("index.html", "Home");
  makeLink("officers.html", "Officers");
  makeLink("calendar.html", "Calendar");
  makeLink("activities.html", "Activities");
  makeLink("maps.html", "Maps");
  makeLink("photos/", "Photos");
  makeLink("events.html", "Events");
  makeLink("newcomers.html", "Newcomers");
  makeLink("articles.html", "Articles");
  makeLink("links.html", "Links");
  document.write("</TR></TABLE></CENTER>");
}

function makeMail(name) {

  if (name=="Aibell" || name=="Webminister") {
    begin();
    document.write("ladyaibell"); at();
    document.write("yahoo.com"); after();
    document.write("Lady Aibell ingen Dairmata"); end();
  end();
  } else if (name=="Aimeric" || name=="Medieval Studies" || name=="Herald") {
    begin();
    document.write("clarahan66"); at();
    document.write("yahoo.com"); after();
    document.write("Lord Aimeric de Miraval");
  end();
  } else if (name=="Aine" || name=="Exchequer") {
    begin();
    document.write("joannemcg1"); at();
    document.write("verizon.net"); after();
    document.write("Lady Aine ingen ui Aeongus");
  end();
  } else if (name=="Alicia" || name=="Dance Practice" || name=="Calligraphy") {
    begin();
    document.write("hutchnsn"); at();
    document.write("bucknell.edu"); after();
    document.write("Mistress Alicia Langland");
  end();
  } else if (name=="Andreas" || name=="Archery") {
    begin();
    document.write("acholin"); at();
    document.write("comcast.net"); after();
    document.write("Lord Andreas J&auml;ger von Holstein");
  end();
  } else if (name=="Ariel" || name=="Chronicler") {
    begin();
    document.write("arielphf"); at();
    document.write("yahoo.com"); after();
    document.write("Lady Ariel of Grenwich");
  end();
  } else if (name=="Briawg") {
    begin();
    document.write("maddog13"); at();
    document.write("evenlink.com"); after();
    document.write("Briawg ap Ithel ap Maelgwn");
  end();
  } else if (name=="Bronwyn" || name=="Chamberlain") {
    begin();
    document.write("hedgehog"); at();
    document.write("ptd.net"); after();
    document.write("THL Bronwyn MacFhionghuin");  
  end();
  } else if (name=="Byrghitta" || name=="Bryghitta" || name=="Byrgitta") {
    begin();
    document.write("happypolishlady"); at();
    document.write("yahoo.com"); after();
    document.write("Lady Byrgitta Zazakova");
  end();
  } else if (name=="Cameron" || name=="Sewing Guild") {
    begin();
    document.write("elena5"); at();
    document.write("aol.com?subject=Sewing%20Guild"); after();
    document.write("Dame Cameron Fitzroy");
  end();
  } else if (name=="Denys") {
    begin();
    document.write("dgreenaw"); at();
    document.write("cub.kcnet.org"); after();
    document.write("Master Denys the Decadent");
  end();
  } else if (name=="Egill") {
    begin();
    document.write("gyronny8"); at();
    document.write("gmail.com"); after();
    document.write("Master Egill the Dane");
  end();
  } else if (name=="Etain") {
    begin();
    document.write("etain1263"); at();
    document.write("aol.com"); after();
    document.write("Lady Etain ingen Ruaidri");
  end();
  } else if (name=="Gilchrist") {
    begin();
    document.write("pictishsmith"); at();
    document.write("gmail.com"); after();
    document.write("Lord Gilchrist MacNaughton");
  end();
  } else if (name=="Gille"
	     || name=="Cooks Guild" || name=="Brewers Guild") {
    begin();
    document.write("whutchis"); at();
    document.write("bucknell.edu"); after();
    document.write("Master Gille MacDhonuill");
  end();
  } else if (name=="Gilles" || name=="Cave Canem") {
    begin();
    document.write("herald"); at();
    document.write("micro-link.net"); after();
    document.write("Ma&icirc;tre Gilles de Beauchamps");
  end();
  } else if (name=="Gwendolyn") {
    document.write("Lady Gwendolyn Blackthorne MacGriogair");
  } else if (name=="Havoc") {
    begin();
    document.write("havocthewild"); at();
    document.write("hotmail.com"); after();
    document.write("THL Havoc The Wild");
  end();
    } else if (name=="Lara") {
    begin();
    document.write("riverstonehouse"); at();
    document.write("yahoo.com"); after();
    document.write("Catalina");
  end();
  } else if (name=="Leioolfr" || name=="MoL") {
    begin();
    document.write("leioolfr"); at();
    document.write("gmail.com"); after();
    document.write("Lord Leioolfr Grimr");
  end();
  } else if (name=="Livia" || name=="Hospitaler") { 
    begin();
    document.write("livia.orknot"); at();
    document.write("gmail.com"); after();
    document.write("Lady Livia Valentini");
  end();
  } else if (name=="Mairin" || name=="Chancellor Minor") {
    begin();
    document.write("butterfly164_2002"); at();
    document.write("yahoo.com"); after();
    document.write("M&aacute;ir&iacute;n O'Cadhla");
    end();
  } else if (name=="Phyllida") {
    begin();
    document.write("wladyslaus"); at();
    document.write("hotmail.com"); after();
    document.write("Lady Phyllida Longacre");
  end();
  } else if (name=="Rhenna" || name=="MoAS") {
    begin();
    document.write("herald"); at();
    document.write("micro-link.net"); after();
    document.write("Lady Rhenna An tEilean Dubh");
  end();
  } else if (name=="Richard" || name=="Thrown Weapons") {
    begin();
    document.write("axthrowr"); at();
    document.write("ptd.net"); after();
    document.write("Richard de Derby");
  end();

  } else if (name=="Rowan") {
    begin();
    document.write("romanc"); at();
    document.write("windstream.net"); after();
    document.write("Lady Rowan l'Crotha");
  end();
  } else if (name=="Spence") {
    begin();
    document.write("spencecolby"); at();
    document.write("@micro-link.net"); after();
    document.write("Master Spence Colby");
  end();
  } else if (name=="Thorstein" || name=="Knights Marshall") {
    begin();
    document.write("jeffinator"); at();
    document.write("aol.com"); after();
    document.write("Master Thorstein Christiansen");
  end();
  } else if (name=="Wlad" || name=="Seneschal") {
    begin();
    document.write("wladyslaus"); at();
    document.write("hotmail.com"); after();
    document.write("Lord Wladyslaw Poznanski");
  end();
  } else { // unknown, webministers address
    begin();
    document.write("ladyaibell"); at();
    document.write("yahoo.com"); after();
    document.write("Name Under Construction");
  end();
  }
}

function begin() { document.write("<a href='mailto:"); }
function at()    { document.write("@"); }
function after() { document.write("'>"); }
function end() { document.write("</A>"); }

