scrollheight = 150 ;
lineNum = 1; 
boardheight= scrollheight * lineNum;
scrollwidth	= 192;
scrollTimeOut 	= 10;
scrollStopTime 	= 50;
doScroll = true;
scrollCountTime = 0;
offSet = scrollheight;
startSetp = 0;

function ScrollBluezz() {
	
	for (i=1;i<=12;i++) {
		if(document.getElementById("tk"+i)){
 			document.getElementById("tk"+i).style.display = "block";
 		} 
 	}
	var thisSc=document.getElementById('scArea');
	thisSc.style.width 	 = scrollwidth  + "px";
	thisSc.style.height  = boardheight + "px";
	thisSc.style.overflowX = "hidden";
	thisSc.style.overflowY = "hidden";
	thisSc.scrollTop = 0
	setInterval("scrollUpBluezz()",scrollTimeOut)
}
function scrollUpBluezz() {
	var thisSc=document.getElementById('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 ++ 
	  }
	 }
}
