$(function() {
	$('input[type=text], input[type=password]').css({'border':'1px solid #cecece',
													 'width':'300px'});
													 
	 $("#contact_frm").validate({
		 invalidHandler: function(form, validator) {
				var errors = validator.numberOfInvalids();
				if (errors) {
					$("div#error_container").show();
				} else {
					$("div#error_container").hide();
				}
			},
			onfocusout: false,
			onkeyup: false,
			onclick:false,
			meta: "validate",
			errorPlacement: function(error, element) {
				error.appendTo($("div#error_container"));
			}
	 });
	 
	if($('#recaptcha_div').size() > 0) {
		Recaptcha.create($('#recaptcha_code').val(),
		"recaptcha_div", {
			 theme: "custom"
		});
	}
	 

});
