jQuery.fn.changeProd = function(options) {
   var settings = jQuery.extend({
     typRada: ""
   }, options);
//pri zmene radio buttonu 
    $(this).click(function() {
      $("#product1").ajaxSend(function(evt, request, settings){
        $(this).html("<img style='padding: 20px 0 0 20px' img src='img/ajax-loader.gif' alt='' />");
        $("#product2").html("");
      });
      $.ajax({  
        type: "GET",  
        url: "upresnitProdukty.php",  
        data: "typ="+$(this).val()+"&rada="+options.typRada, 
        dataType: "json",
        success: function(data){  
          var obj = data;
          $("#right-podstranka>h2").text(obj.nadpis);
          $(".products").each(function(){
            $(this).html("");
          });
          $("#product1").html(obj.vysl);
          $("#product2").html(obj.vysl2);
          
          $(".products>a").each(function(){
            $(this).hover(function(){
              var textOriginal = $(this).text();
              var text = textOriginal.replace(/ |\//g,"_");
              text = text.toLowerCase();
              $("#productsImg").html("<img src='upload/products/thumbs/"+text+".jpg' alt='' /><br />"+textOriginal);
            });
          });

        } //end success
      }); //end ajax
    });   
   
};