var rollImg = {};
	rollImg={
		speed : 0 ,		//速度数值越大速度越慢
		pic_1 : null,       //要滚动图片的ul的ID
		pic_2 : null,       //复制过来图片的ul的ID
		pic_Area : null,		//ul所在的区域的ID
		roll : null,
		
		//初始化 obj为一对具有speed,pic_1,pic_2,pic_Area的对象
		Init : function(obj){
			//alert(obj.picArea);
			this.speed = obj.speed;
			this.pic_1 = $(obj.pic_1);
			this.pic_2 = $(obj.pic_2);
			this.pic_Area = $(obj.picArea);
			this.pic_2.innerHTML = this.pic_1.innerHTML;
		
			this.pic_Area.onmouseover = function(){rollImg.Stop();};
			this.pic_Area.onmouseout = function(){rollImg.Goon();};
			this.roll = setInterval("rollImg.Marquee()",rollImg.speed);
		},
		//开始滚动
		Marquee : function(){
			if (this.pic_2.offsetWidth - this.pic_Area.scrollLeft <= 0){
				this.pic_Area.scrollLeft = this.pic_Area.scrollLeft - this.pic_1.offsetWidth;
			}else{
				this.pic_Area.scrollLeft++;
			}
		},
		//停止滚动
		Stop : function(){
			clearInterval(rollImg.roll);
		},
		//继续滚动
		Goon : function(){
			this.roll=setInterval("rollImg.Marquee()",rollImg.speed);
		}
	}
function $(ID){
   return document.getElementById(ID);
}