$(function(){$('a[href^="http"]').filter(function(){return(this.hostname&&this.hostname!=location.hostname)}).not(":has(img)").each(function(){if(external_one_link){$(this).html($(this).html()+' ').click(function(){window.open($(this).attr("href"));return false})}else{$(this).append(" ").append($('').click(function(){window.open($(this).attr("href"));return false}))}})});