//Isto é um teste de marquee com javascript

var tipo = "top";
var rolagem = -85;
var iniciar;

function fMarquee() {	
	var marquee = document.getElementById("scrollText");	
	if(tipo == "left" || tipo == "right") {
		var h = marquee.clientWidth;				
	} else {
	 	h = marquee.clientHeight;
	}
	rolagem++;
	if (rolagem == h) {
		rolagem = -85;		
	}
	if(tipo == "top"){
        marquee.style.marginTop = (rolagem*-1)+"px";		
    } else if (tipo == "down"){
        marquee.style.marginTop = rolagem+"px";
    } else if (tipo == "left"){
        marquee.style.marginLeft = (rolagem*-1)+"px";
    } else if (tipo == "right"){
        marquee.style.marginLeft = rolagem+"px";
    }	
	iniciar = setTimeout("fMarquee()",30);
}

function stopMarquee() {
	clearTimeout(iniciar);
}