  $(function(){
        if($("#formPesquisaFotos").length > 0){
            $("#formPesquisaFotos").submit(function(){
                 var result=$(this).serialize();
                 var action='/produtos_caracteristicas/ajax/getImagens.php';
                 var method=$(this).attr('method');
                 $.ajax({
                           type:method,
                           url:action,
                           data:result,
                           beforeSend: function( xhr ) {
                                startLoading();
                           },
                           success:function(res){
                                if($("#blocoImagensProdutos").length==0){
                                    $("#blocoMapa").append($('<div></div>').attr('id','blocoImagensProdutos'));
                                }
                                $("#blocoImagensProdutos").html(res);
                                $(".fotos_coluna .foto").hover(function(){
                                    $(this).find(".title_prod").stop(true, true).slideDown();
                                },function(){
                                    $(this).find(".title_prod").stop(true, true).slideUp();
                                });
                         },
                         complete:function(jqXHR, textStatus){
                            stopLoading();
                         }
                   });
                   return false;
            });
            $("#blocoImagensProdutos .paginacao").live('click',function(){
               var p=parseInt($(this).attr('href').split('?p=')[1]);               
               if(!isNaN(p)){
                    $("#formPesquisaFotos input[name=page]").val(p);
                    $("#formPesquisaFotos").submit();
               }
               return false;
            });

            /*$("#formPesquisaFotos input[type=checkbox]").click(function(){
                $("#formPesquisaFotos input[name=page]").val(1);
                $("#formPesquisaFotos").submit();
            });

            $("#formPesquisaFotos").submit();*/
        }
  });

