// Lembrar de sempre especificar o que cada comando vai fazer
// e sempre usar da identeção pra pemitir uma melhor leitura
// do futuro desenvolvedor

$(document).ready(function() {
		// DESTAQUE
		$(".imagem-destaque").cycle({
			'before':  onBefore,
			timeout: 5000, 
			'prev': ".prev",
			'next': ".next"

		});
	
	
		function onBefore(){
			$(".selecionada").each(function () {
		          $(this).removeClass("selecionada");
		    });

			$("#destaque_"+this.id).addClass("selecionada");
		} 
		
		// formulario
	
		$('input, textarea').focus(function() {
			value=$(this).val();
			$(this).attr("value","");
		});
		$('input, textarea').blur(function() {
			if($(this).val()=="") {
				$(this).val(value);
			}
		});
});
