.show() not showing HTML element
<p>Here the problem: the layer gets sucessfully hidden, but when I click the button again, it won't re-appear. Any ideas?</p>

<pre><code>&lt;head&gt;
    ...
    &lt;script type="text/javascript" 
        src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;
    &lt;/script&gt;

    &lt;script type="text/javascript"&gt;
    function action() {
        var status;
        status = 1;

        if( status == 1 ) {
            $("#Layer1").hide( "slow" );
            $("#close").attr( "src", "open.jpg" );
            status = 0;
        } else if( status == 0 ) {
            status = 1;
            $("#Layer1").show( "slow" );
            $("#close").attr( "src", "close.jpg" );
        }
    }
    &lt;/script&gt;
    &lt;style type="text/css"&gt;
    body {
        background-color: #000000;
    }
    #Layer1 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 1;
        left: 179px;
        top: 3px;
    }
    #Layer2 {
        position: absolute;
        width: 101px;
        height: 80px;
        z-index: 2;
        left: 570px;
        top: 473px; 
    }
    &lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;
    &lt;div id="Layer1"&gt;&lt;img src="body.jpg" width="842" height="554" /&gt;&lt;/div&gt;
    &lt;div id="Layer2"&gt;&lt;img src="close.jpg" id="close" width="63" height="64"     
        OnClick="action()"/&gt;&lt;/div&gt;
&lt;/body&gt;
</code></pre>
