//var blog_xmlerror = function(xhr, status, err) {
//	$('#blog-list').text(status);
//}
//var blog_xmlsucceed = function(data, status, xhr) {
	var items = $('#blog-list li');
	var ht = [];
	items.each(function(i,el) {
		if(i >= 4) return;
		var dt;
		if(/(\d+ hours? )?(\d+ mins? )?ago/.test($('span.date', this).text())) {
			var mm = /(?:(\d+) hours? )?(?:(\d+) mins? )?ago/.exec($('span.date', this).text());
			var hours = mm[1] || 0;
			var mins = mm[2] || 0;
			var ms = (hours * 60 + mins * 1) * 60 * 1000;
			var dt = new Date();
			dt.setTime(dt.getTime() - ms);
		} else {
			dt = new Date($('span.date', this).text().replace(/^(\d+)\-([a-zA-Z]+)-(\d+)$/, '$2 $1, $3'));
		}
/*		var m = dt.getMonth() + 1;
		var d = dt.getDate();
		var u = $('a', this).attr('href');
		var t = $('a', this).text();
		if(ht.length != 0) ht.push('<hr />');
		ht.push('<div class="bloglink" rel="',u,'"><div class="date">',m,'/',d,'</div>',t,'</a></div>');*/
		var mn = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
		var m = mn[dt.getMonth()];
		var d = dt.getDate();
		var u = $('a', this).attr('href');
		var t = $('a', this).text();
		if(ht.length != 0) ht.push('<hr />');
		ht.push('<div class="bloglink" rel="',u,'"><div class="date-block-green"><div class="month">',m,'</div><div class="day">',d,'</div></div>',t,'</a><div class="clear"></div></div>');
	});
	$('#blog-list').html(ht.join(''));
	$('#blog-list .bloglink').click(function() {window.location.href = $(this).attr('rel');});
	/*$('.bloglink').hover(
		function() {
			$(this).addClass('hover');//.css('background-color', '#fecc91').animate({'background-color' : 'white'}, 1000);
		},
		function() {
			$(this).removeClass('hover');//.stop().css('background-color', 'transparent');
		}
	).click(function() {
		window.open($(this).attr('rel'));
	});*/
//}
//$.ajax({'dataType' : 'html', 'url' : '/bloglist', 'success' : blog_xmlsucceed, 'error' : blog_xmlerror});
