jQuery script + compatibility
<p>The following jQuery script creates compatibility issues with other java/mootools script on my site - is there anything I can do to make it <em>more</em> compatible?</p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"&gt;&lt;/script&gt;         
&lt;script type="text/javascript"&gt;                                         
   $(document).ready(function() {
      $('a[href^="http://"]').filter(function() {return this.hostname &amp;&amp; this.hostname !== location.hostname;}).attr('target', '_blank');
   });                     
&lt;/script&gt;
</code></pre>

<p>Note - the script is designed to open external links in new windows.</p>
