var tabCountMax = 0;
var tabNames;
var tabCount;
var timerID;
var flgStop = true;

/**
 * カウントアップ開始
 */
function executeCountUp() {
	tabCount++;
	if (tabCountMax == tabCount) {
		tabCount = 0;
	}

	flgStop = false;
	$('#' + tabNames[tabCount]).click();
	flgStop = true;
}

/**
 * タブ停止
 */
function executeTabStop() {
	if (flgStop) {
		clearTimeout(timerID);
	}
}

/**
 * タイマーを作動させるファンクション
 */
function executeStartTimer() {
	tabCount = 0;
	timerID = setInterval("executeCountUp()", 8000);
}




