function onChangeSiteLang(href){var i=location.href.indexOf("?");if(i>0)href+=location.href.substr(i);document.location.href=href;}if(location.href.indexOf("?")>0&&location.href.indexOf("twtheme=no")>0){$("#toolbar1,#toolbar2,#toolbar3,#footersmall,#footerfat").hide();var idbmk=location.href;idbmk=idbmk.substring(idbmk.lastIndexOf("#")+1,idbmk.lastIndexOf("?"));if(idbmk!=""){idbmk=idbmk.split("?")[0];if($("#"+idbmk+"_container").length)idbmk+="_container";$("html,body").animate({scrollTop:$("#"+idbmk).offset().top},0);}}$(".dropdown-toggle").dropdown();$("#site").prepend("");var offset=220;var duration=500;$(window).scroll(function(){if($(this).scrollTop()>offset){$(".toTop").fadeIn(duration);}else{$(".toTop").fadeOut(duration);}});$(".toTop").click(function(event){event.preventDefault();$("html, body").animate({scrollTop:0},duration);return(false);});if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded();});