// 更新情報
var aszUpd = new Array(
	"9/9",		"今日はココアのたんじょう日なのー！",
	"　",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi028.html>ぽちぽちパズル</a>登場なのー",
	"　",		"　↑かんたんをクリアするとかべがみがもらえるのー！",
	"9/3",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』</a>にランキングつき新作ジグソー登場なのー！",
	"9/2",		"<a class=cAUpd href=game/cocopuzzle/pochi026.html>『ぽちぽちパズル Vol.26』</a>のランキングは今日が最終日なのー",
	"9/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.129』</a>をダウンロードしてねー",
	"8/21",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でミルクとルウの新作まちうけ公開なのー",
	"8/20",		"今日はピスタのたんじょう日なのー！",
	"8/19",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi027.html>ぽちぽちパズル</a>登場なのー",
	"8/18",		"今日はアモンのたんじょう日なのー！",
	"8/15",		"<a class=cAUpd href=newspaper/pb-times100815.html>『ぽけでびタイムズ』8月15日号</a>が出たのー！",
	"8/11",		"ぽけでび☆学園の<a class=cAUpd href=mobile/gakuen/appli027.html target=_blank>ココアの中間テスト３</a>紹介ページ公開なのー",
	"8/7",		"ゲームコーナーに<a class=cAUpd href=game/cocoflash/fishing+.html>『ココアの魚つり＋』</a>が登場なのー！",
	"8/5",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』</a>にランキングつき新作ジグソー登場なのー！",
	"8/5",		"ぽけでび伝言板で<a class=cAUpd href=cgi-bin/beastex/letter/letter.cgi>勇者ココア４アンケート</a>が始まったのー☆",
	"8/3",		"今日はハーブ＆ミントのたんじょう日なのー！",
	"8/1",		"新作アニメ<a class=cAUpd href=animation/cocoanime/yusha4.html>『黄金のたいやきと勇者４なのねー』</a>公開なのー！",
	"8/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.128』</a>をダウンロードしてねー",
	"7/31",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で8月のカレンダーまちうけを公開なのー",
	"7/25",		"ぽけ伝の<a class=cAUpd href=cgi-bin/beastex/letter/letter.cgi>アイスクリームアンケート</a>は今日が最終日なのー",
	"7/17",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi026.html>ぽちぽちパズル</a>登場なのー",
	"7/15",		"<a class=cAUpd href=newspaper/pb-times100715.html>『ぽけでびタイムズ』7月15日号</a>が出たのー！",
	"7/14",		"きょうはチョコア様のたんじょう日ですよ！",
	"7/10",		"きょうは「なっとう市の日」なのー。ねばねばー",
	"7/4",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』</a>にランキングつき新作ジグソー登場なのー！",
	"　",		"ぽけでび伝言板で<a class=cAUpd href=cgi-bin/beastex/letter/letter.cgi>アイスクリームアンケート</a>が始まったのー☆",
	"7/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.127』</a>をダウンロードしてねー",
	"6/30",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で7月のカレンダーまちうけを公開なのー",
	"6/15",		"<a class=cAUpd href=newspaper/pb-times100615.html>『ぽけでびタイムズ』6月15日号</a>が出たのー！",
	"6/11",		"今日はザッハー王様のたんじょう日なのー",
	"　",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi025.html>ぽちぽちパズル</a>登場なのー",
	"　",		"　　　　　ランキングで時間を競うことができるのー",
	"　",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.126』</a>をダウンロードしてねー",
	"　",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でザッハー王様の新作まちうけ公開なのー",
	"6/5",		"ぽけでび☆学園の<a class=cAUpd href=mobile/gakuen/appli025.html target=_blank>ココアのぐるっとアフリカ</a>紹介ページ公開なのー",
	"6/4",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"6/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.125』</a>をダウンロードしてねー",
	"5/31",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で6月のカレンダーまちうけを公開なのー",
	"5/22",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi024.html>ぽちぽちパズル</a>が登場なのー！",
	"5/20",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でココアの新作まちうけ初公開なのー",
	"5/15",		"<a class=cAUpd href=http://pokedebi.com/game/cocopetit/seafishing.html target=_blank>『ココアの海づり』</a>のランキングモードがスタートなのー！",
	"　",		"<a class=cAUpd href=newspaper/pb-times100515.html>『ぽけでびタイムズ』5月15日号</a>が出たのー！",
	"5/3",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"5/1",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.124』</a>をダウンロードしてねー",
	"4/30",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>で5月のカレンダーまちうけを公開なのー",
	"4/29",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』</a>のぽちぽちパズルがパワーアップしたのー！",
	"　",		"『ココパズル』コーナーに改造<a class=cAUpd href=game/cocopuzzle/pochi023-2.html>ぽちぽちパズル</a>が登場なのー！",
	"4/20",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でハーブ＆ミントの新作まちうけ初公開なのー",
	"4/17",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi023.html>ぽちぽちパズル</a>が登場なのー！",
	"4/15",		"<a class=cAUpd href=newspaper/pb-times100415.html>『ぽけでびタイムズ』4月15日号</a>が出たのー！",
	"4/3",		"<a class=cAUpd href=game/cocopuzzle/index.html>『ココパズル』コーナー</a>に新作ジグソーが登場なのー！",
	"4/1",		"きょうはうそつき妖精の日なのー。ご注意！",
	"　",		"<a class=cAUpd href=http://pokedebi.com/cgi-bin/beastex/html/wallpaper.cgi>『ぽけでびかべがみvol.123』</a>をダウンロードしてねー",
	"3/22",		"<a class=cAUpd href=mobile/mobile.html>ケータイサイト</a>でとげわささんの新作まちうけ初公開なのー",
	"3/21",		"『ココパズル』コーナーに新作<a class=cAUpd href=game/cocopuzzle/pochi022.html>ぽちぽちパズル</a>が登場なのー！",
	"3/15",		"<a class=cAUpd href=newspaper/pb-times100315.html>『ぽけでびタイムズ』3月15日号</a>が出たのー！",
	"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>登場なのー",

	""
);

// タイムズ
var aszNews = new Array(
	"9月9日",
	"ココアたんじょう日",

	"8月20日",
	"ピスタたんじょう日",
	"8月18日",
	"アモンたんじょう日",
	"<a href=newspaper/pb-times100815.html>8月15日号</a>",
	"勇者の食卓",
	"8月3日",
	"ハーブ＆ミントたんじょう日",
	"<a href=newspaper/pb-times100715.html>7月15日号</a>",
	"かき氷ファイト！",
	"7月14日",
	"チョコア様たんじょう日",
	"7月8日",
	"ペパたんじょう日",
	"<a href=newspaper/pb-times100615.html>6月15日号</a>",
	"ぽけでび☆学園二周年！",
	"<a href=newspaper/pb-times100515.html>5月15日号</a>",
	"海づりに行こう！",
	"5月6日",
	"コロネたんじょう日",
	"<a href=newspaper/pb-times100415.html>4月15日号</a>",
	"うそつきキャラクター",
	
	""
);

// トピックス
var aszTopics = new Array(
	// リフティング
	"game/cocoflash/rifting06.html",
	false,
	"topics-game-rifting06.gif",
	"ココアのリフティング",
	"ココアとめざせＷ杯☆<br>ハプニングだらけのリフティング大会！",

	// ふーせん＋
	"game/cocoflash/ballooncocoa+.html",
	false,
	"topics-game-balloon+.gif",
	"ふーせんココア＋",
	"風船につかまってどこまでも！　ココアとふわふわ大空の旅♪",

	// ココアのおともだち
	"ehon/ehon04-tomodachi.html",
	false,
	"topics-ehon-friend.gif",
	"ココアのおともだち",
	"ひとりぼっちのココア…<br>みんなどうしたの？<br>続きはうごく絵本で！",

	// おねだりココア
	"pbox/onecoco/",
	false,
	"topics-game-onedari.gif",
	"おねだりココア",
	"かわいいココアとおねだり生活♪ 大人気の収集育成ゲーム",

	// すしくうのー
	"game/cocoflash/sushi.html",
	false,
	"topics-game-sushi.gif",
	"ココアのすしくうのー！",
	"おすし食べほーだい！<br>連鎖が超きもちいいアクションパズル☆",

	// 海づり
	"game/cocopetit/seafishing.html",
	true,
	"topics-game-seafishing.gif",
	"ココアの海づり",
	"夏と言えばやっぱり海！　みんなで海づり競争だ！",

	// ヨーヨーつり＋
	"game/cocoflash/yoyo+.html",
	false,
	"topics-game-yoyo+.gif",
	"ココアのヨーヨーつり＋",
	"ぽけでび夏の定番ゲーム！　色んなヨーヨー集めヨー☆",

	// リフティング
	"game/cocoflash/rifting06.html",
	false,
	"topics-game-rifting06.gif",
	"ココアのリフティング",
	"ココアとめざせＷ杯☆<br>ハプニングだらけのリフティング大会！",

	// ふーせん＋
	"game/cocoflash/ballooncocoa+.html",
	false,
	"topics-game-balloon+.gif",
	"ふーせんココア＋",
	"風船につかまってどこまでも！　ココアとふわふわ大空の旅♪",

	// ココアとはみがき
	"game/cocoatoy/mini25-hamigaki.html",
	true,
	"topics-ehon-hamigaki.gif",
	"ココアとはみがき",
	"歯みがきしないとどうなる… ココアのほのぼのうごく絵本を読もう！",

	// ココアとおたまじゃくし
	"game/cocoatoy/mini13-otama.html",
	true,
	"topics-ehon-otamajakushi.gif",
	"ココアとおたまじゃくし",
	"お池の中には何がいる？ ココアのほのぼのうごく絵本を読もう！",

	// 魚つり
	"game/cocopetit/fishing.html",
	true,
	"topics-game-fishing.gif",
	"ココアのさかなつり",
	"なかよし二人の魚つりゲーム！<br>めざせ、「つり神様」！",

	""
);

// PR用バナー
var m_nNotice = 2;
var aszNotice = new Array(
	"<a href=game/cocoflash/fishing+.html><img src=grp/top/notice-fishing+.gif width=410 height=70 border=no alt=ココアの魚つり＋></a>",
	"<a href=animation/cocoanime/yusha4.html><img src=grp/top/notice-yusha4.gif width=410 height=70 border=no alt=黄金のたいやきと勇者４></a>",
	"<img src=grp/top/notice-yusha4-pre.gif width=410 height=70 border=no alt=近日公開！もうちょっと待ってね！>",
	"<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=animation/cocoanime/chocoa.html><img src=grp/top/notice-chocoa-anime.gif width=410 height=70 border=no alt=チョコア誕生！なのね〜></a>",
	"<a href=game/cocopuzzle/index.html><img src=grp/top/notice-cocopuzzle-gw.gif width=410 height=70 border=no alt=GWはココパズル！></a>",
	"<a href=game/cocoflash/wool+.html><img src=grp/top/notice-wool+.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>",
	"<a href=game/cocoflash/sushi-sacher.html><img src=grp/top/notice-sushi-sacher.gif width=410 height=70 border=no alt=ココアのすしくうのー！></a>",
	"<a href=game/cocoflash/rifting07-sacher.html><img src=grp/top/notice-rifting-sacher07.gif width=410 height=70 border=no alt=ザッハーのリフティング></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( nID )
{
	if ( nID == null ) {
		var nRnd = Math.floor( Math.random() * m_nNotice );
		document.write( aszNotice[nRnd] );
	}
	else {
		document.write( aszNotice[nID] );
	}
}


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

	document.write( aszPokedebiBox[nRnd] );
}


// ぽけでびBOXおねだりココアを表示する
function putOnedariBox()
{
	document.write( aszPokedebiBox[1] );
}


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


function putNews()
{
	document.write( aszNews[0] + "<br>" );
	document.write( aszNews[1] + "<br>" );
}


function putTopics()
{
	document.write( "<table width=400 border=0 align=center valign=top>" );
	
	for ( var i = 0; i < 4; i++ ) {
		if ( i % 2 == 0 ) {
			document.write( "<tr height=60>" );
		}
		document.write( "<td width=60 align=center valign=center>" );
		document.write( "<a href=" + aszTopics[i * 5 + 0] );
		if ( aszTopics[i * 5 + 1] ) {
			document.write( " target=_blank" );
		}
		document.write( "><img src=grp/top/" + aszTopics[i * 5 + 2] + " width=50 height=50 border=no alt=" + aszTopics[i * 5 + 3] + "></a>" );
		document.write( "</td>" );
		document.write( "<td width=130 align=left valign=center>" );
		document.write( "<div class=t12>" );
		document.write( "<font color=#fffaf2>" );
		document.write( aszTopics[i * 5 + 4] );
		document.write( "</font>" );
		document.write( "</div>" );
		document.write( "</td>" );
		if ( i % 2 == 0 ) {
			document.write( "<td width=20>　</td>" );
		}
		else {
			document.write( "</tr>" );
		}
	}

	document.write( "</table>" );
}
