",o+="
"+t.title+"
",o+=""},r=function(){var t=''};return this.each(function(){var e=t(this);l(i.url).done(function(o){n(),e.addClass("bso-boxed");var l=[],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(),-1==i.blacklist.indexOf(o.link)&&(o.image=e.find("enclosure").attr("url"),l.push(o),s++,s==i.limit)?!1:void 0}),a(e,l)})})},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,l,a,s,r,c,d,u,h,f,p,v;for(null==o&&(o={}),p=o.sticky_class,r=o.inner_scrolling,f=o.recalc_every,h=o.parent,u=o.offset_top,d=o.spacer,l=o.bottoming,null==u&&(u=0),null==h&&(h=void 0),null==r&&(r=!0),null==p&&(p="is_stuck"),i=t(document),null==l&&(l=!0),a=function(o,n,a,s,c,g,m,k){var y,b,w,_,x,z,q,M,j,D,E,C;if(!o.data("sticky_kit")){if(o.data("sticky_kit",!0),x=i.height(),q=o.parent(),null!=h&&(q=q.closest(h)),!q.length)throw"failed to find stick parent";if(w=!1,y=!1,E=null!=d?d&&o.closest(d):t(""),E&&E.css("position",o.css("position")),M=function(){var t,e,l;return k?void 0:(x=i.height(),t=parseInt(q.css("border-top-width"),10),e=parseInt(q.css("padding-top"),10),n=parseInt(q.css("padding-bottom"),10),a=q.offset().top+t+e,s=q.height(),w&&(w=!1,y=!1,null==d&&(o.insertAfter(E),E.detach()),o.css({position:"",top:"",width:"",bottom:""}).removeClass(p),l=!0),c=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-u,v=o.offset().left,g=o.outerHeight(!0),m=o.css("float"),E&&E.css({width:o.outerWidth(!0),height:g,display:o.css("display"),"vertical-align":o.css("vertical-align"),"float":m}),l?C():void 0)},M(),g!==s)return _=void 0,z=u,D=f,C=function(){var t,h,b,j,C,T;return k?void 0:(b=!1,null!=D&&(D-=1,0>=D&&(D=f,M(),b=!0)),b||i.height()===x||(M(),b=!0),j=e.scrollTop(),null!=_&&(h=j-_),_=j,w?(l&&(C=j+g+z>s+a,y&&!C&&(y=!1,o.css({position:"fixed",bottom:"",top:z,left:v}).trigger("sticky_kit:unbottom"))),c>j&&(w=!1,z=u,null==d&&(("left"===m||"right"===m)&&o.insertAfter(E),E.detach()),t={position:"",width:"",left:"",top:""},o.css(t).removeClass(p).trigger("sticky_kit:unstick")),r&&(T=e.height(),g+u>T&&(y||(z-=h,z=Math.max(T-g,z),z=Math.min(u,z),w&&o.css({top:z+"px"}))))):j>c&&(w=!0,t={position:"fixed",top:z,left:v},t.width="border-box"===o.css("box-sizing")?o.outerWidth()+"px":o.width()+"px",o.css(t).addClass(p),null==d&&(o.after(E),("left"===m||"right"===m)&&E.append(o)),o.trigger("sticky_kit:stick")),w&&l&&(null==C&&(C=j+g+z>s+a),!y&&C)?(y=!0,"static"===q.css("position")&&q.css({position:"relative"}),o.css({position:"absolute",bottom:n,top:"auto"}).trigger("sticky_kit:bottom")):void 0)},j=function(){return M(),C()},b=function(){return k=!0,e.off("touchmove",C),e.off("scroll",C),e.off("resize",j),t(document.body).off("sticky_kit:recalc",j),o.off("sticky_kit:detach",b),o.removeData("sticky_kit"),o.css({position:"",bottom:"",top:"",width:""}),q.position("position",""),w?(null==d&&(("left"===m||"right"===m)&&o.insertAfter(E),E.remove()),o.removeClass(p)):void 0},e.on("touchmove",C),e.on("scroll",C),e.on("resize",j),t(document.body).on("sticky_kit:recalc",j),o.on("sticky_kit:detach",b),setTimeout(C,0)}},s=0,c=this.length;c>s;s++)n=this[s],a(t(n));return this}}.call(this),Highcharts.chart("graf1",{colors:["#fff7bc","#fec44f","#d95f0e"],chart:{type:"column"},title:{text:"Nadváha a obezita u sedmiletých dětí v České republice"},xAxis:{categories:["Chlapci s nadváhou","Obézní chlapci","Dívky s nadváhou","Obézní dívky"]},yAxis:{title:{text:"procento populace"}},tooltip:{valueSuffix:"% z populace"},credits:{text:"Zdroj: Childhood Obesity Surveillance Initiative",href:"http://www.euro.who.int/en/health-topics/disease-prevention/nutrition/activities/monitoring-and-surveillance/who-european-childhood-obesity-surveillance-initiative-cosi"},series:[{name:"2008",data:[7.6,7.2,6.1,5]},{name:"2010",data:[6.45,6.85,8.04,6.92]},{name:"2013",data:[6.84,7.56,5.59,7.65]}]});var pohlavi="Dívka",vysledek="",bmi="";$(".btn-toggle").click(function(){switch($(this).find(".btn").toggleClass("active"),$(this).find(".btn").toggleClass("btn-primary"),$(this).find(".btn").toggleClass("btn-default"),pohlavi){case"Dívka":pohlavi="Chlapec";break;case"Chlapec":pohlavi="Dívka"}}),$(function(){$("#spocti").click(function(){spoctiTo()})}),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,l,a,s,r,c,d;for(document.querySelector("a#scroll-btn").addEventListener("click",function(t){var e,o,i,n,l,a,s;return t.preventDefault(),e=document.querySelector("#content"),o=window.pageYOffset||document.documentElement.scrollTop,i=ig.utils.offset(e).top,n=i-o,l=Date.now(),a=600,s=function(){var t,e,i;return t=Date.now()-l,e=t/a,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)l=i[o],"logo"!==l.id&&(null!=(a=l.classList)&&a.contains("share")||l.addEventListener("click",t));for(o=0,n=(i=document.querySelectorAll("a.share")).length;n>o;++o)l=i[o],l.addEventListener("click",e);s=!0,r=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=r.classList)&&o.remove("at-top"),s=!1):e>t&&!s?(null!=(i=r.classList)&&i.add("at-top"),s=!0):void 0},window.addEventListener("scroll",d),d()}.call(this),function(){}.call(this);