Need assistance in editing javascript to add options to a slider so it will loop
<p>I have slider content (images) within  tags in html and need my js to loop through all the inner divs or basically return to the beginning when it hits the last one. I won't know how many total images there are but it should detect and do a continuous loop. Currently, the user clicks to advance and I'd like to keep it that way. Thanks for looking.</p>

<p>JS</p>

<pre><code>$('.slide_arrow').click(function(){
        var hs = $('.main_slide').animate({left: '-=960'}, 1000);
});
</code></pre>

<p>HTML</p>

<pre><code>&lt;div class="main_slide"&gt;
&lt;div class="inner_slide"&gt;
    &lt;img src="/images/hero_box_placeholder.jpg" /&gt;          
&lt;/div&gt;
    &lt;div class="inner_slide"&gt;
    &lt;img src="/images/hero_box_placeholder2.jpg" /&gt;         
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Perhaps something along the lines of:
    $('.inner_slide').continuous(true);</p>

<p>--
using jquery/1.6.2/jquery.min.js</p>
