  
  var datevTickers = new Array();
  
  function Ticker_getLeft(element)
  {
    if (element.offsetParent != null)
      return element.offsetLeft + Ticker_getLeft(element.offsetParent);
    else
      return element.offsetLeft;
  }
  
  function Ticker_doStep()
  {
    
    if (this.left < 0)
    {
      this.left = Ticker_getLeft(this.tickerPos);
      if (this.left < 0)
        return;
      
      if (this.tickerWidth == -1)
        this.tickerWidth = this.tickerPos.offsetParent.offsetWidth;
      this.textWidth = this.ticker.offsetWidth;
    }
    
    
    this.currPos -= this.step;
    if (this.currPos < this.left - this.textWidth)
      this.currPos = this.left + this.tickerWidth;
      
    this.ticker.style.posLeft = this.currPos;
    this.ticker.style.posWidth = this.tickerWidth - (this.currPos - this.left);
    var clipLeft = this.left - this.currPos;
    var clipRight = this.tickerWidth - this.currPos;
    this.ticker.style.clip = "rect(auto " + clipRight + "px auto " + clipLeft + "px)";
  }
  
  
  
  
  
  
  
  
  function Ticker(tickerPos, ticker, tickerWidth, step, interval)
  {
    this.tickerPos = tickerPos;
    this.ticker = ticker;
    this.tickerWidth = tickerWidth;
    this.left = -1;
    this.textWidth = 0;
    this.currPos = -1000;
    this.step = step;
    this.doStep = Ticker_doStep;
    datevTickers[this.ticker.id] = this;
    setInterval('datevTickers["' + this.ticker.id + '"].doStep()', interval);
  }
