jQuery(document).ready(function(a){function e(b,c,d){a(c).removeClass("icon success");a(c).addClass("icon error");a(c).parents("li").find(".msg-error").text(b);void 0!==d&&!0==d&&a(c).css({position:"relative"}).animate({left:-10},100).animate({left:10},100).animate({left:-5},100).animate({left:5},100).animate({left:0},100)}function f(b){a(b).parents("li").find(".msg-error").text("");a(b).removeClass("icon error");a(b).addClass("icon success")}a(".contact-form .required").blur(function(){var b=a(this).attr("name").match(/(.*)\[(.*)\]/),
c=a(this).parents(".contact-form").find('input[name="id_form"]').val();jQuery.globalEval("var msg = messages_form_"+c+"."+b[2]);""==a(this).val()?e(msg,this):f(this)});a(".contact-form .email-validate").blur(function(){var b=/^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/,c=a(this).attr("name").match(/(.*)\[(.*)\]/),d=a(this).parents(".contact-form").find('input[name="id_form"]').val();jQuery.globalEval("var msg = messages_form_"+d+"."+c[2]);""!=a(this).val()&&!b.test(a(this).val())||
a(this).is(".required")&&""==a(this).val()?e(msg,this):f(this)});a(".contact-form").submit(function(){a(".contact-form input:submit").val("{wait}".replace("{wait}",objectL10n.wait)).attr("disabled",!0)})});