//fixed by Alex.TU, 100905;
//对OBJECT 进行上先移动
preTop=0;
stoptime=0;
function scrollUp(obj,height,line,sTime){
	if(stopscroll==true) return;
	currentTop+=1;
	if(currentTop==height+1){
		stoptime+=1; currentTop-=1;
		if(stoptime==sTime){ currentTop=0; stoptime=0; }
	}else {
		preTop= $(obj).scrollTop; 
		$(obj).scrollTop+=1;
		if(preTop==$(obj).scrollTop){  
			 $(obj).scrollTop=0; 
			 $(obj).scrollTop+=1;  
		}
	}
}
function scrollDown(obj,height,line,sTime){
	if(stopscroll==true) return;
	currentTop-=1;
	if(currentTop==-2){
		stoptime+=1; currentTop+=1;
		if(stoptime==sTime){ currentTop=height-1; stoptime=0; }
	}else {
		preTop= $(obj).scrollTop; 
		 $(obj).scrollTop-=1;
		
		if(preTop==$(obj).scrollTop){  
		 $(obj).scrollTop=height*line; 
		 $(obj).scrollTop-=1;  
		 }
	}
}
