Delay displaying a fixed bar, but hide it instantly
<p>I currently have the following code which delays showing a fixed bar after a certain point.</p>

<p>The code hides the fixed bar if you scroll up to the top, but automatically shows the bar after 2 seconds, even though the scroll point is below 70, so it should be hidden all together.</p>

<pre><code>    $(window).scroll(function() {
        if($(window).scrollTop() &gt; 70) {
            $('#mini-header').delay(2000).show(0);
        } else if($(window).scrollTop() &lt; 70) {
            $('#mini-header').hide();
        }
    });
</code></pre>

<p>A <a href="http://jsfiddle.net/fKqMN/" rel="nofollow">jsFiddle</a> shows the behaivor.</p>
