cTicker.callMove = function(obj){
		obj.moveticker(obj);
	}
	
	cTicker.callStopTicker = function(obj){
		obj.stopTicker();
		
	}
	
	cTicker.callResumeTicker = function(obj){
		obj.resumeTicker();
	}
	
	function cTicker() {
		var ticker;
		var ticker2;
		
	
		this.tickerInit = function(obj,news,hack){
			
			this.ticker = document.createElement("div");
			this.ticker.style.position	= "absolute";
			this.ticker.style.top		="0px";
			this.ticker.style.left		="-15px";
			this.ticker.style.visibility	="hidden";
			this.ticker.innerHTML 		= news;
			
			Classobj = this;
			this.ticker.onmouseover = function() {cTicker.callStopTicker(Classobj)};
			this.ticker.onmouseout  = function() {cTicker.callResumeTicker(Classobj)};
			
			this.ticker2 = this.ticker.cloneNode(true);
			
			this.ticker2.onmouseover = function() {cTicker.callStopTicker(Classobj)};
			this.ticker2.onmouseout  = function() {cTicker.callResumeTicker(Classobj)};
	
			obj.appendChild(this.ticker);
			obj.appendChild(this.ticker2);
			
			var origiWidth = this.ticker.offsetWidth;
			var height = 25;
						
			while((this.ticker.offsetWidth <= (obj.offsetWidth-10))
				&&(this.ticker.offsetHeight < height)
				&&(this.ticker.offsetWidth > 10)){
				
				this.ticker.innerHTML += hack + this.ticker.innerHTML;
				this.ticker2.innerHTML += hack + this.ticker2.innerHTML;
			}
			
			if(this.ticker.innerHTML != "")	{
				this.ticker.innerHTML += hack;
				this.ticker2.innerHTML += hack;
			}
			
			this.ticker.style.width = (this.ticker.offsetWidth) +"px";
			
			
			
			while(this.ticker.offsetHeight > height){
				this.ticker.style.width = (parseInt(this.ticker.style.width) + 1) + "px";
				this.ticker2.style.width = (parseInt(this.ticker.style.width) + 1) + "px";
			}
	
	
			this.ticker.style.left = obj.offsetWidth +"px";
			this.ticker2.style.left = obj.offsetWidth +"px";
			
			this.ticker.style.visibility = "visible";
			this.ticker2.style.visibility = "visible";

			
			this.moveticker();
			
		}
		
		this.stopTicker = function(){
			this.nomove = true;
		}
		
		this.resumeTicker = function(){
			this.nomove = false;
		}
		
		this.moveticker = function(){
			if(this.nomove)
				return;	

				
			if((parseInt(this.ticker.style.left) + this.ticker.offsetWidth) > 0)
				this.ticker.style.left  = (parseInt(this.ticker.style.left) - 1) +"px";
			
			if(((parseInt(this.ticker.style.left) + this.ticker.offsetWidth +0) < this.ticker.parentNode.offsetWidth )
			   ||(parseInt(this.ticker2.style.left) < parseInt(this.ticker.style.left))){
					
				if((parseInt(this.ticker2.style.left) + this.ticker2.offsetWidth) > 0)
					this.ticker2.style.left  = (parseInt(this.ticker2.style.left) - 1) +"px";
			}
			
			if((parseInt(this.ticker.style.left) + this.ticker.offsetWidth +0) < this.ticker.parentNode.offsetWidth ){
				if(parseInt(this.ticker2.style.left) < parseInt(this.ticker.style.left))
					this.ticker2.style.left = this.ticker.parentNode.offsetWidth +"px";
			}
			
			if((parseInt(this.ticker2.style.left) + this.ticker2.offsetWidth +0) < this.ticker.parentNode.offsetWidth ){
				if(parseInt(this.ticker.style.left) <= parseInt(this.ticker2.style.left))
					this.ticker.style.left = this.ticker.parentNode.offsetWidth +"px";
			}
			
			if(parseInt(this.ticker.style.left) == 0)
				this.ticker2.style.left = this.ticker.parentNode.offsetWidth +"px";
			
			var obj = this;
			if(!this.interval)
				this.interval = setInterval(function(){ cTicker.callMove(obj)},25);
		}
		
		return this;
	}
