OK ");}$("#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){eventpreventDefault();$("html, body")animate({scrollTop:0},duration);return(false);});function isElemVisible(el,treshold){var rc=elgetBoundingClientRect();return(rctop<=windowinnerHeight-treshold*(rcbottom-rctop)/100);}function twLzyLoad(){var elems=[]slcall(documentquerySelectorAll("img[data-src]"));elemsforEach(function(e){if(isElemVisible(e,0)){var scs=egetAttribute("data-srcset");esetAttribute("src",egetAttribute("data-src"));eremoveAttribute("data-src");if(scs){esetAttribute("srcset",scs);eremoveAttribute("data-srcset");}}})}windowaddEventListener("load",twLzyLoad);windowaddEventListener("scroll",twLzyLoad);windowaddEventListener("resize",twLzyLoad);if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded()

OK ");}$("#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 isElemVisible(el,treshold){var rc=el.getBoundingClientRect();return(rc.top<=window.innerHeight-treshold*(rc.bottom-rc.top)/100);}function twLzyLoad(){var elems=[].slice.call(document.querySelectorAll("img[data-src]"));elems.forEach(function(e){if(isElemVisible(e,0)){var scs=e.getAttribute("data-srcset");e.setAttribute("src",e.getAttribute("data-src"));e.removeAttribute("data-src");if(scs){e.setAttribute("srcset",scs);e.removeAttribute("data-srcset");}}})}window.addEventListener("load",twLzyLoad);window.addEventListener("scroll",twLzyLoad);window.addEventListener("resize",twLzyLoad);if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded()