message = new Array();
ahref = new Array();
speed = 50; //　文字の表示速度


//　文字の表示位置を初期化
function initText()
{
count = 0;	//　文字の表示番号
line = 0;	//　文字の表示行数番号
text = ahref[line];
moveText();
}

//　文字の移動
function moveText() {
	text += message[line].charAt(count);
	count++;
		if (count > message[line].length) {
			speed = 3000;
			count = 0;
			line++;
	
			if (line >= message.length) {
				line = 0;
			}
			
		}
  document.getElementById("scrollText").innerHTML = text;
  setTimeout("moveText()",speed);
  if (count == 0) {
  	speed = 50;
	text = ahref[line];
  }
}
