if (document.getElementsByTagName) {
  // Mozilla (Netscape 6.0, Opera 5 and others)
  var seperator = "|";
  var myLinkTypes = new Array("prev", "next", seperator, "contents", "start", seperator, "alternate", seperator, "help", "appendix", "author", seperator, "disclaimer");
  var myBody = document.getElementsByTagName("body");
  var myLinks = document.getElementsByTagName("link");
  // create a inline-element <div> to place and center over the table
  var linkDiv = document.createElement("div");
  linkDiv.style.textAlign = "center";
  if (myBody[0].firstChild && myBody[0].firstChild.nodeType == 8) {
    // read the comment directly after the body-tag, this comment contains the with of the body of the document
    // 8 means Node.COMMENT_NODE.  We're using numeric values because IE6 does not support constant names.
    linkDiv.style.width = myBody[0].firstChild.nodeValue.toLowerCase().replace(/[^a-z0-9%]/g,"").match(/\d+px|\d+%/);
  }
  // create a inline-element <span> for formatting
  var linkSpan1 = document.createElement("span");
  linkSpan1.className = "SmallFont";
  // create a inline-element <span> for formatting
  var linkSpan2 = document.createElement("span");
  linkSpan2.className = "Link";
  linkSpan2.style.textDecoration = "none";
  // browse through my linktypes
  for(var i=0;i<myLinkTypes.length;i++) {
    if (myLinkTypes[i].indexOf(seperator)==0) {
      // found seperator, print separator as a fake link
      linkSpan2.innerHTML += myLinkTypes[i];
    } else {
      // look for related META tag and insert link
      for(var j=0;j<myLinks.length;j++) {
        if (myLinkTypes[i].toLowerCase().search(myLinks.item(j).rel.toLowerCase())!=-1) {
          // create a inline-element <a> containing the menu
          var linkA = document.createElement("a");
          // set attributes for the link
          linkA.setAttribute("lang", myLinks.item(j).lang);
          linkA.setAttribute("xml:lang", myLinks.item(j).lang);
          linkA.setAttribute("href", myLinks.item(j).href);
          linkA.setAttribute("title", myLinks.item(j).title);
          linkA.innerHTML = "&nbsp;" + myLinks.item(j).title.toLowerCase() + "&nbsp;";
          // put elements in the DOM hierarchy and make them visible
          linkSpan2.appendChild(linkA);
        }
      }
    }
  }
  // needed voor XHTML1.0 Strict
  linkSpan1.appendChild(linkSpan2);
  linkDiv.appendChild(linkSpan1);
  document.body.appendChild(linkDiv);
}

