$(document).ready(function() {
  $('.header_center p a.dotted.orange.call').click(function() {
    $('#call-form-container').load($('#call-submit-url').text(), function (self) { return function() {
      showCallLayer($('#call-layer'));
      $('#call-layer').css('top', $(self).offset().top);
      bindCallForm();
    }}(this));
    return false;
  });

  bindCallForm = function() {
//    bindCaptchaItems();
//    updateFaqSubject();
//    $("#faq_subject_choice").change(updateFaqSubject);

    $('#call-form').submit(function() {
      $('#call-loader').show();
      $.post($(this).attr('action'), $(this).serialize(), function(data) {
        $('#call-form-container').html(data);
        $('#call-loader').hide();
        bindCallForm();
      });
      return false;
    });
  };


});

