function SideNavigation(){var i=this,e=$("#navigation");this.closeNavigation=function(e){$(e.target).parents("#navigation").length||i.hideNavigation()},this.hideNavigation=function(e){return __.$document.off(__.linkEvent,"html, body",i.closeNavigation),__.$body.removeClass("nav-open"),__.$window.trigger("navigation:hidden"),!1},this.showNavigation=function(e){return __.$body.addClass("nav-open"),__.$document.on(__.linkEvent,"html, body",i.closeNavigation),__.$window.trigger("navigation:shown"),!1},this.scroller=new IScroll(".js-scroller-container",{click:!0,mouseWheel:!0,scrollbars:!0,fadeScrollbars:!0,shrinkScrollbars:"scale",interactiveScrollbars:!0}),this.$popoverContainer=$('
').appendTo(e),this.popoverClose=function(e){return e&&e.preventDefault(),$(".js-active").popover("hide").removeClass("js-active"),$(".js-scroller-container .arrow-left").remove(),!1},this.popoverOpen=function(e){e.popover("show"),e.addClass("js-active").after('')};var t=$(".js-sticky-header").clone();if($("header#header").hasClass("header-home")?t.find("div.hidden-compact").remove():t.find(".hidden-compact").remove(),$("header#header").append(''),$(".hdr-collapsed").html(t),!__.isTouch){$("[data-popover]").popover({trigger:"manual",animation:!0,html:!0,template:'',content:function(){var e=$(this).next($(this).attr("data-popover"));return e.length?e.html():""}});var r=$(".main-navigation-list"),a=$(".main-navigation-list > li"),s=null;a.each(function(e){var t=$(this).find("[data-popover]");$(this).data("item-index",e),t.length&&$(this).data("popover",t)}),r.on("mouseleave",function(){s&&clearTimeout(s),s=setTimeout(function(){i.popoverClose(),i.hideNavigation(),s=null},1e3)}),a.on("mouseenter",function(){var e=$(this);r.data("overItem",e.data("item-index")),s&&clearTimeout(s),s=setTimeout(function(){!function(e){if(30 li > a.js-navigation-current:first"),o=l.parent("li"),c=o.find(".cell"),h=$("#header .main-header-nav"),d=h.find(".scroller-container"),f=h.find(".prev");if(o.length&&c.length){if(l.length){h.prepend('");var u=h.find(".title").width()+20;f.css("left",u),d.css("left",u)}h.css("textAlign","left");var p="";c.each(function(){var e=$(this).find(">h6");e.length&&(p+=""+e.prop("outerHTML")+""),$(this).find("li").each(function(){p+=$(this).prop("outerHTML")})}),n.html(p)}}else{var v=function(i){var c=i.find(".menu-popover-container");i.find("[data-menu-popover]").popover({trigger:"manual",animation:!0,placement:function(e,t){$(t);var i,r=$(e),a=c.width()/6,n=r.find(".cell").length,s=$.extend({},c.offset(),{width:c.width(),height:c.height()}),l=a*n,o=this.getPosition();return r.width(l),(i=o.left+o.width/2)+l/2>s.left+s.width?(r.addClass("right"),"bottom right"):i-l/2',content:function(){var e=$(this).next($(this).attr("data-popover"));return e.length?e.html():""}});var e=i.find("ul.js-menu-popover > li, .main-header-more, .with-popover"),r=null,a=function(e){return e&&e.preventDefault(),i.find(".js-active").popover("hide").removeClass("js-active"),i.data("openItem","--"),!1},n=function(e){e.popover("show"),e.addClass("js-active")};e.each(function(e){var t=$(this).find("[data-menu-popover]");$(this).data("item-index",e),t.length&&$(this).data("popover",t)});var t=!1;i.on("mouseenter",function(){t=!0}).on("mouseleave",function(){r&&clearTimeout(s),t=!1,r=setTimeout(function(){t||a(),s=null},700)}),e.on("mouseenter",function(){var e=$(this);i.data("overItem",e.data("item-index")),r&&clearTimeout(r),r=setTimeout(function(){t&&i.data("overItem")===e.data("item-index")&&function(e){if(i.data("overItem")===e.data("item-index")&&i.data("openItem")!==i.data("overItem")){a(),i.data("openItem",i.data("overItem"));var t=e.data("popover");t&&n(t),r=null}}(e)},400)})};$(".main-header-nav-wrapper, .tools-right-popover, .article-header").each(function(){v($(this))})}return this}function HeaderNavigation(){var t=$(".main-header-nav").find(".js-horizontal-scroller-container"),i=null,e=$(".js-sticky-header"),r=e.outerHeight()+$(".a-leaderboard").outerHeight();is_compact=!1,this.scrollCheck=_.throttle(function(){var e=__.$window.scrollTop();if(is_compact&&earticle:last");if(!e.attr("data-url"))if($_canonical)e.attr("data-url",$_canonical);else{var t=this.getParseUrlParameters(),r="";t.hasOwnProperty("uuid")&&(r="?uuid="+t.uuid),e.attr("data-url",window.location.pathname+r)}return e.data("url",e.attr("data-url")),e.data("head_title",$(n).html()),this.next_article_url=e.attr("data-url"),this.next_article_scrollcheck=!1,this.currentArticle_set=function(e,t){if(this.currentArticle=e,"object"!=typeof window.history||"function"!=typeof window.history.replaceState||t||window.history.replaceState({},"",this.currentArticle.data("url")),i.html(this.currentArticle.data("head_title")),a.seriesIndex)try{a.seriesIndex.inScreen(this.currentArticle.data("url"))}catch(e){}__.$window.trigger("articleRoll:newArticleInScreen",{title:this.currentArticle.data("head_title"),url:this.currentArticle.data("url")})},this.currentArticle_set(e,!0),this.setNextUrl=function(){s.next_article_url=__.$window.triggerHandler("articleRoll:returnNextUrl",[s.next_article_url]),s.next_article_url?s.next_article_scrollcheck=0===l.find('>[data-url="'+s.next_article_url+'"]').length:s.next_article_scrollcheck=!1},__.$window.on("articleRoll:initNextUrl",this.setNextUrl),this.nextArticle_append=function(e){var t=$(e),i=t.find(a.selector+">article:last"),r=t.find(n).html();i.length&&(i.attr("data-url",this.next_article_url),i.data("url",this.next_article_url),i.data("head_title",r),i.find(".a-block.a-rectangle, .inread").remove(),l.append(i),__.$window.trigger("articleRoll:articleAppended",[this.next_article_url,i]),"function"==typeof a.articleAppendedCallback&&a.articleAppendedCallback.call(i)),this.setNextUrl()},this.nextArticle_ajax=function(e){$.ajax({url:e,dataType:"html",cache:!1,complete:function(e,t){if(void 0!==e.isResolved?e.isResolved():"success"===t||"notmodified"===t){var i=$(e.responseText);if(i.is('META[HTTP-EQUIV="Refresh"]')){var r="/"+i.attr("CONTENT").slice(7);s.nextArticle_ajax(r)}else s.nextArticle_append(e.responseText)}else"function"==typeof console.dir&&console.dir(e),s.setNextUrl()}})},this.nextArticle_load=function(){if(!this.next_article_url)return!1;this.next_article_scrollcheck=!1,this.nextArticle_ajax(this.next_article_url)},this.inScreenArticle_get=function(a){var n=!1,s=__.$window.height();return $.each(l.children(),function(e,t){var i=$(this).offset().top-a,r=i+$(this).height();if(0 [data-url="'+t+'"]');if(0===i.length){if(!t||t!==s.next_article_url)return!0;s.nextArticle_load(),__.scrollToOffset(s.currentArticle.offset().top+s.currentArticle.height()-__.$window.height()/3)}else __.scrollToDiv(i,__.stickyHeaderOffset);return!1},$("#content").on("click",".js-roll",{instance:this},this.linkClick),this}$.SeriesIndex=function(e,t){return this.$el=$(e),this.$indexContainer=$(".series-index",this.$el),this.$indexToggle=$(".js-series-index-toggle",this.$el),this.collapsed=!0,this.$index=t,this._={},this._.$filterNav=this.$el.find(".filter-nav"),this._.$filterNavItemsList=this._.$filterNav.find(".js-filter-horizontal-scroller-container > ul"),this._.$filterNavItems=this._.$filterNavItemsList.find(">li"),this._.$filterNavItemsFirst=this._.$filterNavItems.filter(":first"),this._.$filterNavItemsLast=this._.$filterNavItems.filter(":last"),this._.$filterNavPrev=this._.$filterNav.find(".prev"),this._.$filterNavNext=this._.$filterNav.find(".next"),this._create(),this},$.SeriesIndex.prototype={_create:function(){this.$el.on("shown.bs.collapse",".series-index",{self:this},this.shown),this.$indexToggle.on("click",{self:this},this.toggleCollapse),this._.$filterNavPrev.on("click",{self:this},this.filterNavScrollPrev),this._.$filterNavNext.on("click",{self:this},this.filterNavScrollNext),this.filterNavScrollerRefresh_proxy=$.proxy(this.filterNavScrollerRefresh,this),this.filterNavScrollerRefresh_proxy(),__.$window.on("resize",_.throttle(this.filterNavScrollerRefresh_proxy,250))},filterNavScrollerRefresh:function(e){if(this._.$filterNavItems.length){var t=0,i=this;i._.$filterNavItems.each(function(){t+=$(this).outerWidth()}),0 li");this.elenum=i.length,i.each(function(){0,e+=$(this).outerWidth(),t+=""+$(this).html()+""}),this.clone=t,this.wd=e;for(var r=1;Math.abs(this.$content.width())<1436;)r++,this.$content.append(this.clone).width(e*r);this.refresh_proxy=$.proxy(this.refresh,this),this.leave({data:{self:this}}),this.$el.on("mouseenter",{self:this},this.enter),this.$el.on("mouseleave",{self:this},this.leave),this.left=this.$el.width()},enter:function(e){clearInterval(e.data.self.timer)},leave:function(e){var t=e.data.self;t.timer=setInterval(t.refresh_proxy,60)},refresh:function(){Math.abs(this.left)>this.$el.width()&&Math.abs(this.left)>this.wd?this.wd>this.$el.width()?this.left=-17:this.left=-(this.$el.width()-this.wd)-17:this.left-=1,Modernizr.csstransforms3d?this.$content.css("transform","translate3d("+this.left+"px,0,0) scale3d(1,1,1)"):Modernizr.csstransforms?this.$content.css("transform","translate("+this.left+"px,0)"):this.$content.css("left",this.left+"px")}},$.fn.Ticker=function(){this.each(function(){var e=$.data(this,"ticker");e||(e=new $.Ticker(this)).failed||$.data(this,"ticker",e)})};var navScrollerInstance=0;$.NavScroller=function(e){return this.$el=$(e),this._create(),this},$.NavScroller.prototype={_create:function(){this.$itemsList=$("> ul",this.$el),this.$items=$("> li",this.$itemsList),this.$itemsFirst=this.$items.filter(":first"),this.$itemsLast=this.$items.filter(":last"),this.$headerNav=this.$el.parent(),this.$prev=this.$headerNav.find(".prev"),this.$next=this.$headerNav.find(".next"),this.id=this.$el.attr("id"),this.id||(navScrollerInstance++,this.$el.attr("id","navscroller"+navScrollerInstance),this.id=this.$el.attr("id")),this.$prev.on("click",{instance:this},this.gotoPrev),this.$next.on("click",{instance:this},this.gotoNext),this.refresh_proxy=$.proxy(this.refresh,this),this.refresh_proxy(),__.$window.on("resize",_.throttle(this.refresh_proxy,250))},refresh:function(e){var t=20;this.$items.each(function(){t+=$(this).outerWidth()}),0=i.items.minimum){var s="false"!==this.$el.attr("data-infinite");i.infinite=s,i.circular=s,n.data("parentWidth",this.$el.width()),n.children().css(r(-1)).css({zIndex:0});for(var l=0;l<5;l++)n.children().eq(l).css(r(l));n.children().eq(2).addClass("active"),a(n.children().filter(":lt(6)")),n.carouFredSel(i)}var o=_.throttle(function(){n.data("parentWidth",t.$el.width());for(var e=0;e<5;e++)n.children().eq(e).css(r(e));n.trigger("configuration",{items:{height:"auto"}})},250);return o(),__.$window.on("resize",o),this},$.Coverflow.prototype={_create:function(){}},$.fn.Coverflow=function(){this.each(function(){var e=$.data(this,"Coverflow");e||(e=new $.Coverflow(this)).failed||$.data(this,"Coverflow",e)})},function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t'},scrollCallback:function(e){var t=e.find("a"),i=this.getContainer();t.attr("data-share-url")&&i.find(".share-tools [data-gallery-url]").attr("data-gallery-url",t.attr("data-share-url")),i.find("[data-caption]").html(t.html()),i.find("[data-counter]").html(this.getCounter())}},jsonList:{getItemString:function(e){var t=e.hasOwnProperty("title")?e.title:"",i=this.expanded&&e.hasOwnProperty("src")?e.src:e.big;return''},scrollCallback:function(e){var t=e.hasOwnProperty("title")?e.title:"",i=this.getContainer();i.find("[data-caption]").html(t),i.find("[data-counter]").html(this.getCounter())},loadCallback:function(e){var t=this.getContainer();e.hasOwnProperty("title")&&(t.find("[data-gallery-url]").attr("data-gallery-url",e.pageUrl),t.find("[data-gallery-title]").html(e.title))}},itemRatio:.75};d(".j-swipe-carousel").length&&d(".j-swipe-carousel").swipeCarousel(l),__.$window.on("swipeCarousel:init",function(){d(".j-swipe-carousel").swipeCarousel(l)}),d("#extraArticle.collapse").on("hidden.bs.collapse shown.bs.collapse",__.stickyRecalc);var o=d(".js-series-index-scroller-container"),c=void 0;if(o.length){var h=new IScroll(".js-series-index-scroller-container",{click:!0,mouseWheel:!0,scrollbars:!0,fadeScrollbars:!0,shrinkScrollbars:"scale",interactiveScrollbars:!0});o.data("scroller",h),d(".js-series-index-container").SeriesIndex(o),c=d(".js-series-index-container").data("seriesIndex")}d(".js-comments").CommentsSection();new DossierArticleRoll({selector:"#roll-list",articleAppendedCallback:function(){0__.$window.height()?(i||e.width("300"),void 0!==t&&t||(0