if(typeof jQuery == 'function') { /* use jQuery if it exists because it is a more elegant solution */
	jQuery(function () {
		jQuery('a:not([href*="' + document.domain + '"])').click(function () {
			pageTracker1._trackPageview('/outbound/LocalCTA/' + jQuery(this).attr('href'));
			pageTracker2._trackPageview('/outbound/LocalCTA/' + jQuery(this).attr('href'));
		});
	});
}
else { /* use regular Javascript if jQuery does not exist */
	window.onload = function () {
		var links = document.getElementsByTagName('a');
		for (var x=0; x < links.length; x++) {
			links[x].onclick = function () {
				var mydomain = new RegExp(document.domain, 'i');
				if(!mydomain.test(this.getAttribute('href'))) {
					pageTracker1._trackPageview('/outbound/LocalCTA/' + this.getAttribute('href'));
					pageTracker2._trackPageview('/outbound/LocalCTA/' + this.getAttribute('href'));
					
				}
			};
		}
	};
}