var phq=gca(".photo, .photo-infographic");if(phq){for(var a=0;a<phq.length;a++)phq[a].classList.add("-gallery");var ph=gca(".-gallery");ph&&ph.forEach((function(e,t){var c=e.getAttribute("data-photolink"),n=gc("img",e);n&&n.addEventListener("click",(function(e){e.preventDefault(),c&&(location.href=c)}))}))}var pAr=gc(".-photoArticle",document),cfs=gc(".photoArticle__fs__close",document),fs=gc(".photoArticle__fs__btn",document),pl=gc(".photoArticle__list",document);if(pAr){var bLeft=gc(".photoArticle__button.-left",pAr),bRight=gc(".photoArticle__button.-right",pAr);document.onkeydown=function(e){switch((e=e||window.event).keyCode){case 37:keyPress(bLeft,!1);break;case 39:keyPress(bRight,!1);break;case 27:keyPress(cfs,pl)}}}function closeFs(e){e&&(e.removeAttribute("style"),document.body.classList.remove("-fullscreen"))}function keyPress(e,t){var c=gc(".-fullscreen",document);if(e)if(c)closeFs(t);else{var n=e.getAttribute("href");n&&"#"!=n&&(location.href=n)}}function ce(e){return document.createElement(e)}function gi(e){return document.getElementById(e)}function gc(e,t){return t.querySelectorAll(e)[0]}function gca(e){return document.querySelectorAll(e)}function insertAfter(e,t){e.parentNode.insertBefore(t,e.nextSibling)}fs&&fs.addEventListener("click",(function(e){e.preventDefault();var t=gc(".photoArticle__item",document);if(t){var c=t.clientHeight;(" "+document.body.className+" ").replace(/[\n\t]/g," ").indexOf("-fullscreen")>-1||(pl&&pl.setAttribute("style","padding-bottom: "+c+"px"),document.body.classList.add("-fullscreen"))}})),cfs&&cfs.addEventListener("click",(function(e){e.preventDefault(),closeFs(pl)}));