");}$("#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);});function updateSidebarH(){var w=("WebkitTransform" in document.documentElement.style)?$(window).width():window.innerWidth;if(w>=768) $("#top-sb").height($("#top-content").height()); else $("#top-sb").height("auto");}$(window).resize(function(){updateSidebarH()});updateSidebarH();if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded();});