// JavaScript Document
newspan = {
	// Démarrer le widget
	init : function(nbws,duration){
		newspan.duration=duration;
		newspan.nbws=nbws;
		newspan.current=0;
		newspan.scrollit = new Fx.Scroll('newspan', {
			wait: false,
			duration: 1000,
			offset: {'x': 0, 'y': 0},
			transition: Fx.Transitions.Quart.easeOut
		});
		newspan.timer=setTimeout('newspan.newsnext();',newspan.duration);
	},
	newsnext:function(){	
		if(newspan.current+1>=newspan.nbws){
			newspan.current=0;
		} else {
			newspan.current=newspan.current+1;
		}
		newspan.scrollit.toElement('newsele'+newspan.current);
		newspan.timer=setTimeout('newspan.newsnext();',newspan.duration);
	}
}
logopan = {
	// Démarrer le widget
	init : function(nbws,duration){
		logopan.duration=duration;
		logopan.nbws=nbws;
		logopan.current=0;
		logopan.scrollit = new Fx.Scroll('logopan', {
			wait: false,
			duration: 1000,
			offset: {'x': 0, 'y': 0},
			transition: Fx.Transitions.Quart.easeOut
		});
		logopan.timer=setTimeout('logopan.logonext();',logopan.duration);
	},
	logonext:function(){	
		if(logopan.current+1>=logopan.nbws){
			logopan.current=0;
		} else {
			logopan.current=logopan.current+1;
		}
		logopan.scrollit.toElement('logoele'+logopan.current);
		logopan.timer=setTimeout('logopan.logonext();',logopan.duration);
	}
}
socialpan = {
	// Démarrer le widget
	init : function(nbws,duration){
		socialpan.duration=duration;
		socialpan.nbws=nbws;
		socialpan.current=0;
		socialpan.scrollit = new Fx.Scroll('flashsocial', {
			wait: false,
			duration: 1000,
			offset: {'x': 0, 'y': 0},
			transition: Fx.Transitions.Quart.easeOut
		});
		socialpan.timer=setTimeout('socialpan.socialnext();',socialpan.duration);
	},
	socialnext:function(){	
		if(socialpan.current+1>=socialpan.nbws){
			socialpan.current=0;
		} else {
			socialpan.current=socialpan.current+1;
		}
		socialpan.scrollit.toElement('flashsoc'+socialpan.current);
		socialpan.timer=setTimeout('socialpan.socialnext();',socialpan.duration);
	}
}