﻿// 共通タイマー
var timerID;
var timer = 500;

// タイマー待ち
function disp(i, j) {
	timerID = setTimeout('changeImgTxt('+i+', '+j+')', timer);
}

// 画像テキスト書き換え
function changeImgTxt(i, j) {
	target = document.getElementById('img_'+i);
	if (movimg[j]) target.src = movimg[j].src;
	if (document.getElementById){
		if (msg[j]) document.getElementById('txt_'+i).innerHTML = msg[j];
	}
	cnt[i] = j;
}

// タイマー待ち
function clea() {
	clearTimeout(timerID);
}

