
getTwitters('tweet', { id: 'moritarou_jp', count: 1, enableLinks: false, ignoreReplies: false, clearContents: true, template: '<a href="http://twitter.com/moritarou_jp">%text%</a>'});

// 日数を変更する場合はこの値を適当に
kikan = 7;

// 適宜、サイズやalt属性を指定
if( location.hostname == "sv78.wadax.ne.jp")
{
	icon = "<img src='https://sv78.wadax.ne.jp/~morinooto-jp/img/all_icon02.gif' alt='NEW' class='newIcon' />";
}else{
	icon = "<img src='http://morinooto.jp/img/all_icon02.gif' alt='NEW' class='newIcon' />";
}

today = new Date();
upday = new Date();

// .dateすべてで実行
$(document).ready(function(){
						   
	$(".date").each(function(){	
			
		// 時間の取得
		var entryTime = $(this).html();
		var times = entryTime.split("."); 
		
		//alert(entryTime);
		//alert( times[0] +", "+ times[1] +", "+ times[2]);
		
		var y = times[0] - 0;
		var m = times[1] - 0;
		var d = times[2] - 0;
		
		//alert( y +", "+ m +", "+ d);
		
		upday.setFullYear(y);
		m = m - 1;
		upday.setMonth(m);
		upday.setDate(d);
		difference = today.getTime() - upday.getTime();
		difference = Math.floor(difference / (1000 * 60 * 60 * 24));
		
		if (difference < kikan) {
			$(this).append(icon);
		}
		
	});
	
});
