function content_scroll(ip_nm,ip_la_nm,ip_la2_nm,ip_y,ip_ht,ip_wd){



	this.nm = ip_nm;

	this.la = get_layer(ip_la_nm);

	this.la2 = (bw!="ns") ? get_layer(ip_la2_nm) : get_layer(ip_la_nm);

	this.la2.className = "contb";



	this.y = (typeof(ip_y)=="boolean") ? parseInt(this.la.style.top) : get_layer(ip_y).LA_top()-5;

	

	this.y2 = this.y+7;

	this.y2b = (bw!="ns") ? 0 : this.y2;

	this.scl_y = 0;

	this.ind_tp = this.y+13;







	this.wd = ip_wd//get_layer(ip_la_nm).style.width;	

	this.x = parseInt(this.la.style.left)+this.wd//parseInt(this.la.style.width);

	

	this.ht = (typeof(ip_ht)=="boolean") ? this.la.LA_height() : ip_ht-20;

	if (bw!="ns") this.la.style.height = this.ht;

	

	this.ctrl_la1 = get_layer(ip_nm+"U",2);

	this.ctrl_la1.LA_write("<a href='#' onClick=\""+this.nm+".start('up');return false;\"><img src='imgs/icon_up_on.gif' width='10' height='6' border='0' name='up_arrow0'></a>")

	this.ctrl_la1.style.left = this.x-15;

	this.ctrl_la1.style.top = (this.y + this.ht -15);	

	

	this.ctrl_la2 = get_layer(ip_nm+"D",2);	

	this.ctrl_la2.LA_write("<a href='#' onClick=\""+this.nm+".start('down');return false;\"><img src='imgs/icon_down_on.gif' width='10' height='6' border='0' name='down_arrow0'></a>")

	this.ctrl_la2.style.left = this.x-15;

	this.ctrl_la2.style.top = (this.y + this.ht +5);	

	

	this.ctrl_la4 = get_layer(ip_nm+"I2",1);

	this.ctrl_la4.LA_write("<img src='imgs/icon_ind2.gif' width='4' height='"+this.ht+"'>")

	this.ctrl_la4.style.left = this.x;

	this.ctrl_la4.style.top = this.ind_tp;

		

	this.ctrl_la3 = get_layer(ip_nm+"I",1);

	this.ctrl_la3.style.left = this.x;	



	this.la.style.top = this.y2;

	this.la.style.visibility="visible";





	this.show = function(){

		this.scl_y = 0;

		this.la_ht = (bw!="ns") ? this.la2.LA_height() : this.la.LA_height();

		this.ind_ht = this.ht/(this.la_ht/this.ht);

		this.ind_trv = this.ht-this.ind_ht;

		if (this.la_ht>this.ht) this.ctrl_la3.LA_write("<img src='imgs/icon_ind.gif' width='4' height='"+this.ind_ht+"'>")

		this.la2.LA_clip(0,this.wd,(this.ht-this.scl_y),0);

		this.la2.style.top= (bw!="ns") ? 0 : this.y;

		

		this.ctrl_la3.style.top = this.ind_tp;



		this.ctrl_la1.style.visibility = (this.la_ht<this.ht) ? "hidden" : "visible";

		this.ctrl_la2.style.visibility = (this.la_ht<this.ht) ? "hidden" : "visible";

		this.ctrl_la3.style.visibility = (this.la_ht<this.ht) ? "hidden" : "visible";

		this.ctrl_la4.style.visibility = (this.la_ht<this.ht) ? "hidden" : "visible";



	}

	this.show();	

	

	this.scl_delay=20;

	this.dir=false;



	this.start = function(ip_dir){

		if (this.dir) return;

		this.y_trav = 0;

		

		if (ip_dir=="down"){

			trv = this.scl_y+this.la_ht-this.ht;

			if (trv<5) return;

			this.y_dis  = (trv<this.ht) ? trv: this.ht;

		}

		

		if (ip_dir=="up"){

			trv = this.scl_y+this.ht;

			if (this.scl_y>-5 && this.scl_y<5) return;

			this.y_dis  = (trv<0) ? this.ht: -this.scl_y;

		}

		this.dir = ip_dir;

		this.move();

	}



	this.move = function(){

		a = this.y_dis-this.y_trav;

		b = parseInt(a/8+1);

		

		this.scl_y+= (this.dir=="up") ? b : -b;

		this.y_trav+=b;

		if (a>1)

			setTimeout(this.nm+".move();",30);

		else 

			this.dir = false;

		this.la2.style.top = this.y2b + this.scl_y;

		this.la2.LA_clip(-this.scl_y,this.wd,(this.ht-this.scl_y),0);

		if (mc && bw=="ie") this.ctrl_la3.style.visibility="hidden";

		this.ctrl_la3.style.top = this.ind_tp - (this.scl_y/(this.la_ht-this.ht)*this.ind_trv);

		if (mc && bw=="ie") this.ctrl_la3.style.visibility="visible";

	}

}


