Link style with javascript
<p>I have this code for hiding\showing link depends on state of cBoxoverlay. But when i click to close this item(<code>display:none</code>), and then click again to show it(<code>display:block</code>) my link(<code>#close-news</code>) still not showing.</p>

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

<p>Where did i make mistake?</p>
