",o+=""},l=function(){var t=''};return this.each(function(){var e=t(this);a(i.url).done(function(o){n(),e.addClass("bso-boxed");var a=[],s=0;t(o).find("item").each(function(){var e=t(this),o={};return o.title=e.find("title").text(),o.link=e.find("link").text(),o.image=e.find("enclosure").attr("url"),a.push(o),s++,s==i.limit?!1:void 0}),r(e,a)})})},t("[data-bso]").boxOdkazy()}("undefined"==typeof jQuery?void 0:jQuery),function(){var t,e;t=this.jQuery||window.jQuery,e=t(window),t.fn.stick_in_parent=function(o){var i,n,a,r,s,l,c,d,h,u,p,f,g;for(null==o&&(o={}),f=o.sticky_class,l=o.inner_scrolling,p=o.recalc_every,u=o.parent,h=o.offset_top,d=o.spacer,a=o.bottoming,null==h&&(h=0),null==u&&(u=void 0),null==l&&(l=!0),null==f&&(f="is_stuck"),i=t(document),null==a&&(a=!0),r=function(o,n,r,s,c,m,v,b){var y,x,k,w,z,_,A,T,C,E,D,q;if(!o.data("sticky_kit")){if(o.data("sticky_kit",!0),z=i.height(),A=o.parent(),null!=u&&(A=A.closest(u)),!A.length)throw"failed to find stick parent";if(k=!1,y=!1,D=null!=d?d&&o.closest(d):t(""),D&&D.css("position",o.css("position")),T=function(){var t,e,a;return b?void 0:(z=i.height(),t=parseInt(A.css("border-top-width"),10),e=parseInt(A.css("padding-top"),10),n=parseInt(A.css("padding-bottom"),10),r=A.offset().top+t+e,s=A.height(),k&&(k=!1,y=!1,null==d&&(o.insertAfter(D),D.detach()),o.css({position:"",top:"",width:"",bottom:""}).removeClass(f),a=!0),c=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-h,g=o.offset().left,m=o.outerHeight(!0),v=o.css("float"),D&&D.css({width:o.outerWidth(!0),height:m,display:o.css("display"),"vertical-align":o.css("vertical-align"),"float":v}),a?q():void 0)},T(),m!==s)return w=void 0,_=h,E=p,q=function(){var t,u,x,C,q,P;return b?void 0:(x=!1,null!=E&&(E-=1,0>=E&&(E=p,T(),x=!0)),x||i.height()===z||(T(),x=!0),C=e.scrollTop(),null!=w&&(u=C-w),w=C,k?(a&&(q=C+m+_>s+r,y&&!q&&(y=!1,o.css({position:"fixed",bottom:"",top:_,left:g}).trigger("sticky_kit:unbottom"))),c>C&&(k=!1,_=h,null==d&&(("left"===v||"right"===v)&&o.insertAfter(D),D.detach()),t={position:"",width:"",left:"",top:""},o.css(t).removeClass(f).trigger("sticky_kit:unstick")),l&&(P=e.height(),m+h>P&&(y||(_-=u,_=Math.max(P-m,_),_=Math.min(h,_),k&&o.css({top:_+"px"}))))):C>c&&(k=!0,t={position:"fixed",top:_,left:g},t.width="border-box"===o.css("box-sizing")?o.outerWidth()+"px":o.width()+"px",o.css(t).addClass(f),null==d&&(o.after(D),("left"===v||"right"===v)&&D.append(o)),o.trigger("sticky_kit:stick")),k&&a&&(null==q&&(q=C+m+_>s+r),!y&&q)?(y=!0,"static"===A.css("position")&&A.css({position:"relative"}),o.css({position:"absolute",bottom:n,top:"auto"}).trigger("sticky_kit:bottom")):void 0)},C=function(){return T(),q()},x=function(){return b=!0,e.off("touchmove",q),e.off("scroll",q),e.off("resize",C),t(document.body).off("sticky_kit:recalc",C),o.off("sticky_kit:detach",x),o.removeData("sticky_kit"),o.css({position:"",bottom:"",top:"",width:""}),A.position("position",""),k?(null==d&&(("left"===v||"right"===v)&&o.insertAfter(D),D.remove()),o.removeClass(f)):void 0},e.on("touchmove",q),e.on("scroll",q),e.on("resize",C),t(document.body).on("sticky_kit:recalc",C),o.on("sticky_kit:detach",x),setTimeout(q,0)}},s=0,c=this.length;c>s;s++)n=this[s],r(t(n));return this}}.call(this);var data={hodina:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],narozeni_hod:[5280,3437,3438,3543,3530,3371,3423,4438,8436,6913,6791,6523,6149,6189,5592,4798,4386,4179,3785,3772,3549,3590,3549,3611],mesic:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],narozeni_mes:[9528,8305,9254,9238,9314,9901,10289,9790,9736,9310,8614,8993],den:["pondělí","úterý","středa","čtvrtek","pátek","sobota","neděle"],narozeni_den:[16783,18005,17433,17721,17485,12734,12120]};$(function(){!function(t){var e=t.Series,o=t.each;e.prototype.getContext=function(){return this.canvas||(this.canvas=document.createElement("canvas"),this.canvas.setAttribute("width",this.chart.chartWidth),this.canvas.setAttribute("height",this.chart.chartHeight),this.image=this.chart.renderer.image("",0,0,this.chart.chartWidth,this.chart.chartHeight).add(this.group),this.ctx=this.canvas.getContext("2d")),this.ctx},e.prototype.canvasToSVG=function(){this.image.attr({href:this.canvas.toDataURL("image/png")})},t.wrap(t.seriesTypes.heatmap.prototype,"drawPoints",function(){var t=this.getContext();t&&(o(this.points,function(e){var o,i,n=e.plotY;void 0===n||isNaN(n)||null===e.y||(o=e.shapeArgs,i=e.pointAttr&&e.pointAttr[""]||e.series.pointAttribs(e),t.fillStyle=i.fill,t.fillRect(o.x,o.y,o.width,o.height))}),this.canvasToSVG())}),t.seriesTypes.heatmap.prototype.directTouch=!1}(Highcharts);var t;Highcharts.setOptions({lang:{decimalPoint:",",months:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]}}),$.get("data/narozeni.csv",function(e){Highcharts.chart("heatmapa",{data:{csv:e,parsed:function(){t=+new Date}},chart:{type:"heatmap",margin:[60,10,80,50]},title:{text:"Novorozenci 2015 hodinu po hodině",x:40},credits:{enabled:!1},xAxis:{type:"datetime",min:Date.UTC(2015,0,1),max:Date.UTC(2016,0,1),labels:{align:"left",x:5,y:14,format:"{value:%B}"},showLastLabel:!1,tickLength:16},yAxis:{title:{text:null},labels:{format:"{value}:00"},minPadding:0,maxPadding:0,startOnTick:!1,endOnTick:!1,tickPositions:[0,6,12,18,24],tickWidth:1,min:0,max:23,reversed:!0},colorAxis:{minColor:"#EEFFE5",maxColor:"#377eb8",startOnTick:!1,endOnTick:!1,labels:{format:"{value}"}},series:[{borderWidth:0,nullColor:"#EFEFEF",colsize:864e5,tooltip:{headerFormat:"",pointFormat:"{point.x:%d. %m. %Y}, {point.y} hod.: {point.value} narození"},turboThreshold:Number.MAX_VALUE}],responsive:{rules:[{condition:{maxWidth:600}}]}})}),Highcharts.chart("hodiny",{chart:{type:"column"},title:{text:"Děti narozené v roce 2015: Celkový přehled po hodinách"},xAxis:{categories:data.hodina,crosshair:!0},yAxis:{title:{text:"Počet narození"},labels:{formatter:function(){return this.value}}},credits:{enabled:!1},legend:{enabled:!1},tooltip:{shared:!0,headerFormat:'{point.key} hodin '},plotOptions:{column:{borderWidth:0}},series:[{name:"Celkem narozených dětí",data:data.narozeni_hod,color:"#377eb8",negativeColor:"#e41a1c"}],responsive:{rules:[{condition:{maxWidth:600},chartOptions:{xAxis:{plotBands:[]},yAxis:{title:{text:""}},title:{text:"Děti narozené v roce 2015: Přehled po hodinách"}}}]}}),Highcharts.chart("mesice",{chart:{type:"column"},title:{text:"Děti narozené v roce 2015: Celkový přehled po měsících"},xAxis:{categories:data.mesic,crosshair:!0},yAxis:{title:{text:"Počet narození"},labels:{formatter:function(){return this.value}},min:7500},credits:{enabled:!1},legend:{enabled:!1},plotOptions:{column:{borderWidth:0}},series:[{name:"Celkem narozených dětí",data:data.narozeni_mes,color:"#377eb8",negativeColor:"#e41a1c"}],responsive:{rules:[{condition:{maxWidth:600},chartOptions:{xAxis:{plotBands:[]},yAxis:{title:{text:""}},title:{text:"Děti narozené v roce 2015: Přehled po měsících"}}}]}}),Highcharts.chart("dny",{chart:{type:"column"},title:{text:"Děti narozené v roce 2015: Celkový přehled po dnech v týdnu"},xAxis:{categories:data.den,crosshair:!0},yAxis:{title:{text:"Počet narození"},labels:{formatter:function(){return this.value}},min:1e4},credits:{enabled:!1},legend:{enabled:!1},plotOptions:{column:{borderWidth:0}},series:[{name:"Celkem narozených dětí",data:data.narozeni_den,color:"#377eb8",negativeColor:"#e41a1c"}],responsive:{rules:[{condition:{maxWidth:600},chartOptions:{xAxis:{plotBands:[]},yAxis:{title:{text:""}},title:{text:"Děti narozené v roce 2015: Přehled po dnech"}}}]}})}),function(){function t(t){return console.log("click"),t.preventDefault(),window.open(this.getAttribute("href"))}function e(t){return t.preventDefault(),window.open(this.getAttribute("href"),"","width=550,height=265")}var o,i,n,a,r,s,l,c,d;for(document.querySelector("a#scroll-btn").addEventListener("click",function(t){var e,o,i,n,a,r,s;return t.preventDefault(),e=document.querySelector("#content"),o=window.pageYOffset||document.documentElement.scrollTop,i=ig.utils.offset(e).top,n=i-o,a=Date.now(),r=600,s=function(){var t,e,i;return t=Date.now()-a,e=t/r,e>1&&(e=1),i=o+n*Math.sin(e*(Math.PI/2)),window.scrollTo(0,i),1>e?window.requestAnimationFrame(s):void 0},window.requestAnimationFrame(s)}),o=0,n=(i=document.querySelectorAll("a[href^='http:'],a[href^='https:']")).length;n>o;++o)a=i[o],"logo"!==a.id&&(null!=(r=a.classList)&&r.contains("share")||a.addEventListener("click",t));for(o=0,n=(i=document.querySelectorAll("a.share")).length;n>o;++o)a=i[o],a.addEventListener("click",e);s=!0,l=document.querySelector("body > header"),c=null!=(i=document.querySelector("#opener").classList)?i.contains("no-cover-img"):void 0,d=function(){var t,e,o,i;return t=document.body.scrollTop||document.documentElement.scrollTop,e=c?1:window.innerHeight,t>=e&&s?(null!=(o=l.classList)&&o.remove("at-top"),s=!1):e>t&&!s?(null!=(i=l.classList)&&i.add("at-top"),s=!0):void 0},window.addEventListener("scroll",d),d()}.call(this),function(){}.call(this);