<!--

	function NewsTicker() {
		this.id = '';			
		this.speed = 10;
		this.newsTickerControl = null;
		this.paused = false;
	}
	
	NewsTicker.prototype.AddNews = function(news) {
		this.news[this.news.length] = news;
	}
	
	NewsTicker.prototype.Initialize = function() {
		this.newsTickerControl = document.getElementById(this.id);
		var ctrl = this.newsTickerControl.children[0];
		//ctrl.style.left = String(findPos(this.newsTickerControl) + this.newsTickerControl.offsetWidth) + 'px';
	}

	NewsTicker.prototype.SetWidth = function(w) {
		var ctrl = this.newsTickerControl;
		//ctrl.style.width = (String(w).indexOf('%')>0) ? w : String(w) + 'px';
		ctrl.style.width = String(w) + 'px';
		//alert(ctrl.style.width);
	}

	NewsTicker.prototype.Start = function() {
		if(!this.paused) {
			var ctrl = this.newsTickerControl.children[0];
			var table = ctrl.children[0];
			var left = parseInt(ctrl.style.left, 10);
			left = left - this.speed;
		
			if(left < table.offsetWidth*-1) 
				left = findPos(this.newsTickerControl) + this.newsTickerControl.offsetWidth;
					
			ctrl.style.left = String(left) + 'px';	
		}
		
		window.setTimeout('_'+ this.id +'.Start()', 50)
	}


	function findPos(obj) {
		var curleft = curtop = 0;			
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
				} while (obj = obj.offsetParent);
			return curleft;//[curleft,curtop];
		}
	}		
-->
