(function(){function gica(a){var e=0;return function(){return e<a.length?{done:!1,value:a[e++]}:{done:!0}}}function gicb(a){var e="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return e?e.call(a):{next:gica(a)}}
function gicc(){function a(){return window.scrollY||f.scrollTop}function e(b,h,d){function n(q,p,r){t(Math.max(0,b.j(q)-d),p,r)}function t(q,p,r){w();if(0===p||p&&0>p||l(b.body))b.u(q),r&&r();else{var u=b.o(),x=Math.max(0,q)-u,y=(new Date).getTime();p=p||Math.min(Math.abs(x),h);(function A(){z=setTimeout(function(){var v=Math.min(1,((new Date).getTime()-y)/p),B=Math.max(0,Math.floor(u+x*(.5>v?2*v*v:v*(4-2*v)-1)));b.u(B);1>v&&b.B()+B<b.body.scrollHeight?A():(setTimeout(w,99),r&&r())},9)})()}}function w(){clearTimeout(z);z=0}h=h||999;d||0===d||(d=9);var z;return{setup:function(q,p){if(0===q||q)h=q;if(0===p||p)d=p;return{qa:h,L:d}},to:n,toY:t,intoView:function(q,p,r){var u=q.getBoundingClientRect().height,x=b.j(q)+u,y=b.B(),C=b.o(),A=C+y;Math.max(0,b.j(q)-d)<C||u+d>y?n(q,p,r):x+d>A?t(x-y+d,p,r):r&&r()},center:function(q,p,r,u){t(Math.max(0,b.j(q)-b.B()/2+(r||q.getBoundingClientRect().height/2)),p,u)},stop:w,moving:function(){return!!z},getY:b.o,getTopOf:b.j}}function l(b){return b&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(b)["scroll-behavior"]}if("undefined"===typeof window||!("document"in window))return{};var f=document.documentElement,g=e({body:document.scrollingElement||document.body,u:function(b){window.scrollTo(0,b)},o:a,B:function(){return window.innerHeight||f.clientHeight},j:function(b){return b.getBoundingClientRect().top+a()-f.offsetTop}});g.pa=function(b,h,d){return e({body:b,u:function(n){b.scrollTop=n},o:function(){return b.scrollTop},B:function(){return Math.min(b.clientHeight,window.innerHeight||f.clientHeight)},j:function(n){return n.offsetTop}},h,d)};if("addEventListener"in window&&!window.ma&&!l(document.body)){var c="history"in window&&"pushState"in history,m=c&&"scrollRestoration"in history;m&&(history.scrollRestoration="auto");window.addEventListener("load",function(){m&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(b){b.state&&"zenscrollY"in b.state&&g.u(b.state.ka)},!1));window.location.hash&&setTimeout(function(){var b=g.ia().L;if(b){var h=document.getElementById(window.location.href.split("#")[1]);h&&(b=Math.max(0,g.j(h)-b),h=g.o()-b,0<=h&&9>h&&window.scrollTo(0,b))}},9)},!1);var k=/(^|\s)noZensmooth(\s|$)/;window.addEventListener("click",function(b){for(var h=b.target;h&&"A"!==h.tagName;)h=h.parentNode;if(!(!h||1!==b.which||b.shiftKey||b.metaKey||b.ctrlKey||b.altKey)){if(m){var d=history.state&&"object"===typeof history.state?history.state:{};d.ka=g.o();try{history.replaceState(d,"")}catch(t){}}var n=h.getAttribute("href")||"";if(0===n.indexOf("#")&&!k.test(h.className)){h=0;d=document.getElementById(n.substring(1));if("#"!==n){if(!d)return;h=g.j(d)}b.preventDefault();b=function(){window.location=n};if(d=g.ia().L)h=Math.max(0,h-d),c&&(b=function(){history.pushState({},"",n)});g.u(h,null,b)}}},!1)}return g}(function(){function a(k){this.c=c({},{O:null,ra:null,na:null,J:null,S:!1,da:!1,ba:[],Y:"Close",m:["overlay","button","escape"]},k);this.ea()}function e(){this.b&&(this.b.style.width=this.f.clientWidth+"px",this.b.style.left=this.f.offsetLeft+"px")}function l(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.c.m.length&&-1!==this.c.m.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.c.ba.forEach(function(k){"string"===typeof k&&this.a.classList.add(k)},this);-1!==this.c.m.indexOf("button")&&(this.s=document.createElement("button"),this.s.type="button",this.s.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.Y,this.s.appendChild(this.G),this.s.appendChild(this.H));this.f=document.createElement("div");this.f.classList.add("tingle-modal-box");this.N=document.createElement("div");this.N.classList.add("tingle-modal-box__title");this.f.appendChild(this.N);this.D=document.createElement("div");this.D.classList.add("tingle-modal-box__content");this.f.appendChild(this.D);-1!==this.c.m.indexOf("button")&&this.a.appendChild(this.s);this.a.appendChild(this.f)}function f(k){-1!==this.c.m.indexOf("escape")&&27===k.which&&this.fa()&&this.close()}function g(k){var b;if(b=-1!==this.c.m.indexOf("overlay")){for(b=k.target;(b=b.parentElement)&&!b.classList.contains("tingle-modal"););b=!b}b&&k.clientX<this.a.clientWidth&&this.close()}function c(){for(var k=1;k<arguments.length;k++)for(var b in arguments[k])arguments[k].hasOwnProperty(b)&&(arguments[0][b]=arguments[k][b]);return arguments[0]}var m=!1;a.prototype.ea=function(){this.a||(l.call(this),this.A={W:this.close.bind(this),X:g.bind(this),resize:this.V.bind(this),ga:f.bind(this)},-1!==this.c.m.indexOf("button")&&this.s.addEventListener("click",this.A.W),this.a.addEventListener("mousedown",this.A.X),window.addEventListener("resize",this.A.resize),document.addEventListener("keydown",this.A.ga),document.body.insertBefore(this.a,document.body.firstChild),this.c.da&&this.U())};a.prototype.I=function(k){m=k};a.prototype.T=function(){return m};a.prototype.fa=function(){return!!this.a.classList.contains("tingle-modal--visible")};a.prototype.close=function(){if(!this.T()){this.I(!0);if("function"!==typeof this.c.J||this.c.J.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.la,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.c.O&&this.c.O.call(this);this.I(!1)}};a.prototype.U=function(){this.b=document.createElement("div");this.b.classList.add("tingle-modal-box__footer");this.f.appendChild(this.b)};a.prototype.R=function(k){this.C()||(k=!1);k?this.f.contains(this.b)&&(this.f.removeChild(this.b),this.a.appendChild(this.b),this.b.classList.add("tingle-modal-box__footer--sticky"),e.call(this),this.D.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.D.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.C=function(){return this.f.clientHeight>=window.innerHeight};a.prototype.V=function(){this.a.classList.contains("tingle-modal--visible")&&(this.C()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.C()&&this.c.S?this.R(!1):this.C()&&this.c.S&&(e.call(this),this.R(!0)))};return{a:a}})();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};var gic=void 0;function gicd(a,e){var l=new XMLHttpRequest;l.addEventListener("load",function(f){4===f.target.readyState&&e(f.target.responseText,0,f.target.responseXML)});a=gice(a);""!==a&&(a="?"+a);l.open("GET","calculators/genetic_illness_calculator/get_genetic_illness_data.php"+a);l.send("")}function gice(a){var e=[],l;for(l in a)e.push(l+"="+a[l]);return e.join("&")}
function gicf(a){var e=document.createElement("div");e.className="animated-calculator-button";e.innerHTML=a.caption||"";a.onclick&&(e.onclick=a.onclick);return e}function gicg(a){var e=document.createElement("div");a.aa&&(e.id=a.aa);e.className="animated-popup-button-set-container";a.Z&&e.classList.add(a.Z);var l=document.createElement("label");l.className=a.sa||"animated-popup-button-set-container-label";l.innerHTML=a.ja||"";e.appendChild(l);a=gich(a.K);e.appendChild(a);return e}
function gici(){var a=document.getElementById("overlay_div");a||(a=document.createElement("div"),a.id="overlay_div",a.className="overlay_div",document.body.appendChild(a));return a}
function gich(a){function e(d){d.preventDefault();document.getElementById("overlay_div").style.display="";m.style.display=""}function l(d){d.preventDefault();d=document.getElementById("overlay_div");d.style.height=document.body.scrollHeight+"px";d.style.display="block";m.style.display=a.P;mobileBrowser&&500<m.offsetHeight&&(m.style.top=-document.documentElement.scrollTop+"px")}a.P=a.P||"block";a.M=a.M||"";var f=document.createElement("div");f.className="animated popup-button-set-div popup-button-set-div-"+a.name+" "+a.M;var g=document.createElement("div");g.className="value-caption";g.innerHTML="בחירה";var c=document.createElement("div");c.className="visual-cue upside-down-triangle";c.innerHTML="\u25bc";f.appendChild(g);f.appendChild(c);var m=document.createElement("div");m.className="popup-div above-overlay";var k=gici();k.onclick=e;k.addEventListener("click",e);c.onclick=l;g.onclick=l;f.appendChild(m);var b=[];c={};k=gicb(a.ha);for(var h=k.next();!h.done;c={l:c.l,w:c.w,i:c.i,F:c.F,g:c.g,v:c.v,h:c.h},h=k.next())c.l=h.value,c.i=document.createElement("div"),c.i.className="popup-button-set-div-button",c.h=document.createElement("label"),c.h.innerHTML=c.l.caption,c.h.className=c.l.oa||"",c.g=document.createElement("input"),c.g.type="radio",c.g.name=a.name,c.g.value=c.l.value,c.F=a.onclick||function(){},c.w=function(d){return function(){return g.innerHTML=d.l.caption}}(c),c.v=function(d){return function(n,t){d.w();b.map(function(w){w.classList.remove("selected-popup-button-in-set")});d.i.classList.add("selected-popup-button-in-set");t&&d.F(n,d.g.value);e(n)}}(c),c.g.onchange=function(d){return function(n){d.v(n,!0)}}(c),c.h.onmouseup=function(d){return function(n){d.h.dataset.disabled&&"false"!==d.h.dataset.disabled?n.preventDefault():d.g.checked&&d.v(n,!1)}}(c),a.ca===c.l.value&&(c.g.checked=!0,c.i.classList.add("selected-popup-button-in-set"),c.w()),c.h.appendChild(c.g),c.i.appendChild(c.h),c.g.style.display="none",m.appendChild(c.i),b.push(c.i);return f}
function gicj(){var a=a||["animated-calendar-container","animated-popup-button-set-container","text-slider-container","animated-select-container","quick-nav-container"];a=gicb(a);for(var e=a.next();!e.done;e=a.next())Array.prototype.map.call(document.getElementsByClassName(e.value),function(l){l.classList.add("popup_with_separator")})}(function(){function a(){for(var f={},g=0;4>g;g++){var c=parseInt(document.querySelectorAll("input[name=src_"+(g+1)+"][type=radio]:checked")[0].value,10);f["src"+(g+1)]=c}gicd(f,e)}function e(f){var g=JSON.parse(f);f="<p class='article_secondary_title'>להלן רשימת בדיקות הסקר הגנטיות שעשויות להיות רלוונטיות עבורכם בהסתמך על המוצא של שניכם.</p><table class='animated_table'><thead><tr><th>שם המחלה</th><th>תיאור</th></tr></thead><tbody>";g=gicb(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var m=Object.keys(c)[0];f+="<tr><td><span class='themed-text'>"+m+"</style></td><td>"+c[m]+"</td></tr>"}document.getElementById("genetic_illness_list_result").innerHTML=f+"</tbody></table>";mobileBrowser&&(f=document.getElementById("calculator_center_ad"),gic||(gic=gicc()),gic.to(f))}var l=[{value:1,caption:"אשכנז"},{value:2,caption:"בלקן"},{value:3,caption:"מצרים"},{value:4,caption:"עירק"},{value:5,caption:"תימן"},{value:6,caption:"אלג'יר"},{value:7,caption:"מרוקו"},{value:8,caption:"לוב"},{value:9,caption:"טוניס"},{value:10,caption:"פרס"},{value:11,caption:"הודו"},{value:12,caption:"טורקיה"},{value:13,caption:"סוריה"},{value:14,caption:"ספרד"},{value:15,caption:"לבנון"},{value:16,caption:"בוכרה"},{value:17,caption:"אתיופיה"}];(function(){for(var f=document.getElementById("selection_panel"),g=["מוצא האם המיועדת מצד אביה","מוצא האם המיועדת מצד אמה","מוצא האב המיועד מצד אביו","מוצא האב המיועד מצד אמו"],c={K:{ha:l,ca:1}},m=0;m<g.length;m++){c.K.name="src_"+(m+1);c.ja=g[m];var k=gicg(c);f.appendChild(k)}f=gicf({caption:"אילו בדיקות רלוונטיות?"});f.onclick=a;document.getElementById("calculator_buttons").appendChild(f);f=gicf({caption:"חישוב נוסף"});f.onclick=function(){var b=document.getElementsByClassName("calculator_wrapper")[0];gic||(gic=gicc());gic.to(b)};document.getElementById("result_buttons").appendChild(f);gicj()})()})()})();(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)})})({})})()