  // Copyright    : H.Yamashita
  // URL          : http://www2s.biglobe.ne.jp/~Hiro/
  // Notice       : いわゆるフリー素材です。但し、営利目的以外で使用してください。
  //-->
  <!-- JavaScript
	//
	// monthly_graphics () : 季節によって違う画像を表示
	// Version 0.01		1997. 9.19.
	//
	///////////////////////////////////////////
	// ※ユーザー設定箇所は 1 箇所あります。 //
	///////////////////////////////////////////
	function monthly_graphics () {
		//
		// 日時情報取得
		//
		var	date	= new Date();
		var	month	= date.getMonth();

		var	graphic_dat	= new Array(12);
		var	graphic_width	= new Array(12);
		var	graphic_height	= new Array(12);
		//////////////////////////////////////////////////////////
		// ***** ここからユーザーの設定箇所 (1) *****
		//
		// １． 画像ファイル設定
		//      季節ごとの画像ファイルを月ごとに設定します。
		//          graphic_dat[?]	: 画像ファイル名
		//          graphic_width[?]	: 画像の幅   (単位 : dot)
		//          graphic_height[?]	: 画像の高さ (単位 : dot)
		//      をそれぞれ記入します。
		//      [?] の ? には月から１引いた値、 0 〜 11 
		//      が入ります。例えば２月のデータを設定するなら、
		//      graphic_dat[1] に画像ファイルを指定します。
		//
		// 1 月
		graphic_dat[0]		= "img/img-top.png";
		graphic_width[0]	= "800";
		graphic_height[0]	= "150";
		// 2 月
		graphic_dat[1]		= "img/img-top.png";
		graphic_width[1]	= "800";
		graphic_height[1]	= "150";
		// 3 月
		graphic_dat[2]		= "img/img-top-spling.png";
		graphic_width[2]	= "800";
		graphic_height[2]	= "150";
		// 4 月
		graphic_dat[3]		= "img/img-top-spling.png";
		graphic_width[3]	= "800";
		graphic_height[3]	= "150";
		// 5 月
		graphic_dat[4]		= "img/img-top-spling.png";
		graphic_width[4]	= "800";
		graphic_height[4]	= "150";
		// 6 月
		graphic_dat[5]		= "img/img-top-ss.png";
		graphic_width[5]	= "800"
		graphic_height[5]	= "150";
		// 7 月
		graphic_dat[6]		= "img/img-top-summer.png";
		graphic_width[6]	= "800";
		graphic_height[6]	= "150";
		// 8 月
		graphic_dat[7]		= "img/img-top-summer.png";
		graphic_width[7]	= "800";
		graphic_height[7]	= "150";
		// 9 月
		graphic_dat[8]		= "img/img-top-autum.png";
		graphic_width[8]	= "800";
		graphic_height[8]	= "150";
		// 10 月
		graphic_dat[9]		= "img/img-top-autum.png";
		graphic_width[9]	= "800";
		graphic_height[9]	= "150";
		// 11 月
		graphic_dat[10]		= "img/img-top-winter.png";
		graphic_width[10]	= "800";
		graphic_height[10]	= "150";
		// 12 月
		graphic_dat[11]		= "img/img-top-winter.png";
		graphic_width[11]	= "800";
		graphic_height[11]	= "150";
		//
		// ***** ここまでユーザーの設定箇所 (1) *****
		//////////////////////////////////////////////////////////

		//
		// 描画処理
		//
		if ((graphic_width[month] == "") || (graphic_height[month] == "")) {
			document.write('<IMG SRC="' + graphic_dat[month] + '">');
		}
		else if (graphic_dat[month] != "") {
			document.write('<IMG SRC="' + graphic_dat[month] + '" WIDTH=' + graphic_width[month] + " HEIGHT=" + graphic_height[month] + ">");
		}
	}
//JSON feedでブログの最新をHPに掲載する
//ここから
function MovableTypeJsonCallback(data) {
  
    var content = document.getElementById("matome");
  
    var mydiv  = document.createElement("div");
    mydiv.setAttribute("class", "section updates");
    var title = document.createElement("h3");
    title.innerHTML = data.title;
    mydiv.appendChild(title);
  
    for ( var i=0, entry  ; entry = data.entry[i]; i++){
      var myli  = document.createElement("div");
      myli.innerHTML = "<h4><a href='" + entry.link + "'>"
        + entry.published.substr(5,2) + " / " + entry.published.substr(8,2) + " :  "
　     + entry.title + "</a></h4><p>"
	// + entry.summary 
//        + "　<a href='" + entry.link + "'>" + "詳しく読む" + "</a>"
        + "</p>";
      mydiv.appendChild(myli);
    }
    content.appendChild(mydiv);
  }
//ここまで
