$(document).ready(function(){
        links = $("a");
        for (i=0 ; i<links.length ; i++) {
                link = links[i];
                if (link.href.indexOf("hvar.is") == -1) {
                        // External link, decorate it
                        link.onclick=function() {
                                recordOutboundLink(this, 'Outbound Links', this.href, this.innerHTML);
                                return false;
                        };
                }
        }
});


function recordOutboundLink(link, category, action, label) {
    _gat._getTrackerByName()._trackEvent(category, action, label);
    setTimeout('document.location = "' + link.href + '"', 100);
}

