jQuery slide, how to not slide at beginning or end?
<p>I have a jquery function which slides a certain div to the right or left when I click a button.</p>

<pre><code>$(function(){
    $("#prev").click(function(){
        $("#contentcont").animate({'left': '-=110'});
        return false;
    });
    $("#next").click(function(){
        $("#contentcont").animate({'left': '+=110'});
        return false;
    });
});
</code></pre>

<p>Everything works fine. But what can I do if I havent slided anything yet, I can just slide the whole thing to one side? Right now I can slide to both sides. But I just want to do that if I already slided at least one. Also the same for the end... how can I tell jquery to stop the sliding when I just reached the end?</p>

<p>Thanks in advance. I'm still not a jquery pro...</p>
