var gaDocTypes = new RegExp(/\.(zip|pdf|jpg)$/i); 

$.expr[':'].external = function(obj){
    return (obj.hostname != location.hostname);
};

$.expr[':'].asset = function(obj){
	return gaDocTypes.test(obj.href);
};


$(document).ready(function() {						  
        $('a:asset').click(
      		function($e) {
				_gaq.push(['_trackEvent', 'download', 'click', this.pathname]);
      		});

		$('a:external').click(
      		function($e) {
				_gaq.push(['_trackEvent', 'outbound', 'click', this.href]);
      		});
});


