").addClass("fancybox").attr("data-fancybox","gallery").attr("data-height",720).attr("data-type","image").attr("data-width",1280).attr("href",a[n].popup).append($("").addClass("ui image").attr("alt",a[n].name).attr("height",360).attr("src",a[n].thumbnail).attr("width",640)).append($("").addClass("search icon")))));a.length<=8?o.find("button").addClass("hidden"):o.find("button").removeClass("loading").prop("disabled",!1),o.find(".fancybox").fancybox({animationDuration:400,animationEffect:"zoom",buttons:!1})})}).on("click","button",function(){$(this).addClass("loading").prop("disabled",!0),o.trigger("more")}).trigger("more"),r.scrollTo(Math.round(100*Math.random())+"%").parent().next().on("click",function(){$(this).addClass("hidden").prev().addClass("scroll")}),l.scroll($.debounce(400,function(){t.toggleClass("fade",0