var blId;
function scrollText(txt,id){
	
	var nbChar = 150;
	
	nb = txt.length;
	
	blId = id;
		
	for(i = 0 ; i < nbChar - nb ; i++){
		txt = "&#160" + txt;
	}

	
	document.getElementById(blId).innerHTML = txt;
	setNextText(blId);
	
	
}

function setNextText(){
	
	txt = document.getElementById(blId).innerHTML;
	blank = txt.substring(0,6);
	if(blank == "&nbsp;"){
		left = "&#160";
		right = txt.substring(6);
	}
	else{
		left = txt.substring(0,1);
		right = txt.substring(1);
	}
	document.getElementById(blId).innerHTML = right + left;
	setTimeout("setNextText()", 50);
}
