Javascript SyntaxError: Unexpected identifier
<p>I wrote some small script, but since I did it with Google help I need some advice. After putting this into Chrome console, I'm getting this error:</p>

<blockquote>
  <p>SyntaxError: Unexpected identifier  </p>
</blockquote>

<p>Here is my code: </p>

<pre><code>jQuery(document).ready(function(){ 
    if jQuery("#colorbox").css("display", "none");) {
        jQuery("#close-news").css("display", "none");
    } 
    else {
        jQuery("#close-news").css("display", "visible");
    }
});
</code></pre>

<p>Any ideas what's wrong?</p>
