jQuery(document).ready(function(){
      
      $('#alfabet a').mouseover(function(e){  
          var $window=jQuery(window);
          
          var ajax = (window.XMLHttpRequest ? new XMLHttpRequest() : (window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false));
          if(!ajax){
            alert("Tak tady to nepoběží!");
            return true;
          }
          
          // ----- tady byla chyba.... nemel jsi tady this ale #alfabet a - taktze jsi nenacetl ten prvek ktery vyvolal mouseover ale libovolny prvni a v #alphabet
          
          var title = $(this).attr("id");
          
          
          
          ajax.onreadystatechange= function () {zpracuj(ajax); } ;
            ajax.open("POST", "js/zakaznici.php", true);
            ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            ajax.send("pismeno="+title);
          
          return false
      });

            
      
      function zpracuj(ajax){
        var txt;
        if (ajax.readyState == 4){ //bylo odpovězeno
          if (ajax.status == 200 || ajax.status==0){
            txt=ajax.responseText;
            document.getElementById('popup').innerHTML = txt;
            $('#popup').show(100);
          }
            else alert("Chyba: "+ ajax.status +":"+ ajax.statusText);
        }
      }

      
})

