var msg,imsg, h, d, m, y;
var msg= new Array();
var imsg= new Array();

// アクセス日時を表示する。
y= (new Date()).getYear();
if(y<2000){y=y+1900};
m = (new Date()).getMonth() + 1;
d = (new Date()).getDate();
h = (new Date()).getHours();
s = (new Date()).getMinutes();
date = new Date();




// What's NEW
function ntxt01(){
msg[319]  = "<li><a href"+"="+"http://www.piccoli.jp/event/vo/index.html"+" target="+"_blank"+">"+"ボランティア説明会　受付開始</a> 　"+"<font class="+"new"+">"+"(3/18)"+"</font>";
msg[408]  = "<li><a href"+"="+"http://www.piccoli.jp/event/spring11/index.html"+" target="+"_blank"+">"+"春のわくわくおたのしみ会HP 公開</a> 　"+"<font class="+"new"+">"+"(4/8)"+"</font>";
msg[611]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座HP 公開</a>  "+"<font class="+"new"+">"+"(6/10)"+"</font>";
msg[1220]  = "<li><a href"+"="+"http://www.piccoli.jp/event/xmas11/index.html"+" target="+"_blank"+">"+"冬のクリスマスおたのしみ会HP 公開</a> "+"<font class="+"new"+">"+"(11/18)"+"</font>";
msg[1221]  = "<li><a href"+"="+"http://www.piccoli.jp/event/xmas11/index.html"+" target="+"_blank"+">"+"冬のクリスマスおたのしみ会　受付開始</a> "+"<font class="+"new"+">"+"(11/18)"+"</font>";
msg[2201]  = "<li><a href"+"="+"http://www.piccoli.jp/event/kosakuws10/index.html"+">"+"工作会ワークショップ 受付開始</a> 　"+"<font class="+"new"+">"+"(2/20)"+"</font>";
msg[221]  = "<li><a href"+"="+"http://www.piccoli.jp/event/sotsuten10/data.jpg"+" target="+"_blank"+">"+"そつぎょうせいさくてんをみにいこう!!</a> 　"+"<font class="+"new"+">"+"(2/21)"+"</font>";


msg[218]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(2/11)"+"</font>";
msg[225]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(2/18)"+"</font>";


msg[225]  = "<li><a href"+"="+"yom/201202/yom.html"+">"+"よむよむ 更新</a>  "+"<font class="+"new"+">"+"(2/25)"+"</font>";
msg[220]  = "<li><a href"+"="+"yotei_03.html"+">"+"来月の予定を公開</a>  "+"<font class="+"new"+">"+"(2/20)"+"</font>";
msg[301]  = "<li><a href"+"="+"voice.html"+">"+"スタッフボイス 更新</a>  "+"<font class="+"new"+">"+"(3/1)"+"</font>";
msg[226]  = "<li><a href"+"="+"yom/201202/yom.html"+">"+"よむよむ 更新</a>  "+"<font class="+"new"+">"+"(1/25)"+"</font>";

msg[616]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(1) 受付開始</a>  "+"<font class="+"new"+">"+"(6/16)"+"</font>";
msg[623]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(1) 受付終了</a>  "+"<font class="+"new"+">"+"(6/23)"+"</font>";
msg[908]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_02.html"+" target="+"_blank"+">"+"本と手講座(2) 受付開始</a>  "+"<font class="+"new"+">"+"(9/8)"+"</font>";
msg[108]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_02.html"+" target="+"_blank"+">"+"本と手講座(2) 受付終了</a>  "+"<font class="+"new"+">"+"(10/8)"+"</font>";
msg[106]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_03.html"+" target="+"_blank"+">"+"本と手講座(3) 受付開始</a>  "+"<font class="+"new"+">"+"(10/6)"+"</font>";
msg[115]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_03.html"+" target="+"_blank"+">"+"本と手講座(3) HP受付終了</a>  "+"<font class="+"new"+">"+"(11/4)"+"</font>";
msg[1026]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(4) 受付開始</a>  "+"<font class="+"new"+">"+"(10/26)"+"</font>";
msg[111]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(4) 受付終了</a>  "+"<font class="+"new"+">"+"(11/2)"+"</font>";
msg[1221]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(5) 受付開始</a>  "+"<font class="+"new"+">"+"(12/21)"+"</font>";
msg[15]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(5) 受付終了</a>  "+"<font class="+"new"+">"+"(1/5)"+"</font>";

msg[0]  = "";

msg[1]  = 
"<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(2/4)"+"</font>"+
"<li><a href"+"="+"voice.html"+">"+"スタッフボイス 更新</a>  "+"<font class="+"new"+">"+"(2/1)"+"</font>"+
"<li><a href"+"="+"ohanashi.html"+">"+"おはなし会日誌 更新</a>  "+"<font class="+"new"+">"+"(1/30)"+"</font>"+
"<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(1/28)"+"</font>"+
"<li><a href"+"="+"yom/201201/yom.html"+">"+"よむよむ 更新</a>  "+"<font class="+"new"+">"+"(1/25)"+"</font>"+
"<li><a href"+"="+"ohanashi.html"+">"+"おはなし会日誌 更新</a>  "+"<font class="+"new"+">"+"(1/23)"+"</font>"+
"<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(5) 受付終了</a>  "+"<font class="+"new"+">"+"(1/20)"+"</font>"+
"<li><a href"+"="+"yotei_02.html"+">"+"来月の予定を公開</a>  "+"<font class="+"new"+">"+"(1/20)"+"</font>"+
"<li><a href"+"="+"ohanashi.html"+">"+"おはなし会日誌 更新</a>  "+"<font class="+"new"+">"+"(1/16)"+"</font>"+
"<li><a href"+"="+"ohanashi.html"+">"+"おはなし会日誌 更新</a>  "+"<font class="+"new"+">"+"(1/14)"+"</font>"+
"<li><a href"+"="+"yotei_01.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(1/14)"+"</font>"+
"<li><a href"+"="+"ohanashi.html"+">"+"おはなし会日誌 更新</a>  "+"<font class="+"new"+">"+"(1/12)"+"</font>"+
"<li><a href"+"="+"yotei_01.html#pc"+">"+"パソコンで遊ぼう! 受付開始</a>  "+"<font class="+"new"+">"+"(1/7)"+"</font>";


switch (m){
// 本と手の開始終了に気をつけること


	case 1:

	case 2:
	 if(d >=31) {
	 document.write(msg[1]);
	 }
	 else if(d >=25) {
	 document.write(msg[225]+msg[226]+msg[1]);
	 }
	 else if(d >=11) {
	 document.write(msg[218]+msg[1]);
	 }
	 else if(d >=4) {
	 document.write(msg[1]);
	 }
	 else if(d >=1) {
	 document.write(msg[1]);
	 }
	break;
}
}




// 募集中
function btxt01(){

msg[1]  = "<li><a href"+"="+"http://www.piccoli.jp/event/vo/index.html"+" target="+"_blank"+">"+"ボランティア説明会</a>";
msg[2]  = "<li><a href"+"="+"yotei_03.html#event"+">"+"工作会ワークショップ 3/14（日）</a>";
msg[3]  = "<li><a href"+"="+"http://www.piccoli.jp/event/spring11/index.html"+" target="+"_blank"+">"+"春のわくわくおたのしみ会  4/29（祝）</a>";
msg[4]  = "<li><a href"+"="+"http://www.piccoli.jp/event/xmas11/index.html"+" target="+"_blank"+">"+"冬のクリスマスおたのしみ会  12/10（土）</a>";
msg[5]  = "<li><a href"+"="+"http://www.piccoli.jp/event/sotsuten10/data.jpg"+" target="+"_blank"+">"+"そつぎょうせいさくてんをみにいこう!!  3/6（日）</a>";

msg[10]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう！  2/4（土）</a>";
msg[11]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう！  2/11（土）</a>";
msg[12]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう！  2/18（土）</a>";
msg[16]  = "<li><a href"+"="+"yotei_02.html#pc"+">"+"パソコンで遊ぼう！  2/25（土）</a>";
msg[13]  = "<li><a href"+"="+"yotei_01.html#pc"+">"+"パソコンで遊ぼう！  1/7（土）</a>";
msg[14]  = "<li><a href"+"="+"yotei_01.html#pc"+">"+"パソコンで遊ぼう！  1/14（土）</a>";
msg[15]  = "<li><a href"+"="+"yotei_01.html#pc"+">"+"パソコンで遊ぼう！  1/21（土）</a>";

msg[716]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(1)  7/16（土）</a>";
msg[108]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(2)  10/8（土）</a>";
msg[115]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(3)  11/5（土）</a>";
msg[1126]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(4)  11/26（土）</a>";
msg[128]  = "<li><a href"+"="+"http://www.piccoli.jp/event/hontote11/index.html"+" target="+"_blank"+">"+"本と手講座(5)  1/28（土）</a>";

msg[0]  = "";





switch (m){
// 本と手の開始終了に気をつけること
	
	case 1:
	 if(d >=28){
	 document.write(msg[10]);
	 }
	 else if(d >=21) {
	 document.write(msg[0]);
	 }
	 else if(d >=14) {
	 document.write(msg[15]);
	 }
	 else if(d >=7) {
	 document.write(msg[14]);
	 }
	 else if(d >=1) {
	 document.write(msg[13]);
	 }
	break;

	case 2:
	 if(d >=25){
	 document.write(msg[0]);
	 }
	 else if(d >=18) {
	 document.write(msg[16]);
	 }
	 else if(d >=11) {
	 document.write(msg[12]);
	 }
	 else if(d >=4) {
	 document.write(msg[11]);
	 }
	 else if(d >=1) {
	 document.write(msg[10]);
	 }
	break;
}
}
