window.addEvent('load', function() {
  if (_gaq) {
    $$('a[href^=http]').each(function(el) {
      if (!el.get('href').test('http://'+location.hostname)) {
        el.addClass('outgoing');
        el.addEvent('click',function() {
          _gaq.push(['_trackPageview', '/outgoing/'+this.get('href').replace('http://','')]);
        });
      }
    });
  }
});