}
/* Добавляет кнопку "Вверх" слева */
var body = document.getElementsByTagName('body');
document.body.innerHTML +='<div class="scroll-top hide-scroll-top"><span class="scroll-top-img"><br></span></div>';
$(function() {
$(document).ready(function() {
$(".scroll-top").each(function() {
var t, e;
return (t = $(this)).hide().removeClass("hide-scroll-top"),
e = 0,
$(window).scroll(function() {
return t[$(this).scrollTop() > 0 ? "fadeIn" : "fadeOut"](300)
}),
t.find(".scroll-top-img").click(function() {
var t;
return t = $(window),
t.scrollTop() > 0 && (e = t.scrollTop(),
$("body,html").animate({
scrollTop: 0
}, 400)),
!1
})
})
})
});
/* Keep track of delegated events on dynamic content */