Event.observe(window, 'load', function(e) {
	$('container').select('a').each(function(item) {
		var theHref = item;
		if (theHref.hostname && theHref.hostname !== location.hostname) {
			$(theHref).observe('click', function(event) {
				var code=event.charCode || event.keyCode;
				if (!code || (code && code == 13)) {
					if(pageTracker){
						var fixedLink = this.href;
						fixedLink = fixedLink.replace(/https?:\/\/w?w?w?\.?([^\/:]+).*/,"$1");
						fixedLink = '/outgoing/' + fixedLink;
						pageTracker._trackPageview(fixedLink);
					};
				};
			});
		};
	});
	
	$('designboerse').select('a').each(function(item) {
		var theHref = item;
		if (theHref.hostname && theHref.hostname !== location.hostname) {
			$(theHref).observe('click', function(event) {
				var code=event.charCode || event.keyCode;
				if (!code || (code && code == 13)) {
					if(pageTracker){
						var fixedLink = this.href;
						fixedLink = fixedLink.replace(/https?:\/\/w?w?w?\.?([^\/:]+).*/,"$1");
						fixedLink = '/outgoing/' + fixedLink;
						pageTracker._trackPageview(fixedLink);
					};
				};
			});
		};
	});
	
	$('hotelalexandra').select('a').each(function(item) {
		var theHref = item;
		if (theHref.hostname && theHref.hostname !== location.hostname) {
			$(theHref).observe('click', function(event) {
				var code=event.charCode || event.keyCode;
				if (!code || (code && code == 13)) {
					if(pageTracker){
						var fixedLink = this.href;
						fixedLink = fixedLink.replace(/https?:\/\/w?w?w?\.?([^\/:]+).*/,"$1");
						fixedLink = '/outgoing/' + fixedLink;
						pageTracker._trackPageview(fixedLink);
					};
				};
			});
		};
	});
	
	$('vintagedesign').select('a').each(function(item) {
		var theHref = item;
		if (theHref.hostname && theHref.hostname !== location.hostname) {
			$(theHref).observe('click', function(event) {
				var code=event.charCode || event.keyCode;
				if (!code || (code && code == 13)) {
					if(pageTracker){
						var fixedLink = this.href;
						fixedLink = fixedLink.replace(/https?:\/\/w?w?w?\.?([^\/:]+).*/,"$1");
						fixedLink = '/outgoing/' + fixedLink;
						pageTracker._trackPageview(fixedLink);
					};
				};
			});
		};
	});
});