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

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

date = new Date();


		msg_b[100]  = "<a href"+"="+"http://www.piccoli.jp/event/vo/index.html  target=_blank"+ ">";
		msg_b[101]  = 	"<img src=img/top/banner/top_11.gif"+" width="+"550"+" height="+"72"+">";
		
		msg_b[200]  = "<a href"+"="+"http://www.piccoli.jp/event/spring10/index.html  target=_blank"+ ">";
		msg_b[201]  = 	"<img src=img/top/banner/top_04.gif"+" width="+"550"+" height="+"72"+">";
		
		msg_b[300]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote09/index.html  target=_blank"+ ">";
		msg_b[301]  = 	"<img src=img/top/banner/top_06.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[400]  = "<a href"+"="+"http://www.piccoli.jp/yotei_08.html#event"+ ">";
		msg_b[401]  = 	"<img src=img/top/banner/top_07.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[500]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote09/ko04/index.html  target=_blank"+ ">";
		msg_b[501]  = 	"<img src=img/top/banner/top_08.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[600]  = "<a href"+"="+"http://www.piccoli.jp/event/xmas09/index.html  target=_blank"+ ">";
		msg_b[601]  = 	"<img src=img/top/banner/top_09.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[700]  = "<a href"+"="+"http://www.piccoli.jp/event/kosakuws09/index.html  target=_blank"+ ">";
		msg_b[701]  = 	"<img src=img/top/banner/top_10.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[800]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote10/index.html  target=_blank"+ ">";
		msg_b[801]  = 	"<img src=img/top/banner/top_12.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[0]  = 	"<img src=img/top/banner/normal.gif"+" width="+"550"+" height="+"151"+">";


function banner(){		

	if(y==2011&&m<2){document.write(msg_b[800] + msg_b[801]+"</a>");};
	if(y==2010&&m>=7){document.write(msg_b[800] + msg_b[801]+"</a>");};

	switch (m){		

		case 6:
		if(d>=12){
		document.write(msg_b[800] + msg_b[801]+"</a>");
		}
		else{
		document.write(msg_b[0]);
		}
		break;
	}
}
