// 表示制御 
checkdisplay = ['','block','block','block','block','block','block','block','block','block','block','block','block','block'];
//checkdisplay = ['','block','block','block','block','block','block','block','block','none'];
pagenum = checkdisplay.length - 1;

function displayInit(){
	for(i in checkdisplay){
		if(i != 0){
			chaptname = 'chapt' + i;
			check_nav = document.getElementById(chaptname);
			check_nav.style.display = checkdisplay[i];
		}
	}
}

function links(nextpage){
	chaptname = 'chapt' + nextpage;
	if(checkdisplay[nextpage] == 'block'){
		if(nextpage >= 10){
			urls = '/members/history/chapter_' + nextpage + '.html';
		}
		else {
			urls = '/members/history/chapter_0' + nextpage + '.html';
		}
		location.href = urls;
	}
	else{
		switch(nextpage){
			case 1:
				yotei = '06月16日';
				break;
			case 2:
				yotei = '06月16日';
				break;
			case 3:
				yotei = '06月23日';
				break;
			case 4:
				yotei = '06月23日';
				break;
			case 5:
				yotei = '06月30日';
				break;
			case 6:
				yotei = '06月30日';
				break;
			case 7:
				yotei = '07月07日';
				break;s
			case 8:
				yotei = '07月07日';
				break;
			case 9:
				yotei = '07月14日';
				break;
			case 10:
				yotei = '07月14日';
				break;
			case 11:
				yotei = '07月21日';
				break;
			case 12:
				yotei = '07月21日';
				break;	
			case 13:
				yotei = '07月28日';
				break;	
			default:
				yotei = '';
				break;
		}
		if(yotei != ''){
			alert(yotei + '更新予定です');
		}
	}
}

function btmpager(id){
	prev = id - 1;
	next = id + 1;
	if(id == 1){
		document.write('<span class="px14"><a href="/members/history/" class="lkhis">前のページ</a>｜</span><span class="px12">');
	}
	else {
		document.write('<span class="px14"><a href="javascript:links(' + prev + ');" class="lkhis">前のページ</a>｜</span><span class="px12">');
	}
	for(i=1;i <= pagenum;i++){
		if(i!=id){
			document.write('&nbsp;<a href="javascript:links(' + i + ');" class="lkhis">' + i + '</a>&nbsp;');
		}
		else {
			document.write('&nbsp;<strong>' + i + '</strong>&nbsp;');
		}
	}
	if(id == pagenum){
		document.write('<span class="px14">｜<a href="/members/history/" class="lkhis">次のページ</a></span><span class="px12">');
	}
	else {
		document.write('</span><span class="px14">｜<a href="javascript:links(' + next + ');" class="lkhis">次のページ</a></span>');
	}
}
