// JavaScript Document
/*
// loads links in new windows when designated by the rel="ext" attribute //
*/
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") == "ext")
     anchor.target = "_blank";
 }
}

function popupWin(link,attribs) {
    var popupWin = null;
    popupWin = window.open(link,'winPopup',attribs);  
}

function setRel() {
	externalLinks();
}
// initialize rel replacement - REMEMBER: ALL anchors on the page must have a set rel attribute (ext, int, pop) //
window.onload = setRel;

