
/* - outboundlinks.js - */
(function($) {

    //var url = window.location.protocol + '//' + window.location.host;
    $('#content').find('a[href^=http]:not([href^=' + portal_url + '])')
        .attr('onClick', 'javascript: tracklink(this.href);');
            
})(jQuery);

function tracklink(link) {
        var hrf = '/outgoing/' + link.replace("http://","").replace("https://","");
        //We can't guarantee that analytics has loaded, best not to throw an error
        try { 
            pageTracker._trackPageview(hrf);
        } catch (e) {}
    }
