scrollheight = 20 ;		//卷軸高
lineNum = 1; 
boardheight=scrollheight * lineNum;	//跑馬燈高
scrollwidth=300;		//跑馬燈寬
scrollTimeOut = 10;		//移動時間
scrollStopTime = 150	//停留時間 值愈小停留愈短

doScroll = true			//是否要跑
scrollCountTime = 0;	//目前時間
offSet = scrollheight;	//偏移量
startSetp = 0;

function ScrollBluezz() {
	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 = 20
	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 ++ 
	  }
	 }
}