/*---------------------------------------------------*/
/* NeoCMS Core File : js_external_links.js            */
/*                                                   */
/* This function allows certain links to open in a   */
/* new window. Those links have a rel attribute set  */
/* to "external".                                    */
/*---------------------------------------------------*/
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") == "external" || anchor.getAttribute("rel") == "tag external")
 anchor.target = "_blank";
}
}
window.onload = externalLinks;