JQuery update if at bottom of DIV
<p>I have this function, which in itself works fine, however it scrolls down whenever i scroll up which is not intended.
I want it to run the function ONLY if the scrollbar of the div (overflow) is at the bottom, which makes it possible to scroll up without it scrolling back down preventing the view of older messages.</p>

<pre><code>function opdaterPost(til, fra){
        $('#beskeder_vis').load('calls/opdater_post.php?til=' + til + '&amp;fra=' + fra);
        $("#beskeder_vis").animate({ scrollTop: $("#beskeder_vis").prop("scrollHeight") }, 1500);   
}
</code></pre>

<p>Here's a jsfiddle showing the chat box
<a href="http://jsfiddle.net/w989Y/" rel="nofollow">http://jsfiddle.net/w989Y/</a></p>
