var tSpeed=3;                        // scroll speed (1 = slow, 5 = fast)
// Simple Marquee / Ticker Script
// adapted from a script by Stephen Chapman
// at http://javascript.about.com/library/bltick1.htm
// used with permission
var cps=tSpeed; 
var aw, mq, tWidth; 
function startticker() {
  if (document.getElementById) {
    tWidth = document.getElementById("marquee").offsetWidth;
    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;


