function RankType1Scroll() {
	this.GoodsSetTime = null;
	this.Speed = 2;
}

RankType1Scroll.prototype.GoodsSetting = function() {
	this.DivName = "Rank_Wrap_Layout";
	this.ScrollName = "RankType1Scroll_1";
	this.MovieHeight = 20;
	
	this.Default_Top = 0;
	this.LiBox_Top = new Array();
	
	this.ObjOl = document.getElementById(this.DivName).getElementsByTagName("ul")[0];
	this.ObjLi = this.ObjOl.getElementsByTagName("li");
	this.ObjLiNum = this.ObjLi.length;
	
	for ( var i=0; i<this.ObjLiNum; i++ ) {
		this.LiBox_Top[i] = this.Default_Top + ( i * this.MovieHeight ); // ????
		this.ObjLi.item(i).style.top = this.LiBox_Top[i] + "px"; // ????? style? 
		this.numPosition = - ( i * this.MovieHeight ) + 5;
		this.ObjLi.item(i).style.backgroundPosition = "left " + this.numPosition + "px";
	}
	
	this.Last_Top = this.LiBox_Top[this.ObjLiNum-1]; 
	
	this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",1000);
}

RankType1Scroll.prototype._nextFrame = function() {
	for ( var i=0; i<this.ObjLiNum; i++ ) {
		this.LiBox_Top[i] = this.LiBox_Top[i] - this.Speed;
		if ( this.LiBox_Top[i] == ( this.Default_Top - (this.MovieHeight * 2) ) ) {// 높이가 -40이 되면
			this.LiBox_Top[i] = this.Last_Top - this.MovieHeight; //
			this.ObjLi[i].style.top = this.LiBox_Top[i] + "px" // 160px 높이 즉 아래로 내려가게 하고
		} else {
			this.ObjLi[i].style.top = this.LiBox_Top[i] + "px"; // 아니면 해당유동높이값을 주라!
		}
	}
	if ( Math.abs(this.LiBox_Top[0] % this.MovieHeight) < 1 ) {
		
		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",3000);
	} else {
		this.GoodsSetTime = setTimeout(this.ScrollName + "._nextFrame()",20);
	}
}
