function MagiCScroller(nm) {
		this.NewsArray=new Array();
		this.name=nm;
		this.Speed=10;
		this.Pause=3.5;
		this.Width;
		this.Height;
		this.pos='relative';
		this.l='0px';
		this.t='0px';
		this.Initiated=false;
		this.newsIndex=0;
		this.stX=0;
	}
	
	MagiCScroller.prototype.run=function() {
		slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
		slideLayer(this.name+'Sub2',this.stX,this.name+'Main');
		
		this.stX+=-this.Speed;
		
		if (this.stX<-this.Height) {
			
			this.stX=0;
			this.fN++;
			if (this.fN>this.nL) {
				this.fN=0;
			}
			
			this.sN=this.fN+1;
		
		
			if (this.sN>this.nL) {
				this.sN=0;
			}
			
			writeLayer(this.name+'Sub1',this.name+'Main',this.NewsArray[this.fN]);
			writeLayer(this.name+'Sub2',this.name+'Main',this.NewsArray[this.sN]);
			
			slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
			slideLayer(this.name+'Sub2',this.stX,this.name+'Main');
			setTimeout(this.name+'.run()',this.Pause*1000);
		} else {
			setTimeout(this.name+'.run()',100);
		}
		
		
	}
	
	
	
	
	MagiCScroller.prototype.init=function() {
		//style'ý yaz...
		t='';
		t+='<style>\n'
		
		t+='#'+this.name+'Main { position:'+this.pos+'; left:'+this.l+'; top:'+this.t+'; overflow:hidden; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		t+='#'+this.name+'Sub1 { position:relative; left:0px; top:0px; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		t+='#'+this.name+'Sub2 { position:relative; left:0px; top:0px; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		
		t+='</style>\n';
		
		//layer'larý yaz...
		
		
		document.write(t);
		t='';
		
		
		this.nL=(this.NewsArray).length-1;
		this.newsIndex=0;
		this.fN=0;
		this.sN=this.fN+1;
		if (this.sN>this.nL) {
			this.sN=0;
		}
		
		t+='<div id="'+this.name+'Main">';
		t+='<div id="'+this.name+'Sub1">'+this.NewsArray[this.fN]+'</div>';
		t+='<div id="'+this.name+'Sub2">'+this.NewsArray[this.sN]+'</div>';
		t+='</div>';
		
		document.write(t);
		
		slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
		slideLayer(this.name+'Sub2',this.stX,this.name+'Main');
		
		
		setTimeout(this.name+'.run()',this.Pause*1000);
		
	}
	
	//dom utilities
	
	function slideLayer(lyr,t,pr) {
		
		
		if (is.IE) {
			
			document.all[lyr].style.top=t+'px';
			
		} else if (is.Gecko || is.Safari) {
			window.status=t;
			document.getElementById(lyr).style.top=t+'px';
		} else if (is.NS4) {
			document.layers[pr].document.layers[lyr].top=t;
		}
	}
	
	function writeLayer(lyr,pr,cont) {
		if (is.IE) {
			document.all[lyr].innerHTML=cont;
		} else if (is.Gecko || is.Safari) {
			document.getElementById(lyr).innerHTML=cont;
		} else if (is.NS4) {
			
			document.layers[pr].document.layers[lyr].document.open();
			document.layers[pr].document.layers[lyr].document.write(cont);
			document.layers[pr].document.layers[lyr].document.close();
		}
	}