$(document).ready( function() {
    $('a.new-win').each( function() { // <- our anonymous callback
	// check the DOM attribute 'host' on this  
	if (this.host != window.location.host) {    
	    // create a jQuery object using the current DOM element    
	    $(this).attr('target', '_new');  
	}
    });
});
