/* Instead of TARGET inside the <a> tag, since 1.1 xhtml does not allow it
we are using a javascript for targeting. */



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") == "")
       anchor.target = "_self";
    else if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "blank")
       anchor.target = "_blank";
   else if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "parent")
       anchor.target = "_parent";
 }
}
window.onload = externalLinks;