/*! lazysizes - v0.7.0-RC1 - 2014-12-28
 Licensed MIT */
document.addEventListener("lazybeforeunveil",function(){"use strict";var a=document.createElement("div");return function(b){var c,d,e,f;!b.defaultPrevented&&(c=b.target.getAttribute("data-bgset"))&&(d=document.createElement("img"),f=b.target.getAttribute("data-sizes"),d.setAttribute("sizes",f&&"auto"!=f?f:b.target.offsetWidth+"px"),e=function(){var c=d.currentSrc||d.src;c&&(b.target.style.backgroundImage="url("+c+")"),lazySizes.cfg.clearAttr&&b.target.removeAttribute("data-bgset"),d.removeEventListener("load",e),a.removeChild(d),d=null},d.addEventListener("load",e),d.setAttribute("srcset",c),a.appendChild(d),window.HTMLPictureElement||(window.respimage?respimage({elements:[d]}):window.picturefill&&picturefill({elements:[d]})),d.complete&&(d.src||d.currentSrc)&&e())}}());