$(document).ready( function() {
    $('a[href^="http://"]').click(function(event) {
		if($(this).attr('rel') != 'internal') {
			return !window.open(this.href);
		}
     });

	$("a[rel='external']").click(function() { 
		return !window.open(this.href);
	});
});
