function breadCrumbs(delimiterStr) {
  loc2 = window.location.toString();
  loc = loc2.toLowerCase();
  subs = loc.substr(7).split("/"); // Makes the assumption that the first 7 characters are "HTTP://"
  document.write("<a href=\"" + getLoc(subs.length - 1) + "\">Home</a> " + delimiterStr + " ");
  a = (loc.indexOf('index.') == -1) ? 1 : 2;
  if (subs[subs.length-1].length == 0) {
    a++;
  }

  for (i = 1; i < (subs.length - a); i++) {
    subs[i] = makeCaps(unescape(subs[i]));
    document.write("<a href=\"" + getLoc(subs.length - i - 2) + "\">" +
    subs[i] + "</a> " + delimiterStr + " ");
  }

  document.write(document.title);
}

function makeCaps(a) {
  g = a.split("_");
  for (l = 0; l < g.length; l++) {
    g[l] = g[l].toUpperCase().slice(0, 1) + g[l].slice(1);
  }
  return g.join(" ");
}

function getLoc(c) {
  var d = "";
  if (c > 0) {
    for (k = 0; k < c; k++) {
    d = d + "../";
    }
  }
  return d;
}