
/* - hprc-leaving.js - */
jq(function() {


    // leaving site annoyance
    // uses jQueryAlerts
    // http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ 

    jq('a').filter(function() {
        return this.hostname && this.hostname !== location.hostname;
    
    })
    .click(function (e) {
          e.preventDefault();
          url = jq(this).attr('href')
          jConfirm('You are about to proceed to an offsite link. Click OK to proceed.',
                   'Confirm',
                   function(r) {
               
                        if (r)
                            // return location.href=url;
                            return window.open(url, "_blank");
                        else
                            return false;
        
                    });
            
        
        });

});





