function translationCallback(){cloneTranslate();$(".selectedLangugage").empty();$(".goog-te-combo option:selected").val().length>0?($(".selectedLangugage").text($(".goog-te-combo option:selected").val()),$(".currentLanguage").text($($(".goog-te-combo option:selected")[0]).text())):$(".selectedLangugage").text("en");setTimeout(function(){aws.header.showItemsinMore();updateTitle()},500)}function updateTitle(){setTimeout(function(){$(".navbar-nav.navbar-left>li>a").each(function(){$(this).attr("title","");$(this).width()>119&&$(this).attr("title",$(this).text())});$(".navbar-nav.navbar-right>li>a").each(function(){$(this).attr("title","");$(this).parents("li").hasClass("global-search-icon")?$(this).width()>189&&$(this).attr("title",$(this).text()):$(this).width()>119&&$(this).attr("title",$(this).text())})},1e3)}function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"en"},"google_translate_element");$("#google_translate_element1").parents("li").first().hasClass("active")==!0?setTimeout(function(){jQuery("#google_translate_element").detach().appendTo("#google_translate_element1")},50):$("#google_translate_element2").parents("li").first().hasClass("active")==!0?setTimeout(function(){jQuery("#google_translate_element").detach().appendTo("#google_translate_element2")},50):$("#google_translate_element3").parents("li").first().hasClass("active")==!0?setTimeout(function(){jQuery("#google_translate_element").detach().appendTo("#google_translate_element3")},50):$("#google_translate_element4").parents("li").first().hasClass("active")==!0&&setTimeout(function(){jQuery("#google_translate_element").detach().appendTo("#google_translate_element4")},50);jQuery(".goog-te-combo").attr("id","selectId");cloneTranslate()}function cloneTranslate(){var n=$("#google_translate_element").parents("li").first().hasClass("active")==!0?$("#google_translate_element"):$("#google_translate_element1").parents("li").first().hasClass("active")==!0?$("#google_translate_element1"):$("#google_translate_element2").parents("li").first().hasClass("active")==!0?$("#google_translate_element2"):$("#google_translate_element3").parents("li").first().hasClass("active")==!0?$("#google_translate_element3"):$("#google_translate_element4").parents("li").first().hasClass("active")==!0?$("#google_translate_element4"):$("#google_translate_element");n.find("select").on("change",function(){return $(".selectedLangugage").text($(this).val()),!0})}$(document).ready(function(){jQuery(".ct-topbar").mouseover(function(){if($("#selectId").length){document.getElementById("selectId").size="18";$(".ct-topbar,.goog-te-combo").on("keyup",function(n){var t=n.which;(t==13||t==27)&&$(".popup-overlay").hide()})}cloneTranslate();document.getElementById("skiptocontent").addEventListener("DOMSubtreeModified",translationCallback,!1);$(".popup-overlay").show()});jQuery(".ct-topbar").on("focusin",function(){$(this).addClass("hovered");$(this).trigger("mouseenter")});jQuery(".ct-topbar").on("touchstart",function(){$(".ct-language__dropdown").is(":visible")==!0?($("body").removeClass("aws-scroll-hidden"),$(".popup-overlay").hide(),$(".ct-topbar").removeClass("hovered"),$("body").removeClass("noscroll")):($(this).addClass("hovered"),$(this).trigger("mouseenter"))});jQuery(".ct-language__dropdown").on("focusout mouseleave",function(){$(".ct-topbar").removeClass("hovered")});jQuery(".list-unstyled").mouseleave(function(){$("body").removeClass("aws-scroll-hidden");$(".popup-overlay").hide()});$(".google-translate").on("click keypress",function(){document.getElementById("selectId").size="1";googleTranslateElementInit()});$(".ct-topbar").on("mouseleave focusout touchend",function(){$(".popup-overlay").hide();$(".ct-topbar").removeClass("hovered");$("body").removeClass("noscroll")})})