// 更新情報
var aszUpd = new Array(
	"3/10",		"ぽけでび☆学園の<a class=cAUpd href=mobile/gakuen/appli021.html target=_blank>ココアの魚つり</a>紹介ページを公開なのー",
	"3/5",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"3/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.122』</a>をダウンロードしてねー",
	"　",		"ぽけでび☆学園に新作ゲーム<a class=cAUpd href=mobile/gakuen/appli022.html target=_blank>ココアのドライブするー</a>登場なのー",
	"　",		"ぽけでび☆学園SBに<a class=cAUpd href=mobile/gakuen/appli016.html target=_blank>ココアのぐるぐるニンジャ</a>登場なのー",
	"2/23",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でバル博士の新作まちうけを初公開なのー",
	"2/19",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi021.html>ぽちぽちパズル</a>が登場なのー！",
	"2/15",		"<a class=cAUpd href=newspaper/pb-times100215.html>『ぽけでびタイムズ』2月15日号</a>が出たのー！",
	"2/14",		"きょうはハッピー・バレンタインデーなのー！",
	"2/11",		"きょうはバル博士のたんじょう日なのー",
	"2/6",		"きょうはマロンのたんじょう日なのー",
	"　",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"2/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.121』</a>をダウンロードしてねー",
	"1/31",		"きょうはとげわささんのたんじょう日なのー",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で2月のカレンダーまちうけを公開なのー",
	"1/20",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi020.html>ぽちぽちパズル</a>が登場なのー！",
	"1/19",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でココアの新作まちうけを公開なのー",
	"1/15",		"<a class=cAUpd href=newspaper/pb-times100115.html>『ぽけでびタイムズ』1月15日号</a>が出たのー！",
	"1/6",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"1/2",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"1/1",		"きょうはハッピー・ニューイヤーデーなのー！",
	"　",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.120』</a>をダウンロードしてねー",
	"　",		"<a class=cAUpd href=campaign/2010newyear/omikuji2010.html>ぽけでび神社</a>でおみくじがひけるのー",
	"12/26",	"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.119』</a>をダウンロードしてねー",
	"12/25",	"きょうはハッピー・クリスマスデーなのー！",
	"12/23",	"きょうはフランベールさんのたんじょう日なのー",
	"12/22",	"新作ゲーム<a class=cAUpd href=game/cocoflash/wool+.html>ココアのウールウール＋</a>が出たのー！",
	"12/18",	"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi019.html>ぽちぽちパズル</a>が登場なのー！",
	"12/15",	"<a class=cAUpd href=newspaper/pb-times091215.html>『ぽけでびタイムズ』12月15日号</a>が出たのー！",
	"12/4",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"12/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.118』</a>をダウンロードしてねー",
	"11/30",	"きょうはジンジャーのたんじょう日なのー",
	"　",		"ぽけでび☆学園に新作ゲーム<a class=cAUpd href=mobile/gakuen/appli019.html target=_blank>おんせんココア</a>登場なのー",
	"　",		"ぽけでび☆学園SBに<a class=cAUpd href=mobile/gakuen/appli013.html target=_blank>ふーせんココア</a>登場なのー",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で12月のカレンダーまちうけを公開なのー",
	"11/22",	"<a class=cAUpd href=kingdom/kingdom.html>キャラクターページ</a>が新しくなったのー！",
	"11/21",	"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ぽちぽちパズルが登場なのー！",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でココアの新作まちうけを公開なのー",
	"11/15",	"<a class=cAUpd href=newspaper/pb-times091115.html>『ぽけでびタイムズ』11月15日号</a>が出たのー！",
	"11/6",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"11/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.117』</a>をダウンロードしてねー",
	"10/31",	"きょうはハッピー・ハロウィンデーなのー！",
	"　",		"ぽけでび☆学園に新作ゲーム<a class=cAUpd href=mobile/gakuen/appli018.html target=_blank>ココアの中間テスト２</a>登場なのー",
	"　",		"ぽけでび☆学園SBに<a class=cAUpd href=mobile/gakuen/appli012.html target=_blank>ココアのぐるっとアジア</a>登場なのー",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で11月のカレンダーまちうけを公開なのー",
	"10/20",	"きょうはルウのたんじょう日なのー",
	"10/17",	"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でコロネの新作まちうけを公開なのー",
	"10/16",	"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ぽちぽちパズルが登場なのー！",
	"10/15",	"<a class=cAUpd href=newspaper/pb-times091015.html>『ぽけでびタイムズ』10月15日号</a>が出たのー！",
	"10/5",		"きょうはガリクのたんじょう日なのー",
	"10/4",		"ココアのストラップが当たった人に当選メールを送ったのー！",
	"10/3",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"10/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.116』</a>のダウンロード開始なのー",
	"9/30",		"ぽけでび☆学園に新作ゲーム<a class=cAUpd href=mobile/gakuen/appli017.html target=_blank>ココアのストップ！</a>登場なのー",
	"　",		"ぽけでび☆学園SBに新作ゲーム<a class=cAUpd href=mobile/gakuen/appli011.html target=_blank>ココアのことのは</a>登場なのー",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で10月のカレンダーまちうけを公開なのー",
	"9/19",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ぽちぽちパズルが登場なのー！",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でココアの新作まちうけを公開なのー",
	"9/15",		"<a class=cAUpd href=newspaper/pb-times090915.html>『ぽけでびタイムズ』9月15日号</a>が出たのー！",
	"9/9",		"きょうはココアのたんじょう日なのー",
	"　",		"<a class=cAUpd href=campaign/2009cocoa/2009cocoa.html>ココアのストラッププレゼント</a>に応募するのー！",
	"9/5",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"9/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.115』</a>のダウンロード開始なのー",
	"　",		"　"
);

// ちゅうもく！
var m_nRecommend = 5;
var aszRecommend = new Array(
	"よく遊び、ついでに学ぶ！<br>ぽけでびケータイ公式",
	"<a href=http://pokedebi.com/mobile/gakuen/ target=_blank><img src=grp/top/menu-gakuen.gif width=144 height=58 border=no alt=ぽけでび☆学園></a>",
	"7月のぽちぽちパズルですよ<br>チャレンジするですよ！",
	"<a href=game/cocopuzzle/index.html><img src=grp/top/menu-cocopuzzle.gif width=144 height=58 border=no alt=ココパズル></a>",
	"ぽけでび王国がわかる新聞<br>7月15日号発行中！",
	"<a href=newspaper/newspaper.html><img src=grp/top/menu-times.gif width=144 height=58 border=no alt=ぽけでびタイムズ></a>",
	"ぽけ☆学の大人気ゲームが<br>PCであそべちゃう！",
	"<a href=game/cocoflash/sushi.html><img src=grp/top/menu-sushi.gif width=144 height=58 border=no alt=ココアのすしくうのー！></a>",
	"ココアと大空さんぽゲーム<br>パワーアップして登場！",
	"<a href=game/cocoflash/ballooncocoa+.html><img src=grp/top/menu-balloon+.gif width=144 height=58 border=no alt=ふ〜せんココア＋></a>",
	"勇者ココア第三章！<br>仲間を探してココアは街へ",
	"<a href=animation/cocoanime/yusha3.html><img src=grp/top/menu-yusha3.gif width=144 height=58 border=no alt=ココアニメ></a>",
	"ぽけでびキャラが返信！<br>イラストも送ろう伝言板",
	"<a href=http://pokedebi.com/cgi-bin/beastex/letter/letter.cgi><img src=grp/top/menu-letter.gif width=144 height=58 border=no alt=返信！ぽけでび伝言板></a>",
	"ココアのぽっかぽか<br>温泉ゲームが帰ってきた！",
	"<a href=game/cocoflash/onsencocoa+.html><img src=grp/top/menu-onsen.gif width=144 height=58 border=no alt=おんせんココア＋></a>",
	"ココアと海で魚つり！<br>めざせコレクション制覇！",
	"<a href=http://pokedebi.com/game/cocopetit/seafishing.html target=_blank><img src=grp/top/menu-seafish.gif width=144 height=58 border=no alt=ココアの海づり></a>",
	"ボールを落とさないでね！<br>ココアのサッカーゲーム！",
	"<a href=game/cocoflash/rifting06.html><img src=grp/top/menu-riftco.gif width=144 height=58 border=no alt=ココアのリフティング'06></a>",
	"今年もぽけでび夏祭り！<br>南の島でココアと遊ぼう！",
	"<a href=campaign/2008summer/index.html><img src=grp/top/menu-2008summer.gif width=144 height=58 border=no alt=ぽけでび夏祭り！2008></a>",
	"ココアの新作「うごく絵本」<br>おもちゃばこで公開中",
	"<a href=http://pokedebi.com/game/cocoatoy/ target=_blank><img src=grp/top/menu-haramaki.gif width=144 height=58 border=no alt=ココアのはらまき></a>",
	"世界の地理にチャレンジ！<br>ココアのクイズゲーム登場！",
	"<a href=http://pokedebi.com/game/cocopetit/ target=_blank><img src=grp/top/menu-quizworld.gif width=144 height=58 border=no alt=ココアのクイズわーるど！></a>",
	"忍者ココアが巻物集め！<br>サーチライトをよけて進め！",
	"<a href=game/cocoflash/gurunin.html><img src=grp/top/menu-ninja.gif width=144 height=58 border=no alt=ココアのぐるぐるニンジャ></a>",
	""
);


// PR用バナー
var m_nNotice = 3;
var aszNotice = new Array(
	"<a href=game/cocoflash/wool+.html><img src=grp/top/notice-wool+.gif width=410 height=70 border=no alt=ココアのウールウール＋></a>",
	"<a href=http://pokedebi.com/mobile/gakuen/ target=_blank><img src=grp/top/notice-gakuen.gif width=410 height=70 border=no alt=ぽけでび☆学園></a>",
	"<a href=game/cocoflash/sushi.html><img src=grp/top/notice-sushi.gif width=410 height=70 border=no alt=ココアのすしくうのー！></a>",
	"<a href=campaign/2010newyear/omikuji2010.html><img src=grp/top/notice-omikuji2010.gif width=410 height=70 border=no alt=おみくじココア></a>",
	"<a href=animation/cocoanime/yusha.html><img src=grp/top/notice-golden.gif width=410 height=70 border=no alt=黄金のたいやきと勇者></a>",
	"<a href=http://pokedebi.com/game/cocoatoy/mini13-otama.html target=_blank><img src=grp/top/notice-otama.gif width=410 height=70 border=no alt=ココアのおたまじゃくし></a>",
	"<a href=http://pokedebi.com/pbox/onecoco/><img src=grp/top/notice-pboxonecoco.gif width=410 height=70 border=no alt=ぽけでびBOXおねだりココア></a>",
	"<a href=http://pokedebi.com/cgi-bin/beastex/letter/letter.cgi><img src=grp/top/notice-letter.gif width=410 height=70 border=no alt=返信！ぽけでび伝言板></a>",
	"<a href=game/cocoflash/onsencocoa+.html><img src=grp/top/notice-onsen.gif width=410 height=70 border=no alt=おんせんココア＋></a>",
	"<a href=http://pokedebi.com/game/cocopetit/ target=_blank><img src=grp/top/notice-wool.gif width=410 height=70 border=no alt=ココアのウールウール></a>",
	"<a href=http://pokedebi.com/game/cocopetit/ target=_blank><img src=grp/top/notice-quizworld.gif width=410 height=70 border=no alt=ココアのクイズわーるど！></a>",
	"<a href=http://pokedebi.com/cgi-bin/beastex/location/kidsparty.cgi target=_blank><img src=grp/top/notice-toybox.gif width=410 height=70 border=no alt=ココアのおもちゃばこ></a>",
	"<a href=http://pokedebi.com/game/cocoatoy/ target=_blank><img src=grp/top/notice-nandarou.gif width=410 height=70 border=no alt=ココアのなんだろう？></a>",
	"<a href=campaign/2009cocoa/2009cocoa.html><img src=grp/top/notice-2009cocoa.gif width=410 height=70 border=no alt=ココアのストラッププレゼント></a>",
	"<a href=campaign/2008summer/index.html><img src=grp/top/notice-2008summer.gif width=410 height=70 border=no alt=ぽけでび夏祭り！2008></a>",
	"<a href=campaign/2007xmas/index.html><img src=grp/top/notice-2007xmas.gif width=410 height=70 border=no alt=クリスマススペシャルコーナー2007></a>",
	""
);


// トップ画像とコメント
var aszTopIllust = new Array(
	"<img src=grp/top/top200909-birthday.gif width=410 height=308 border=no>",
	""
);
var aszTopComment = new Array(
	"7月のイラストはギャラクシー☆　スペースココアたちと宇宙で遊ぼう！",
	"「天の川は小さいお星さまでいっぱいなのー。ヒトデみたいでかわいいのー」",
	""
);

// ぽけでびBOX
var m_nPokedebiBox = 2;
var aszPokedebiBox = new Array(
	"<script src=http://pokedebi.com/download/pbox/pbox-mix.js></script><noscript><a href=http://pokedebi.com/ target=_blank><img src=http://pokedebi.com/grp/download/pbox/pbox-onecoco.gif border=no alt=ぽけでび></a></noscript>",
	"<script src=http://pokedebi.com/download/pbox/pbox-onecoco.js?adr=pokedebi></script><noscript><a href=http://pokedebi.com/ target=_blank><img src=http://pokedebi.com/grp/download/pbox/pbox-onecoco.gif border=no alt=ぽけでび></a></noscript>",
	""
);


var aszPokegaku = new Array(
	"よく遊び、ついでに学ぶ！<br>ぽけでびケータイ公式",
	"<a href=http://pokedebi.com/mobile/gakuen/ target=_blank><img src=grp/top/menu-gakuen.gif width=144 height=58 border=no alt=ぽけでび☆学園></a>",
	""
);


////////////////////////////////////////////////////////////////////////////////////////

// TOPイラストを表示する
function putTopIllust()
{
	var nRnd = 0;

	document.write( aszTopIllust[nRnd] );
	/*
	document.write( "<br>" );
	document.write( "<img src=grp/cmn/line424k.gif width=380 height=6><br>" );
	document.write( aszTopComment[nRnd * 2] );
	document.write( "<img src=grp/cmn/line424k.gif width=380 height=6><br>" );
	document.write( aszTopComment[nRnd * 2 + 1] );
	document.write( "<img src=grp/cmn/line424k.gif width=380 height=6><br>" );
	*/
}


// PRバナーを表示する
function putNotice()
{
	var nRnd = Math.floor( Math.random() * m_nNotice );

	document.write( aszNotice[nRnd] );
}


// ぽけでびBOXを表示する
function putPokedebiBox()
{
	var nRnd = Math.floor( Math.random() * m_nPokedebiBox );

	document.write( aszPokedebiBox[nRnd] );
}


function putPokegaku()
{
	document.write( "<font color=#392018>" + aszPokegaku[0] + "</font><br>" );
	document.write( aszPokegaku[1] + "<br>" );
}


// おすすめメニューを表示する
function putRecommend()
{
	/*
	var anRnd = new Array( 2 );
	anRnd[0] = Math.floor( Math.random() * m_nRecommend );
	anRnd[1] = (anRnd[0] + Math.floor( Math.random() * (m_nRecommend - 1) ) + 1) % m_nRecommend;
	*/
	var anRnd = new Array( m_nRecommend );

	for ( var i = 0; i < m_nRecommend; i++ ) {
		anRnd[i] = i;
		document.write( "<table width=160 border=0 cellpadding=0 cellspacing=0 align=center>" );
		document.write( "<tr>" );
		document.write( "<td width=3 height=3><img src=grp/box/sbox-ltop.gif width=3 height=3></td>" );
		document.write( "<td width=154 background=grp/box/sbox-x.gif><img src=grp/box/sbox-x.gif width=3 height=3></td>" );
		document.write( "<td width=3><img src=grp/box/sbox-rtop.gif width=3 height=3></td>" );
		document.write( "</tr>" );
		document.write( "<tr>" );
		document.write( "<td background=grp/box/sbox-y.gif><img src=grp/box/sbox-y.gif width=3 height=3></td>" );
		document.write( "<td align=center valign=center height=90 bgcolor=#FFF3D6>" );
		document.write( "<font color=#392018>" + aszRecommend[anRnd[i] * 2] + "</font><br>" );
		document.write( aszRecommend[anRnd[i] * 2 + 1] + "<br>" );
		document.write( "</td>" );
		document.write( "<td background=grp/box/sbox-y.gif><img src=grp/box/sbox-y.gif width=3 height=3></td>" );
		document.write( "</tr>" );
		document.write( "<tr> " );
		document.write( "<td width=3 height=3><img src=grp/box/sbox-lbtm.gif width=3 height=3></td>" );
		document.write( "<td background=grp/box/sbox-x.gif><img src=grp/box/sbox-x.gif width=3 height=3></td>" );
		document.write( "<td width=3><img src=grp/box/sbox-rbtm.gif width=3 height=3></td>" );
		document.write( "</tr>" );
		document.write( "</table>" );
		document.write( "<img src=grp/cmn/dummy.gif wigth=1 height=4><br>" );
	}
}


// 更新情報を表示する
function putUpdate( nKind )
{
	for ( var i = 0; i < 6; i++ ) {
		if ( i != 0 ) {
			document.write( "<img src=grp/cmn/dummy.gif width=1 height=2><br>" );
		}
		document.write( aszUpd[i * 2 + nKind] + "<br>" );
	}
}