var ps;
var size;
var count = 0;

$(document).ready(function()
{
	$("#newsbox-crawler p").hide();
	ps = $('#newsbox-crawler').children(":first");
	count = 1;
	size = $('#newsbox-crawler').children().size();
	ps.fadeIn('fast');
	setTimeout('afiseaza_p()', 5000);
});

function afiseaza_p() 
{
	ps.fadeOut('fast');
	if ( count == size ) {
		count = 1;
		ps = $('#newsbox-crawler').children(":first");
	} else {
		count++;
		ps = ps.next();
	}
	setTimeout('waiting()', 300);
}
function waiting()
{
	ps.fadeIn('fast');	
	setTimeout('afiseaza_p()', 5000);
}
