(function(){function height_a(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}}function height_b(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return c?c.call(a):{next:height_a(a)}}
function height_c(){function a(){return window.scrollY||g.scrollTop}function c(b,d,r){function t(k,m,n){x(Math.max(0,b.i(k)-r),m,n)}function x(k,m,n){p();if(0===m||m&&0>m||f(b.body))b.u(k),n&&n();else{var y=b.l(),v=Math.max(0,k)-y,z=(new Date).getTime();m=m||Math.min(Math.abs(v),d);(function C(){u=setTimeout(function(){var A=Math.min(1,((new Date).getTime()-z)/m),F=Math.max(0,Math.floor(y+v*(.5>A?2*A*A:A*(4-2*A)-1)));b.u(F);1>A&&b.w()+F<b.body.scrollHeight?C():(setTimeout(p,99),n&&n())},9)})()}}function p(){clearTimeout(u);u=0}d=d||999;r||0===r||(r=9);var u;return{setup:function(k,m){if(0===k||k)d=k;if(0===m||m)r=m;return{ua:d,K:r}},to:t,toY:x,intoView:function(k,m,n){var y=k.getBoundingClientRect().height,v=b.i(k)+y,z=b.w(),D=b.l(),C=D+z;Math.max(0,b.i(k)-r)<D||y+r>z?t(k,m,n):v+r>C?x(v-z+r,m,n):n&&n()},center:function(k,m,n,y){x(Math.max(0,b.i(k)-b.w()/2+(n||k.getBoundingClientRect().height/2)),m,y)},stop:p,moving:function(){return!!u},getY:b.l,getTopOf:b.i}}function f(b){return b&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(b)["scroll-behavior"]}if("undefined"===typeof window||!("document"in window))return{};var g=document.documentElement,q=c({body:document.scrollingElement||document.body,u:function(b){window.scrollTo(0,b)},l:a,w:function(){return window.innerHeight||g.clientHeight},i:function(b){return b.getBoundingClientRect().top+a()-g.offsetTop}});q.ta=function(b,d,r){return c({body:b,u:function(t){b.scrollTop=t},l:function(){return b.scrollTop},w:function(){return Math.min(b.clientHeight,window.innerHeight||g.clientHeight)},i:function(t){return t.offsetTop}},d,r)};if("addEventListener"in window&&!window.qa&&!f(document.body)){var w="history"in window&&"pushState"in history,e=w&&"scrollRestoration"in history;e&&(history.scrollRestoration="auto");window.addEventListener("load",function(){e&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(b){b.state&&"zenscrollY"in b.state&&q.u(b.state.oa)},!1));window.location.hash&&setTimeout(function(){var b=q.la().K;if(b){var d=document.getElementById(window.location.href.split("#")[1]);d&&(b=Math.max(0,q.i(d)-b),d=q.l()-b,0<=d&&9>d&&window.scrollTo(0,b))}},9)},!1);var l=/(^|\s)noZensmooth(\s|$)/;window.addEventListener("click",function(b){for(var d=b.target;d&&"A"!==d.tagName;)d=d.parentNode;if(!(!d||1!==b.which||b.shiftKey||b.metaKey||b.ctrlKey||b.altKey)){if(e){var r=history.state&&"object"===typeof history.state?history.state:{};r.oa=q.l();try{history.replaceState(r,"")}catch(x){}}var t=d.getAttribute("href")||"";if(0===t.indexOf("#")&&!l.test(d.className)){d=0;r=document.getElementById(t.substring(1));if("#"!==t){if(!r)return;d=q.i(r)}b.preventDefault();b=function(){window.location=t};if(r=q.la().K)d=Math.max(0,d-r),w&&(b=function(){history.pushState({},"",t)});q.u(d,null,b)}}},!1)}return q}(function(){function a(l){this.c=w({},{N:null,wa:null,ra:null,J:null,S:!1,ea:!1,ba:[],Z:"Close",j:["overlay","button","escape"]},l);this.ga()}function c(){this.b&&(this.b.style.width=this.f.clientWidth+"px",this.b.style.left=this.f.offsetLeft+"px")}function f(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.c.j.length&&-1!==this.c.j.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.c.ba.forEach(function(l){"string"===typeof l&&this.a.classList.add(l)},this);-1!==this.c.j.indexOf("button")&&(this.m=document.createElement("button"),this.m.type="button",this.m.classList.add("tingle-modal__close"),this.G=document.createElement("span"),this.G.classList.add("tingle-modal__closeIcon"),this.G.innerHTML='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z" fill="#000" fill-rule="nonzero"/></svg>',this.H=document.createElement("span"),this.H.classList.add("tingle-modal__closeLabel"),this.H.innerHTML=this.c.Z,this.m.appendChild(this.G),this.m.appendChild(this.H));this.f=document.createElement("div");this.f.classList.add("tingle-modal-box");this.M=document.createElement("div");this.M.classList.add("tingle-modal-box__title");this.f.appendChild(this.M);this.B=document.createElement("div");this.B.classList.add("tingle-modal-box__content");this.f.appendChild(this.B);-1!==this.c.j.indexOf("button")&&this.a.appendChild(this.m);this.a.appendChild(this.f)}function g(l){-1!==this.c.j.indexOf("escape")&&27===l.which&&this.ja()&&this.close()}function q(l){var b;if(b=-1!==this.c.j.indexOf("overlay")){for(b=l.target;(b=b.parentElement)&&!b.classList.contains("tingle-modal"););b=!b}b&&l.clientX<this.a.clientWidth&&this.close()}function w(){for(var l=1;l<arguments.length;l++)for(var b in arguments[l])arguments[l].hasOwnProperty(b)&&(arguments[0][b]=arguments[l][b]);return arguments[0]}var e=!1;a.prototype.ga=function(){this.a||(f.call(this),this.v={X:this.close.bind(this),Y:q.bind(this),resize:this.W.bind(this),ka:g.bind(this)},-1!==this.c.j.indexOf("button")&&this.m.addEventListener("click",this.v.X),this.a.addEventListener("mousedown",this.v.Y),window.addEventListener("resize",this.v.resize),document.addEventListener("keydown",this.v.ka),document.body.insertBefore(this.a,document.body.firstChild),this.c.ea&&this.V())};a.prototype.I=function(l){e=l};a.prototype.U=function(){return e};a.prototype.ja=function(){return!!this.a.classList.contains("tingle-modal--visible")};a.prototype.close=function(){if(!this.U()){this.I(!0);if("function"!==typeof this.c.J||this.c.J.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.pa,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.c.N&&this.c.N.call(this);this.I(!1)}};a.prototype.V=function(){this.b=document.createElement("div");this.b.classList.add("tingle-modal-box__footer");this.f.appendChild(this.b)};a.prototype.P=function(l){this.A()||(l=!1);l?this.f.contains(this.b)&&(this.f.removeChild(this.b),this.a.appendChild(this.b),this.b.classList.add("tingle-modal-box__footer--sticky"),c.call(this),this.B.style["padding-bottom"]=this.b.clientHeight+20+"px"):this.b&&!this.f.contains(this.b)&&(this.a.removeChild(this.b),this.f.appendChild(this.b),this.b.style.width="auto",this.b.style.left="",this.B.style["padding-bottom"]="",this.b.classList.remove("tingle-modal-box__footer--sticky"))};a.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};a.prototype.A=function(){return this.f.clientHeight>=window.innerHeight};a.prototype.W=function(){this.a.classList.contains("tingle-modal--visible")&&(this.A()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.A()&&this.c.S?this.P(!1):this.A()&&this.c.S&&(c.call(this),this.P(!0)))};return{a:a}})();function height_d(){var a="css/minified/svg_graphs_v"+_svg_css_version+".css",c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",a);c.setAttribute("media","print");c.onload=function(){this.media="all"};document.getElementsByTagName("head")[0].appendChild(c)}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.reverse=function(){return this.split("").reverse().join("")};function height_e(a){function c(h){h.preventDefault();if(!e.disabled){var B=h;h.touches&&(B=h.touches[0]);b=this===k?k.offsetLeft:m.offsetLeft;l=B.pageX-b;E=this;document.addEventListener("mousemove",f);document.addEventListener("mouseup",g);document.addEventListener("touchmove",f);document.addEventListener("touchend",g)}}function f(h){if(!e.disabled){var B=h;h.touches&&(B=h.touches[0]);b=B.pageX-l;h=m?m.offsetLeft:y.offsetWidth;E===k?(b>h?b=h:0>b&&(b=0),E.style.left=b+"px"):E===m&&(b<k.offsetLeft+k.offsetWidth-10?b=k.offsetLeft+k.offsetWidth-10:b>F&&(b=F),E.style.left=b+"px");n.style.marginLeft=k.offsetLeft-k.offsetWidth/2+"px";n.style.width=h-k.offsetLeft+"px";w();if(a.onchange&&r)a.onchange(d.getAttribute("se-min-value"),d.getAttribute("se-max-value"),d.dataset.id)}}function g(){document.removeEventListener("mousemove",f);document.removeEventListener("mouseup",g);document.removeEventListener("touchmove",f);document.removeEventListener("touchend",g);e.disabled||(E=null,w(),e.da&&r&&e.da(d.getAttribute("se-min-value"),d.getAttribute("se-max-value")))}function q(){p.style.opacity="1";setTimeout(function(){p.style.opacity="0"},3E3)}function w(){var h=k.offsetLeft/H*(z-v)+v;var B=0*(z-v)+v;if(0!==A){var G=Math.floor(h/A);h=A*G;G=Math.floor(B/A);B=A*G}h>=z&&(x||q(),x=!0);h<=v&&(t||q(),t=!0);e.R(h);d.setAttribute("se-min-value",h);d.setAttribute("se-max-value",B)}var e=this,l=0,b=0,d=a.D,r=!1,t=!1,x=!1,p=document.createElement("div");p.classList.add("slider-input-tooltip");p.innerHTML="ניתן להזין את הערך ידנית";setTimeout(function(){u.parentNode.appendChild(p);p.style.left=u.parentNode.offsetWidth/2-p.offsetWidth/2+"px"},1);if(a.h)var u=a.h;else a.g&&(u=a.g);u.appendChild(p);var k=d.querySelector(".zb-slider-touch-left"),m=d.querySelector(".zb-slider-touch-right"),n=d.querySelector(".zb-non-active-slider-bar"),y=d.querySelector(".zb-slider-bar"),v=parseFloat(d.getAttribute("se-min")),z=parseFloat(d.getAttribute("se-max"));e.za=function(h){v=h};e.xa=function(h){z=h};e.enable=function(h){e.disabled=!h;h?(a.D.classList.remove("disabled"),u&&(u.classList.remove("disabled"),a.h?a.h.setAttribute("contenteditable",!0):a.g&&a.g.setAttribute("readonly",!1))):(a.D.classList.add("disabled"),u&&(u.classList.add("disabled"),a.h?a.h.setAttribute("contenteditable","false"):a.g&&a.g.setAttribute("readonly",!0)))};var D=v;d.hasAttribute("se-min-value")&&(D=parseFloat(d.getAttribute("se-min-value")));var C=z;d.hasAttribute("se-max-value")&&(C=parseFloat(d.getAttribute("se-max-value")));D<v&&(D=v);C>z&&(C=z);D>C&&(D=C);var A=0;d.getAttribute("se-step")&&(A=Math.abs(parseFloat(d.getAttribute("se-step"))));e.D=d;e.reset=function(){k.style.left="0px";m&&(m.style.left=y.offsetWidth-k.offsetWidth+"px");n.style.marginLeft="0px";n.style.width=y.offsetWidth-k.offsetWidth+"px";b=l=0;f({pageX:0})};e.C=function(h,B){(void 0===B||B)&&e.R(h);h>z&&(h=z);h<v&&(h=v);k.style.left=Math.ceil((h-v)/(z-v)*(y.offsetWidth-(k.offsetWidth+0)))+"px";n.style.marginLeft=k.offsetLeft+"px";n.style.width=m?m.offsetLeft-k.offsetLeft+"px":y.offsetWidth-k.offsetLeft+"px";d.setAttribute("se-min-value",h)};e.ya=function(h){m&&(m.style.left=Math.ceil((h-v)/(z-v)*(y.offsetWidth-(k.offsetWidth+0)))+"px",n.style.marginLeft=k.offsetLeft+"px",n.style.width=m.offsetLeft-k.offsetLeft+"px",d.setAttribute("se-max-value",h))};e.R=function(h){.01>Math.abs(Math.floor(100*h)-100*h)&&(h=Math.floor(1E3*h)/1E3);a.g?a.g.value=h:a.h.innerHTML=h};e.reset();var F=y.offsetWidth-(m?m.offsetWidth:0),E=null,H=y.offsetWidth;e.C(D);k.addEventListener("mousedown",c);k.addEventListener("touchstart",c);m&&(m.addEventListener("mousedown",c),m.addEventListener("touchstart",c));a.h?a.h.addEventListener("keyup",function(h){e.C(parseInt(h.target.innerHTML,10),!1);a.onchange(d.getAttribute("se-min-value"),d.getAttribute("se-max-value"),d.dataset.id)}):a.g&&a.g.addEventListener("change",function(h){e.C(parseInt(h.target.value,10),!1);a.onchange(d.getAttribute("se-min-value"),d.getAttribute("se-max-value"),d.dataset.id)});k.style.left=k.offsetLeft-10+"px";setTimeout(function(){H=y.offsetWidth;e.C(d.getAttribute("se-min-value"))},100);r=!0}var height_f=void 0;function height_g(a,c){var f=new XMLHttpRequest;f.addEventListener("load",function(g){4===g.target.readyState&&c(g.target.responseText,0,g.target.responseXML)});a=height_h(a);f.open("POST","calculators/height/get_height.php");f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f.send(a)}function height_h(a){var c=[],f;for(f in a)c.push(f+"="+a[f]);return c.join("&")}
function height_i(a){window.matchMedia("(orientation: portrait)").addListener(function(c){c.matches?a({orientation:"portrait"}):a({orientation:"landscape"})})}
function height_j(a){var c=document.createElement("div");c.style.width=a.width;c.className="slider-container";var f=document.createElement("div");c.appendChild(f);f.className="zb-slider";a.step&&f.setAttribute("se-step",a.step);f.setAttribute("se-min",a.min);f.setAttribute("se-max",a.max);a.o&&f.setAttribute("se-min-value",a.o);a.ca&&f.setAttribute("se-min-max",a.ca);var g=document.createElement("div");g.className="zb-slider-touch-left";f.appendChild(g);g.appendChild(document.createElement("span"));g=document.createElement("div");g.className="zb-slider-bar";f.appendChild(g);var q=document.createElement("span");q.className="zb-non-active-slider-bar";g.appendChild(q);a.parent&&(a.parent.appendChild(c),new height_e({D:f,g:a.g,h:a.h,onchange:a.onchange}));return{sa:c,ma:f}}function height_k(a){height_l({na:{step:1,min:a.min||140,max:a.max||210,o:a.o||160,width:"100%"},L:'ס"מ',F:a.F||"גובה",name:a.name||"height_input",s:a.name||"height_input",parent:a.parent})}
function height_m(a){var c=document.createElement("div");c.className="animated-calculator-button";c.innerHTML=a.caption||"";a.onclick&&(c.onclick=a.onclick);return c}var height_n=0;function height_l(a){var c=document.createElement("div");c.className="text-slider-container";a.aa&&(c.id=a.aa);a.parent.appendChild(c);var f=document.createElement("div");c.appendChild(f);f.className="slider-and-label-container";var g=document.createElement("label");g.className=a.Aa||"slider-label";g.innerHTML=a.F||"";f.appendChild(g);void 0===a.s&&(a.s="___running_text_id_"+height_n++);a.type?(g=document.createElement("input"),g.className="slider-text-field",g.type=a.type||"text",a.va&&(g.pattern="\\d*")):(g=document.createElement("div"),g.setAttribute("contenteditable",!0),g.setAttribute("inputmode","decimal"),g.onfocus=function(e){window.getSelection().selectAllChildren(e.target)},g.className="slider-text-div");a.ha&&(g.onchange=a.ha);a.ia&&(g.onkeyup=a.ia);g.id=a.s;g.name=a.name;var q=a.na;if(a.type){q.g=g;var w="slider-text-field-container"}else q.h=g,w="slider-text-div-container";q.parent=f;height_j(q).ma.dataset.id=a.s;f=document.createElement("div");f.className=w;c.appendChild(f);f.appendChild(g);a.L&&(c=document.createElement("label"),c.className="slider-text-field-label",c.innerHTML=a.L||"",c.setAttribute("for",a.s),f.appendChild(c))}function height_(a){var c=document.getElementById(a);c||(c=document.getElementsByName(a)[0]);a=c.value;void 0===a&&(a=c.innerHTML);c=parseInt(a,10);return c}function height_o(a){height_f||(height_f=height_c());height_f.to(a)}
function height_p(){var a=a||["animated-calendar-container","animated-popup-button-set-container","text-slider-container","animated-select-container","quick-nav-container"];a=height_b(a);for(var c=a.next();!c.done;c=a.next())Array.prototype.map.call(document.getElementsByClassName(c.value),function(f){f.classList.add("popup_with_separator")})}var height_q=!1,height_r=!1;function height_s(a,c){for(var f in c){var g=c[f];g&&"[object Object]"===Object.prototype.toString.call(g)?(void 0==a[f]&&(a[f]=a[f]||{}),height_s(a[f],g)):void 0==a[f]&&(a[f]=g)}return a}
function height_t(a){height_r||(height_d(),height_r=!0);var c=a.style?a.style:"";a.writingMode&&(c+="writing-mode: "+a.writingMode);a.color&&(c+=";fill:"+a.color);a.fontSize&&(c+=";font-size:"+a.fontSize+"px");a.fontFamily&&(c+=";font-family:"+a.fontFamily);a.fontWeight&&(c+=";font-weight:"+a.fontWeight);var f;a.fa?f=a.fa:f=document.createElementNS("http://www.w3.org/2000/svg","g");for(var g=(""+a.caption).replace("<br>","\n","g").split("\n"),q=0;q<g.length;q++){var w=document.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("x",a.x);w.setAttribute("y",a.y+1.66*a.fontSize*q);a.className&&w.setAttribute("class",a.className);if(a.T){var e=w,l=a.T,b=e.getAttribute("class")||"";b&&(b=b.replace(/textAnchor[a-zA-Z]+/,"","g"));b+=" textAnchor"+(height_q?"IE":"");b+=l.charAt(0).toUpperCase()+l.slice(1);e.setAttribute("class",b)}w.setAttribute("style",c);w.appendChild(document.createTextNode(g[q]));f.appendChild(w)}return f}var height_u={};height_u=height_s(height_u,{});(function(){function a(){var e={height_input:JSON.stringify({father_height:height_("father_height"),mother_height:height_("mother_height")})};height_g(e,g)}function c(e,l,b){var d=document.getElementById("height_scale");d.innerHTML="";for(var r=l-e,t={fontSize:mobileBrowser?12:18,color:"white",fontFamily:"miri",T:"end"},x=e;x<=l;x+=10)if(x!==e){t.x=10;t.y=-2+(x-e)/r*b;t.caption=l-x+e;if(0===x%10){var p=height_t(t);d.appendChild(p);t.x=mobileBrowser?document.documentElement.clientWidth-30:720;p=height_t(t);d.appendChild(p)}p={src:"images/range_graph/line-white.png",x:-10,y:t.y,width:mobileBrowser?document.documentElement.clientWidth+10:780,height:7,O:"none",fill:"#ffffff"};height_r||(height_d(),height_r=!0);var u=document.createElementNS("http://www.w3.org/2000/svg","image");u.setAttributeNS("http://www.w3.org/1999/xlink","href",p.src);u.setAttribute("x",p.x);u.setAttribute("y",p.y);u.setAttribute("width",p.width);u.setAttribute("height",p.height);u.setAttribute("image-rendering","crisp-edges");p.O&&u.setAttribute("preserveAspectRatio",p.O);p.transform&&u.setAttribute("transform",p.transform);d.appendChild(u)}}function f(){function e(n){return(u-n)/k*b}if(height_q=-1!==navigator.appVersion.indexOf("MSIE"))var l=-1===navigator.appVersion.indexOf("MSIE 8.")&&-1===navigator.appVersion.indexOf("MSIE 7.");else height_q=height_q||!!navigator.userAgent.match(/Trident/),l=!0;if(l){l=mobileBrowser?document.documentElement.clientWidth:770;var b=800>l?Math.ceil(25*l/58-28):270;Array.prototype.map.call(document.getElementsByClassName("image_container"),function(n){n.style.clip="rect(-25px, 300px, "+b+"px, 0px)"});Array.prototype.map.call(document.querySelectorAll("tr#height_images td"),function(n){n.style.height=b+"px"});Array.prototype.map.call(document.querySelectorAll(".image_container img"),function(n){n.style.height=b+"px"});document.getElementById("height_scale_container").style.height=b+60+"px";mobileBrowser?(Array.prototype.map.call(document.querySelectorAll("table.height_result_table tr td"),function(n){n.style.fontSize="9px"}),document.getElementById("man_image").parentNode.parentNode.style.width=.8*b/300*261+"px",document.getElementById("woman_image").parentNode.parentNode.style.width=.8*b/300*132+"px",document.getElementById("teenager_man_image").parentNode.parentNode.style.width=.8*b/300*261+"px",document.getElementById("teenager_woman_image").parentNode.parentNode.style.width=.8*b/300*156+"px"):(Array.prototype.map.call(document.querySelectorAll("table.height_result_table tr td"),function(n){n.style.fontSize=""}),document.getElementById("man_image").parentNode.parentNode.style.width=b/300*261+"px",document.getElementById("woman_image").parentNode.parentNode.style.width=b/300*132+"px",document.getElementById("teenager_man_image").parentNode.parentNode.style.width=b/300*261+"px",document.getElementById("teenager_woman_image").parentNode.parentNode.style.width=b/300*156+50+"px");var d=height_("father_height"),r=height_("mother_height"),t=q.son,x=q.daughter,p=Math.max(d,r,t,x),u=0===p%10?p+10:p+10-p%10;p=u-80;var k=u-p,m=e(d);document.getElementById("man_image").style.top=m+"px";document.getElementById("man_specific_height").innerHTML=d+" ס\u05f4מ";m=e(r);document.getElementById("woman_image").style.top=e(r)+"px";document.getElementById("woman_specific_height").innerHTML=r+" ס\u05f4מ";m=e(t);document.getElementById("teenager_man_image").style.top=e(t)+"px";document.getElementById("son_specific_height").innerHTML=Math.round(t)+" ס\u05f4מ";m=e(x);document.getElementById("teenager_woman_image").style.top=e(x)+"px";document.getElementById("daughter_specific_height").innerHTML=Math.round(x)+" ס\u05f4מ";document.getElementById("svgContainer").innerHTML='<svg id="height_scale" style="position:absolute" width="'+l+'" height="'+(b+60)+'"></svg>';c(p,u,b);mobileBrowser&&height_o(document.getElementById("calculator_center_ad"));document.getElementById("height_images").style.opacity="1"}}function g(e){q=JSON.parse(e).height_data;document.getElementById("son_result").innerHTML="גובהו הסופי המשוער של הבן שלך הוא <span class='themed-text'>"+q.son+"</span> סנטימטרים.";document.getElementById("daughter_result").innerHTML="גובהה הסופי המשוער של הבת שלך הוא <span class='themed-text'>"+q.daughter+"</span> סנטימטרים.";f();w&&(w=!1,height_i(f))}var q,w=!0;(function(){var e=document.getElementById("selection_panel");height_k({min:140,max:200,o:162,parent:e,name:"mother_height",F:"גובה האם"});height_k({min:150,max:210,o:182,parent:e,name:"father_height",F:"גובה האב"});e=height_m({caption:"חישוב גובה"});e.onclick=a;document.getElementById("calculator_buttons").appendChild(e);e=height_m({caption:"חישוב נוסף"});e.onclick=function(){height_o(document.getElementsByClassName("calculator_wrapper")[0])};document.getElementById("result_buttons").appendChild(e);height_p()})()})()})();(function(){function menu_(b){var d=0;return function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}}}(function(){function b(a){this.c=g({},{w:null,R:null,P:null,u:null,B:!1,K:!1,J:[],I:"Close",g:["overlay","button","escape"]},a);this.L()}function d(){this.b&&(this.b.style.width=this.f.clientWidth+"px",this.b.style.left=this.f.offsetLeft+"px")}function e(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.c.g.length&&-1!==this.c.g.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.c.J.forEach(function(a){"string"===typeof a&&this.a.classList.add(a)},this);-1!==this.c.g.indexOf("button")&&(this.h=document.createElement("button"),this.h.type="button",this.h.classList.add("tingle-modal__close"),this.m=document.createElement("span"),this.m.classList.add("tingle-modal__closeIcon"),this.m.innerHTML='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z" fill="#000" fill-rule="nonzero"/></svg>',this.o=document.createElement("span"),this.o.classList.add("tingle-modal__closeLabel"),this.o.innerHTML=this.c.I,this.h.appendChild(this.m),this.h.appendChild(this.o));this.f=document.createElement("div");this.f.classList.add("tingle-modal-box");this.v=document.createElement("div");this.v.classList.add("tingle-modal-box__title");this.f.appendChild(this.v);this.l=document.createElement("div");this.l.classList.add("tingle-modal-box__content");this.f.appendChild(this.l);-1!==this.c.g.indexOf("button")&&this.a.appendChild(this.h);this.a.appendChild(this.f)}function f(a){-1!==this.c.g.indexOf("escape")&&27===a.which&&this.M()&&this.close()}function m(a){var c;if(c=-1!==this.c.g.indexOf("overlay")){for(c=a.target;(c=c.parentElement)&&!c.classList.contains("tingle-modal"););c=!c}c&&a.clientX<this.a.clientWidth&&this.close()}function g(){for(var a=1;a<arguments.length;a++)for(var c in arguments[a])arguments[a].hasOwnProperty(c)&&(arguments[0][c]=arguments[a][c]);return arguments[0]}var h=!1;b.prototype.L=function(){this.a||(e.call(this),this.i={G:this.close.bind(this),H:m.bind(this),resize:this.F.bind(this),N:f.bind(this)},-1!==this.c.g.indexOf("button")&&this.h.addEventListener("click",this.i.G),this.a.addEventListener("mousedown",this.i.H),window.addEventListener("resize",this.i.resize),document.addEventListener("keydown",this.i.N),document.body.insertBefore(this.a,document.body.firstChild),this.c.K&&this.D())};b.prototype.s=function(a){h=a};b.prototype.C=function(){return h};b.prototype.M=function(){return!!this.a.classList.contains("tingle-modal--visible")};b.prototype.close=function(){if(!this.C()){this.s(!0);if("function"!==typeof this.c.u||this.c.u.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.O,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.c.w&&this.c.w.call(this);this.s(!1)}};b.prototype.D=function(){this.b=document.createElement("div");this.b.classList.add("tingle-modal-box__footer");this.f.appendChild(this.b)};b.prototype.A=function(a){this.j()||(a=!1);a?this.f.contains(this.b)&&(this.f.removeChild(this.b),this.a.appendChild(this.b),this.b.classList.add("tingle-modal-box__footer--sticky"),d.call(this),this.l.style["padding-bottom"]=this.b.clientHeight+20+"px"):this.b&&!this.f.contains(this.b)&&(this.a.removeChild(this.b),this.f.appendChild(this.b),this.b.style.width="auto",this.b.style.left="",this.l.style["padding-bottom"]="",this.b.classList.remove("tingle-modal-box__footer--sticky"))};b.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};b.prototype.j=function(){return this.f.clientHeight>=window.innerHeight};b.prototype.F=function(){this.a.classList.contains("tingle-modal--visible")&&(this.j()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.j()&&this.c.B?this.A(!1):this.j()&&this.c.B&&(d.call(this),this.A(!0)))};return{a:b}})();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function menu_a(b){var d=new XMLHttpRequest;d.addEventListener("load",function(f){4===f.target.readyState&&b(f.target.responseText,0,f.target.responseXML)});var e=menu_b();""!==e&&(e="?"+e);d.open("GET","panel_content/print_menu_contents.php"+e);d.send("")}function menu_b(){var b={},d=[],e;for(e in b)d.push(e+"="+b[e]);return d.join("&")}
function menu_c(){"images/square_articles/food-bag_200_200-125.png images/square_articles/lettuce_with_measure_200_200-125.jpg images/square_articles/pregnant_apple_200_200-125.jpg images/square_articles/drinks_200_200-125.jpg images/calculators/house_dollar_swing_125_125.jpg images/calculators/tax_receipt_125_125.jpg images/calculators/coins3_125_125.jpg images/square_articles/calculator_10_200_200-125.jpg images/square_articles/dog_200_200-125.jpg images/square_articles/woman_weight_200_200-125.jpg images/square_articles/fruit_basket_2_200_200-125.jpg images/square_articles/housing_200_200-125.jpg images/square_articles/woman_belly_measure_200_200-125.jpg images/square_articles/pregnant_mirror_200_200-125.jpg images/square_articles/man_suit_watch_200_200-125.jpg images/square_articles/strawberris_200_200-125.jpg images/square_articles/wallet_200_200-125.jpg images/square_articles/dollar_house_200_200-125.jpg images/square_articles/kojak_200_200-125.jpg images/square_articles/graph_up_200_200-125.jpg images/square_articles/freud_200_200-125.jpg images/square_articles/pregnant_cyan_1_200_200-125.jpg images/square_articles/yellow_pepper_200_200-125.jpg images/square_articles/yin_yang_200_200-125.jpg images/square_articles/yellow_car_200_200-125.jpg images/square_articles/hitech_gym_200_200-125.jpg images/square_articles/fruit_basket_200_200-125.jpg images/square_articles/books_200_200-125.jpg images/categories/affiliates_200_200-125.jpg images/categories/gear_200_200-125.jpg images/authors/ami_and_reut2.jpg".split(" ").map(function(b,d){document.querySelector(".lazy_loaded_image_"+d).src=b})}(function(){function b(f){function m(){h();a=setTimeout(function(){k.classList.remove("visible");c=setTimeout(function(){k.classList.remove("top-visible");c=-1},200);a=-1},1E3)}function g(){n||(menu_c(),n=!0);Array.prototype.map.call(document.querySelectorAll("div.mbmenu.boxMenu"),function(l){l!==k&&(l.classList.remove("top-visible"),l.classList.remove("visible"))});h();k.classList.add("top-visible");k.classList.add("visible")}function h(){var l=[a,c];var p="undefined"!=typeof Symbol&&Symbol.iterator&&l[Symbol.iterator];l=p?p.call(l):{next:menu_(l)};for(p=l.next();!p.done;p=l.next())clearTimeout(p.value)}var a=-1,c=-1,k=document.getElementById(f.id.substr(0,f.id.indexOf("-header"))),n=!1;f.onmouseenter=g;f.onmouseleave=m;k.onmouseenter=g;k.onmouseleave=m}var d=document.getElementsByClassName("desktop-menu-item"),e;menu_a(function(f){f=(new DOMParser).parseFromString(f,"text/xml");var m=[];Array.prototype.map.call(f.childNodes[0].childNodes,function(g){return m.push(g)});m.map(function(g){var h=document.createElement("div"),a=g.getAttribute("id");h.className=g.getAttribute("class");h.id=a;if(g.innerHTML)h.innerHTML=g.innerHTML;else{e||(e=new XMLSerializer);var c=e;for(var k="",n=0;n<g.childNodes.length;n++)k+=c.serializeToString(g.childNodes[n]);h.innerHTML=k}document.getElementById(a+"-header").appendChild(h)});Array.prototype.map.call(d,b)})})({})})()