var roll_Class=function(){this.initialize.apply(this,arguments);} 
roll_Class.prototype={ 

initialize:function(){ 

this.className=arguments[0]?arguments[0]:null; 
this.foundit(arguments[1],'',false); 
this.contents=new Array('0'); 
this.contents_delay=null; 
this.nowdelay=null; 

this.foundit( 
this.roll.childNodes,this.foundvalue , 
function(rt,that){ 

if(that.constrain_size !== null) that.foundit(rt.childNodes,'IMG',function(rt,that){rt.style[(this.moving != 'left' ? 'width' : 'height')] = that.constrain_size;}); 
that.contents_delay=that.contents[that.contents.length]=that.contents_delay+-rt[(that.moving=='left'?'offsetWidth':'offsetHeight')];}); 

{ 
this.rollHeight=this.proll.style[(this.moving=='left'?'width':'height')]=Math.abs(this.contents[this.contents.length-1]); 
this.roll.appendChild(this.roll.cloneNode(true)); 
};}, 


foundit:function(tg,n){ 

var temp=new Array(); 

	for(var v in tg) 
		switch(typeof arguments[2]){ 
		case 'object':if(arguments[2].initialize(tg[v],n,this)==true) return; else break; 
		case 'function':if(tg[v].nodeName==n) arguments[2](tg[v],this); break; 
		case 'boolean':this[v]=tg[v]; break; 
		default:if(tg[v].nodeName==n) return tg[v]; 
	} 

return temp;}, 

inaction:function(time){ 

this.roll.style[this.moving]=time=time < 0 ?(this.fall==false && time <= -this.rollHeight?0:time):-this.rollHeight,null; 
this.foundit(this.contents,time,{initialize:function(rt,vrt,that){if(Math.abs(rt - vrt) <(that.fast==false?that.tick:that.ftick)){that.roll.style[that.moving]=rt; that.nowdelay=that.fast==true?that.lengthen:that.delay; that.fast=false; return true;} else that.nowdelay=that.lengthen;}}); 
{var ticks=this.fast==true?this.ftick:this.tick;} 
this.control=setTimeout(this.className+".inaction("+(parseInt(this.roll.style[this.moving])+(this.fall==true?ticks:-ticks))+");",this.nowdelay);}, 

stop:function(){ 

this.temp=parseInt(this.roll.style[this.moving]); 
clearTimeout(this.control);}}; 

