// JavaScript Document
function ClassScroll(base_layer,id)
{
	this.layer = document.getElementById(base_layer).style;
	this.Nlayer = document.getElementById(base_layer);
	this.Slayer = document.getElementById(base_layer+'_scroll').style;
	this.lay_txt =null;
	this.speed = 15;
	this.active = false;
	this.type='+';
	this.add = 1;
	this.id = id;
	
	this.ejecScroll = function ()
	{
		if (this.active==true)
		{
			var height = parseInt(this.Nlayer.offsetHeight);
			var hei_plus = parseInt(this.lay_txt.offsetHeight);
			var pos_scr = 0;
			if (this.lay_txt.style.marginTop!='')
					var pos_scr = parseInt(this.lay_txt.style.marginTop);
			
			if (((hei_plus-height+pos_scr) >0 && this.type=='-') || (pos_scr<0 && this.type=='+'))
				{
					this.lay_txt.style.marginTop=eval(pos_scr + this.type + this.add)+'px';
					setTimeout('OBJ_TIT['+this.id+'].OBJscroll.ejecScroll()',this.speed);
				}
			else
				this.active=false;
		}
	}
	
	this.start = function (_type)
	{		
		this.type =_type;
		if (this.active==false)
				{
					this.active=true;
					this.ejecScroll();
				}
	}
}



