// JavaScript Document
$(document).ready(function(){
	$('a').bind('click keypress', function(event) {
		 var $a = $(this);
		 var href = $a.attr('href');
		 // see if the link is external
		 if ( (href.match(/^http/)) && (! href.match(document.domain)) ) {		
		    // if so, register an event
		    var category = 'outgoing'; // set this to whatever you want
		    var action = event.type; // set this to whatever you want
		    var label = href; // set this to whatever you want
			var pageTracker = _gat._getTracker("UA-9885903-2");
    		pageTracker._trackEvent("outgoing", action, href); // catogery, action
		    // pageTracker._trackEvent(category, event, href);
		 }
	});	
});
