function ScrollNoticias(Utype,Umsgs,Ucursor,Uwidth,Uheight,Ubgcolor,Ubackground,Uspeed,Udelay,Ufirst) {
	document.writeln('<span id="Ubox" style="position:relative;width:'+Uwidth+';height:'+Uheight+';overflow:hiden;background-color:'+Ubgcolor+' ;background-image:url('+Ubackground+')">')
	document.writeln('<div style="position:absolute;width:'+Uwidth+';height:'+Uheight+';clip:rect(0 '+Uwidth+' '+Uheight+' 0);left:0;top:0">')
	
	document.writeln('<div id="Utxt" style="position:absolute;width:'+Uwidth+';left:0;top:'+Uheight+';">')
	document.writeln(Umsgs[Ufirst]);
	if (document.all) 
		Uscroll_IE(Utxt,Umsgs,Uheight,Uspeed,Udelay,Ufirst);
	else if (document.getElementById && !document.all)
		Uscroll_NS6(document.getElementById("Utxt"),Umsgs,Uheight,Uspeed,Udelay,Ufirst);

	document.writeln('</div>')
	document.writeln('</div>')
	document.writeln('</span>')
}

// Moves
function Uscroll_IE(IDdiv,Umsgs,Uheight,Uspeed,Udelay,Ufirst){
	ttxt=eval(IDdiv);
	Ustep=eval(Ufirst);
	if (ttxt.style.pixelTop>0&&ttxt.style.pixelTop<=5){
	ttxt.style.pixelTop=0;
	setTimeout("Uscroll_IE(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Udelay);
	return
	}
	else {
		if (ttxt.style.pixelTop>=ttxt.offsetHeight*-1){
		ttxt.style.pixelTop-=5
		setTimeout("Uscroll_IE(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Uspeed);
		return
		}
		else {
		ttxt.style.pixelTop=Uheight;
		if (Ustep>=Umsgs.length-1)
			Ustep=0
			else		
			Ustep++;
		ttxt.innerHTML=Umsgs[Ustep];
		Uscroll_IE(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep);
		}
	}
}

function Uscroll_NS6(IDdiv,Umsgs,Uheight,Uspeed,Udelay,Ufirst){
	ttxt = IDdiv
	Ustep=parseInt(Ufirst)
	if (parseInt(ttxt.style.top)>0&&parseInt(ttxt.style.top)<=5){
		ttxt.style.top=0;
		setTimeout("Uscroll_NS6(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Udelay);
		return
	}
	else {
		if (parseInt(ttxt.style.top)>=parseInt(ttxt.offsetHeight)*-1){
			ttxt.style.top = parseInt(ttxt.style.top) - 5
			setTimeout("Uscroll_NS6(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Uspeed);
			return
		}
		else {
			ttxt.style.top=parseInt(Uheight);
			if (Ustep>=Umsgs.length-1)
				Ustep=0
			else		
				Ustep++;
			ttxt.innerHTML=Umsgs[Ustep];
			Uscroll_NS6(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep);
		}
	}
}
