var delayb4scroll=0; //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1; //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1; //Pause marquee onMouseover (0=no. 1=yes)?

var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var actualheight='';
var cross_marquee=0;
var marqueeheight=0;

function scrollmarquee(){
	if (parseInt(cross_marquee[0].style.top)>((actualheight-marqueeheight-1)*(-1))){
		var top = parseInt(cross_marquee[0].style.top)-copyspeed+"px";
		for (var i = 0; i < cross_marquee.length; i++)
			cross_marquee[i].style.top=top;
	}
	else
		for (var i = 0; i < cross_marquee.length; i++)
			cross_marquee[i].style.top=0;
}

function initializemarquee(){
	cross_marquee=document.getElementsByName("userbar");
	
	if (cross_marquee.length != 0) {
		marqueeheight=cross_marquee[0].parentNode.offsetHeight;
		actualheight=cross_marquee[0].offsetHeight;
		
		for (var i = 0; i < cross_marquee.length; i++)
			cross_marquee[i].style.top=0;

		if (cross_marquee.length)
			setTimeout('lefttime=setInterval("scrollmarquee()",100)', delayb4scroll);
	}
}

if (window.addEventListener)
	window.addEventListener("load", initializemarquee, false);
else if (window.attachEvent)
	window.attachEvent("onload", initializemarquee);
else if (document.getElementById)
	window.onload=initializemarquee;



/*var delayb4scroll=0; //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1; //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1; //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////


var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var actualheight='';

function scrollmarquee(){
	if (parseInt(cross_marquee[0].style.top)>((actualheight-marqueeheight-1)*(-1))){
		top = parseInt(cross_marquee[0].style.top)-copyspeed+"px";
		for (var i = 0; i < cross_marquee.length; i++) {
			cross_marquee[i].style.top = top;
		}
	}
	else
		for (var i = 0; i < cross_marquee.length; i++)
			cross_marquee[i].style.top=0;
}

function initializemarquee(){ // Funciona bien con una sola firma
	cross_marquee=document.getElementsByName("userbar");
	marqueeheight=cross_marquee[0].parentNode.offsetHeight;
	actualheight=cross_marquee[0].offsetHeight;
	for (var i = 0; i < cross_marquee.length; i++)
		cross_marquee[i].style.top=0;
		
	if (cross_marquee.length)
		setTimeout('lefttime=setInterval("scrollmarquee()",100)', delayb4scroll);
}

if (window.addEventListener)
	window.addEventListener("load", initializemarquee, false);
else if (window.attachEvent)
	window.attachEvent("onload", initializemarquee);
else if (document.getElementById)
	window.onload=initializemarquee;*/