jQuery(function($) {
  // Definir a opacidade no carregamento da página
  $(".imagem a").css("opacity","1");
  $(".imagem").parent().hover(function () {
    // animar a opacidade a plena
    $(this).children('.imagem').stop().animate({opacity: 0.5}, 'slow');
    // Se tiver uma div.selo_oferta, anima
    if ($(this).children('.selo_oferta').length > 0) {
      $(this).children('.selo_oferta').slideUp('fast');
    }
  },
  function () {
    // animar a opacidade
    $(this).children('.imagem').stop().animate({opacity: 1}, 'slow');
    
    if ($(this).children('.selo_oferta').length > 0) {
      $(this).children('.selo_oferta').slideDown('fast');
    }
  });
});

