  var crossobj;
  var contentwidth;
  var speed=15;  //specify speed of scroll (greater=faster)
  
  function moveright() {

    if (window.moveleftvar) clearTimeout(moveleftvar);
    if (parseInt(crossobj.style.left)>(contentwidth*(-1)+getwin_width()))
      crossobj.style.left=parseInt(crossobj.style.left)-speed+"px";
    else
      if (contentwidth>getwin_width()) 
        crossobj.style.left=(contentwidth*(-1)+getwin_width())+"px";  
    moverightvar=setTimeout("moveright()",10);
  }
  

  function moveleft()
   {
    if (window.moverightvar) clearTimeout(moverightvar);
    if (parseInt(crossobj.style.left)<0)
      crossobj.style.left=parseInt(crossobj.style.left)+speed+"px";
    moveleftvar=setTimeout("moveleft()",10);
  }
  function stopscroll() {
    if (window.moveleftvar) clearTimeout(moveleftvar);
    if (window.moverightvar) clearTimeout(moverightvar);
  }
  
  function movetop() {
    stopscroll();
    crossobj.style.left=0+"px";
  }
  
  function getcontent_width() {
    crossobj=document.getElementById? document.getElementById("mover") : document.all.mover;
    dd=crossobj.parentNode;
    contentwidth=crossobj.offsetWidth;
  }
  function getwin_width() {
    return crossobj.parentNode.offsetWidth;//+24;
  }
  
  window.onload=getcontent_width;
