function t396_init(t){var e,i,n,o,a=document.getElementById("rec"+t),r=a?a.querySelector(".t396"):null,d=a?a.querySelector(".t396__artboard"):null;d&&(t396_initTNobj(t,d),o=t396_detectResolution(t),e=document.getElementById("allrecords"),window.tn_window_width=document.documentElement.clientWidth,window.tn["ab"+t].scaleFactor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),t396_switchResolution(t,o),t396_updateTNobj(t),t396_artboard_build("",t),i="ontouchend"in document,window.addEventListener("resize",function(){tn_console(">>>> t396: Window on Resize event >>>>"),d.classList.add("t396_resizechange"),d&&d.classList.contains("t396_fullscreenchange")?d.classList.remove("t396_fullscreenchange"):t396_waitForFinalEvent(function(){(!window.t396__isMobile&&!i||document.documentElement.clientWidth!==window.tn_window_width)&&(t396_doResize(t),d.classList.remove("t396_resizechange"))},500,"resizeruniqueid"+t)}),window.addEventListener("orientationchange",function(){tn_console(">>>> t396: Orient change event >>>>"),t396_waitForFinalEvent(function(){t396_doResize(t)},600,"orientationuniqueid"+t)}),window.addEventListener("load",function(){t396_allelems__renderView(d);var t=d?window.getComputedStyle(d).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&d&&d.addEventListener("scroll",t_throttle(function(){var t=e?e.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()})},500)),""!==window.location.hash&&"visible"===t&&(d&&(d.style.overflow="hidden"),setTimeout(function(){d&&(d.style.overflow="visible")},1))}),d&&d.addEventListener("fullscreenchange",function(){d.classList.add("t396_fullscreenchange")}),document.querySelector(".t830")&&window.addEventListener("load",function(){["t830__allrecords_padd","t830__allrecords_padd-small"].some(function(t){return e.classList.contains(t)})?t396_doResize(t):e.addEventListener("allRecPaddingInit",function(){t396_doResize(t)})}),a&&r&&d&&"yes"===a.getAttribute("data-connect-with-tab")&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_doResize(t)}),setTimeout(function(){a&&a.closest("#allrecordstable")&&r&&d&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_doResize(t)})},1e3),o=!!document.querySelector(".t635__textholder"),a&&o&&r&&d&&r.addEventListener("animationInited",function(){t396_allelems__renderView(d),t396_doResize(t)}),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&r&&r.classList.add("t396_safari"),o="window"===t396_ab__getFieldValue(d,"upscale"),n=e?"edit"===e.getAttribute("data-tilda-mode"):null,o&&!n&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}),n||"y"!==t396_ab__getFieldValue(d,"fixed")||t396_ab__updatePosOnScroll(d,a),n&&r&&d&&(o=d.getAttribute("data-artboard-ovrflw"),r.style.position="relative",r.style.zIndex="auto"===o||"visible"===o?"2":"1"))}function t396_isOnlyScalableBrowser(){var t=-1!==navigator.userAgent.search("Firefox"),e=!!window.opr&&!!window.opr.addons||!!window.opera||-1!==navigator.userAgent.indexOf(" OPR/");return t||e}function t396_doResize(t){var e=t396_isOnlyScalableBrowser(),i=document.getElementById("rec"+t),n=document.getElementById("allrecords"),o=t396_detectResolution(t),e=(t396_removeElementFromDOM(i?i.querySelector(".t396__scale-style"):null),e?(e=i?i.querySelectorAll(".tn-atom"):[],Array.prototype.forEach.call(e,function(t){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)})):(e=i?i.querySelectorAll(".t396__elem"):[],Array.prototype.forEach.call(e,function(t){t.style.zoom="";t=t.querySelector(".tn-atom");t&&(t.style.transformOrigin="")})),i?i.querySelector(".t396__artboard"):null),i="ab"+t,a=e?e.clientWidth:0,i=(window.tn_window_width=document.documentElement.clientWidth,window.tn[i].scaleFactor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_offset=(a*window.tn_scale_factor-a)/2,t396_switchResolution(t,o),t396_updateTNobj(t),t396_ab__renderView(e),n?n.getAttribute("data-tilda-mode"):"");"window"===t396_ab__getFieldValue(e,"upscale")&&"edit"!==i&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}),t396_allelems__renderView(e)}function t396_detectResolution(t){var e,i;if(t)return e=window.t396__isMobile?document.documentElement.clientWidth:window.innerWidth,window.tn["ab"+t].screens.forEach(function(t){t<=e&&(i=t)}),i}function t396_initTNobj(t,e){e&&(tn_console("func: initTNobj"),void 0===window.tn&&(window.tn={},window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"]),t396_setScreensTNobj(t,e))}function t396_setScreensTNobj(t,e){var i="ab"+t,t=(window.tn[i]={},window.tn[i].screens=[],e.getAttribute("data-artboard-screens"));t?(t=t.split(",")).forEach(function(t){t=parseInt(t,10),window.tn[i].screens.push(t)}):window.tn[i].screens=[320,480,640,960,1200]}function t396_updateTNobj(t){tn_console("func: updateTNobj");var e="ab"+t,t=document.getElementById("allrecords"),i=t&&window.getComputedStyle(t).paddingLeft||"0",i=parseInt(i,10),n=t&&window.getComputedStyle(t).paddingRight||"0",n=parseInt(n,10);window.zero_window_width_hook&&"allrecords"===window.zero_window_width_hook&&t?window.tn.window_width=t.clientWidth-(i+n):window.tn.window_width=document.documentElement.clientWidth,window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight;for(var o=window.tn[e].screens.slice().reverse(),a=0;an&&i.classList.add("t396__artboard-fixed-active"),o=["t396__artboard-fixed-active"],t&&o.push("t396__artboard-fixed"),window.addEventListener("scroll",function(){a=a||setTimeout(function(){var e=window.pageYOffset>n;o.forEach(function(t){e?i.classList.add(t):i.classList.remove(t)}),clearTimeout(a),a=0},200)})))}function t396_ab__renderView(t){if(!t)return!1;for(var e=window.tn.ab_fields,i=document.getElementById("allrecords"),n=0;n>16,(65280&t)>>8,255&t]}function t396_elem__getWidth(t,e){var i="ab"+(t=t396_getEl(t)).closest(".t396__artboard").getAttribute("data-artboard-recid");return e=e||t396_elem__getFieldValue(t,"width"),e=parseFloat(e),e="%"===t396_elem__getFieldValue(t,"widthunits")?"window"===t396_elem__getFieldValue(t,"container")?window.tn.window_width*e/100:window.tn[i].grid_width*e/100:e}function t396_elem__getHeight(t,e){t=t396_getEl(t),e=e||t396_elem__getFieldValue(t,"height"),e=parseFloat(e);var i,n,o=t.getAttribute("data-elem-type");return"shape"===o||"video"===o||"html"===o||"gallery"===o?"%"===t396_elem__getFieldValue(t,"heightunits")&&(i=(n=t.parentNode)?n.getAttribute("data-artboard-proxy-min-height"):"0",n=n?n.getAttribute("data-artboard-proxy-max-height"):"0",i=parseFloat(i),n=parseFloat(n),e="window"===t396_elem__getFieldValue(t,"container")?n*(e/100):i*(e/100)):"button"!==o&&(e=t.clientHeight),e}function t396_roundFloat(t){return t=Math.round(100*t)/100}function tn_console(t){1==+window.tn_comments&&console.log(t)}function t396_hex2rgba(t,e){if(!t)return!1;var i=t.replace(/#/,""),i=(3===i.length&&(t="#"+i[0]+i[0]+i[1]+i[1]+i[2]+i[2]),parseInt(t.substring(1),16));return[(16711680&i)>>16,(65280&i)>>8,255&i,parseFloat(e)]}function t396_removeElementFromDOM(t){(t=t396_getEl(t))&&t.parentNode&&t.parentNode.removeChild(t)}function t396_getEl(t){return window.jQuery&&t instanceof jQuery?t.length?t.get(0):null:t}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}return null});