// wait until document is fully scriptable 
$(document).ready(function() { 
 
    // select #flowplanes and make it scrollable. use circular and navigator plugins 
   var api =  $("#slider #flowpanes").scrollable({
   		size: 1,
   		clickable: false
   		}).circular().mousewheel(400).navigator({ 
 
        // select #flowtabs to be used as navigator 
        navi: "#slider_top div div #flowtabs", 
 
        // select A tags inside the navigator to work as items (not direct children) 
        naviItem: 'a', 
 
        // assign "current" class name for the active A tag inside navigator 
        activeClass: 'current',
        
        api: true 
 
    }); 
 
//lance le timer a la une
 if(timerDelay>0 ){ 
	$(document).everyTime(timerDelay,"timerUne", function(){
		api.next();	
 	 });
//arrête le timer au clique des éléments sélectionnés  
  	$('#scrollButtons.next, #scrollButtons.prev, #flowtabs li a').click(function() {
  		$(document).stopTime("timerUne");
  	});
 }

});


