$(function()
{
	$("a[href^='http']").each(function() {
 		var href = $(this).attr('href');
		// IE7 hack
    		if (href.indexOf(window.location.hostname) == -1) {
		        $(this).attr("target", "_blank");
		}
	});
});

