//
//
//var $j = jQuery.noConflict();
//
//var theInt = null;
//var curclicked = 0;
//var stop = 0;
//
//theInterval = function(cur){
//       clearInterval(theInt);
//
//       theInt = setInterval(function(){
//               $j(".mb-slider a").eq(curclicked).trigger('click');
//               curclicked++;
//               if( 10 == curclicked )
//                       curclicked = 0;
//               $j("#stop").click(
//                       function(){
//                               if (stop==0){
//                               clearInterval(theInt);
//                               stop=1;}
//                       });
//       }, 1100);
//       $j("#stop").click(
//               function(){
//                       stop=0;
//                       theInterval();
//               }
//       );
//};



/*$j(function(){
      
       $j("#main-photo-slider").codaSlider();
       
});
*/


$(function(){
	// $j("#slider-five").prepend('<div id="stop">Start/Stop</div>');
    $('#slider-five').movingBoxes({
		startPanel   : 3,
		width        : 1100,
		panelWidth   : .4, 
		buildNav     : true,
		fixedHeight  : true,
	});
    $('.mb-slider').bind('initialized.movingBoxes initChange.movingBoxes beforeAnimation.movingBoxes completed.movingBoxes',function(e, slider, tar){
		if (window.console && window.console.firebug){
			var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.curPanel + ', targeted panel is ' + tar;
			console.debug( txt );
		}
	});
//	theInterval();
});

