function t396_init(e){var i,t,n,o,r,a=document.getElementById("rec"+e),l=a?a.querySelector(".t396"):null,d=a?a.querySelector(".t396__artboard"):null;d&&(t396_initTNobj(e,d),o=t396_detectResolution(e),i=document.getElementById("allrecords"),window.tn_window_width=document.documentElement.clientWidth,window.tn["ab"+e].scaleFactor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),t396_switchResolution(e,o),t396_updateTNobj(e),t396_artboard_build("",e),t="ontouchend"in document,window.addEventListener("resize",function(){d.classList.add("t396_resizechange"),t396_waitForFinalEvent(function(){window.t396__isMobile||t?document.documentElement.clientWidth!==window.tn_window_width&&a&&t396_isBlockVisible(a)&&(t396_doResize(e),d.classList.remove("t396_resizechange")):a&&t396_isBlockVisible(a)&&(t396_doResize(e),d.classList.remove("t396_resizechange"))},500,"resizeruniqueid"+e)}),window.addEventListener("orientationchange",function(){t396_waitForFinalEvent(function(){a&&t396_isBlockVisible(a)&&t396_doResize(e)},600,"orientationuniqueid"+e)}),window.addEventListener("load",function(){t396_allelems__renderView(d),t396_allgroups__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=i?i.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))}),window.tildaMembers&&"MutationObserver"in window&&(n=new MutationObserver(function(t){t.forEach(function(t){"attributes"===t.type&&"class"===t.attributeName&&t.target.classList.contains("tlk-courses_page")&&(t396_doResize(e),n.disconnect())})})).observe(document.body,{attributes:!0}),document.querySelector(".t830")&&t_onReady(function(){["t830__allrecords_padd","t830__allrecords_padd-small"].some(function(t){return i.classList.contains(t)})?t396_doResize(e):i.addEventListener("allRecPaddingInit",function(){t396_doResize(e)})}),a&&l&&d&&"yes"===a.getAttribute("data-connect-with-tab")&&l.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_allgroups__renderView(d),t396_doResize(e)}),setTimeout(function(){a&&a.closest("#allrecordstable")&&l&&d&&l.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_allgroups__renderView(d),t396_doResize(e)})},1e3),o=!!document.querySelector(".t635__textholder"),a&&o&&l&&d&&l.addEventListener("animationInited",function(){t396_allelems__renderView(d),t396_allgroups__renderView(d),t396_doResize(e)}),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&l&&l.classList.add("t396_safari"),o="window"===t396_ab__getFieldValue(d,"upscale"),r=i?"edit"===i.getAttribute("data-tilda-mode"):null,o&&!r&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(e)}),r||"y"!==t396_ab__getFieldValue(d,"fixed-need-js")||t_onFuncLoad("t396__processFixedArtBoard",function(){t396__processFixedArtBoard(d)}),t396__processAbsoluteArtBoard(d),t396__processTopShift(d,e,!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__processTopShift(t,e,i){"function"!=typeof window.t396__updateTopShift||"y"!==t396_ab__getFieldValue(t,"shift-processed")&&"y"!==t396_ab__getFieldValue(t,"fixed-shift")||t396__updateTopShift(e,i)}function t396_doResize(t){var e=t396_isOnlyScalableBrowser(),i=document.getElementById("rec"+t),n=document.getElementById("allrecords"),o=t396_detectResolution(t),r=(t396_removeElementFromDOM(i?i.querySelector(".t396__scale-style"):null),e?(e=i?i.querySelectorAll(".tn-molecule, .tn-atom"):[],Array.prototype.forEach.call(e,function(t){var e,i;t.classList.contains("tn-atom")&&t.closest(".tn-molecule")||((i=(e=t.closest(".tn-atom__scale-wrapper"))?e.parentNode:null)&&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="",t.style.fontSize="",t.style.webkitTextSizeAdjust="")})),i?i.querySelector(".t396__artboard"):null),e="ab"+t,i=r?r.clientWidth:0,e=(window.tn_window_width=document.documentElement.clientWidth,window.tn[e].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=(i*window.tn_scale_factor-i)/2,t396_switchResolution(t,o),t396_updateTNobj(t),t396_ab__renderView(r),n?n.getAttribute("data-tilda-mode"):"");"window"===t396_ab__getFieldValue(r,"upscale")&&"edit"!==e&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}),"edit"!==e&&"y"===t396_ab__getFieldValue(r,"fixed-need-js")&&t_onFuncLoad("t396__processFixedArtBoard",function(){t396__processFixedArtBoard(r)}),t396__processAbsoluteArtBoard(r),t396__processTopShift(r,t,!0),t396_allelems__renderView(r),t396_allgroups__renderView(r),r&&[r,r.querySelector(".t396__carrier"),r.querySelector(".t396__filter")].forEach(function(t){t&&(t.style.height="")})}function t396__processAbsoluteArtBoard(t){var e,i,n;!t||"fixed"!==(n=t396_ab__getFieldValue(t,"pos"))&&(e="t396__artboard-fixed-no-bg","absolute"!==n?t.classList.remove(e):(n=getComputedStyle(t),i=!(i=t.querySelector(".t396__filter"))||"none"===getComputedStyle(i).backgroundImage,n="rgba(0, 0, 0, 0)"===n.backgroundColor&&"none"===n.backgroundImage,t.classList[n&&i?"add":"remove"](e)))}function t396_detectResolution(t){var e,i;if(t)return t="ab"+t,e=window.innerWidth,(window.t396__isMobile||window.t396__isIPad)&&(e=document.documentElement.clientWidth),window.tn[t].screens.forEach(function(t){t<=e&&(i=t)}),i=void 0===i?window.tn[t].screens[0]:i}function t396_initTNobj(t,e){e&&(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__getAxisXPadding(){var t=document.getElementById("allrecords"),e=Boolean(window.tildaMembers)||"allrecords"===window.zero_window_width_hook;return t&&e&&[document.body,t].reduce(function(t,e){var i=window.getComputedStyle(e).paddingLeft,e=window.getComputedStyle(e).paddingRight;return t+parseInt(i,10)+parseInt(e,10)},0)||0}function t396_updateTNobj(t){for(var e=t396__getAxisXPadding(),i=(window.tn.window_width=document.documentElement.clientWidth,e&&(window.tn.window_width-=e),window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight,"ab"+t),n=window.tn[i].screens.slice().reverse(),o=0;oparseInt(t,10))}