

function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=5;
  if(currentTop==(marqueesHeight+5)){
		stoptime+=5;
		currentTop-=5;
		if(stoptime==1800){
			currentTop=0;
			stoptime=0;  		
		}
  }else {  	
	  preTop=obj.scrollTop;
	  obj.scrollTop+=5;
	  if(preTop==obj.scrollTop){
		obj.scrollTop=marqueesHeight;
		obj.scrollTop+=5;
	  }
  }

}

function init_srolltext(){
	obj.scrollTop=0;
	setInterval("scrollUp()",1);
}
window.onload = function(){
	marqueesHeight=85;
	stopscroll=false;
	obj = document.getElementById("today_commend");
	obj.onmouseover=new Function("stopscroll=true");
	obj.onmouseout=new Function("stopscroll=false");
	
	preTop=0; 
	currentTop=marqueesHeight; 
	stoptime=0;
	obj.innerHTML+=obj.innerHTML;
	init_srolltext();};
