//最初の一回目をキックする為
//var tid = setTimeout("scroll(0,0,0,500)",100);

//文字移動用関数
//flgは文字の点滅に使用
//flg2は文字の移動に使用0=→に移動1=左に移動 
//dotは現在の位置、マージンレフトのpxを指定
//Widthは移動する幅 Width以上になったら左へ移動
function scroll(flg,flg2,dot,width){
	if(flg2==0){
		dot= dot + 10;
	}else{
		dot= dot - 10;
	}
	var dp = dot +"px";
	if(dot >= width){
		flg2 = 1;
	}
	if(dot == 0){
		flg2 = 0;
	}
	//document.getElementById("scroll").innerHTML = dp;
	document.getElementById("scroll").style.marginLeft  = dp;
	
	/*文字の点滅ロジック(不要)
	if(flg == 0 ){
		document.getElementById("scroll").style.display = "inline";
		flg = 1 ;
	}else{
		document.getElementById("scroll").style.display = "none";
		document.getElementById("scroll").style.color = "#000000";
		flg = 0 ;
	}
	*/
	setTimeout("scroll(" + flg +","+ flg2 +","+ dot +","+ width +")",100);
}
