jQuery, instantiate same script with different parametres
<p>I've got this problem. I created 1 script for prepending-appending items in a carousel, i need to use the script 2 times in the page but i cant' do this right (multiple append happen). Here's my codes: </p>

<p>function call:</p>

<pre><code>$(function(){
    cronoSlider("carousel-footer");
    cronoSlider("carousel-news-offer");
});
</code></pre>

<p>my function:</p>

<pre><code>function cronoSlider(divID){

    $(".navigation .next").click(function(){
        $(this).parents(".carousel").find("ul li:first").appendTo("#"+divID+" .carousel ul");
    }); 
    $(".navigation .prev").click(function(){
        $(this).parents(".carousel").find("ul li:last").prependTo("#"+divID+" .carousel ul");
    }); 
}
</code></pre>
