﻿var TextTicker = Class.create();TextTicker.prototype = {	init: function( tickerID ) {		this.tickerDiv = document.getElementById(tickerID);		this.tickerSpan = this.tickerDiv.getElementsByTagName("span")[0];		this.tickerWidth = this.tickerDiv.offsetWidth;		this.currentPos = this.tickerWidth;		this.elementWidht =  this.tickerSpan.offsetWidth;		tmpTimer = new TimedExecution(this.callback.bind(this),0.01);	},		callback: function() {		//alert("ok");		this.currentPos = this.currentPos-1;		if( -this.tickerSpan.offsetWidth > this.currentPos ) this.currentPos = this.tickerWidth;		this.tickerSpan.style.left = this.currentPos+"px";		return -1;					}}
