	var marqueetextobject;
	var marqueewidth;
	var marqueetextwidth;
	var velocidadpixelporsegundo;
	var leftactual;
	var widthactual;
	
	function domovement(){
		leftactual = leftactual -velocidadpixelporsegundo;
		if (widthactual<marqueetextwidth){
			widthactual = widthactual + velocidadpixelporsegundo;
		}
		mq = document.getElementById(marqueetextobject);
		mq.style.left=leftactual+"px";
		mq.style.width=widthactual+"px"
		if (leftactual <= (-1*(marqueetextwidth))){
			leftactual = marqueewidth;
			widthactual = 0;
		}
	}

	function initialize(){
		mq = document.getElementById(marqueetextobject);
		mq.style.left=marqueewidth+"px";
		widthactual = 0;
		mq.style.width=widthactual+"px"
		leftactual = marqueewidth;
	}
	
	function startmarquee(varmarqwidth, varmarqtextwidth,varvel,varmarqueetextobject){
		marqueewidth = varmarqwidth;
		marqueetextwidth = varmarqtextwidth;
		velocidadpixelporsegundo = varvel;
		marqueetextobject = varmarqueetextobject; 
		initialize();	
		setInterval("domovement()",50)
	}