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