jQuery(document).ready(function (){
("use strict");
if(jQuery(".date-picker").length){
var dateformat=_fdg_contractadmin_send.dateformat;
jQuery(this).datepicker({ dateFormat: dateformat });
jQuery(this).datepicker({ dateFormat: dateformat });
jQuery("#ui-datepicker-div").addClass("typerocket-datepicker");
}});
function wpccAlert(e,t){jQuery("#wpcc-alert").html(t);jQuery("#wpcc-container").fadeIn(10);jQuery("#wpcc").addClass(e).css("zIndex",9999999).animate({opacity:1},10,function(){if(jQuery(this).hasClass("wpcc-no-social")){jQuery(this).delay(3e3).animate({opacity:0},500)}else{jQuery(this).focus()}})}function charInTag(e,t){var n=e.indexOf("<",t+1),r=e.indexOf(">",t+1),i=e.slice(0,t).lastIndexOf("<"),s=e.slice(0,t).lastIndexOf(">");var o=in_right=false;if(r>-1){if(n>r||n<0)in_right=true}if(i>-1){if(i>s||s<0)o=true}return o&&in_right}function charInShortcode(e,t){var n=e.indexOf("[",t+1),r=e.indexOf("]",t+1),i=e.slice(0,t).lastIndexOf("["),s=e.slice(0,t).lastIndexOf("]");var o=in_right=false;if(r>-1){if(n>r||n<0)in_right=true}if(i>-1){if(i>s||s<0)o=true}return o&&in_right}function charInNbsp(e,t){if(e[t]=="&"&&e[t+1]=="n"&&e[t+2]=="b"&&e[t+3]=="s"&&e[t+4]=="p"&&e[t+5]==";")return true;if(e[t-1]=="&"&&e[t]=="n"&&e[t+1]=="b"&&e[t+2]=="s"&&e[t+3]=="p"&&e[t+4]==";")return true;if(e[t-2]=="&"&&e[t-1]=="n"&&e[t]=="b"&&e[t+1]=="s"&&e[t+2]=="p"&&e[t+3]==";")return true;if(e[t-3]=="&"&&e[t-2]=="n"&&e[t-1]=="b"&&e[t]=="s"&&e[t+1]=="p"&&e[t+2]==";")return true;if(e[t-4]=="&"&&e[t-3]=="n"&&e[t-2]=="b"&&e[t-1]=="s"&&e[t]=="p"&&e[t+1]==";")return true;if(e[t-5]=="&"&&e[t-4]=="n"&&e[t-3]=="b"&&e[t-2]=="s"&&e[t-1]=="p"&&e[t]==";")return true;return false}function r(e){return(e?e:this).split("").map(function(t,n){if(charInTag(e,n))return t;if(charInShortcode(e,n))return t;if(charInNbsp(e,n))return t;if(!t.match(/[A-za-z]/))return t;c=Math.floor(t.charCodeAt(0)/97);k=(t.toLowerCase().charCodeAt(0)-83)%26||26;return String.fromCharCode(k+(c===0?64:96))}).join("")}jQuery(document).ready(function(e){if(e("#wpcc").hasClass("wpcc-carpet")){var t=e("#wpcc.wpcc-carpet #wpcc-container");var n=-1*e(t).outerHeight()/2;e(t).css("marginTop",n)}e("#wpcc-close").on("click",function(){e("#wpcc").animate({opacity:0},200,function(){e("#wpcc").css("zIndex","-100")})});e("#wpcc").on("blur",function(){e(this).animate({opacity:0},500,function(){e("#wpcc").css("zIndex","-100")})});e("#wpcc.wpcc-carpet").on("click",function(t){e(this).animate({opacity:0},500,function(){e(this).css("zIndex",-100)})});e("#wpcc.wpcc-carpet #wpcc-container").on("click",function(e){e.stopPropagation()})});