function DIVNoticies(id,text,w,h,ww){
	this.id=id;
	this.text=text;
	this.w=w;
	this.width=ww;
	this.h=h;
	document.write('<div id="'+this.id+'div" style=" position:absolute; width:'+this.w+'px; height:'+this.h+'px; overflow:hidden; clip:rect(0px,'+this.w+'px,'+this.h+'px,0px)">');
	document.write('<div id="'+this.id+'innerDiv" style="visibility:hidden; position:absolute; width:10000px">');
	document.write('<span id="'+this.id+'txt">'+this.text+'</span>');
	document.write('</div></div>');
}

DIVNoticies.prototype.Run=function() {
	this.div=document.getElementById(this.id+'div');
	this.innerDiv=document.getElementById(this.id+'innerDiv');
	this.txt=document.getElementById(this.id+'txt');
	//this.width=document.getElementById(this.id+'txt').offsetWidth;
	this.pos=this.w;
	this.innerDiv.style.left=this.pos+'px';
	this.innerDiv.style.visibility='visible';
	var noticies=this;
	setInterval(function() {noticies.Mou();},100);
}

DIVNoticies.prototype.Mou=function() {
	this.pos-=2;
	if (this.pos<-this.width) this.pos=this.w;
	this.innerDiv.style.left=this.pos+'px';
}

