$(document).ready(function(){$("a[@rel]").click(function(){if(this.rel.indexOf("external")>=0){window.open(this.href);return false}})});