jQuery.url.attr('anchor') - ie complains if null
<p>I'm using the following jQuery to trigger a tab from a menu item.</p>

<pre><code>if(jQuery.url.attr('anchor')) {

            var anchor = jQuery.url.attr('anchor');

            if(anchor = '#goods') {
                var selected = jQuery( "#tabs" ).tabs( "option", "selected" );
                jQuery( "#tabs" ).tabs( "option", "selected", 1 ); 
            }
</code></pre>

<p>This works well in all browsers except that IE (big suprise) complains if no anchor is present in the url.
This code is in my footer and thusly gets loaded on every page.</p>

<p>What would be the syntax to ignore if no anchor is set?</p>

<p>Thanks in advance</p>
