$(document).ready(function(){
	// 最新記事取得リクエスト
	$.ajax({
		url     : 'get_top_rss.php',
		timeout : 60000,
		dataType: 'json',
		success : function(response, textStatus){
			OutputOneBlog(response);
		}
	});
});

/***
* 最新記事表示
***/
function OutputOneBlog(data)
{
	$.each(data, function(key){
		var $area = $('dl#' + key);
		if($area.size() > 0){
			for(var i = 0, len = this.length; i < len; i++){
				$('<dt><a href="' + this[i].link + '" target="_blank">' + this[i].title + '</a></dt><dd><a href="' + this[i].link + '" target="_blank">' + this[i].description + '</a></dd>').appendTo($area);
			}
		}
	});
}

