function limitString(limit, text)
{
	var words;
	if (text.length <= limit)
	{
		return text;
	}
	
	text = text.substr(0, limit);
	
	words = text.split(' ');
	words.pop();
	text = words.join(' ');
	return text + '...';
}
function lastBlogEntry(root) {
	var feed = root.feed;
	var entries = feed.entry || [];
	var entry = entries[0];
	var title = entry.title.$t;
	
	$('#blogtitle').text(limitString(35, title));
}
