var lpos=0;
var owe=0;
var startlpos=0;
var rspeed=0;
var started=0;

function StartingS(spd)
{
  rbody1=document.getElementById('rbody');
  rbox1=document.getElementById('rbox');
  startlpos=getClientWidth()-rbox1.offsetWidth;
  //document.write(startlpos);
  rspeed=spd;
//  document.write(getClientWidth()+' '+rbox1.offsetWidth+' '+rbody.offsetWidth+' '+startlpos);
  RunningS();
}

function RunningS()
{
  rstr1=document.getElementById('rstr');
  rbody1=document.getElementById('rbody');
  rbox1=document.getElementById('rbox');

  if (lpos<0-rbody1.offsetWidth || !started)
  {
      if (!started) started=1; 
      lpos=startlpos;
  }
  else
    lpos--;
  

//  document.write(lpos);


//  rbody1.style.top=parseInt(rstr1.style.top)+'px';
  rbody1.style.left=lpos+'px';

  setTimeout("RunningS()",rspeed);

}
