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