var RSSbox = {
	init:function() {
		$('#more_rss').click(function(e){
			e.preventDefault();
			if($(this).text()== 'More'){
				$('#rss').hide('slow');
				$('#rss_more').show('slow');
				//$(this).fadeTo('fast', 0.33);
				$(this).text('Back');
				$(this).removeClass('view_all');
                $(this).addClass('next_page');

			} else {
				$('#rss').show('slow');
				$('#rss_more').hide('slow');
				//$(this).fadeTo('fast', 0.33);
				$(this).text('More');
				$(this).removeClass('next_page');
                $(this).addClass('view_all');

			}
			
		});
	}
}
$(document).ready(function () {
	
	RSSbox.init();
	
	$(".author_name").each(function(){
		if($(this).text()=="(author unknown),"){
			$(this).css('display','none');
		}
	
	});	
	
	$('.rss_date').each(function(){
		var date = $(this).text();
		var newDate = date.slice(5,7) + "." + date.slice(8,10) + "." + date.slice(0,4);
		$(this).text(newDate);
	
	});
});

