// header
function header(state) {
	if(state == "on") {
		document.write('<div class="header">');
		document.write('<div class="head_nhk">');
		document.write('<div class="head_nhk_logo"><a href="http://www.nhk.or.jp/"><img src="/pid99/images/hd_logo2.gif" alt="ＮＨＫネットクラブ" /></a></div>');
		document.write('<div class="hade_nhk_title"><img src="/event/images/ct_ppg_001.gif" alt="イベント・インフォーメーション　公開番組／イベント" /></div>');
		document.write('<!-- /head_nhk --></div>');
		document.write('<div class="head_login">');
		document.write('<div class="head_logon_top clearfix">');
		document.write('<p class="name_hello">テスト太郎さん</p>');
		document.write('<p class="logout"><a href="#"><img src="/pid99/images/logout.gif" alt="ログアウト" /></a></p>');
		document.write('</div>');
		document.write('<table summary="layout" id="logintable">');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/pid04/index.html">番組表ウオッチ！</a></td>');
		document.write('<td rowspan="4" class="idArea">');
		document.write('<div class="loginId">');
		document.write('<div class="tlt">ＮＨＫネットクラブ</div>');
		document.write('<p>AbcDefghi0123456</p>');
		document.write('</div>');
		document.write('<div class="idPoint clearfix">');
		document.write('<div class="tlt">ポイント</div>');
		document.write('<p>123456</p>');
		document.write('</div>');
		document.write('<ul>');
		document.write('<li><a href="/pid01/mypage.html">マイページ</a></li>');
		document.write('</ul>');
		document.write('</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/net-stera/index.html">ネットステラ</a></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/event/index.html">イベント</a></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/jushinryo/index.html">受信料の窓口</a></td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('<!-- /head_login --></div>');
		document.write('<div class="head_login_ftli"></div>');
		document.write('</div><!--heade-->');
} else if(state == "off") {
		document.write('<div class="header">');
		document.write('<div class="head_nhk">');
		document.write('<div class="head_nhk_logo"><a href="http://www.nhk.or.jp/"><img src="/pid99/images/hd_logo.gif" alt="NHK" /></a></div>');
		document.write('<div class="hade_nhk_title"><img src="/event/images/ct_ppg_001.gif" alt="イベント・インフォーメーション　公開番組／イベント" /></div>');
		document.write('<!-- /head_nhk --></div>');
		document.write('<div class="head_login">');
		document.write('<div class="head_login_top"><img src="/pid99/images/more_benri.gif" alt="ＮＨＫネットクラブでもっと便利に" width="243" height="18" /></div>');
		document.write('<table summary="layout" id="logintable">');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/pid04/index.html">番組表ウオッチ！</a></td>');
		document.write('<td rowspan="4" class="loginArea">');
		document.write('<div class="head_login_bt"><a href="#"><img src="/pid99/images/login_b.gif" alt="ＮＨＫネットクラブ ログイン" /></a></div>');
		document.write('<p><a href="#"> はじめての方はこちら（登録無料）</a></p>');
		document.write('</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/net-stera/index.html">ネットステラ</a></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/event/index.html">イベント</a></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="nav"><a href="/jushinryo/index.html">受信料の窓口</a></td>');
		document.write('</tr>');
		document.write('</table>');		document.write('<!-- /head_login --></div>');
		document.write('<div class="head_login_ftli"></div>');
		document.write('</div><!--heade-->');
	}
}



// footer
function footer(state) {
	if(state == "on") {
		document.write('<div class="foot_menu">');
		document.write('<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/5mokuteki.html">放送受信契約に関する個人情報の利用目的</a>　<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/">NHKにおける個人情報保護について</a>　<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/toppage/notice.html">NHKオンライン利用上のご注意</a>　<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="/pid01/jouken.html">ＮＨＫネットクラブ会員規約</a>');
		document.write('<!-- /foot_menu --></div>');
		document.write('<div class="foot_nhk">');
		document.write('<div class="foot_nhk_logo"><img src="/pid99/images/ft_logo.gif" alt="NHK日本放送協会" width="78" height="42" /></div>');
		document.write('<div class="foot_nhk_copy">');
		document.write('Copyright NHK（Japan Broadcasting Corporation）.All rights reserved.<br />');
		document.write('許可なく転載することを禁じます。');
		document.write('<!-- /foot_nhk_copy --></div>');
		document.write('<!-- /foot_nhk --></div>');
} else if(state == "off") {
		document.write('<div class="foot_menu">');
		document.write('<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/5mokuteki.html">放送受信契約に関する個人情報の利用目的</a>　<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/">NHKにおける個人情報保護について</a>　<span class="note"><img src="/event/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/toppage/notice.html">NHKオンライン利用上のご注意</a>　');
		document.write('<!-- /foot_menu --></div>');
		document.write('<div class="foot_nhk">');
		document.write('<div class="foot_nhk_logo"><img src="/pid99/images/ft_logo.gif" alt="NHK日本放送協会" width="78" height="42" /></div>');
		document.write('<div class="foot_nhk_copy">');
		document.write('Copyright NHK（Japan Broadcasting Corporation）.All rights reserved.<br />');
		document.write('許可なく転載することを禁じます。');
		document.write('<!-- /foot_nhk_copy --></div>');
		document.write('<!-- /foot_nhk --></div>');
	}
} 
