////////////////////////////////////////////////////////////////////////
//
//  File: Global JS
//  Author: Craig Nelson / Classic Labs
//

  // non-clickable and external links
  function setLinks(anchors) {
    anchors.each(function (e) {
      if (e.getAttribute("rel") == "external") {
        e.target = "_blank";
      }
      if (e.getAttribute('rel') == 'no-click') {
        e.onclick = function () {
          return false;
        }
      }
    });
    return;
  }
  // --non-clickable and external links
  
  // onload events
  Event.observe(window, "load", function () {
    setLinks($$("a"));
  });
  // --onload events