function showHideFooter(n,t){$(this).blur();$(".modal-controls").toggleClass("bounceInUp");$(".modal-controls").toggleClass("slideOutDown");setTimeout(function(){$(n).show();$(t).hide();$(".modal-controls").toggleClass("slideOutDown").toggleClass("bounceInUp")},200);n==".savecancel"?$(".second-bg").hide():$(".second-bg").show()}function mailingAddress(n){n==1&&($("#mailingaddress label input").show(),$("#mailingaddress label span.block").hide());n==0&&($("#mailingaddress label input").hide(),$("#mailingaddress label span.block").show())}function showSignAlert(){$("#signalert").show("fast").delay(7e3).fadeOut()}function showSubmitAlert(){$("#submitalert").show("fast").delay(5e3).fadeOut()}function insertLoader(){$("body").append('<div class="second-bg"><div class="item-loader-container"><div class="item-loader"><div class="item-loader-inner"><div class="item-loader-container"><div class="la-square-jelly-box la-2x"><div><\/div><div><\/div><\/div><\/div><\/div><div class="item-loader-title hide">Loading...<\/div><\/div><\/div><\/div>')}$(document).foundation({reveal:{close_on_background_click:!1,dismiss_modal_class:"close-modal",close_on_esc:!1}});$(document).on("open.fndtn.reveal","[data-reveal]",function(){$(document.body).addClass("modal-open")});$(document).on("close.fndtn.reveal","[data-reveal]",function(){$(document.body).removeClass("modal-open")});$(".hspass").length>0&&$(".hspass").showPassword({show:!1,innerToggle:"focus",toggle:{className:"my-toggle"}});$(document).on("focus","input[type=text],input[type=email],input[type=number], textarea",function(){$(".reveal-modal.open").addClass("focused")});$(document).on("blur","input[type=text],input[type=email],input[type=number], textarea",function(){$(".reveal-modal.open").removeClass("focused")});!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(n.jQuery,n)}(this,function(n,t){"use strict";var r,e,s=window,u=document,h=navigator.userAgent;/msie|trident/i.test(h)&&(e=h.match(/(?:msie |rv:)(\d+(\.\d+)?)/i),r=e&&e.length>1&&e[1]||"");var f=function(n,t,i){n[t+i]=function(t){i.call(n,t)};n.attachEvent("on"+t,n[t+i])},i=function(n,t,i){n.detachEvent("on"+t,n[t+i])},c=function(n,t){return s.getComputedStyle?s.getComputedStyle(n)[t]:n.currentStyle?n.currentStyle[t]:void 0},o=function(t,e){var h,y,p,l,w,b,a,o,v,s;return null==e?e={}:"function"==typeof e&&(e={onresizeheight:e}),h=t.value,t.value="",y=parseFloat(c(t,"paddingTop"))+parseFloat(c(t,"paddingBottom")),p=t.scrollHeight-(t.clientHeight-y),t.value=h,9>r&&(l=function(){t.scrollTop=0},f(t,"scroll",l),w=t.value,t.value="aa",t.value=w,u.execCommand("Undo"),u.execCommand("Undo"),u.execCommand("Undo"),u.execCommand("Undo")),a=!0,o=function(){var f,u;(t.value!==h||a)&&(h=t.value,f=t.style.height,t.style.height="",u=function(){var u=t.scrollHeight-p,r;e.maxHeight&&u>e.maxHeight?(t.style.height=e.maxHeight+"px",t.style.overflowY="auto",t.detachEvent&&i(t,"scroll",l)):t.style.height=u+"px";r=parseFloat(t.style.height);b!==r&&(b=r,n&&n.fn&&n(t).trigger("autoresize:height",r),e.onresizeheight&&e.onresizeheight.call(t,r))},9>r?(setTimeout(u,0),t.style.height=f):u())},t.addEventListener&&(!r||r>9)?t.addEventListener("input",o,!1):(v=function(n){"value"===n.propertyName&&o()},f(t,"propertychange",v),s=function(n){"focus"===n.type?f(u,"selectionchange",o):i(u,"selectionchange",o)},f(t,"focus",s),f(t,"blur",s),f(t,"keyup",o)),o(),a=!1,{reset:function(){t.style.height="";t.removeEventListener&&(!r||r>9)?t.removeEventListener("input",o,!1):(t.style.overflowY="",i(t,"propertychange",v),i(u,"selectionchange",o),i(t,"focus",s),i(t,"blur",s),i(t,"keyup",o),i(t,"scroll",l))}}};return n&&n.fn?n.fn.autoResize=function(t){var i=[];return this.each(function(n,r){i.push(o(r,t))}),{reset:function(){n.each(i,function(n,t){t.reset()})}}}:t&&(t.autoResize=o),o});
/*! jQuery Migrate v3.3.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window)}):"object"==typeof module&&module.exports?module.exports=n(require("jquery"),window):n(jQuery,window)}(function(n,t){"use strict";function u(t){return 0<=function(n,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,u=r.exec(n)||[],f=r.exec(t)||[],i=1;i<=3;i++){if(+u[i]>+f[i])return 1;if(+u[i]<+f[i])return-1}return 0}(n.fn.jquery,t)}function i(i){var r=t.console;n.migrateDeduplicateWarnings&&e[i]||(e[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function h(n,t,r,u){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){return i(u),r},set:function(n){i(u);r=n}})}function r(n,t,r,u){n[t]=function(){return i(u),r.apply(this,arguments)}}function c(n){return n.replace(/-([a-z])/g,function(n,t){return t.toUpperCase()})}function nt(n){var i=t.document.implementation.createHTMLDocument("");return i.body.innerHTML=n,i.body&&i.body.innerHTML}function tt(n){var t=n.replace(y,"<$1><\/$2>");t!==n&&nt(n)!==nt(t)&&i("HTML tags must be properly nested and closed: "+n)}var e,b,f,a,v,d,g,y,it,rt,ut,ft,p,et;n.migrateVersion="3.3.0";t.console&&t.console.log&&(n&&u("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),n.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(n.migrateMute?"":" with logging active")+", version "+n.migrateVersion));e={};n.migrateDeduplicateWarnings=!0;n.migrateWarnings=[];void 0===n.migrateTrace&&(n.migrateTrace=!0);n.migrateReset=function(){e={};n.migrateWarnings.length=0};"BackCompat"===t.document.compatMode&&i("jQuery is not compatible with Quirks Mode");var o,w={},ot=n.fn.init,s=n.find,st=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,ht=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,ct=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(o in n.fn.init=function(n){var t=Array.prototype.slice.call(arguments);return"string"==typeof n&&"#"===n&&(i("jQuery( '#' ) is not a valid selector"),t[0]=[]),ot.apply(this,t)},n.fn.init.prototype=n.fn,n.find=function(n){var r=Array.prototype.slice.call(arguments);if("string"==typeof n&&st.test(n))try{t.document.querySelector(n)}catch(u){n=n.replace(ht,function(n,t,i,r){return"["+t+i+'"'+r+'"]'});try{t.document.querySelector(n);i("Attribute selector with '#' must be quoted: "+r[0]);r[0]=n}catch(u){i("Attribute selector with '#' was not fixed: "+r[0])}}return s.apply(this,r)},s)Object.prototype.hasOwnProperty.call(s,o)&&(n.find[o]=s[o]);(r(n.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),r(n,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),r(n,"holdReady",n.holdReady,"jQuery.holdReady is deprecated"),r(n,"unique",n.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),h(n.expr,"filters",n.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),h(n.expr,":",n.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),u("3.1.1")&&r(n,"trim",function(n){return null==n?"":(n+"").replace(ct,"")},"jQuery.trim is deprecated; use String.prototype.trim"),u("3.2.0")&&r(n,"nodeName",function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),u("3.3.0")&&(r(n,"isNumeric",function(n){var t=typeof n;return("number"==t||"string"==t)&&!isNaN(n-parseFloat(n))},"jQuery.isNumeric() is deprecated"),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){w["[object "+t+"]"]=t.toLowerCase()}),r(n,"type",function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?w[Object.prototype.toString.call(n)]||"object":typeof n},"jQuery.type is deprecated"),r(n,"isFunction",function(n){return"function"==typeof n},"jQuery.isFunction() is deprecated"),r(n,"isWindow",function(n){return null!=n&&n===n.window},"jQuery.isWindow() is deprecated"),r(n,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),n.ajax)&&(b=n.ajax,n.ajax=function(){var n=b.apply(this,arguments);return n.promise&&(r(n,"success",n.done,"jQXHR.success is deprecated and removed"),r(n,"error",n.fail,"jQXHR.error is deprecated and removed"),r(n,"complete",n.always,"jQXHR.complete is deprecated and removed")),n});var lt=n.fn.removeAttr,at=n.fn.toggleClass,vt=/\S+/g;n.fn.removeAttr=function(t){var r=this;return n.each(t.match(vt),function(t,u){n.expr.match.bool.test(u)&&(i("jQuery.fn.removeAttr no longer sets boolean properties: "+u),r.prop(u,!1))}),lt.apply(this,arguments)};var k,l=!(n.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?at.apply(this,arguments):(i("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&n.data(this,"__className__",i);this.setAttribute&&this.setAttribute("class",i||!1===t?"":n.data(this,"__className__")||"")}))}),yt=/^[a-z]/,pt=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;n.swap&&n.each(["height","width","reliableMarginRight"],function(t,i){var r=n.cssHooks[i]&&n.cssHooks[i].get;r&&(n.cssHooks[i].get=function(){var n;return l=!0,n=r.apply(this,arguments),l=!1,n})});n.swap=function(n,t,r,u){var e,f,o={};for(f in l||i("jQuery.swap() is undocumented and deprecated"),t)o[f]=n.style[f],n.style[f]=t[f];for(f in e=r.apply(n,u||[]),t)n.style[f]=o[f];return e};u("3.4.0")&&"undefined"!=typeof Proxy&&(n.cssProps=new Proxy(n.cssProps||{},{set:function(){return i("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}}));n.cssNumber||(n.cssNumber={});k=n.fn.css;n.fn.css=function(t,r){var u=this;return"string"!=typeof t&&n.each(t,function(t,i){n.fn.css.call(u,t,i)}),"number"!=typeof r||function(n){return yt.test(n)&&pt.test(n[0].toUpperCase()+n.slice(1))}(c(t))||i("Use of number-typed values is deprecated in jQuery.fn.css"),k.apply(this,arguments)};f=n.data;(n.data=function(t,r,u){var o,s,e;if(r&&"object"==typeof r&&2===arguments.length){for(e in o=n.hasData(t)&&f.call(this,t),s={},r)e!==c(e)?(i("jQuery.data() always sets/gets camelCased names: "+e),o[e]=r[e]):s[e]=r[e];return f.call(this,t,s),r}return r&&"string"==typeof r&&r!==c(r)&&(o=n.hasData(t)&&f.call(this,t))&&r in o?(i("jQuery.data() always sets/gets camelCased names: "+r),2<arguments.length&&(o[r]=u),o[r]):f.apply(this,arguments)},n.fx)&&(d=n.Tween.prototype.run,g=function(n){return n},n.Tween.prototype.run=function(){1<n.easing[this.easing].length&&(i("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),n.easing[this.easing]=g);d.apply(this,arguments)},a=n.fx.interval||13,v="jQuery.fx.interval is deprecated",t.requestAnimationFrame&&Object.defineProperty(n.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||i(v),a},set:function(n){i(v);a=n}}));var wt=n.fn.load,bt=n.event.add,kt=n.event.fix;return n.event.props=[],n.event.fixHooks={},h(n.event.props,"concat",n.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),n.event.fix=function(t){var f,e=t.type,u=this.fixHooks[e],r=n.event.props;if(r.length)for(i("jQuery.event.props are deprecated and removed: "+r.join());r.length;)n.event.addProp(r.pop());if(u&&!u._migrated_&&(u._migrated_=!0,i("jQuery.event.fixHooks are deprecated and removed: "+e),(r=u.props)&&r.length))while(r.length)n.event.addProp(r.pop());return f=kt.call(this,t),u&&u.filter?u.filter(f,t):f},n.event.add=function(n,r){return n===t&&"load"===r&&"complete"===t.document.readyState&&i("jQuery(window).on('load'...) called after load event occurred"),bt.apply(this,arguments)},n.each(["load","unload","error"],function(t,r){n.fn[r]=function(){var n=Array.prototype.slice.call(arguments,0);return"load"===r&&"string"==typeof n[0]?wt.apply(this,n):(i("jQuery.fn."+r+"() is deprecated"),n.splice(0,0,r),arguments.length?this.on.apply(this,n):(this.triggerHandler.apply(this,n),this))}}),n.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,r){n.fn[r]=function(n,t){return i("jQuery.fn."+r+"() event shorthand is deprecated"),0<arguments.length?this.on(r,null,n,t):this.trigger(r)}}),n(function(){n(t.document).triggerHandler("ready")}),n.event.special.ready={setup:function(){this===t.document&&i("'ready' event is deprecated")}},n.fn.extend({bind:function(n,t,r){return i("jQuery.fn.bind() is deprecated"),this.on(n,null,t,r)},unbind:function(n,t){return i("jQuery.fn.unbind() is deprecated"),this.off(n,null,t)},delegate:function(n,t,r,u){return i("jQuery.fn.delegate() is deprecated"),this.on(t,n,r,u)},undelegate:function(n,t,r){return i("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(n,"**"):this.off(t,n||"**",r)},hover:function(n,t){return i("jQuery.fn.hover() is deprecated"),this.on("mouseenter",n).on("mouseleave",t||n)}}),y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,it=n.htmlPrefilter,n.UNSAFE_restoreLegacyHtmlPrefilter=function(){n.htmlPrefilter=function(n){return tt(n),n.replace(y,"<$1><\/$2>")}},n.htmlPrefilter=function(n){return tt(n),it(n)},rt=n.fn.offset,(n.fn.offset=function(){var u,r=this[0];if(r&&r.nodeType)return u=(r.ownerDocument||t.document).documentElement,n.contains(u,r)?rt.apply(this,arguments):(i("jQuery.fn.offset() requires an element connected to a document"),{top:0,left:0});i("jQuery.fn.offset() requires a valid DOM element")},n.ajax)&&(ut=n.param,n.param=function(t,r){var u=n.ajaxSettings&&n.ajaxSettings.traditional;return void 0===r&&u&&(i("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),r=u),ut.call(this,t,r)}),ft=n.fn.andSelf||n.fn.addBack,(n.fn.andSelf=function(){return i("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),ft.apply(this,arguments)},n.Deferred)&&(p=n.Deferred,et=[["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory"),n.Callbacks("memory")]],n.Deferred=function(t){var r=p(),u=r.promise();return r.pipe=u.pipe=function(){var t=arguments;return i("deferred.pipe() is deprecated"),n.Deferred(function(i){n.each(et,function(n,f){var e="function"==typeof t[n]&&t[n];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&"function"==typeof n.promise?n.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[f[0]+"With"](this===u?i.promise():this,e?[n]:arguments)})});t=null}).promise()},t&&t.call(r,r),r},n.Deferred.exceptionHook=p.exceptionHook),n})