(()=>{var e;!function(e){if(void 0===e.ltg){var t=function(e,t){Array.prototype.forEach.call(document.querySelectorAll(e),t)};e.ltg={},e.ltg.action=t,e.ltg.removeClass=function(e,n){t(e,(function(e){return e.classList.remove(n)}))},e.ltg.addClass=function(e,n){t(e,(function(e){return e.classList.add(n)}))},e.ltg.swap=function(e,n,o){t(e,(function(e){e.classList.remove(n),e.classList.add(o)}))}}}(window),function(e,t){var n=e.ltg.addClass,o=(e.ltg.swap,function(){e.pageYOffset>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")});if(e.addEventListener("scroll",o,!1),e.addEventListener("DOMContentLoaded",o,!1),lightningOpt.header_scrool){var i=!1,s=!1,a=function(){!s&&e.pageYOffset>160?t.body.classList.add("header_scrolled"):t.body.classList.remove("header_scrolled")},c=function(n){t.body.classList.remove("header_scrolled"),e.removeEventListener("scroll",a),!1!==i&&clearTimeout(i),s=!0,i=setTimeout((function(){e.addEventListener("scroll",a,!0),s=!1}),2e3)};e.addEventListener("DOMContentLoaded",(function(){Array.prototype.forEach.call(t.getElementsByTagName("a"),(function(e){var t=e.getAttribute("href");t&&0==t.indexOf("#")&&(["tab","button"].indexOf(e.getAttribute("role"))>0||e.getAttribute("data-toggle")||e.getAttribute("carousel-control")||e.addEventListener("click",c))}))})),e.addEventListener("scroll",a,!0),e.addEventListener("DOMContentLoaded",a,!1)}function l(){Array.prototype.forEach.call(t.getElementsByTagName("iframe"),(function(e){var t=e.getAttribute("src");if(t&&(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("maps")>=0)){var n=e.getAttribute("width"),o=e.getAttribute("height")/n,i=e.offsetWidth*o;e.style.maxWidth="100%",e.style.height=i+"px"}}))}e.addEventListener("DOMContentLoaded",(function(){n("#top__fullcarousel .carousel-indicators li:first-child","active"),n("#top__fullcarousel .item:first-child","active")})),e.addEventListener("DOMContentLoaded",l);var r=!1;e.addEventListener("resize",(function(){r&&clearTimeout(r),r=setTimeout(l,200)})),e.addEventListener("DOMContentLoaded",(function(){n("textarea","form-control"),n("select","form-control"),n("input[type=text]","form-control"),n("input[type=number]","form-control"),n("input[type=search]","form-control"),n("input[type=password]","form-control"),n("input[type=email]","form-control"),n("input[type=tel]","form-control"),n("input[type=submit]","btn"),n("input[type=submit]","btn-primary"),n("form#searchform","form-inline"),n("form#searchform input[type=text]","form-group")}),!1)}(window,document),function(e,t,n){var o=!1;function i(){if(!t.body.classList.contains("jpnstyle")){var e=t.getElementsByClassName("siteHeader")[0];e.style.position="fixed";var n=e.clientHeight;if(e.nextElementSibling.style.marginTop=n+"px",t.body.classList.contains("admin-bar")){var o=t.getElementById("wpadminbar").clientHeight;e.style.top=o+"px"}}}e.addEventListener("DOMContentLoaded",(function(){t.body.classList.contains("headfix")&&(e.addEventListener("resize",(function(){!1!==o&&clearTimeout(o),o=setTimeout(i,300)})),i())})),e.addEventListener("DOMContentLoaded",(function(){if(t.body.classList.contains("header_height_changer")){var o=t.querySelector(".navbar-brand img").clientHeight,s=t.body.clientWidth;o<38&&(o=s>=991?60:40),e.addEventListener("scroll",(function(){t.body.clientWidth>=991&&((e.pageYOffset||t.documentElement.scrollTop)>10?function(e){var t=.8*e;n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"5px","padding-bottom":"0px"},100),n(".navbar-brand img").stop().animate({"max-height":t+"px"},100)}(o):function(e){n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"20px","padding-bottom":"18px"},100,(function(){i()})),n(".navbar-brand img").stop().animate({"max-height":e+"px"},100)}(o))}))}}))}(window,document,jQuery),function(e,t){function n(){var e=t.getElementsByClassName("sideSection")[0];e.style.position=null,e.style.top=null,e.style.bottom=null,e.style.left=null,e.style.right=null,e.style.width=null}function o(){var e=t.getElementById("gMenu_outer"),n=e?e.getBoundingClientRect().bottom:0;return n<0&&(n=0),n+40}function i(){var i="top";1==t.body.classList.contains("sidebar-fix-priority-top")?i="top":1==t.body.classList.contains("sidebar-fix-priority-bottom")&&(i="bottom");var s=t.body.offsetWidth,a=t.documentElement.clientHeight;if(s<992)n();else{var c=t.getElementsByClassName("mainSection")[0],l=t.getElementsByClassName("sideSection")[0],r=l.parentNode,d=c.getBoundingClientRect().top+e.pageYOffset,u=c.offsetHeight,m=l.offsetHeight;l.style.position=null,l.style.width=null;var f=l.offsetWidth,p=d+m;l.style.position=null,l.style.left=null;var v=l.getBoundingClientRect().left+e.pageXOffset,g=a-o();"bottom"===i&&g>m&&(i="top");var y=d+u-a,b=u-m,h=p-a,L=d-o();if(m>u)return;var E=!1;L<e.pageYOffset&&(E=!0);var x=!1;o()+m>c.getBoundingClientRect().bottom&&(x=!0);var A=!1;h<e.pageYOffset&&(A=!0);var w=!1;y<e.pageYOffset&&(w=!0),"top"===i?E?(l.style.position="fixed",l.style.top=o()+"px",l.style.left=v+"px",l.style.width=f+"px",x&&(l.style.position=null,l.style.left=null,l.style.width=null,l.style.top=b+"px")):n():A?(l.style.position="fixed",l.style.bottom="30px",l.style.left=v+"px",l.style.width=f+"px",w&&(l.style.left=null,r.style.position="relative",l.style.position="absolute",l.style.bottom=0,1!=l.classList.contains("sideSection-pos-left")&&(l.style.right=0))):n()}}e.addEventListener("scroll",(function(){t.body.classList.contains("sidebar-fix")&&(t.getElementsByClassName("sideSection").length<1||i())})),e.addEventListener("resize",(function(){t.body.classList.contains("sidebar-fix")&&(t.getElementsByClassName("sideSection").length<1||i())}))}(window,document),function(e,t){e.addEventListener("load",(function(){(o=t.getElementsByClassName("vk-prlx")).length<1||(Array.prototype.forEach.call(o,(function(e){var t=e.style.backgroundImage.replace(n,"$1");if("none"!=t){var o=new Image;o.src=t,e.setAttribute("image_rate",o.width/o.height),e.setAttribute("image_w",o.width),e.setAttribute("image_h",o.height)}})),e.addEventListener("scroll",i),e.addEventListener("resize",i))}));var n=/.*url\(['"]*(.*?)['"]*\).*/g,o=[];function i(){var i=e.pageYOffset||t.documentElement.scrollTop,s=t.documentElement.clientHeight;Array.prototype.forEach.call(o,(function(e){e.style.backgroundImage.replace(n,"$1");var t=e.getAttribute("image_rate");if(t){e.getAttribute("image_w");var o,a=e.getAttribute("image_h"),c=e.offsetWidth,l=e.offsetHeight,r=0,d=0;(o=l+1*l)<a?(d=a,r=a*t):(d=o,r=o*t),r<c&&(r=c,d=c/t);var u=e.getBoundingClientRect().top+i-s,m=0;if(u<i){var f=(o-l)/(s+l)*(i-u);o<d&&(m=(d-o)/2),f=-(o-l)+f;var p="center "+(f-=m)+"px";e.style.backgroundPosition=p}e.style.backgroundSize=r+"px "+d+"px"}}))}}(window,document),e={isMobileDevice:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},addDeviceClass:function(){var t=e.isMobileDevice()?"device-mobile":"device-pc";document.body.classList.remove("device-mobile","device-pc"),document.body.classList.add(t)},openMenu:function(){e.menuBtn&&e.menuBtn.classList.add("menu-open"),e.menu&&e.menu.classList.add("vk-mobile-nav-open")},closeMenu:function(){e.menuBtn&&e.menuBtn.classList.remove("menu-open"),e.menu&&e.menu.classList.remove("vk-mobile-nav-open")}},window.addEventListener("DOMContentLoaded",(function(){e.addDeviceClass(),e.menuBtn=document.getElementById("vk-mobile-nav-menu-btn"),e.menu=document.getElementById("vk-mobile-nav"),e.menuBtn&&e.menu||console.error("Required elements not found");var t=document.getElementById("vk-mobile-nav-menu-btn");t&&t.addEventListener("click",(function(){t.classList.contains("menu-open")?e.closeMenu():e.openMenu()})),document.querySelectorAll(".vk-mobile-nav li > a").forEach((function(t){t.addEventListener("click",(function(t){t.target.getAttribute("href").indexOf(!1)&&e.closeMenu()}))}))})),e.runAcc=function(){var t=document.querySelectorAll("ul.vk-menu-acc"),n=document.createElement("span");n.classList.add("acc-btn","acc-btn-open"),t.forEach((function(t){t.classList.add("vk-menu-acc-active"),t.querySelectorAll("ul.sub-menu").forEach((function(t){t.before(n.cloneNode(!0)),t.classList.add("acc-child-close"),t.previousElementSibling.addEventListener("click",(function(){e.accAction(t)}))}))}))},e.accAction=function(e){var t=e.previousElementSibling;e.classList.contains("acc-child-close")?(e.classList.remove("acc-child-close"),e.classList.add("acc-child-open"),t.classList.remove("acc-btn-open"),t.classList.add("acc-btn-close"),e.parentNode.classList.remove("acc-parent-close"),e.parentNode.classList.add("acc-parent-open")):(e.classList.remove("acc-child-open"),e.classList.add("acc-child-close"),t.classList.remove("acc-btn-close"),t.classList.add("acc-btn-open"),e.parentNode.classList.remove("acc-parent-open"),e.parentNode.classList.add("acc-parent-close"))},e.resetAccordion=function(){document.querySelectorAll("ul.vk-menu-acc").forEach((function(e){e.classList.remove("vk-menu-acc-active")})),document.querySelectorAll("ul.vk-menu-acc li").forEach((function(e){e.classList.remove("acc-parent-open")})),document.querySelectorAll("ul.vk-menu-acc li .acc-child-close").forEach((function(e){e.classList.remove("acc-child-close")})),document.querySelectorAll("ul.vk-menu-acc li .acc-child-open").forEach((function(e){e.classList.remove("acc-child-open")}))},window.addEventListener("DOMContentLoaded",(function(){e.runAcc()}))})();