var ISPHONE=window.outerWidth<768,ISTABLET=window.outerWidth<1025&&void 0!==window.orientation;!function(n){if(n(document).on("vclick",'a[target="webapp"]',(function(t){return t.preventDefault(),window.location=n(this).attr("href"),!1})),n(document).on("vclick",(function(t){n(t.target).is("input")||n("input:focus").trigger("blur")})),ISTABLET){var t=function(n){return n.stopPropagation(),n.preventDefault(),!1};n('#menu li:has("ul")').find("a:first").each((function(o,i){n(i).unbind("vclick").on("vclick",t)}))}ISPHONE&&(setTimeout((function(){window.scrollTo(0,0)}),0),n("#logo").unbind("vclick").on("vclick",(function(t){return t.preventDefault(),t.stopPropagation(),window.scrollTo(0,0),n("#logo").toggleClass("active"),n("#menu").toggle(),!1})))}(jQuery);