var theInt = null;
var curclicked = 0;

theInterval = function(cur){
	clearInterval(theInt);
	
	if( typeof cur != 'undefined' )
		curclicked = cur;
	
	theInt = setInterval(function(){
		$(".stripNav ul li a").eq(curclicked).trigger('click');
		curclicked++;
		if( 4 == curclicked )
			curclicked = 0;
		
	}, 6000);
};
		
$(document).ready(function(){
	if($("#main-photo-slider").length>0) $("#main-photo-slider").codaSlider();
	if($("#detail-photo-slider").length>0) $("#detail-photo-slider").codaSlider();
	theInterval();
});
