function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function acceptCookies(){createCookie("mlolcookies",1,365);$(".cookies").hide()}(function(n){var t,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})})(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(r){function u(){}function f(t,i,f){var s,o,e;if(typeof document!="undefined"){f=n({path:"/"},u.defaults,f);typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5));f.expires=f.expires?f.expires.toUTCString():"";try{s=JSON.stringify(i);/^[\{\[]/.test(s)&&(i=s)}catch(h){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,f[e]!==!0)&&(o+="="+f[e].split(";")[0]);return document.cookie=t+"="+i+o}}function e(n,i){var s,u,f;if(typeof document!="undefined"){for(var e={},h=document.cookie?document.cookie.split("; "):[],o=0;o<h.length;o++){s=h[o].split("=");u=s.slice(1).join("=");i||u.charAt(0)!=='"'||(u=u.slice(1,-1));try{if(f=t(s[0]),u=(r.read||r)(u,f)||t(u),i)try{u=JSON.parse(u)}catch(c){}if(e[f]=u,n===f)break}catch(c){}}return n?e[n]:e}}return u.set=f,u.get=function(n){return e(n,!1)},u.getJSON=function(n){return e(n,!0)},u.remove=function(t,i){f(t,"",n(i,{expires:-1}))},u.defaults={},u.withConverter=i,u}return i(function(){})}),function(n,t){var i=n(t);n.fn.lazyload=function(r){function e(){var t=0;f.each(function(){var i=n(this);if((!u.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,u)&&!n.leftofbegin(this,u))if(n.belowthefold(this,u)||n.rightoffold(this,u)){if(++t>u.failure_limit)return!1}else i.trigger("appear")})}var f=this,o,u={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return r&&(undefined!==r.failurelimit&&(r.failure_limit=r.failurelimit,delete r.failurelimit),undefined!==r.effectspeed&&(r.effect_speed=r.effectspeed,delete r.effectspeed),n.extend(u,r)),o=u.container===undefined||u.container===t?i:n(u.container),0===u.event.indexOf("scroll")&&o.bind(u.event,function(){return e()}),this.each(function(){var i=this,t=n(i);i.loaded=!1;t.one("appear",function(){var r,e;this.loaded||(u.appear&&(r=f.length,u.appear.call(i,r,u)),e=t.data("background")?t.data("background"):t.data(u.data_attribute),n("<img />").bind("load",function(){var r,e;t.hide();t.data("background")?t.css("backgroundImage",'url("'+t.data("background")+'")'):t.attr("src",t.data(u.data_attribute));t[u.effect](u.effect_speed);i.loaded=!0;r=n.grep(f,function(n){return!n.loaded});f=n(r);u.load&&(e=f.length,u.load.call(i,e,u))}).attr("src",e))});0!==u.event.indexOf("scroll")&&t.bind(u.event,function(){i.loaded||t.trigger("appear")})}),i.bind("resize",function(){e()}),e(),this};n.belowthefold=function(r,u){var f;return f=u.container===undefined||u.container===t?i.height()+i.scrollTop():n(u.container).offset().top+n(u.container).height(),f<=n(r).offset().top-u.threshold};n.rightoffold=function(r,u){var f;return f=u.container===undefined||u.container===t?i.width()+i.scrollLeft():n(u.container).offset().left+n(u.container).width(),f<=n(r).offset().left-u.threshold};n.abovethetop=function(r,u){var f;return f=u.container===undefined||u.container===t?i.scrollTop():n(u.container).offset().top,f>=n(r).offset().top+u.threshold+n(r).height()};n.leftofbegin=function(r,u){var f;return f=u.container===undefined||u.container===t?i.scrollLeft():n(u.container).offset().left,f>=n(r).offset().left+u.threshold+n(r).width()};n.inviewport=function(t,i){return!n.rightofscreen(t,i)&&!n.leftofscreen(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return!n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window)