// JavaScript Document
	var height = 0;
	var to = null;
	var theAnimation;
	var newsScroller;
	$(document)
	.ready(function(){
		newsScroller = $('#nouvelles');
		
		var curSet = newsScroller
		.prev()
			.addClass('ns')
		.end()
		.wrap('<div>')
		.parent()
			.addClass('ns')
		.end()
		.wrap('<div>')
		.children()
		.slice(0,1)
		.each(function(){
			height += $(this).outerHeight(true);
		});
		
		theAnimation = function(){
			if( !newsScroller.is(':animated') ){
				newsScroller.animate({top:-height},2000,function(){
					height = 0;
					curSet = newsScroller
					.append(curSet)
					.css('top',0)
					.children()
					.slice(0,1)
					.each(function(){
						height += $(this).outerHeight(true);
					});
				});
			}
		};
		
		to = setInterval(theAnimation,6000);
		
		newsScroller.bind('mouseenter',function(){
			clearInterval(to);
		})
		.bind('mouseleave',function(){
			theAnimation();
			to = setInterval(theAnimation,6000);
		});
	});
