function vscroll(div,height,name){
	this.speed=0;
	this.scrolldiv=document.getElementById(div);
	this.hdheight=height;
	this.vheight1=this.scrolldiv.offsetHeight;
	this.HTML=this.scrolldiv.innerHTML;
	while(this.scrolldiv.offsetHeight<=this.hdheight){
		this.scrolldiv.innerHTML+=this.HTML;
	}
	this.scrolldiv.innerHTML+=this.HTML;
	this.vheight2=this.scrolldiv.offsetHeight;
	this.scrolldiv.style.height=this.hdheight+"px";
	this.scrolldiv.style.overflow="hidden";
	this.scrv=function scrv(speed){
		if(this.scrolldiv.scrollTop<this.vheight2-this.hdheight){
			this.scrolldiv.scrollTop+=speed;
		}else{
			this.scrolldiv.scrollTop-=this.vheight1-speed;
		}
	}
	this.start=function start(speed,speedT){
		this.state=setInterval(name+".scrv("+speed+")",speedT);
	}
	this.pause=function(){
		clearInterval(this.state);
	}
}