$(document).ready(function(){

  $("a[rel=external]").each(function(i){

    this.target="_blank";

  });

});
