$(function() {
	var second_domain = window.location.host.replace(/(.+\.)?([a-z]+)\.([a-z]+)$/, "$2.$3");
	$("a[href^='http']:not([href*='" + second_domain + "'])").live('click', function(){
		var thisObj = $(this);
		if(!thisObj.attr('target'))
		{
			window.open(thisObj.attr('href'));
			return false;
		}
	 });
});

