Executing a js function only once per visit and execute again on refresh
<p>I want the following code to run only once per visit. If i navigate from homepage to different page and come back to homepage, i should not see the effect again. If i refresh the page, i should see the effect. Here is the code : </p>

<pre><code>function stack(){
       $('#image').animate({
            width: 200,
            height: 150,
            top: 0,

        },1500);
}
$(function(){
    stack();
});
</code></pre>

<p>Here is what i am doing : <a href="http://jsfiddle.net/kq5M4/" rel="nofollow">http://jsfiddle.net/kq5M4/</a></p>
