var d = document, tickers = {};
function Ticker(id) {
  this.o = d.getElementById(id);
  this.style = this.o.style;
  this.style.position = 'absolute';
  this.ticker_move = 1;
  this.offset = 760 - this.ticker_move;
  this.ticker_speed = 35;
  this.status = 'running';
  this.style.left = this.offset + 'px';
  tickers[id] = this;
  return this;
}
Ticker.prototype.start = function() {
  window.setTimeout('tickers["'+this.o.id+'"].move()', this.ticker_speed);
}
Ticker.prototype.move = function() {
  ow = parseInt(this.o.offsetWidth);
  ti = parseInt(this.o.style.left.replace('px',''));
  if ((ti + ow) < 10) ti = this.offset;
  if (this.status == 'running') this.style.left = (ti - this.ticker_move) + 'px';
  this.start();
}
