$(document).ready(function(){
    $("a[@href*='http']:not([@href*='" + domain + "'])").click(function(){
        if (typeof(pageTracker) != 'undefined') {
            pageTracker._trackPageview('/outgoing/' + this.href);
        }
    });

    setTimeout(function() {
        _gaq.push(['_trackEvent', 'PageView', 'SpentTime', 'Short'])
    },30000)
    setTimeout(function() {
        _gaq.push(['_trackEvent', 'PageView', 'SpentTime', 'Medium'])
    },300000)
    setTimeout(function() {
        _gaq.push(['_trackEvent', 'PageView', 'SpentTime', 'Long'])
    },900000)
  });
