// JavaScript Document
 function mostra_rotazione_foto(){
                                   
                                   if(numero_rotazion>(photos.length-1))
                                    {numero_photo=numero_rotazion%photos.length; }
                                    else
                                     { numero_photo=numero_rotazion; } 
                        $("#rotazione_img").html("<img id='photo_rotazione' style='opacity:0.1;' width='180' src='disegni/"+photos[numero_photo]+"'/>");
                        $("#photo_rotazione").fadeTo(700, 1);
                                   
                                  numero_rotazion++; 
                                   
                                   
                                   } 

  function mostra_img(src_img,id_tag){ 
         $("#"+id_tag).html("<img id='img_"+id_tag+"'  width='270' src='"+src_img+"'/>");
              
                       } 
   function mostra_profilo(profilo,pag){ 
                                        if(pag=="undefined")
                                              pag=1;
                                         $("#profilo").hide("slow");
                                         $.post("profilo_medico.php",{pag:pag,nome_profilo:profilo},function (dati,stati){
                                           $("#profilo_content").html(dati);
                                                       }); 
                                         
                                         $("#profilo").show("slow");
                            }  
     function post_prenotazione(){ 
                             
                                 var nome=$("#nome").attr("value"); 
                                 var cognome=$("#cognome").attr("value"); 
                                 var email=$("#email").attr("value");
                                 var tel=$("#tel").attr("value");  
                                 var mess=$("#messaggio").attr("value");
                                
                                   $.post(url_send_mess,{nome:nome,cognome:cognome,tel:tel,messaggio:mess,email:email},function (data,stato){ 
                                                            $("#risposta_server_email").html(data);
                                                                          
                                                    });
                                     }   
       function news_add(){
                             
                                    
                                    
                                   $.post("comunicazioni.php",{},function (data,stato){ 
                                                            $("<li>"+data+"</li>").appendTo("#comunicazioni");
                                                                          
                                                    }); 
                            } 
         
        function inserisci_nl_email()
                           {
                             
                            var nl_em=$("#nl_email_input").val();      
                                  $.post("nl_em_inserimento.php",{nl_em:nl_em},function (data,stato){ 
                                                     $("#resp_nl_email_input").html(data);     
                                                                          
                                                    });    
                                  
                            }             
