jQuery to add _blank to external link
<p>I'm making a script which, automatically ads target="_blank" to all external links. 
The problem is that, the script also makes the internal absolute links open in a new tab.
You can check the problem on this test link:
<a href="http://www.fairfood.org/testtest/" rel="nofollow">http://www.fairfood.org/testtest/</a></p>

<pre><code>$("a").filter(function () {
    return this.hostname &amp;&amp; this.hostname !== location.hostname;
}).each(function () {
    $(this).attr({
        target: "_blank",
        title: "Visit " + this.href + " (click to open in a new window)"
    });
});
</code></pre>

<p>Does anybody know how to fix this?</p>

<p>Any help is much appreciated.</p>
