  // do not forget to change navibot.js as well

  pageNames =  new Array ("index", "engines",     "spares", "instruments", "auxiliary",
                          "./Register/index");
  pageTitles = new Array ("Home",  "New Engines", "Spares", "Instruments", "Auxiliary Equipment",
                          "Russell Newbery Register");

  slash = new String("/");
  backslash = new String("\\");
  part1 = new String('<tr><td id="mtml">');
  part2 = new String('</a></td></tr>');

  document.write('<table border="2" cellspacing="0" cellpadding="2" summary="table of main navigation links" id="mtml" width="100%" >');

  if ((navigator.appName == "Microsoft Internet Explorer") &&
      (window.location.pathname.indexOf(backslash) != -1)) {
    slash = "\\";
  };
  j = window.location.pathname.lastIndexOf(".htm");
  k = window.location.pathname.lastIndexOf(slash);
  if (j < 1) { j = window.location.pathname.length;}
  if (k < 1) {k = 0;}
  thisPage =  window.location.pathname.substring(k+1, j);

  if (thisPage == "") {
    thisPage = "index";
  }

  for (i=0; i < pageTitles.length; i++) {
    document.write(part1);
    if (pageNames[i] == thisPage) {
      document.write('<a id="stylelinkt" href="',pageNames[i],'.html">',pageTitles[i],'</a></td></tr>');
    } else {
      document.write('<a id="stylelink" href="',pageNames[i],'.html">',pageTitles[i],'</a></td></tr>');
    }
    document.write(part2);
  }
  document.write('</table>');

