$.expr[':'].external = function(obj){
    return (obj.hostname
            && (obj.hostname != location.hostname)
			&& (obj.hostname != 'www.nortrax.com')			
			&& (obj.hostname != 'nortrax.com')
			&& (obj.hostname != 'nortrax.pairsite.com')			
			&& (obj.hostname != 'nortrax.ca')
			&& (obj.hostname != 'nortrax-ca.pairsite.com')
			&& (obj.hostname != 'qc.nortrax.ca')
			&& (obj.hostname != 'qc-nortrax-ca.pairsite.com')
			&& (obj.hostname != 'openads.pairsite.com')		
			&& (obj.hostname != 'openx-nortrax.pairsite.com'));
};
var externalLink = {
 init: function() {
	 $('a:external')
	  .attr('target', '_blank')
	  .click(externalLink.recordOutboundLink);
 },
 recordOutboundLink: function() {
  var href = this.href,
      extLink = href.replace(/^https?\:\/\//i, '');	 
  try {
   _gaq.push(['_trackPageview', '/outgoing/' + extLink]);
   _gaq.push(['_trackEvent', 'External Link', 'Click', extLink]);
  }
  catch(error){}
 }
}
$(document).ready(function(){ 	
 externalLink.init(); 
}); 