var doc=document.documentElement;doc.setAttribute('data-useragent',navigator.userAgent);!function(){function t(){if(this.complete){var e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)this.addEventListener("onload",t);else{var d=this.width,n=this.height;d&&d>0&&n&&n>0&&(this.setAttribute("width",d),this.setAttribute("height",n),i(this))}}else this.addEventListener("onload",t)}var e=function(){for(var e=document.querySelectorAll("img[data-recalc-dims]"),i=0;i{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function s(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,s){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,s)},t};this.tree=e();const s=/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,i]of this.formData){const o=t.match(s);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,i);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const s=t.pop();t.reduce(((t,s)=>{if(/^[0-9]+$/.test(s)&&(s=parseInt(s)),t.get(s)instanceof Map)return t.get(s);const i=e();return t.set(s,i),i}),this.tree).set(s,i)}}}t.r(e),t.d(e,{date:()=>d,email:()=>r,enum:()=>f,file:()=>m,maxdate:()=>b,maxfilesize:()=>z,maxitems:()=>u,maxlength:()=>v,maxnumber:()=>x,mindate:()=>y,minfilesize:()=>A,minitems:()=>h,minlength:()=>g,minnumber:()=>w,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,url:()=>p}),s.prototype.entries=function(){return this.tree.entries()},s.prototype.get=function(t){return this.tree.get(t)},s.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const s=[];if(t instanceof Map)for(const[i,o]of t)s.push(...e(o));else""!==t&&s.push(t);return s};return e(this.get(t))},s.prototype.has=function(t){return this.tree.has(t)},s.prototype.keys=function(){return this.tree.keys()},s.prototype.values=function(){return this.tree.values()};const i=s;function o({rule:t,field:e,error:s,...i}){this.rule=t,this.field=e,this.error=s,this.properties=i}const n=function(t){if(0===t.getAll(this.field).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,s]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(s))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(s))return!1;const i=s.split(".");if(i.length<2)return!1;for(const t of i){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t.trim()))))throw new o(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],s=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(s){const t=s.groups.toplevel.toLowerCase(),i=s.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===i&&n.startsWith(t+"/")||n===s[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},h=function(t){if(t.getAll(this.field).length{"string"==typeof t&&(s+=t.length)})),0!==s&&s{"string"==typeof t&&(s+=t.length)})),parseInt(this.threshold)!(parseFloat(t)!(parseFloat(this.threshold)(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(s+=t.size)})),s{t instanceof File&&(s+=t.size)})),parseInt(this.threshold){const a=(t.rules??[]).filter((({rule:t,...s})=>"function"==typeof e[t]&&("function"!=typeof e[t].matches||e[t].matches(s,n))));if(!a.length)return new Map;const r=new i(s),p=a.reduce(((t,s)=>{const{rule:i,...n}=s;if(t.get(n.field)?.error)return t;try{e[i].call({rule:i,...n},r)}catch(e){if(e instanceof o)return t.set(n.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},...null!==($=window.swv)&&void 0!==$?$:{}}})();var wpcf7={"api":{"root":"https:\/\/fusionelegantelements.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"};(()=>{"use strict";const e=e=>Math.abs(parseInt(e,10)),t=(e,t)=>{const a=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);a.has(t)&&(t=a.get(t)),Array.from(a.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const n=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),n&&n!==t&&e.classList.remove(n),t},a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return r.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:d,...p}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],d&&(l=JSON.stringify(d),i["Content-Type"]="application/json");const u={code:"fetch_error",message:"You are probably offline."},f={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...p,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw f}));throw f}))),(()=>{throw u}))}))(e)},r=[];function o(e){var a,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{target:o,scope:l=e,...d}=r;if(void 0===(null===(a=e.wpcf7)||void 0===a?void 0:a.schema))return;const p={...e.wpcf7.schema};if(void 0!==o){if(!e.contains(o))return;if(!o.closest(".wpcf7-form-control-wrap[data-name]"))return;if(o.closest(".novalidate"))return}const u=new FormData,f=[];for(const e of l.querySelectorAll(".wpcf7-form-control-wrap"))if(!e.closest(".novalidate")&&(e.querySelectorAll(":where( input, textarea, select ):enabled").forEach((e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&u.append(e.name,e.value);break;case"select-multiple":for(const t of e.selectedOptions)u.append(e.name,t.value);break;case"file":for(const t of e.files)u.append(e.name,t);break;default:u.append(e.name,e.value)}})),e.dataset.name&&(f.push(e.dataset.name),e.setAttribute("data-under-validation","1"),e.contains(o))))break;p.rules=(null!==(n=p.rules)&&void 0!==n?n:[]).filter((e=>{let{field:t}=e;return f.includes(t)}));const m=e.getAttribute("data-status");Promise.resolve(t(e,"validating")).then((t=>{if(void 0!==swv){const t=swv.validate(p,u,r);for(const[a,{error:n,validInputs:r}]of t)s(e,a),void 0!==n&&c(e,a,n,{scope:l}),i(e,a,null!=r?r:[])}})).finally((()=>{t(e,m),e.querySelectorAll(".wpcf7-form-control-wrap[data-under-validation]").forEach((e=>{e.removeAttribute("data-under-validation")}))}))}n.use=e=>{r.unshift(e)};const c=(e,t,a,n)=>{var r;const{scope:o=e,...c}=null!=n?n:{},s=`${null===(r=e.wpcf7)||void 0===r?void 0:r.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),i=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",s),i&&i.id?t.insertAdjacentHTML("beforeend",`${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),o.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((t=>{if("validating"===e.getAttribute("data-status")&&!t.dataset.underValidation)return;const n=document.createElement("span");n.classList.add("wpcf7-not-valid-tip"),n.setAttribute("aria-hidden","true"),n.insertAdjacentText("beforeend",a),t.appendChild(n),t.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),t.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",s),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{n.setAttribute("style","display: none")})),n.addEventListener("click",(e=>{n.setAttribute("style","display: none")})))}))}))},s=(e,t)=>{var a,n;const r=`${null===(a=e.wpcf7)||void 0===a?void 0:a.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");null===(n=e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${r}`))||void 0===n||n.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{var t;null===(t=e.querySelector(".wpcf7-not-valid-tip"))||void 0===t||t.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},i=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function l(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wpcf7.blocked)return d(e),void t(e,"submitting");const o=new FormData(e);r.submitter&&r.submitter.name&&o.append(r.submitter.name,r.submitter.value);const s={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};n({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:s}}).then((n=>{const r=t(e,n.status);return s.status=n.status,s.apiResponse=n,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,s):["sent","failed"].includes(r)&&a(e,`mail${r}`,s),a(e,"submit",s),n})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{c(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}n.use(((e,n)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:n,detail:r}=e.wpcf7;d(n),a(n,"beforesubmit",r),t(n,"submitting")}return n(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&s(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function p(e){const r=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(r,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:r};n({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((n=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,t(e,"mail_sent")):t(e,"init"),o.apiResponse=n,a(e,"reset",o)})).catch((e=>console.error(e)))}n.use(((e,a)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:a,detail:n}=e.wpcf7;d(a),t(a,"resetting")}return a(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},f=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function m(t){const a=new FormData(t);t.wpcf7={id:e(a.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:e(a.get("_wpcf7_container_post")),parent:t.closest(".wpcf7"),schema:void 0},t.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(t),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(t),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(t),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(t),(t=>{const a=(t,a)=>{const n=e(t.getAttribute("data-starting-value")),r=e(t.getAttribute("data-maximum-value")),o=e(t.getAttribute("data-minimum-value")),c=t.classList.contains("down")?n-a.value.length:a.value.length;t.setAttribute("data-current-value",c),t.innerText=c,r&&r{e={init:!1,...e},t.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=t.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),e.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),t.addEventListener("wpcf7reset",(e=>{n()}))})(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{wpcf7.submit(t,{submitter:e.submitter}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),n({endpoint:`contact-forms/${t.wpcf7.id}/feedback/schema`,method:"GET"}).then((e=>{t.wpcf7.schema=e})),t.addEventListener("change",(e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(t,{target:e.target})}))}document.addEventListener("DOMContentLoaded",(e=>{var t;"undefined"!=typeof wpcf7?void 0!==wpcf7.api?"function"==typeof window.fetch?"function"==typeof window.FormData?"function"==typeof NodeList.prototype.forEach?"function"==typeof String.prototype.replaceAll?(wpcf7={init:m,submit:l,reset:p,validate:o,...null!==(t=wpcf7)&&void 0!==t?t:{}},document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}))):console.error("Your browser does not support String.replaceAll()."):console.error("Your browser does not support NodeList.forEach()."):console.error("Your browser does not support window.FormData()."):console.error("Your browser does not support window.fetch()."):console.error("wpcf7.api is not defined."):console.error("wpcf7 is not defined.")}))})();/*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o15?this.options.cuboidsCount=15:this.options.cuboidsCount%2==0&&++this.options.cuboidsCount,this.options.maxCuboidsCount<0?this.options.maxCuboidsCount=1:this.options.maxCuboidsCount>15?this.options.maxCuboidsCount=15:this.options.maxCuboidsCount%2==0&&++this.options.maxCuboidsCount,this.options.disperseFactor<0&&(this.options.disperseFactor=0),"v"!==this.options.orientation&&"h"!==this.options.orientation&&"r"!==this.options.orientation&&(this.options.orientation="v")},_setSize:function(){var a=this.$items.eq(this.current).find("img");this.size={width:a.width(),height:a.height()},0!==this.size.width&&this.$items.find("img").css(this.size)},_setStyle:function(){this.$el.css({"max-width":this.realWidth})},_initEvents:function(){var a=this;e.on("debouncedresize.elegantslicebox",function(b){a._setSize()})},_startSlideshow:function(){var a=this;this.slideshow=setTimeout(function(){a._navigate("next"),a.options.autoplay&&a._startSlideshow()},this.options.interval)},_stopSlideshow:function(){this.options.autoplay&&(clearTimeout(this.slideshow),this.isPlaying=!1,this.options.autoplay=!1)},_navigate:function(a,b){if(this.isAnimating||!this.isReady||this.itemsCount<2)return!1;this.isAnimating=!0,this.prev=this.current,void 0!==b?this.current=b:"next"===a?this.current=this.current0?this.current-1:this.itemsCount-1),this.options.onBeforeChange(this.current),this.support?(this._layout(a),this._rotate()):this._fade(a)},_fade:function(b){var c=this,d=this.$items.eq(this.prev),e=d.find("img").height();this.$el.css("height",e),this.$items.css("position","absolute"),this.$items.eq(this.current).fadeIn(this.options.fallbackFadeSpeed,function(){a(this).css("display","block").addClass("eesb-current"),c.$el.css("height","auto"),c.$items.css("position","relative"),c.isAnimating=!1}),c.$items.eq(c.prev).removeClass("eesb-current").fadeOut(this.options.fallbackFadeSpeed)},_layout:function(b){var c=this.options.orientation;"r"===c&&(c=0===Math.floor(2*Math.random())?"v":"h"),this.options.cuboidsRandom&&(this.options.cuboidsCount=Math.floor(Math.random()*this.options.maxCuboidsCount+1)),this._validate();var d={width:this.size.width,height:this.size.height,perspective:this.options.perspective+"px"},e=a.extend(this.options,{size:this.size,items:this.$items,direction:b,prev:this.prev,current:this.current,o:c});this.$box=a("
").addClass("eesb-perspective").css(d).appendTo(this.$el),this.cuboids=[],this.$el.css("overflow","visible");for(var f=0;f=this.itemsCount||a<0)return!1;this._stopSlideshow(),this._navigate(a>this.current?"next":"prev",a)},play:function(){this.isPlaying||(this.isPlaying=!0,this._navigate("next"),this.options.autoplay=!0,this._startSlideshow())},pause:function(){this.isPlaying&&this._stopSlideshow()},isActive:function(){return this.isAnimating},destroy:function(a){this._destroy(a)}},a.Cuboid=function(a,b){this.config=a,this.pos=b,this.side=1,this._setSize(),this._configureStyles()},a.Cuboid.prototype={_setSize:function(){this.size={width:"v"===this.config.o?Math.floor(this.config.size.width/this.config.cuboidsCount):this.config.size.width,height:"v"===this.config.o?this.config.size.height:Math.floor(this.config.size.height/this.config.cuboidsCount)},this.extra="v"===this.config.o?this.config.size.width-this.size.width*this.config.cuboidsCount:this.config.size.height-this.size.height*this.config.cuboidsCount},_configureStyles:function(){var b=Math.ceil(this.config.cuboidsCount/2),c=this.pos").css(this.style).css(this.animationStyles.side1).append(a("
").addClass("eesb-side").css(this.sidesStyles.frontSideStyle)).append(a("
").addClass("eesb-side").css(this.sidesStyles.backSideStyle)).append(a("
").addClass("eesb-side").css(this.sidesStyles.rightSideStyle)).append(a("
").addClass("eesb-side").css(this.sidesStyles.leftSideStyle)).append(a("
").addClass("eesb-side").css(this.sidesStyles.topSideStyle)).append(a("
").addClass("eesb-side").css(this.sidesStyles.bottomSideStyle)),this._showImage(this.config.prev),this.$el},_showImage:function(a){var b,c=this.config.items.eq(a),d={"background-size":this.config.size.width+"px "+this.config.size.height+"px"};switch(d.backgroundImage="url("+c.find("img").attr("src")+")",this.side){case 1:b=0;break;case 2:b="v"===this.config.o?4:2;break;case 3:b=1;break;case 4:b="v"===this.config.o?5:3}d.backgroundPosition="v"===this.config.o?-this.pos*this.size.width+"px 0px":"0px -"+this.pos*this.size.height+"px",this.$el.children().eq(b).css(d)},rotate:function(a){var b,c=this;setTimeout(function(){if("next"===c.config.direction)switch(c.side){case 1:b=c.animationStyles.side2,c.side=2;break;case 2:b=c.animationStyles.side3,c.side=3;break;case 3:b=c.animationStyles.side4,c.side=4;break;case 4:b=c.animationStyles.side1,c.side=1}else switch(c.side){case 1:b=c.animationStyles.side4,c.side=4;break;case 2:b=c.animationStyles.side1,c.side=1;break;case 3:b=c.animationStyles.side2,c.side=2;break;case 4:b=c.animationStyles.side3,c.side=3}c._showImage(c.config.current);var d={},e={};"v"===c.config.o?(d.left="+="+c.disperseFactor+"px",e.left="-="+c.disperseFactor+"px"):"h"===c.config.o&&(d.top="+="+c.disperseFactor+"px",e.top="-="+c.disperseFactor+"px"),c.$el.css(b).animate(d,c.config.speed/2).animate(e,c.config.speed/2,function(){a&&a.call(c,c.pos)})},this.config.sequentialFactor*this.pos+30)}};var f=function(a){window.console&&window.console.error(a)};a.fn.elegantslicebox=function(b){var c=a.data(this,"slicebox");if("string"==typeof b){var d=Array.prototype.slice.call(arguments,1);this.each(function(){return c?a.isFunction(c[b])&&"_"!==b.charAt(0)?void c[b].apply(c,d):void f("no such method '"+b+"' for slicebox self"):void f("cannot call methods on slicebox prior to initialization; attempted to call method '"+b+"'")})}else this.each(function(){c?c._init():c=a.data(this,"slicebox",new a.ElegantSlicebox(b,this))});return c},a.fn.initElegantSlicebox=function(){var a=jQuery(".elegant-slicebox-image-slider");jQuery.each(a,function(a,b){var c,d=jQuery(b).find(".elegant-slicebox-image-slider-items"),e=jQuery(b).find(".navigation-arrow-next"),f=jQuery(b).find(".navigation-arrow-prev"),g={orientation:jQuery(b).data("orientation"),cuboidsCount:jQuery(b).data("slices_count"),sequentialFactor:jQuery(b).data("rotation_interval"),speed:jQuery(b).data("speed"),autoplay:jQuery(b).data("autoplay"),interval:jQuery(b).data("autoplay_speed"),disperseFactor:jQuery(b).data("disperse_factor")};c=jQuery(d).elegantslicebox(g),e.on("click",function(){c.next()}),f.on("click",function(){c.previous()})})},jQuery(document).on("ready resize fusion-element-render-iee_slicebox_image_slider-render",function(a){jQuery(".elegant-slicebox-image-slider").initElegantSlicebox()})}(jQuery);!function(){"use strict";jQuery(function(){jQuery(".elegant-button-position-aware").on("mouseenter",function(a){var b=jQuery(this).offset(),c=a.pageX-b.left,d=a.pageY-b.top;jQuery(this).find("span").css({top:d,left:c})}).on("mouseout",function(a){var b=jQuery(this).offset(),c=a.pageX-b.left,d=a.pageY-b.top;jQuery(this).find("span").css({top:d,left:c})}),jQuery(".elegant-fancy-button-display-image").on("click",function(a){var b=jQuery(this).attr("data-image-src"),c=jQuery(this).attr("data-image-div");a.preventDefault(),jQuery("."+c).html('')})})}(jQuery);!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.elegantSlick||{};b=function(){function b(b,d){var e,f=this;f.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(b),appendDots:a(b),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('
').css(m).html(u)),i.show().data({naturalWidth:d||p.outerWidth(),naturalHeight:f||p.outerHeight()}).hide(),"function"==typeof r.callback.onRender&&r.callback.onRender.call(a,a.ui,o),"function"==typeof t.options.onRender&&t.options.onRender.call(a,s);var v=A(i);a.loadImage(v,function(){"function"==typeof r.callback.onAfterLoad&&r.callback.onAfterLoad.call(a,a.ui,o),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(a,s),a.configureHolder(t,n,i)}),r.ajaxSetup.success(l,c,h),"function"==typeof g.success&&g.success(l,c,h)}).fail(function(l,c,h){"function"==typeof r.callback.onAfterLoad&&r.callback.onAfterLoad.call(a,a.ui,o),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(a,s),a.hideLoader(),e("div.ilightbox-container",i).empty().append(''+r.errors.loadContents+""),a.configureHolder(t,n,i),r.ajaxSetup.error(l,c,h),"function"==typeof g.error&&g.error(l,c,h)});break;case"html":var v=t.URL;if(container=e("div.ilightbox-container",i),v[0].nodeName)p=v.clone();else{var b=e(v);p=b.selector?e("
"+b+"
"):b}var x=a.items[o].options.width||parseInt(p.attr("width")),y=a.items[o].options.height||parseInt(p.attr("height"));a.addContent(i,t),p.appendTo(document.documentElement).hide(),"function"==typeof r.callback.onRender&&r.callback.onRender.call(a,a.ui,o),"function"==typeof t.options.onRender&&t.options.onRender.call(a,s);m=A(i);"function"==typeof r.callback.onBeforeLoad&&r.callback.onBeforeLoad.call(a,a.ui,o),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(a,s),a.loadImage(m,function(){"function"==typeof r.callback.onAfterLoad&&r.callback.onAfterLoad.call(a,a.ui,o),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(a,s),i.show().data({naturalWidth:x||container.outerWidth(),naturalHeight:y||container.outerHeight()}).hide(),p.remove(),a.configureHolder(t,n,i)})}},configureHolder:function(t,i,o){var r=this,s=r.vars,l=r.options;if("current"!=i&&("next"==i?o.addClass("ilightbox-next"):o.addClass("ilightbox-prev")),"current"==i)var c=s.current;else if("next"==i){var h=l.styles.nextOpacity;c=s.next}else h=l.styles.prevOpacity,c=s.prev;var u={element:o,position:c};r.items[c].options.width=r.items[c].options.width||0,r.items[c].options.height=r.items[c].options.height||0,"current"==i?l.show.effect?o.css(n,a).fadeIn(t.speed,function(){if(o.css(n,""),t.caption){r.setCaption(t,o);var i=e("div.ilightbox-caption",o),a=parseInt(i.outerHeight()/o.outerHeight()*100);l.caption.start&a<=50&&i.fadeIn(l.effects.fadeSpeed)}var s=t.options.social;s&&(r.setSocial(s,t.URL,o),l.social.start&&e("div.ilightbox-social",o).fadeIn(l.effects.fadeSpeed)),r.generateThumbnails(),"function"==typeof l.callback.onShow&&l.callback.onShow.call(r,r.ui,c),"function"==typeof t.options.onShow&&t.options.onShow.call(r,u)}):(o.show(),r.generateThumbnails(),"function"==typeof l.callback.onShow&&l.callback.onShow.call(r,r.ui,c),"function"==typeof t.options.onShow&&t.options.onShow.call(r,u)):l.show.effect?o.fadeTo(t.speed,h,function(){"next"==i?s.nextLock=!1:s.prevLock=!1,r.generateThumbnails(),"function"==typeof l.callback.onShow&&l.callback.onShow.call(r,r.ui,c),"function"==typeof t.options.onShow&&t.options.onShow.call(r,u)}):(o.css({opacity:h}).show(),"next"==i?s.nextLock=!1:s.prevLock=!1,r.generateThumbnails(),"function"==typeof l.callback.onShow&&l.callback.onShow.call(r,r.ui,c),"function"==typeof t.options.onShow&&t.options.onShow.call(r,u)),setTimeout(function(){r.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,i=e.options;i.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):i.infinite=!1,e.loadContent(e.items[t.current],"current",i.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",i.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",i.show.speed)},generateThumbnails:function(){var t=this,i=t.vars,o=t.options,n=null;if(i.thumbs&&!t.vars.dontGenerateThumbs){var a=i.thumbnails,r=e("div.ilightbox-thumbnails-container",a),s=e("div.ilightbox-thumbnails-grid",r),l=0;s.removeAttr("style").empty(),e.each(t.items,function(c,h){var u=i.current==c?"ilightbox-active":"",p=i.current==c?o.thumbnails.activeOpacity:o.thumbnails.normalOpacity,d=h.options.thumbnail,f=e('
'),m=e('
');f.css({opacity:0}).addClass(u),"video"!=h.type&&"flash"!=h.type||void 0!==h.options.icon?h.options.icon&&(m.addClass("ilightbox-thumbnail-"+h.options.icon),f.append(m)):(m.addClass("ilightbox-thumbnail-video"),f.append(m)),d&&t.loadImage(d,function(e){l++,e?f.data({naturalWidth:e.width,naturalHeight:e.height}).append(''):f.data({naturalWidth:o.thumbnails.maxWidth,naturalHeight:o.thumbnails.maxHeight}),clearTimeout(n),n=setTimeout(function(){t.positionThumbnails(a,r,s)},20),setTimeout(function(){f.fadeTo(o.effects.loadedFadeSpeed,p)},20*l)}),s.append(f)}),t.vars.dontGenerateThumbs=!0}},positionThumbnails:function(t,i,o){var n=this,a=n.vars,r=n.options,s=T(),l=r.path.toLowerCase();t||(t=a.thumbnails),i||(i=e("div.ilightbox-thumbnails-container",t)),o||(o=e("div.ilightbox-thumbnails-grid",i));var h=e(".ilightbox-thumbnail",o),u="horizontal"==l?s.width-r.styles.pageOffsetX:h.eq(0).outerWidth()-r.styles.pageOffsetX,p="horizontal"==l?h.eq(0).outerHeight()-r.styles.pageOffsetY:s.height-r.styles.pageOffsetY,d="horizontal"==l?0:u,f="horizontal"==l?p:0,m=e(".ilightbox-active",o),g={};arguments.length<3&&(h.css({opacity:r.thumbnails.normalOpacity}),m.css({opacity:r.thumbnails.activeOpacity})),h.each(function(t){var i=e(this),o=i.data(),a="horizontal"==l?0:r.thumbnails.maxWidth;height="horizontal"==l?r.thumbnails.maxHeight:0,dims=n.getNewDimenstions(a,height,o.naturalWidth,o.naturalHeight,!0),i.css({width:dims.width,height:dims.height}),"horizontal"==l&&i.css({float:"left"}),"horizontal"==l?d+=i.outerWidth(!0):f+=i.outerHeight()}),g={width:d,height:f},o.css(g),g={};var v=o.offset(),b=m.length?m.offset():{top:parseInt(p/2),left:parseInt(u/2)};v.top=v.top-c.scrollTop(),v.left=v.left-c.scrollLeft(),b.top=b.top-v.top-c.scrollTop(),b.left=b.left-v.left-c.scrollLeft(),"horizontal"==l?(g.top=0,g.left=parseInt(u/2-b.left-m.outerWidth()/2)):(g.top=parseInt(p/2-b.top-m.outerHeight()/2),g.left=0),arguments.length<3?o.stop().animate(g,r.effects.repositionSpeed,"easeOutCirc"):o.css(g)},loadImage:function(t,i){Array.isArray(t)||(t=[t]);var o=this,n=t.length;n>0?(o.showLoader(),e.each(t,function(e,a){var r=new Image;r.onload=function(){0==(n-=1)&&(o.hideLoader(),i(r))},r.onerror=r.onabort=function(){0==(n-=1)&&(o.hideLoader(),i(!1))},r.src=t[e]})):i(!1)},patchItemsEvents:function(){var t=this,i=t.vars,o=p?"click.iL itap.iL":"click.iL",n=p?"click.iL itap.iL":"itap.iL";if(t.context&&t.selector){var a=e(t.selector,t.context);e(t.context).on(o,t.selector,function(){var o=e(this),n=a.index(o);return i.current=n,i.next=t.items[n+1]?n+1:null,i.prev=t.items[n-1]?n-1:null,t.addContents(),t.patchEvents(),!1}).on(n,t.selector,function(){return!1})}else e.each(t.itemsObject,function(e,a){a.on(o,function(){return i.current=e,i.next=t.items[e+1]?e+1:null,i.prev=t.items[e-1]?e-1:null,t.addContents(),t.patchEvents(),!1}).on(n,function(){return!1})})},dispatchItemsEvents:function(){var t=this;t.vars,t.options;t.context&&t.selector?e(t.context).off(".iL",t.selector):e.each(t.itemsObject,function(e,t){t.off(".iL")})},refresh:function(){var e=this;e.dispatchItemsEvents(),e.attachItems(),e.normalizeItems(),e.patchItemsEvents()},patchEvents:function(){var o=this,r=o.vars,s=o.options,u=s.path.toLowerCase(),d=e(".ilightbox-holder"),x=h.fullScreenEventName+".iLightBox",y=verticalDistanceThreshold=100,w=[r.nextButton[0],r.prevButton[0],r.nextButton[0].firstChild,r.prevButton[0].firstChild];l.on("resize.iLightBox",function(){var e=T();s.mobileOptimizer&&!s.innerToolbar&&(r.isMobile=e.width<=r.mobileMaxWidth),r.BODY[r.isMobile?"addClass":"removeClass"]("isMobile"),r.nextLock||r.prevLock||o.repositionPhoto(null),p&&(clearTimeout(r.setTime),r.setTime=setTimeout(function(){var e=N().y;t.scrollTo(0,e-30),t.scrollTo(0,e+30),t.scrollTo(0,e)},2e3)),r.thumbs&&o.positionThumbnails()}).on("keydown.iLightBox",function(e){if(s.controls.keyboard)switch(e.keyCode){case 13:e.shiftKey&&s.keyboard.shift_enter&&o.fullScreenAction();break;case 27:s.keyboard.esc&&o.closeAction();break;case 37:s.keyboard.left&&!r.lockKey&&o.moveTo("prev");break;case 38:s.keyboard.up&&!r.lockKey&&o.moveTo("prev");break;case 39:s.keyboard.right&&!r.lockKey&&o.moveTo("next");break;case 40:s.keyboard.down&&!r.lockKey&&o.moveTo("next")}}),h.supportsFullScreen&&l.on(x,function(){o.doFullscreen()});var k=[s.caption.show+".iLightBox",s.caption.hide+".iLightBox",s.social.show+".iLightBox",s.social.hide+".iLightBox"].filter(function(e,t,i){return i.lastIndexOf(e)===t}),L="";e.each(k,function(e,t){0!=e&&(L+=" "),L+=t}),c.on(f,".ilightbox-overlay",function(){s.overlay.blur&&o.closeAction()}).on(f,".ilightbox-next, .ilightbox-next-button",function(){o.moveTo("next")}).on(f,".ilightbox-prev, .ilightbox-prev-button",function(){o.moveTo("prev")}).on(f,".ilightbox-thumbnail",function(){var t=e(this),i=e(".ilightbox-thumbnail",r.thumbnails).index(t);i!=r.current&&o.goTo(i)}).on(L,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(t){var i=e("div.ilightbox-caption",r.holder),o=e("div.ilightbox-social",r.holder),n=s.effects.fadeSpeed;r.nextLock||r.prevLock?(t.type!=s.caption.show||i.is(":visible")?t.type==s.caption.hide&&i.is(":visible")&&i.fadeOut(n):i.fadeIn(n),t.type!=s.social.show||o.is(":visible")?t.type==s.social.hide&&o.is(":visible")&&o.fadeOut(n):o.fadeIn(n)):(t.type!=s.caption.show||i.is(":visible")?t.type==s.caption.hide&&i.is(":visible")&&i.stop().fadeOut(n):i.stop().fadeIn(n),t.type!=s.social.show||o.is(":visible")?t.type==s.social.hide&&o.is(":visible")&&o.stop().fadeOut(n):o.stop().fadeIn(n))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){"mouseenter"==e.type?r.lockWheel=!0:r.lockWheel=!1}).on(f,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=e(this);t.hasClass("fusion-updated")||(t.hasClass("ilightbox-fullscreen")?o.fullScreenAction():t.hasClass("ilightbox-play")?(o.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(o.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):o.closeAction(),t.addClass("fusion-updated"),setTimeout(function(){t.removeClass("fusion-updated")},100))}).on(v,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),s.controls.arrows&&!p&&c.on("mousemove.iLightBox",function(e){r.isMobile||(r.mouseID||r.hideableElements.show(),r.mouseID=clearTimeout(r.mouseID),-1===w.indexOf(e.target)&&(r.mouseID=setTimeout(function(){r.hideableElements.hide(),r.mouseID=clearTimeout(r.mouseID)},3e3)))}),s.controls.slideshow&&s.slideshow.pauseOnHover&&c.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){"mouseenter"==e.type&&r.cycleID?o.pause():"mouseleave"==e.type&&r.isPaused&&o.resume()});var S=e(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");s.controls.mousewheel&&S.on("mousewheel.iLightBox",function(e,t){r.lockWheel||(e.preventDefault(),t<0?o.moveTo("next"):t>0&&o.moveTo("prev"))}),s.controls.swipe&&d.on(m,function(t){if(!(r.nextLock||r.prevLock||1==r.total||r.lockSwipe)){r.BODY.addClass("ilightbox-closedhand");var l,h=t.originalEvent.touches?t.originalEvent.touches[0]:t,p=c.scrollTop(),f=c.scrollLeft(),m=[d.eq(0).offset(),d.eq(1).offset(),d.eq(2).offset()],x=[{top:m[0].top-p,left:m[0].left-f},{top:m[1].top-p,left:m[1].left-f},{top:m[2].top-p,left:m[2].left-f}],w={time:(new Date).getTime(),coords:[h.pageX-f,h.pageY-p]};d.on(v,L),c.one(g,function(e){d.off(v,L),r.BODY.removeClass("ilightbox-closedhand"),w&&l&&("horizontal"==u&&l.time-w.time<1e3&&b(w.coords[0]-l.coords[0])>y&&b(w.coords[1]-l.coords[1])l.coords[0]?r.current!=r.total-1||s.infinite?(r.isSwipe=!0,o.moveTo("next")):S():0!=r.current||s.infinite?(r.isSwipe=!0,o.moveTo("prev")):S():"vertical"==u&&l.time-w.time<1e3&&b(w.coords[1]-l.coords[1])>y&&b(w.coords[0]-l.coords[0])l.coords[1]?r.current!=r.total-1||s.infinite?(r.isSwipe=!0,o.moveTo("next")):S():0!=r.current||s.infinite?(r.isSwipe=!0,o.moveTo("prev")):S():S()),w=l=i})}function k(t){var i=e(this),o=x[t],n=[w.coords[0]-l.coords[0],w.coords[1]-l.coords[1]];i[0].style["horizontal"==u?"left":"top"]=("horizontal"==u?o.left-n[0]:o.top-n[1])+"px"}function L(e){if(w){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;l={time:(new Date).getTime(),coords:[t.pageX-f,t.pageY-p]},d.each(k),e.preventDefault()}}function S(){d.each(function(){var t=e(this),i=t.data("offset")||{top:t.offset().top-p,left:t.offset().left-f},o=i.top,r=i.left;t.css(n,a).stop().animate({top:o,left:r},500,"easeOutCirc",function(){t.css(n,"")})})}})},goTo:function(i){var o=this,r=o.vars,s=o.options,l=i-r.current;if(s.infinite&&(i==r.total-1&&0==r.current&&(l=-1),r.current==r.total-1&&0==i&&(l=1)),1==l)o.moveTo("next");else if(-1==l)o.moveTo("prev");else{if(r.nextLock||r.prevLock)return!1;"function"==typeof s.callback.onBeforeChange&&s.callback.onBeforeChange.call(o,o.ui),s.linkId&&(r.hashLock=!0,t.location.hash=s.linkId+"/"+i),o.items[i]&&(o.items[i].options.mousewheel?o.vars.lockWheel=!1:r.lockWheel=!0,o.items[i].options.swipe?r.lockSwipe=!1:r.lockSwipe=!0),e.each([r.holder,r.nextPhoto,r.prevPhoto],function(e,t){t.css(n,a).fadeOut(s.effects.loadedFadeSpeed)}),r.current=i,r.next=i+1,r.prev=i-1,o.createUI(),setTimeout(function(){o.generateBoxes()},s.effects.loadedFadeSpeed+50),e(".ilightbox-thumbnail",r.thumbnails).removeClass("ilightbox-active").eq(i).addClass("ilightbox-active"),o.positionThumbnails(),s.linkId&&setTimeout(function(){r.hashLock=!1},55),s.infinite||(r.nextButton.add(r.prevButton).add(r.innerPrevButton).add(r.innerNextButton).removeClass("disabled"),0==r.current&&r.prevButton.add(r.innerPrevButton).addClass("disabled"),r.current>=r.total-1&&r.nextButton.add(r.innerNextButton).addClass("disabled")),o.resetCycle(),"function"==typeof s.callback.onAfterChange&&s.callback.onAfterChange.call(o,o.ui)}},moveTo:function(i){var o=this,r=o.vars,s=o.options,l=s.path.toLowerCase(),c=T(),h=s.effects.switchSpeed,u=o.vars.holder,p=u.find("iframe").length?u.find("iframe").attr("src"):"";if(p&&-1!==p.indexOf("vimeo.com")&&u.find("iframe").attr("src",p),r.nextLock||r.prevLock)return!1;var d="next"==i?r.next:r.prev;if(s.linkId&&d&&(r.hashLock=!0,t.location.hash=s.linkId+"/"+d),"next"==i){if(!o.items[d])return!1;var f=r.nextPhoto,m=r.holder,g=r.prevPhoto,v="ilightbox-prev",b="ilightbox-next"}else if("prev"==i){if(!o.items[d])return!1;f=r.prevPhoto,m=r.holder,g=r.nextPhoto,v="ilightbox-next",b="ilightbox-prev"}"function"==typeof s.callback.onBeforeChange&&s.callback.onBeforeChange.call(o,o.ui),"next"==i?r.nextLock=!0:r.prevLock=!0;var x=e("div.ilightbox-caption",m),y=e("div.ilightbox-social",m);if(x.length&&x.stop().fadeOut(h,function(){e(this).remove()}),y.length&&y.stop().fadeOut(h,function(){e(this).remove()}),o.items[d].caption){o.setCaption(o.items[d],f);var w=e("div.ilightbox-caption",f),k=parseInt(w.outerHeight()/f.outerHeight()*100);s.caption.start&&k<=50&&w.fadeIn(h)}var L=o.items[d].options.social;L&&(o.setSocial(L,o.items[d].URL,f),s.social.start&&e("div.ilightbox-social",f).fadeIn(s.effects.fadeSpeed)),e.each([f,m,g],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var S=f.data("offset"),I=c.width-s.styles.pageOffsetX,C=c.height-s.styles.pageOffsetY,O=S.newDims.width,A=S.newDims.height,R=S.thumbsOffset,E=S.diff,D=parseInt(C/2-A/2-E.H-R.H/2),P=parseInt(I/2-O/2-E.W-R.W/2);f.css(n,a).animate({top:D,left:P,opacity:1},h,r.isSwipe?"easeOutCirc":"easeInOutCirc",function(){f.css(n,"")}),e("div.ilightbox-container",f).animate({width:O,height:A},h,r.isSwipe?"easeOutCirc":"easeInOutCirc");var H=m.data("offset"),N=H.object;E=H.diff,O=H.newDims.width,A=H.newDims.height,O=parseInt(O*s.styles["next"==i?"prevScale":"nextScale"]),A=parseInt(A*s.styles["next"==i?"prevScale":"nextScale"]),D="horizontal"==l?parseInt(C/2-N.offsetY-A/2-E.H-R.H/2):parseInt(C-N.offsetX-E.H-R.H/2),"prev"==i?P="horizontal"==l?parseInt(I-N.offsetX-E.W-R.W/2):parseInt(I/2-O/2-E.W-N.offsetY-R.W/2):(D="horizontal"==l?D:parseInt(N.offsetX-E.H-A-R.H/2),P="horizontal"==l?parseInt(N.offsetX-E.W-O-R.W/2):parseInt(I/2-N.offsetY-O/2-E.W-R.W/2)),e("div.ilightbox-container",m).animate({width:O,height:A},h,r.isSwipe?"easeOutCirc":"easeInOutCirc"),m.addClass(v).css(n,a).animate({top:D,left:P,opacity:s.styles.prevOpacity},h,r.isSwipe?"easeOutCirc":"easeInOutCirc",function(){m.css(n,""),e(".ilightbox-thumbnail",r.thumbnails).removeClass("ilightbox-active").eq(d).addClass("ilightbox-active"),o.positionThumbnails(),o.items[d]&&(o.items[d].options.mousewheel?r.lockWheel=!1:r.lockWheel=!0,o.items[d].options.swipe?r.lockSwipe=!1:r.lockSwipe=!0),r.isSwipe=!1,"next"==i?(r.nextPhoto=g,r.prevPhoto=m,r.holder=f,r.nextPhoto.hide(),r.next=r.next+1,r.prev=r.current,r.current=r.current+1,s.infinite&&(r.current>r.total-1&&(r.current=0),r.current==r.total-1&&(r.next=0),0==r.current&&(r.prev=r.total-1)),o.createUI(),o.items[r.next]?o.loadContent(o.items[r.next],"next"):r.nextLock=!1):(r.prevPhoto=g,r.nextPhoto=m,r.holder=f,r.prevPhoto.hide(),r.next=r.current,r.current=r.prev,r.prev=r.current-1,s.infinite&&(r.current==r.total-1&&(r.next=0),0==r.current&&(r.prev=r.total-1)),o.createUI(),o.items[r.prev]?o.loadContent(o.items[r.prev],"prev"):r.prevLock=!1),s.linkId&&setTimeout(function(){r.hashLock=!1},55),s.infinite||(r.nextButton.add(r.prevButton).add(r.innerPrevButton).add(r.innerNextButton).removeClass("disabled"),0==r.current&&r.prevButton.add(r.innerPrevButton).addClass("disabled"),r.current>=r.total-1&&r.nextButton.add(r.innerNextButton).addClass("disabled")),o.repositionPhoto(),o.resetCycle(),"function"==typeof s.callback.onAfterChange&&s.callback.onAfterChange.call(o,o.ui)}),D="horizontal"==l?B(g,"top"):"next"==i?parseInt(-C/2-g.outerHeight()):parseInt(2*D),P="horizontal"==l?"next"==i?parseInt(-I/2-g.outerWidth()):parseInt(2*P):B(g,"left"),g.css(n,a).animate({top:D,left:P,opacity:s.styles.nextOpacity},h,r.isSwipe?"easeOutCirc":"easeInOutCirc",function(){g.css(n,"")}).addClass(b)},setCaption:function(t,i){var o=e('
');t.caption&&(o.html(t.caption),e("div.ilightbox-container",i).append(o))},normalizeSocial:function(i,o){this.vars;var n=this.options,a=t.location.href;return e.each(i,function(e,r){if(!r)return!0;var s,l;switch(e.toLowerCase()){case"facebook":s="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",l="Share on Facebook";break;case"twitter":s="http://twitter.com/home?status={URL}",l="Share on Twitter";break;case"delicious":s="http://delicious.com/post?url={URL}",l="Share on Delicious";break;case"digg":s="http://digg.com/submit?phase=2&url={URL}",l="Share on Digg";break;case"reddit":s="http://reddit.com/submit?url={URL}",l="Share on reddit"}i[e]={URL:r.URL&&H(a,r.URL)||n.linkId&&t.location.href||"string"!=typeof o&&a||o&&H(a,o)||a,source:r.source||s||r.URL&&H(a,r.URL)||o&&H(a,o),text:r.text||l||"Share on "+e,width:void 0===r.width||isNaN(r.width)?640:parseInt(r.width),height:r.height||360}}),i},setSocial:function(t,i,o){var n=e('
'),a="
    ";t=this.normalizeSocial(t,i),e.each(t,function(e,t){e.toLowerCase();var i=t.source.replace(/\{URL\}/g,encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")),o="mail"===e?"":'onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;"';a+='
  • '}),a+="
",n.html(a),e("div.ilightbox-container",o).append(n)},fullScreenAction:function(){this.vars;h.supportsFullScreen?h.isFullScreen()?h.cancelFullScreen(document.documentElement):h.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var t=this,i=t.vars,o=T(),n=t.options;if(n.fullAlone){var a=i.holder,r=t.items[i.current],s=o.width,l=o.height,c=[a,i.nextPhoto,i.prevPhoto,i.nextButton,i.prevButton,i.overlay,i.toolbar,i.thumbnails,i.loader],h=[i.loader,i.thumbnails];if(i.isInFullScreen)i.isInFullScreen=i.lockKey=i.lockWheel=i.lockSwipe=!1,i.overlay.css({opacity:t.options.overlay.opacity}),e.each(h,function(e,t){t.show()}),i.fullScreenButton.attr("title",n.text.enterFullscreen),a.data({naturalWidth:a.data("naturalWidthOld"),naturalHeight:a.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),e.each(c,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof n.callback.onExitFullScreen&&n.callback.onExitFullScreen.call(t,t.ui);else{if(i.isInFullScreen=i.lockKey=i.lockWheel=i.lockSwipe=!0,i.overlay.css({opacity:1}),e.each(h,function(e,t){t.hide()}),i.fullScreenButton.attr("title",n.text.exitFullscreen),-1!=n.fullStretchTypes.indexOf(r.type))a.data({naturalWidthOld:a.data("naturalWidth"),naturalHeightOld:a.data("naturalHeight"),naturalWidth:s,naturalHeight:l});else{o=r.options.fullViewPort||n.fullViewPort||"";var u=s,p=l,d=a.data("naturalWidth"),f=a.data("naturalHeight");if("fill"==o.toLowerCase())(p=u/d*f)u||f>p;u=(m=t.getNewDimenstions(u,p,d,f,g)).width,p=m.height}a.data({naturalWidthOld:a.data("naturalWidth"),naturalHeightOld:a.data("naturalHeight"),naturalWidth:u,naturalHeight:p})}e.each(c,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof n.callback.onEnterFullScreen&&n.callback.onEnterFullScreen.call(t,t.ui)}}else i.isInFullScreen?i.isInFullScreen=!1:i.isInFullScreen=!0;t.repositionPhoto(!0)},closeAction:function(){var i=this,o=i.vars,n=i.options;l.off(".iLightBox"),c.off(".iLightBox"),c.off(f,".ilightbox-overlay"),c.off(f,".ilightbox-next, .ilightbox-next-button"),c.off(f,".ilightbox-prev, .ilightbox-prev-button"),c.off(f,".ilightbox-thumbnail"),c.off(f,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause"),o.isInFullScreen&&h.cancelFullScreen(document.documentElement),e(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),n.hide.effect?o.overlay.stop().fadeOut(n.hide.speed,function(){o.overlay.remove(),o.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(o.overlay.remove(),o.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var a,r=[o.toolbar,o.holder,o.nextPhoto,o.prevPhoto,o.nextButton,o.prevButton,o.loader,o.thumbnails];e.each(r,function(e,t){t.removeAttr("style").remove()}),o.prevButton.removeClass("disabled"),o.nextButton.removeClass("disabled"),o.dontGenerateThumbs=o.isInFullScreen=!1,t.iLightBox=null,n.linkId&&(o.hashLock=!0,a=N(),t.location.hash="",t.scrollTo(a.x,a.y),setTimeout(function(){o.hashLock=!1},55)),"function"==typeof n.callback.onHide&&n.callback.onHide.call(i,i.ui)},repositionPhoto:function(){var t=this,i=t.vars,o=t.options,n=o.path.toLowerCase(),a=T(),r=a.width,s=a.height,l=i.isInFullScreen&&o.fullAlone||i.isMobile||"horizontal"==n?0:i.thumbnails.outerWidth(),c=i.isMobile?i.toolbar.outerHeight():i.isInFullScreen&&o.fullAlone?0:"horizontal"==n?i.thumbnails.outerHeight():0,h=i.isInFullScreen&&o.fullAlone?r:r-o.styles.pageOffsetX,u=i.isInFullScreen&&o.fullAlone?s:s-o.styles.pageOffsetY,p="horizontal"==n?parseInt(t.items[i.next]||t.items[i.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):h/10<=30?30:h/10):parseInt(h/10<=30?30:h/10)+l,d="horizontal"==n?parseInt(u/10<=30?30:u/10)+c:parseInt(t.items[i.next]||t.items[i.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):u/10<=30?30:u/10),f={type:"current",width:h,height:u,item:t.items[i.current],offsetW:p,offsetH:d,thumbsOffsetW:l,thumbsOffsetH:c,animate:arguments.length,holder:i.holder};t.repositionEl(f),t.items[i.next]&&(f=e.extend(f,{type:"next",item:t.items[i.next],offsetX:o.styles.nextOffsetX,offsetY:o.styles.nextOffsetY,holder:i.nextPhoto}),t.repositionEl(f)),t.items[i.prev]&&(f=e.extend(f,{type:"prev",item:t.items[i.prev],offsetX:o.styles.prevOffsetX,offsetY:o.styles.prevOffsetY,holder:i.prevPhoto}),t.repositionEl(f));var m="horizontal"==n?{left:parseInt(h/2-i.loader.outerWidth()/2)}:{top:parseInt(u/2-i.loader.outerHeight()/2)};i.loader.css(m)},repositionEl:function(t){var i=this,o=i.vars,r=i.options,s=r.path.toLowerCase(),l="current"==t.type&&o.isInFullScreen&&r.fullAlone?t.width:t.width-t.offsetW,c="current"==t.type&&o.isInFullScreen&&r.fullAlone?t.height:t.height-t.offsetH,h=t.item,u=t.item.options,p=t.holder,d=t.offsetX||0,f=t.offsetY||0,m=t.thumbsOffsetW,g=t.thumbsOffsetH;"current"==t.type?("number"==typeof u.width&&u.width&&(l=o.isInFullScreen&&r.fullAlone&&(-1!=r.fullStretchTypes.indexOf(h.type)||u.fullViewPort||r.fullViewPort)||u.width>l?l:u.width),"number"==typeof u.height&&u.height&&(c=o.isInFullScreen&&r.fullAlone&&(-1!=r.fullStretchTypes.indexOf(h.type)||u.fullViewPort||r.fullViewPort)||u.height>c?c:u.height)):("number"==typeof u.width&&u.width&&(l=u.width>l?l:u.width),"number"==typeof u.height&&u.height&&(c=u.height>c?c:u.height)),e(".ilightbox-inner-toolbar",p).length&&(c=parseInt(c-e(".ilightbox-inner-toolbar",p).outerHeight()));var v="string"==typeof u.width&&-1!=u.width.indexOf("%")?D(parseInt(u.width.replace("%","")),t.width):p.data("naturalWidth"),b="string"==typeof u.height&&-1!=u.height.indexOf("%")?D(parseInt(u.height.replace("%","")),t.height):p.data("naturalHeight"),x="string"==typeof u.width&&-1!=u.width.indexOf("%")||"string"==typeof u.height&&-1!=u.height.indexOf("%")?{width:v,height:b}:i.getNewDimenstions(l,c,v,b),y=e.extend({},x,{});"prev"==t.type||"next"==t.type?(v=parseInt(x.width*("next"==t.type?r.styles.nextScale:r.styles.prevScale)),b=parseInt(x.height*("next"==t.type?r.styles.nextScale:r.styles.prevScale))):(v=x.width,b=x.height);var w=parseInt((B(p,"padding-left")+B(p,"padding-right")+B(p,"border-left-width")+B(p,"border-right-width"))/2),k=parseInt((B(p,"padding-top")+B(p,"padding-bottom")+B(p,"border-top-width")+B(p,"border-bottom-width")+(e(".ilightbox-inner-toolbar",p).outerHeight()||0))/2);switch(t.type){case"current":var L=parseInt(t.height/2-b/2-k-g/2),S=parseInt(t.width/2-v/2-w-m/2);break;case"next":L="horizontal"==s?parseInt(t.height/2-f-b/2-k-g/2):parseInt(t.height-d-k-g/2),S="horizontal"==s?parseInt(t.width-d-w-m/2):parseInt(t.width/2-v/2-w-f-m/2);break;case"prev":L="horizontal"==s?parseInt(t.height/2-f-b/2-k-g/2):parseInt(d-k-b-g/2),S="horizontal"==s?parseInt(d-w-v-m/2):parseInt(t.width/2-f-v/2-w-m/2)}p.data("offset",{top:L,left:S,newDims:y,diff:{W:w,H:k},thumbsOffset:{W:m,H:g},object:t}),t.animate>0&&r.effects.reposition?(p.css(n,a).stop().animate({top:L,left:S},r.effects.repositionSpeed,"easeOutCirc",function(){p.css(n,"")}),e("div.ilightbox-container",p).stop().animate({width:v,height:b},r.effects.repositionSpeed,"easeOutCirc"),e("div.ilightbox-inner-toolbar",p).stop().animate({width:v},r.effects.repositionSpeed,"easeOutCirc",function(){e(this).css("overflow","visible")})):(p.css({top:L,left:S}),e("div.ilightbox-container",p).css({width:v,height:b}),e("div.ilightbox-inner-toolbar",p).css({width:v}))},resume:function(e){var t=this,i=t.vars,o=t.options;!o.slideshow.pauseTime||o.controls.slideshow&&i.total<=1||ea.options.maxScale?factor=a.options.maxScale:factor=0,html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(t,i){var n=this;switch(i.type){case"video":var a=!1,r=i.videoType,s=i.options.html5video;("video/mp4"==(r=!r&&i.options.videoType?i.options.videoType:r)||"mp4"==i.ext||"m4v"==i.ext||s.h264)&&n.plugins.html5H264?(i.ext="mp4",i.URL=s.h264||i.URL):s.webm&&n.plugins.html5WebM?(i.ext="webm",i.URL=s.webm||i.URL):s.ogg&&n.plugins.html5Vorbis&&(i.ext="ogv",i.URL=s.ogg||i.URL),!n.plugins.html5H264||"video/mp4"!=r&&"mp4"!=i.ext&&"m4v"!=i.ext?!n.plugins.html5WebM||"video/webm"!=r&&"webm"!=i.ext?!n.plugins.html5Vorbis||"video/ogg"!=r&&"ogv"!=i.ext?!n.plugins.html5QuickTime||"video/quicktime"!=r&&"mov"!=i.ext&&"qt"!=i.ext||(a=!0,r="video/quicktime"):(a=!0,r="video/ogg"):(a=!0,r="video/webm"):(a=!0,r="video/mp4"),a?x=e("