function applyBackBtn(){$(".navbar-nav").show();$(".backBtn, .MobileThirdLevel").hide();$(".dropdown-child-one").slideDown()}$(document).ready(function(){function r(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1}var t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||"onmsgesturechange"in window,i=80,n;$(".dropdown-child-two").on({mouseenter:function(){var t=this;window.innerWidth>767&&(n=setTimeout(function(){$(".thirdLevel").hide();$(t).children(".thirdLevel").show()},i))},mouseleave:function(){var t=this;clearTimeout(n)}},function(){clearTimeout(n)});t&&$(".MobileNavigationLink").removeAttr("href");$(window).resize(function(){window.innerWidth>767?($(".MobileThirdLevel").hide(),$(".dropdown-child-one").hide(),$(".nav").show()):$(".thirdLevel").hide()});$(".dropDownTrigger").on("click",function(){t&&($(this).find("a.levelOneLink").attr("href","#"),$(this).find(".dropdown-child-one:hidden").show(),$(this).find(".dropdown-child-one:visible").hide())});if(navigator.userAgent.match(/iPhone/i))$(".MobileNavigationLink").on("click touchend",function(){window.innerWidth<767&&($(".navbar-nav").hide(),$(".MobileThirdLevel").html($(this).parent().children(".thirdLevel").html()),$(".MobileThirdLevel").css("display","none"),$(".backBtn, .thirdLevelBlock, .MobileThirdLevel").show(),$(this).removeAttr("href"))});else $(".MobileNavigationLink").on("click",function(){window.innerWidth<767&&($(".navbar-nav").hide(),$(".MobileThirdLevel").html($(this).parent().children(".thirdLevel").html()),$(".MobileThirdLevel").css("display","none"),$(".backBtn, .thirdLevelBlock, .MobileThirdLevel").delay(50).slideDown(1),$(this).removeAttr("href"))});r()||$(".hoverNav").hover(function(){$(".thirdLevel").hide()});$(document).on("click",function(n){var t=$(".dropdown-top");t.is(n.target)||t.has(n.target).length!==0||($(".dropdown-child-one").hide(),$(".thirdLevel").hide())})})