﻿// JScript File
function externallinks()
{
    var c=document.getElementById('content');
    if(c==null){
    c=document.getElementById('content-sub');
    }
    if(c)
    {
        //alert("Found content id");
        var ls=c.getElementsByTagName('a');
        for(var i=0;i<ls.length;i++){
            if(ls[i].getAttribute('rel')=='external')
            {
              //  alert("Found 1!");
                ls[i].className+=ls[i].className?' extlink':'extlink';
                ls[i].title+='(opens in new window)';
                ls[i].onclick=function(){return !window.open(this.href);}
            }
            
        }
    }
    else
    {
        //alert("no content id");
    }
}
window.onload=function(){
    if(!document.getElementById && !document.createTextNode){return;}
    externallinks();
}


