scrollheight = 165;
lineNum = 1; 
boardheight=scrollheight * lineNum;
scrollwidth=230;
scrollTimeOut = 30;
scrollStopTime = 100;

doScroll = true;
scrollCountTime = 0;
offSet = scrollheight;
startSetp = 0;
function ScrollBluezz(){
    thisSc = document.all['scArea']; 
	thisSc.style.width = scrollwidth;
	thisSc.style.height = boardheight;
	thisSc.style.overflowX = "hidden";
	thisSc.style.overflowY = "hidden";
	thisSc.scrollTop = 0
	setInterval("scrollUpBluezz()",scrollTimeOut)
}

function scrollUpBluezz(){
	thisSc = document.all['scArea'];
	if (doScroll == false) return	//不跑
	offSet ++ 
	if (offSet == scrollheight + 1) {
	  scrollCountTime ++ 
	  offSet -- 
	   if (scrollCountTime == scrollStopTime) {
		 offSet = 0
		 scrollCountTime = 0
	   }
	 }else {
	  startSetp = thisSc.scrollTop + (scrollheight * lineNum);
	  thisSc.scrollTop ++
	  if (startSetp == thisSc.scrollTop + (scrollheight * lineNum)) {
		thisSc.scrollTop = scrollheight * (lineNum-1)
		thisSc.scrollTop ++ 
	  }
	 }
}

function stopBluezz(){
	doScroll = false;
	scrollUpBluezz();
}

function backonBluezz(){
	doScroll = true;
	scrollUpBluezz();
}
