$(document).ready(function() {
    $('a[href][rel*=external]').each(function() { this.target = '_blank'; });
});
