function ajax_send_contact_form(form)
{        
  $.ajax({
    type: "POST",
    url: 'ajax_contact_form.php',
    data: {
      'name': $('input[name=name]').val(),
      'tel': $('input[name=tel]').val(),
      'email': $('input[name=email]').val(),
      'text': $('textarea[name=text]').val(),
      'captcha': $('input[name=captcha]').val(),
      'sended_contact': $('input[name=sended_contact]').val()
    },
    success: function(msg) {
    
      var old_article_width = $('#content_top #article').width();
      var old_article_height = $('#content_top #article .article_shifter').height();
      
      // NOTE: skontroluj ci je v kazdom clanku definovany article_shifter
      $('#content_top #article .article_shifter').css('opacity','1.0').animate({'opacity':'0.0'}, 400, function() {
                  
        $('#article .article_text').html(msg); 
        
        var new_article_width = $('#content_top #article').width();
        var new_article_height = $('#content_top #article').height();      

        if ($('#content_top #article .article_shifter').height() > new_article_height)
          new_article_height = $('#content_top #article .article_shifter').height();                  
        
        $('#content_top #article').css({'width':old_article_width, 'height':old_article_height});
        $('#content_top .article_shifter').css('opacity','0.0');  
        
        $('#content_top #article')
          .animate({'width': new_article_width + 'px', 'height': new_article_height + 'px'}, 400, function() {           
        
            $('#content_top #article .article_shifter').animate({'opacity':'1.0'}, 400);
              
          });
          
              
      });
    
    } 
    });  
}
