jQuery - global variable
<p>I am trying to use variable in different function, I want to set <em>global</em> variable. Is there way how to do it?</p>

<p>I want something like this:</p>

<pre><code>$('.bar1').animate({'height':'10' + "%"},1500, function() {  
    var bar1_height = $(".bar1").height() * 0.5;  
});
</code></pre>

<p>and then use variable <code>bar1_height</code> elsewhere.</p>
