var tWidth='770px';                  // width (in pixels)
var tHeight='20px';                  // height (in pixels)
var tSpeed=2;                        // scroll speed (1 = slow, 5 = fast)
var cps=tSpeed; 
var aw, mq; 

function startticker() {
	if (document.getElementById) {
		mq = document.getElementById("mq"); 
		mq.style.left=(parseInt(tWidth)+10)+"px"; 
		aw = document.getElementById("tx").offsetWidth; 
		lefttime=setInterval("scrollticker()",50);
	}
}

function scrollticker() {
	mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ? parseInt(mq.style.left)-cps+"px" : parseInt(tWidth)+10+"px";
}

window.onload=startticker;