var LC_API,second,helpSections;window.__lc=window.__lc||{};window.__lc.license=1048110;window.__lc.chat_between_groups=!1;LC_API=LC_API||{};second=!1;$(function(){helpSections();$(document).on("click",".btn-livechat",function(){var n,t;typeof LC_API.chat_window_minimized!="undefined"?LC_API.open_chat_window():(window.__lc.group=$(this).data("lc-group"),n=document.createElement("script"),n.type="text/javascript",n.async=!0,n.src=("https:"==document.location.protocol?"https://":"http://")+"cdn.livechatinc.com/tracking.js",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t))});$("#help").on("click",".btn-play",function(){var n=$(this).data("video-id");$("#modal_video").find(".modal_content").html('<div class="ratio_"><iframe class="ratio_item" src="https://www.youtube.com/embed/'+n+'?rel=0&amp;controls=2&amp;showinfo=0&amp;iv_load_policy=3&amp;autoplay=1&amp;enablejsapi=1" frameborder="0" allowfullscreen><\/iframe><\/div>')})});helpSections=function(){var n={btn:".anchor-section",adptClass:"adpt-help-section",adptLoadingClass:"adpt-section-loading",btnClose:".btn-help-home",homeUrl:"/help",init:function(){n.actions()},actions:function(){$(document).on("click",n.btn,function(t){t.preventDefault();var i=$(this).attr("href");return wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+i+"","open"),window.location.href=i,!1});window.addEventListener("popstate",function(){var t=window.location.pathname;t==n.homeUrl?n.close():n.open(t,!0)});$(document).on("click",n.btnClose,function(t){t.preventDefault();n.close()});$("#help").on("click",".btn-enquiry",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","enquiry")});$("#help").on("click",".btn-livechat",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","livechat")});$("#help").on("click",".btn-action",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","action")});$("#help").on("click",".btn-play",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","video "+$(this).data("video")+"")});$("#help").on("click",".location",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","location "+$(this).attr("href").replace("/locations/","")+"")});$("#help").on("click",".btn-faq",function(){wfHelpers.isGaLoaded()&&ga(wfHelpers.gaTrackerName()+".send","event","help",""+window.location.pathname+"","faq - "+$(this).text()+"")})},open:function(t,i){var r=typeof i!="undefined"?i:!1;$("body").addClass(n.adptLoadingClass);$.ajax({url:t,type:"post",success:function(i){$("body").addClass(n.adptClass).removeClass(n.adptLoadingClass);$("#help_section").html(i);modules.smoothScroll.to("#help");typeof rTapNotifyDOMChange=="function"&&window.rTapNotifyDOMChange(document.body);r||window.history.pushState(i,"",t.replace(window.location.hostname+"/",""))},error:function(t){$("body").removeClass(n.adptLoadingClass);console.log(t)}})},close:function(){$("body").removeClass(n.adptClass);window.history.pushState("","",n.homeUrl)}};return n.init(),n}