// A little hack to override the theme copyright with my own on a perpetual interval :P
setInterval ("$('#ck').html('&copy; 2010 Andrew Lunn');", 100 );

// Initialise Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-724516-2']);
_gaq.push(['_trackPageview']);

(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);
})();

// Now, because tumblr doesn't seem to allow custom JS on page links I use jQuery
// to hook into each anchor tag with a title starting with 'Download' adding a click
// event to track the download with GA
$("a[title^='Download ']").each(function(index)
{
	$(this).click(function()
	{
		pageTracker._trackPageview($(this).attr("title"));
	});
});
