
function carrousel(id, height, nb, vitesse)
{
	items.hover(
		function(){
			clearTimeout(id_inst);
		},
		function(){
			Timer();
		}	
	);
	
	Timer();
}

function Timer() {
	var t=parseInt(items.css('top'));
  	items.css({top:(t-1)+'px'})
   	id_inst=setTimeout("Timer()",20);
   	window.totalpx+=1;
   /*	if(window.totalpx==$('.items .itemvide:last').height())
      	{
	   	var h;
		h= $('.items .item:first').html();
		$('.items').append('<div class="item">'+h+'</div>');
		$('.items .item:first').html('');
		$('.items .item:first').addClass('itemvide');
		$('.items .item:first').removeClass('item');
		window.totalpx=0;
	}*/
	
	if(window.totalpx>=($('.items').height()-220))
    {
	   	$('.items').append(	$('.items').html());
		
	}
   
}
