if (typeof jQuery != 'undefined') {

jQuery(document).ready(function() {
/* DEBUGGING
  jQuery("a[href*='http://']:not([href*='"+window.location.hostname+"'])").each(function (x) {alert(jQuery(this).context.hostname + " -> " + jQuery(this).attr('href'));});
*/
  jQuery("a[href*='http://']:not([href*='"+window.location.hostname+"'])").bind('click', function(e) {
    if (typeof pageTracker != 'undefined') {
      var hostname = jQuery(this).context.hostname;

      /* normalize by unifying case and remove www from the hostname (but not the href) */
      hostname = hostname.toLowerCase();
      hostname = hostname.replace(/^www\./, '');

      pageTracker._trackEvent('Outbound', hostname, jQuery(this).attr('href'));
    }
  })
});


}
