// 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="/jushinryo/images/ct_rcv_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="/jushinryo/images/ct_rcv_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() {
	document.write('<div class="foot_menu">');
	document.write('<img src="/jushinryo/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/5mokuteki.html" target="_blank">放送受信契約に関する個人情報の利用目的</a>　<img src="/jushinryo/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/privacy/" target="_blank">NHKにおける個人情報保護について</a>　<img src="/jushinryo/images/foot_icon.gif" alt="" align="absmiddle" /> <a href="http://www.nhk.or.jp/toppage/notice.html" target="_blank">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('<span>Copyright NHK(Japan Broadcasting Corporation).All rights reserved.</span><br />');
	document.write('許可なく転載することを禁じます。');
	document.write('<!-- /foot_nhk_copy --></div>');
	document.write('<!-- /foot_nhk --></div>');
}

//rollover image
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

