/* */
function externalLinks() {
    var links = document.getElementsByTagName('a');
    for (var i = links.length; i != 0; i--) {
        var a = links[i-1];
        if (!a.href) continue;
        if  (!/^http(s)?:\/\/(www\.)?nwl/.test(a.href) || !/^javascript/g.test(a.href) )
        {
            if (!a.firstChild == null) {
                if ( a.firstChild.nodeName.toLowerCase() != "img" && !a.parentNode.parentNode.className.match(/features/)) 
            {
                addClass(a,'external');
            }
            }
        }
        if    (
              a.className
              &&
              a.className == "new-window"
              )
        {
            a.onclick = function ()
            {
                window.open(this.href);
                return false;
            }
        }
    }
}
addLoadEvent(externalLinks);
/* Added by Paul Blighe to open SmartAgent */
function smartAgent_popup(){
    window.open('http://www.smartagent.co.uk/clients/nwl/smartAgent.html','SmartAgent','top=150,left=300,width=500,height=575,scrollbars=no,menubar=no,toolbar=no,resizable=no')
}
