jQuery.fn.toggleText = function(a,b) {
return   this.html(this.html().replace(new RegExp("("+a+"|"+b+")"),function(x){return(x==a)?b:a;}));
}

$(document).ready(function(){
	$('.esconde-flash-div').before('<span>Ocultar animação</span>');
	$('.esconde-flash-div').css('display', 'block')
	$('span', '#esconde-flash').click(function() {
		$(this).next().slideToggle('slow')
		.siblings('.esconde-flash-div:visible').slideToggle('fast');
	
		$(this).toggleText('Ocultar animação','')
		.siblings('span').next('.esconde-flash-div:visible').prev()
		.toggleText('Revelar','Esconder')
	});
})
