fncIniciaNoticias = function() {

	var varNoticiasRSS = $("#noticias-rss");

	varNoticiasRSS.children().filter("dt").each(function() {
		var dt = $(this);
		varMoldura = $("<div>");
		dt.next().appendTo(varMoldura);
		dt.prependTo(varMoldura);
		varMoldura.appendTo(varNoticiasRSS);
	});

	varNoticiasRSS.css("overflow", "hidden");

	fncAnimacao(varNoticiasRSS.children(":first"));

	varNoticiasRSS.mouseenter(function() {
		varNoticiasRSS.children().stop();
	});

	varNoticiasRSS.mouseleave(function() {
		fncAnimacao(varNoticiasRSS.children(":first"));
	});
};

function fncAnimacao(varItemSeleccionado) {
	var varDistancia = varItemSeleccionado.height();
	varDuracao = (varDistancia + parseInt(varItemSeleccionado.css("marginTop"))) * 50;

	varItemSeleccionado.animate({ marginTop: -varDistancia }, varDuracao, "linear", function() {
		varItemSeleccionado.appendTo(varItemSeleccionado.parent()).css("marginTop", 0);
		fncAnimacao(varItemSeleccionado.parent().children(":first"));
	});
};
