var __preloadImgs = new Array (

"/hiroba/blog/common/img/bg_sidenavi_01.gif",
"/hiroba/blog/common/img/bg_sidenavi_01h.gif",
"/hiroba/blog/common/img/bg_sidenavi_02.gif",
"/hiroba/blog/common/img/bg_sidenavi_02h.gif"


);

function preloadImg() {
	if (document.images) {
		var tmpImgs = new Array ();
		for (var i = 0; i < __preloadImgs.length; i++) {
			tmpImgs [i] = new Image ();
			tmpImgs [i].src = __preloadImgs [i];
		}
	}
}

function gnmsg(divnam,flg0){
  document.getElementById(divnam).style.visibility = flg0;
}

function writeHeader(){
	htm = ''
	htm+= '	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url(/hiroba/img/common/headerfooter/g-cmn-bg.gif) repeat-x; margin:0;" summary="header" id="pagetop">'
	htm+= '	<tr>'
	htm+= '	<td>'
	htm+= '	<table width="100%"  border="0" cellspacing="0" cellpadding="0" style="margin:7px 0 5px 0;">'
	htm+= '	<tr>'
	htm+= '	<td align="left" style="padding-left:15px;"><a href="http://www.benesse.co.jp/"><img src="/hiroba/blog/img/common/headerfooter/logo-benesse.gif" alt="Benesse" width="73" height="13" border="0"></a></td>'
	htm+= '	<td align="right" style="padding-right:15px;">'
	htm+= '	<table border="0" cellspacing="0" cellpadding="0">'
	htm+= '	<tr>'
	htm+= '	<td style="padding-right:5px;" valign="middle"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-arrow.gif"></td>'
	htm+= '	<td style="padding-right:15px; font-size:80%;"><span class="g-cmn"><a href="http://www.benesse.co.jp/">Benesseトップ</a></span></td>'
	htm+= '	<td style="padding-right:5px;" valign="middle"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-arrow.gif"></td>'
	htm+= '	<td style="font-size:80%;"><span class="g-cmn"><a href="http://www.benesse.co.jp/map/">Benesseサイトマップ</a></span></td>'
	htm+= '	</tr>'
	htm+= '	</table>'
	htm+= '	</td>'
	htm+= '	</tr>'
	htm+= '	</table>'
	htm+= '	<tr>'
	htm+= '	<td height="3" bgcolor="#0A61A9" style="margin-top:5px;"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-spacer.gif" alt="" height="3"></td>'
	htm+= '	</tr>'
	htm+= '	</td>'
	htm+= '	</tr>'
	htm+= '	</table>'
	document.write(htm);
}

function writeContentsHeader(ct){
	htm = '<div class="toplogo"><a href="http://www.shimajiro.co.jp/hiroba/index.html" onclick="pageTracker._link(this.href); return false;"><img src="/hiroba/blog/common/img/p_logo_01.gif" alt="しまじろうひろば" width="77" height="43"></a></div>';
	htm+= '<ul class="utilitynavi">';
	htm+= '<li><a href="/hiroba/blog/news/index.html">お知らせ一覧</a></li>';
	htm+= '<li><a href="/hiroba/blog/sitemap.html">サイトマップ</a></li>';
	htm+= '<li><a href="https://kodomo.benesse.ne.jp/login/index.shtml" onclick="pageTracker._link(this.href); return false;">会員の方はこちら</a></li>';
	htm+= '</ul>';
	htm+= '<ul class="headernavi rollover">';
	htm+= '<li class="gn01"><a href="http://www.shimajiro.co.jp/hiroba/index.html" onmouseover="gnmsg(\'gnmsg01\',\'visible\');" onmouseout="gnmsg(\'gnmsg01\',\'hidden\');" onclick="pageTracker._link(this.href); return false;"><img src="/hiroba/blog/common/img/gn_01.jpg" alt="トップページ[しまじろうひろばにもどるよ]" width="161" height="37"></a></li>';
	htm+= '<li class="gn05"><a href="/hiroba/blog/play/index.html" onmouseover="gnmsg(\'gnmsg05\',\'visible\');" onmouseout="gnmsg(\'gnmsg05\',\'hidden\');"><img src="/hiroba/blog/common/img/gn_05.jpg" alt="ゲーム[しまじろうとゲームであそぼう]" width="161" height="37"></a></li>';
	htm+= '<li class="gn03"><a href="/hiroba/blog/tv/index.html" onmouseover="gnmsg(\'gnmsg03\',\'visible\');" onmouseout="gnmsg(\'gnmsg03\',\'hidden\');"><img src="/hiroba/blog/common/img/gn_03.jpg" alt="テレビ[テレビばんぐみのしょうかいだよ]" width="160" height="37"></a></li>';
	htm+= '<li class="gn04"><a href="/hiroba/blog/go/index.html" onmouseover="gnmsg(\'gnmsg04\',\'visible\');" onmouseout="gnmsg(\'gnmsg04\',\'hidden\');"><img src="/hiroba/blog/common/img/gn_04.jpg" alt="イベント[しまじろうにあいにいこう]" width="160" height="37"></a></li>';
	htm+= '<li class="gn02"><a href="/hiroba/blog/know/index.html" onmouseover="gnmsg(\'gnmsg02\',\'visible\');" onmouseout="gnmsg(\'gnmsg02\',\'hidden\');"><img src="/hiroba/blog/common/img/gn_02.jpg" alt="関連サイト[＜こどもちゃれんじ＞のしょうかいだよ]" width="160" height="37"></a></li>';
	htm+= '<li class="gn06"><a href="/hiroba/blog/campaign/index.html" onmouseover="gnmsg(\'gnmsg06\',\'visible\');" onmouseout="gnmsg(\'gnmsg06\',\'hidden\');"><img src="/hiroba/blog/common/img/gn_06.jpg" alt="キャンペーン＆プレゼント[キャンペーンとプレゼントのお知らせ]" width="158" height="37"></a></li>';
	htm+= '</ul>';
	htm+= '<div id="gnmsg01"><img src="/hiroba/blog/common/img/gn_mes01.png" alt="" width="178" height="34"></div>';
	htm+= '<div id="gnmsg02"><img src="/hiroba/blog/common/img/gn_mes02.png" alt="" width="235" height="34"></div>';
	htm+= '<div id="gnmsg03"><img src="/hiroba/blog/common/img/gn_mes03.png" alt="" width="208" height="34"></div>';
	htm+= '<div id="gnmsg04"><img src="/hiroba/blog/common/img/gn_mes04.png" alt="" width="168" height="34"></div>';
	htm+= '<div id="gnmsg05"><img src="/hiroba/blog/common/img/gn_mes05.png" alt="" width="188" height="34"></div>';
	htm+= '<div id="gnmsg06"><img src="/hiroba/blog/common/img/gn_mes06.png" alt="" width="224" height="34"></div>';
	document.write(htm);
}

function writeFooter(){
	htm = '';
	htm+= '	<table width="100%"  border="0" cellspacing="0" cellpadding="0" summary="footer">';
	htm+= '	<tr>';
	htm+= '	<td height="3" bgcolor="#0A61A9"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-spacer.gif" alt="" height="3"></td>';
	htm+= '	</tr>';
	htm+= '	<tr>';
	htm+= '	<td>';
	htm+= '	<table border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-top:10px;margin-bottom:10px;">';
	htm+= '	<tr>';
	htm+= '	<td align="left" style="padding-left:15px;">';
	htm+= '	<table border="0" cellspacing="0" cellpadding="0">';
	htm+= '	<tr>';
	htm+= '	<td style="padding-right:5px;" valign="middle"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-arrow.gif"></td>';
	htm+= '	<td style="padding-right:15px; font-size:80%;"><span class="g-cmn"><a href="http://www.benesse.co.jp/privacy/">個人情報保護への取り組みについて</a></span></td>';
	htm+= '	<td style="padding-right:5px; font-size:80%;" valign="middle"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-arrow.gif"></td>';
	htm+= '	<td style="padding-right:15px; font-size:80%;"><span class="g-cmn"><a href="http://benesse.jp/">Benesse教育情報サイト</a></span></td>';
	htm+= '	<td style="padding-right:5px;" valign="middle"><img src="/hiroba/blog/img/common/headerfooter/g-cmn-arrow.gif"></td>';
	htm+= '	<td style="padding-right:15px; font-size:80%;"><span class="g-cmn"><a href="http://www.benesse.co.jp/benesseinfo/">会社案内</a></span></td>';
	htm+= '	</tr>';
	htm+= '	</table>';
	htm+= '	</td>';
	htm+= '	<td align="right" style="padding-right:15px;"><img src="/hiroba/blog/img/common/headerfooter/g-copyright.gif" alt="&copy; Benesse Corporation. All rights reserved." width="223" height="10"></td>';
	htm+= '	</tr>';
	htm+= '	</table>';
	htm+= '	</td>';
	htm+= '	</tr>';
	htm+= '	</table>';
	
//	htm+= '	<div id="privacy" class="clearfix">';
//	htm+= '	<div class="logo"><a href="http://privacymark.jp/" target="_blank"><img src="/hiroba/blog/common/pmark/pmark75.gif" alt="プライバシーマーク" width="75" height="81"></a></div>';
//	htm+= '	<p>当社はお客様の個人情報保護・管理を適切に行っている企業として、<br>プライバシーマークの使用許諾を受けています。</p>';
//	htm+= '	</div>';
	document.write(htm);
	}
	
function writeContentsFooter(ct){}

function writeNewsBodyFooterMenu() {
 _listYearNext = '';
 for (i = 0; i < _listYearArr.length; i++) {
  _listYear = _listYearArr[i];
  _left_tag ='<a href="/hiroba/blog/news/' + _listYear + '.html">';
  _right_tag ='</a>';
  if (( _listYear != _listYearNext ) && (_listYear != _thisPageYear )){
   document.write('<li>' + _left_tag + _listYear + '年のお知らせ一覧へ' + _right_tag + '</li>');
   _listYearNext = _listYear;
  }
 }
}


function writeNewsSideMenu() {
 _listYearNext = '';
 _listYearCount = 1;
 for (i = 0; i < _listYearArr.length; i++) {
  cls = 'sn_f';
  _listYear = _listYearArr[i];
  _left_tag ='<a href="/hiroba/blog/news/' + _listYear + '.html">';
  _right_tag ='</a>';
  if ( _listYear != _listYearNext ) {
   if ( _listYearCount == 1 ) { cls = 'sn_h'; }
   if (_listYear == _thisPageYear ) { _left_tag ='<strong>'; _right_tag ='</strong>'; }
   document.write('<li class="' + cls + '">' + _left_tag + '<span>' + _listYear + '年' + _right_tag + '</span></li>');
   _listYearNext = _listYear;
   _listYearCount = 0;
  }
 }
}

function gnmsg(divnam,flg0){
  document.getElementById(divnam).style.visibility = flg0;
}


var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function windowClose(){
	window.close();
}

var popUpWin2=0;
function popUpWindow2(URLStr, left, top, width, height)
{
  if(popUpWin2)
  {
    if(!popUpWin2.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin2', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
