var moStop=true;                        // pause on mouseover (true or false)
var tSpeed=3;                          // scroll speed (1 = slow, 5 = fast)
var cps=tSpeed; 

var aw, mq, tWidth; 
function startticker(){
  if (document.getElementById) {
    if (moStop) { 
      var oTicker=document.getElementById("ticker");
      oTicker.onmouseover=function() {cps=0};
      oTicker.onmouseout=function() {cps=tSpeed};
    }
    aw = document.getElementById("tx").offsetWidth; 
    lefttime=setInterval("scrollticker()",50);
    mq=document.getElementById("mq");
    tWidth=mq.parentNode.offsetWidth;
  }
} 
function scrollticker(){
  mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ?parseInt(mq.style.left)-cps+"px" : parseInt(tWidth)+10+"px";
} 
window.onload=startticker;
                  