$(function() {
$('.to-top').click(function() {
$('html,body').animate({
'scrollTop': 0
}, 500);
});
$('.newsnav .search').click(function() {
$('.searchnav, .archive, body, html').addClass('opened')
});
$('.searchnav .close-search').click(function() {
$('.searchnav, .archive, body, html').removeClass('opened')
});
$('img').load(function(){
$(this).addClass('show')
});
});
! function(a, b, c, d) {
var e = a(b);
a.fn.lazyload = function(f) {
function g() {
var b = 0;
i.each(function() {
var c = a(this);
if (!j.skip_invisible || c.is(":visible"))
if (a.abovethetop(this, j) || a.leftofbegin(this, j));
else if (a.belowthefold(this, j) || a.rightoffold(this, j)) {
if (++b > j.failure_limit) return !1
} else c.trigger("appear"), b = 0
})
}
var h, i = this,
j = {
threshold: 0,
failure_limit: 0,