var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-23213322-1']);
	_gaq.push(['_trackPageview']);
	_gaq.push(['_trackPageLoadTime']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

$(function() {
	$('a.ga').click(function() {
	  // usually we would prevent the link's default action but since here
	  // we open the link in a new window we don't have to do that
	  if ($('body').hasClass('home'))
		 _gaq.push(['_trackEvent', 'Outbound Links', 'AppStore Click (homepage)', this.href]);
	  else
		 _gaq.push(['_trackEvent', 'Outbound Links', 'AppStore Click', this.href]);
	});
});
