function ChangeNavCountrySuccess(){var n=$("#mobileLanguageSwitch ul li:first a").attr("href"),t="";$("#mobileLanguageSwitch ul li").length>1?t=n.indexOf("?")>-1?"&menu=y":"?menu=y":(n=n.replace("&menu=y",""),n=n.replace("?menu=y",""),t="");location.href=n+t}function getQueryStringByName(n){var t=location.search.match(new RegExp("[?&]"+n+"=([^&]+)","i"));return t==null||t.length<1?"":t[1]}Lenovo.NavigationBar=function(n){this.JComponent=n;this.SelectCountry=n.attr("data-selectedcountry");this.init()};Lenovo.NavigationBar.prototype={init:function(){var n=this;$.divselect("#mobileCountrySwitch","#inputMobileCountry");$.divselect("#mobileLanguageSwitch","#inputMobileLanguage");$("#mobileCountrySwitch ul li a").click(function(){var n=$(this).attr("data-path");$("#SelectNavCountryPath").val(n);$("#NavGetCountryLanguagesForm").submit()});$(".mobile-nav").click(function(){$(".mobile-nav-wrapper").toggle()});$(".mobile-nav-close").click(function(){$(".mobile-nav-wrapper").toggle()});getQueryStringByName("menu")=="y"&&$(".mobile-nav-wrapper").show()}};Lenovo.MenuBar=function(){this.init()};Lenovo.MenuBar.prototype={init:function(){$(".header-subnav-dropdown").hover(function(){$(this).prev().toggleClass("hover")});$(".header-subnav > li > a").bind("mouseover",function(){var n=$(this).next(".header-subnav-dropdown").children(".subNavColumn").length;n>2&&$(this).next(".header-subnav-dropdown").css("left","0")})}}