JavaScript doesn't see a variable outside function
<p>I have this function:</p>

<pre><code>$(function ($) {
...
});

var getNotifyBar = $(".NotifyBar");
function showNotify(text) {
    getNotifyBar.hide().find(".text").html(text).end().slideDown();
}
</code></pre>

<p>And when I use function <code>showNotify(text)</code> nothing happens. But when I put it in the JavaScript console (of the browser) it works.</p>
