Using coda to create a featured area slider and I want to make a small change to it

Using coda to create a featured area slider and I want to make a small change to it

Hi guys,

So I'm kind of new to using coda and other jQuery plugins, I've had my friend help me out, now I'm a tad stuck on this.

If you visit this link: http://rbmethod.com/beckner/ you can see the featured area slideshow I'm working on.

The problem is, when I click on one of the options example: For Institutional, instead of continuing through the cycle it starts over from the beginning.

Here is the main script we changed to give a longer delay when you press a section. (this was a first change I wanted).

<script type="text/javascript">

var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;

theInterval = function(cur){
clearInterval(theInt);

if( typeof cur != 'undefined' )
curclicked = cur;

$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');

theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;

}, 6000);
};

$(function(){

$("#main-photo-slider").codaSlider();

$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");

$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
clearInterval(theInt);
setTimeout(theInterval, 30000);
return false;
});

theInterval();
});
</script>


If you have any idea what needs to be changed so that it will continue through the cycle, please let me know.

Thanks for your time.