function ScrollLeft(objecte)
{
	var text=document.getElementById('centrada');
	var a_leftt=text.style.left.split("px");
	
	
	var cuenta_li = document.getElementById('ul_').getElementsByTagName('li').length;
	var total_li=cuenta_li*42;
	var posicion_left=text.offsetLeft;
	var res=560-total_li;

	if (posicion_left<res)
	{
		return;
	}
	
	
	if (text.style.left!='')
	{
		var nou_valort=parseInt(a_leftt[0]) - 10;
		text.style.left=nou_valort+"px";

	}
	else text.style.left="0px";

	dreta=setTimeout ("ScrollLeft()", 50);
}

function ScrollRight(amplada_imatges)
{
	
	var text=document.getElementById('centrada');
	var a_leftt=text.style.left.split("px");
	if (text.style.left=="0px")
	{
		return;
	}
	
	if (text.style.left!='')
	{
		var nou_valort=parseInt(a_leftt[0]) + 10;
		text.style.left=nou_valort+"px";
	}
	else text.style.left="0px";
	
	esquerra=setTimeout ("ScrollRight()", 50);
}

function StopScrollRight() {clearTimeout(esquerra);}
function StopScrollLeft() {clearTimeout(dreta);}
