var max = 8;

var names = new Array();
names[0] = "A&iacute;bell";
names[1] = "Garb";
names[2] = "Feasting";
names[3] = "Heraldry";
names[4] = "A&S";
names[5] = "Pictures";
names[6] = "Songs";
names[7] = "Links";

var urls = new Array();
urls[0] = "";
urls[1] = "garb/";
urls[2] = "food/";
urls[3] = "heraldry/";
urls[4] = "artscience.html";
urls[5] = "gallery/";
urls[6] = "song/";
urls[7] = "links.html";

function yeslink(title, filename) {
  document.write("<TD bgcolor='lightyellow' ALIGN=CENTER");
  document.write(" width=12% height=25>");
  document.write("<A HREF='http://www.eg.bucknell.edu/~lwittie/sca/");
  document.write(filename);
  document.write("'><B>");
  document.write(title);
  document.write("</A></TD>");
}

function nolink(title) {
  document.write("<TD ALIGN=CENTER bgcolor='lightyellow'");
  document.write(" width=12% height=25><FONT color='darkblue'>");
  document.write(title);
  document.write("</TD>");
}

function makeHeader(pg) {
  i = -1;
  if (pg == "index")    i=0;
  if (pg == "garb")     i=1;
  if (pg == "food")     i=2;
  if (pg == "heraldry") i=3;
  if (pg == "A&S")      i=4;
  if (pg == "gallery")  i=5;
  if (pg == "songs")    i=6;
  if (pg == "links")    i=7;

  document.write("<BR><CENTER><TABLE border=2><TR>");

  for (j=0; j<max; j++) {	
    if (i==j)
      nolink(names[j]);
    else
        yeslink(names[j], urls[j]);
  }

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