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_05.gif"+" width="+"550"+" height="+"72"+">";
		
		msg_b[200]  = "<a href"+"="+"http://www.piccoli.jp/event/spring11/index.html  target=_blank"+ ">";
		msg_b[201]  = 	"<img src=img/top/banner/top_04.gif"+" width="+"550"+" height="+"72"+">";


		msg_b[600]  = "<a href"+"="+"http://www.piccoli.jp/event/xmas11/index.html  target=_blank"+ ">";
		msg_b[601]  = 	"<img src=img/top/banner/top_20.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/hontote11/index.html  target=_blank"+ ">";
		msg_b[801]  = 	"<img src=img/top/banner/top_16.jpg"+" width="+"551"+" height="+"73"+">";
		
		msg_b[900]  = "<a href"+"="+"http://www.piccoli.jp/event/sotsuten10/data.jpg  target=_blank"+ ">";
		msg_b[901]  = 	"<img src=img/top/banner/top_15.gif"+" width="+"550"+" height="+"72"+">";

		msg_b[300]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_02.html  target=_blank"+ ">";
		msg_b[301]  = 	"<img src=img/top/banner/top_18.jpg"+" width="+"550"+" height="+"72"+">";

		msg_b[90]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_03.html  target=_blank"+ ">";
		msg_b[91]  = 	"<img src=img/top/banner/ko03.jpg"+" width="+"275"+" height="+"71"+">";
		
		msg_b[400]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_02.html  target=_blank"+ ">";
		msg_b[401]  = 	"<img src=img/top/banner/ko02.jpg"+" width="+"275"+" height="+"71"+">";

		msg_b[500]  = "<a href"+"="+"http://www.piccoli.jp/event/hontote11/sche_03.html  target=_blank"+ ">";
		msg_b[501]  =	"<img src=img/top/banner/top_19.jpg"+" width="+"550"+" height="+"72"+">";

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


function banner(){		

	if(y==2012&&m>=2){document.write(msg_b[0]);};

	switch (m){		

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

	}
}

