function showLabsFeed( data ){
	try{
		blog_str = "<ul class='rlist'>";
		$(data).find("item").each(function (i) {
			if(i>=4) {
				return false;
			}
			title = $(this).find("title").text();
			itemlink = $(this).find("link").text();
			if( title.length > 40 ) {
				title = title.substr(0, 35) + "...";
			}
			blog_str += "<li><a href='" + itemlink + "' target='_blank'>";
			blog_str += "<h4>" + title + "</h4>";

			descriptiontxt = $(this).find("description").text();
			if( descriptiontxt.length > 58 ) {
				descriptiontxt = descriptiontxt.substr(0, 55) + "...";
			}

			itemdate = $(this).find("pubDate").text();
			itemdate = itemdate.substr(5, 11);

			blog_str += "<p>";
			blog_str += descriptiontxt;
			blog_str += itemdate;
			blog_str += "</p>";

			blog_str += "</a></li>";
		});
		blog_str += "</ul>";
	}
	catch(ex){}
	$(blog_str).appendTo("#news");
	$('#loaderWait').remove();
};

$(function() {
	$.ajax({
		url: "http://www.conit.co.jp/conitlabs/?feed=rss2",
		type:"GET",
		cache: false,
		dataType: "xml",
		success: function(data){showLabsFeed(data)}
	});
});



