// JavaScript Document
// author: Kevin Yank, published at sitepoint.com, and used here with gratitude

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "offsite")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

// one of these days, maybe I'll modify his code so instead of a new window, 
// we open into a new tabs if tabs are available...

