$(document).ready(function(){
         $('.fontPadrao a, .diminuirFont a, .aumentarFont a, .botaoBuscarEm input, .botaoVotar input, .botaoResultadoParcial input').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});

		$.criaBotaoFade = function(){
			$('input.botaoFade').each(function(){
				var el = $(this);
				var elId = "";
				var elRel = "";
				var elClasses = "";
				if(el.attr('id') != ""){
					elId = 'id="' + el.attr('id') + '"';
					el.removeAttr("id");
				}
				if(el.attr('rel') != ""){
					elRel = 'rel="' + el.attr('rel') + '"';
					el.removeAttr("rel");
				}
				for (var i = 1; i <= 4; i++){
					if(el.hasClass('t'+i)){
						elClasses = "t"+i;
						el.removeClass('t'+i);
					}
				}
				el.removeClass('botaoFade');
				el.wrap("<span " + elId + " " + elRel + "class='botaoFade " + elClasses + "'></span>");
				el.after("<span class='botaoFade'></span>");
			});
		}
		
		$.criaBotaoFade();
		
		$('.botaoFade input').hover(function(){
			$(this).siblings('.botaoFade').stop().animate({'opacity' : '0'}, 500);
		}, function(){
			$(this).siblings('.botaoFade').stop().animate({'opacity' : '1'}, 500);
		});
		 
});
