Event.observe(window, 'load', function() {
	if(window.urchinTracker) { // check that Google Analytics is available
		$$('a').each(function(el) {
			//loop through all page links
			var hrefParts = el.href.split(".");
			//apply click event to files with allowed extensions
			if(googleAllowedDownloadExtensionList.indexOf(hrefParts[hrefParts.length-1]) != -1) { 
				el.observe('click', function(e) {
				  //remove host and create our title to track as
					var href = "Download: /" + this.href.split("/").slice(3).join("/"); 
					urchinTracker(href);
				}.bind(el));
			}
		});
	}
});