window.addEvent('domready',function(){
/* config nouvelles*/
		var nouvelles = new noobSlide({
			box: $('boxnouvelles'),
			startItem: 1,
			items: $ES('h3','boxnouvelles'),
			size: 600,
			interval: 5000,
			fxOptions: {
			duration: 1200,
			transition: Fx.Transitions.Bounce.easeOut,
			wait: false
			},
			autoPlay: false,
			handles: $ES('span','handles_nouvelles'),
			buttons: false,
			onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$$(currentHandle).addClass('active');
				$('infonomnouvelles').setHTML(this.items[this.currentIndex].innerHTML);	
			}
		});
		nouvelles.walk(0)
/* config sujets forum*/
		var reponsesforum = new noobSlide({
			box: $('boxreponsesforum'),
			startItem: 1,
			items: $ES('h3','boxreponsesforum'),
			size: 600,
			interval: 5000,
			fxOptions: {
			duration: 1200,
			transition: Fx.Transitions.Bounce.easeOut,
			wait: false
			},
			autoPlay: false,
			handles: $ES('span','handles_reponsesforum'),
			buttons: false,
			onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$$(currentHandle).addClass('active');
				$('infonomreponsesforum').setHTML(this.items[this.currentIndex].innerHTML);	
			}
		});
		reponsesforum.walk(0)		
		/* config sujets forum*/
		var sujetforum = new noobSlide({
			box: $('boxsujetforum'),
			startItem: 1,
			items: $ES('h3','boxsujetforum'),
			size: 600,
			interval: 5000,
			fxOptions: {
			duration: 1200,
			transition: Fx.Transitions.Bounce.easeOut,
			wait: false
			},
			autoPlay: false,
			handles: $ES('span','handles_sujetforum'),
			buttons: false,
			onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$$(currentHandle).addClass('active');
				$('infonomsujetforum').setHTML(this.items[this.currentIndex].innerHTML);	
			}
		});
		sujetforum.walk(0)
	/* config votes*/		
		var votes = new noobSlide({
			box: $('boxvotes'),
			startItem: 1,
			items: $ES('h3','boxvotes'),
			size: 600,
			interval: 6000,
			fxOptions: {
			duration: 1400,
			transition: Fx.Transitions.Back.easeOut,
			wait: false
			},
			autoPlay: true,
			handles: $ES('span','handles_votes'),
			buttons: false,
			onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$$(currentHandle).addClass('active');
				$('infonomvotes').setHTML(this.items[this.currentIndex].innerHTML);	
			}
		});
		votes.walk(0)
	/* config visites*/		

		var visites = new noobSlide({
			box: $('boxvisites'),
			startItem: 1,
			items: $ES('h3','boxvisites'),
			size: 600,
			interval: 6000,
			fxOptions: {
			duration: 1400,
			transition: Fx.Transitions.Back.easeOut,
			wait: false
			},
			autoPlay: true,
			handles: $ES('span','handles_visites'),
			buttons: false,
			onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$$(currentHandle).addClass('active');
				$('infonomvisites').setHTML(this.items[this.currentIndex].innerHTML);	
			}
		});
		visites.walk(0)		
	});
	