﻿dt2 = new Date();
function TypePadJsonCallback(data) {
  document.write("<div id='blog'><div id='title'><a href='" + data.link +"'>" + data.title + "</a></div><div id='cont'>");
  for ( var i=0, entry  ; entry = data.entry[i] ; i++){
	var Year1 = entry.published.substr(0,4);
	var Month1 = entry.published.substr(5,2);
	var Day1 = entry.published.substr(8,2);
	var dt1 = new Date(Year1,Month1 -1,Day1);
	document.write("<h4><a href='" + entry.link + "'>");
		if(dt1.getTime() > (dt2.getTime() - 10*24*3600*1000)){ 
			document.write("<img src='http://www.well-place.com/new_09.gif' border='0' /> ");
		} else{
			document.write("<img src='http://www.well-place.com/no.gif' border='0' /> ");
		}
	document.write(entry.published.substr(5,2) + "月" + entry.published.substr(8,2) + "日 :  "
      + entry.title + "</a></h4><p class='sum'>" + entry.summary 
      + "</p>");
	if(i==2)break;
  }
	document.write("</div></div>");
}

