$(document).ready(function(){if(0<$(".listable-text").length){var currentUrl,currentPart,container=$(".listable-text"),parts=container.children(".listable-text-part"),withIntro=$(parts[0]).hasClass("intro"),partsCount=withIntro?parts.length-1:parts.length,firstPartNum=withIntro?0:1,lastPartNum=withIntro?parts.length-1:parts.length,initialized=!1,currentUrlSuffix="",adIframeElements=(Array.from(document.getElementsByClassName("js-advert__content")),Array.from(document.getElementsByClassName("design-iframe--advert"))),adReloader=new iinfo.adverts.Reloader(0,"","");function setupCurrentState(){var found=window.location.href.match(/^(.*?\/)p-(\d+)\/?([^/].*)?$/);if(null!==found)currentPart=parseInt(found[2]),currentUrl=found[1],void 0!==found[3]&&(currentUrlSuffix=found[3]);else{currentPart=firstPartNum;var url=new URL(window.location.href);currentUrl=url.protocol+"//"+url.hostname+url.pathname,currentUrlSuffix=url.search+url.hash}}function buildNavigation(location){var nav='