(function(){function oca(a){var d=0;return function(){return d<a.length?{done:!1,value:a[d++]}:{done:!0}}}function ocb(a){var d="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return d?d.call(a):{next:oca(a)}}
var occ=function(){function a(b){this.b=f({},{N:null,O:null,I:null,H:null,u:!1,L:!1,V:[],w:"Close",g:["overlay","button","escape"]},b);this.W()}function d(){this.c&&(this.c.style.width=this.f.clientWidth+"px",this.c.style.left=this.f.offsetLeft+"px")}function g(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.b.g.length&&-1!==this.b.g.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.b.V.forEach(function(b){"string"===typeof b&&this.a.classList.add(b)},this);-1!==this.b.g.indexOf("button")&&(this.l=document.createElement("button"),this.l.type="button",this.l.classList.add("tingle-modal__close"),this.B=document.createElement("span"),this.B.classList.add("tingle-modal__closeIcon"),this.B.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.C=document.createElement("span"),this.C.classList.add("tingle-modal__closeLabel"),this.C.innerHTML=this.b.w,this.l.appendChild(this.B),this.l.appendChild(this.C));this.f=document.createElement("div");this.f.classList.add("tingle-modal-box");this.A=document.createElement("div");this.A.classList.add("tingle-modal-box__title");this.f.appendChild(this.A);this.j=document.createElement("div");this.j.classList.add("tingle-modal-box__content");this.f.appendChild(this.j);-1!==this.b.g.indexOf("button")&&this.a.appendChild(this.l);this.a.appendChild(this.f)}function h(b){-1!==this.b.g.indexOf("escape")&&27===b.which&&this.M()&&this.close()}function c(b){var e;if(e=-1!==this.b.g.indexOf("overlay")){for(e=b.target;(e=e.parentElement)&&!e.classList.contains("tingle-modal"););e=!e}e&&b.clientX<this.a.clientWidth&&this.close()}function f(){for(var b=1;b<arguments.length;b++)for(var e in arguments[b])arguments[b].hasOwnProperty(e)&&(arguments[0][e]=arguments[b][e]);return arguments[0]}var l=!1;a.prototype.W=function(){this.a||(g.call(this),this.o={T:this.close.bind(this),U:c.bind(this),resize:this.v.bind(this),X:h.bind(this)},-1!==this.b.g.indexOf("button")&&this.l.addEventListener("click",this.o.T),this.a.addEventListener("mousedown",this.o.U),window.addEventListener("resize",this.o.resize),document.addEventListener("keydown",this.o.X),document.body.insertBefore(this.a,document.body.firstChild),this.b.L&&this.R())};a.prototype.m=function(b){l=b};a.prototype.F=function(){return l};a.prototype.M=function(){return!!this.a.classList.contains("tingle-modal--visible")};a.prototype.open=function(){if(!this.F())return this.m(!0),"function"===typeof this.b.I&&this.b.I(),this.a.style.removeProperty?this.a.style.removeProperty("display"):this.a.style.removeAttribute("display"),this.G=window.pageYOffset,document.body.classList.add("tingle-enabled"),document.body.style.top=-this.G+"px",this.D(this.b.u),this.a.classList.add("tingle-modal--visible"),"function"===typeof this.b.O&&this.b.O.call(this),this.m(!1),this.v(),this};a.prototype.close=function(){if(!this.F()){this.m(!0);if("function"!==typeof this.b.H||this.b.H.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.G,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.b.N&&this.b.N.call(this);this.m(!1)}};a.prototype.P=function(b,e){var k=document.createElement("div");k.className="tingle-modal-box-content";"string"===typeof e?k.innerHTML=e:k.appendChild(e);b.innerHTML="";b.appendChild(k);this.M()&&this.v()};a.prototype.Z=function(b){this.i=b};a.prototype.Y=function(b){this.P(this.j,b);this.i&&(b=document.createElement("div"),b.className="tingle-modal-box-icon",this.j.prepend(b),b.innerHTML=this.i);this.i=void 0};a.prototype.aa=function(b){this.P(this.A,b)};a.prototype.R=function(){this.c=document.createElement("div");this.c.classList.add("tingle-modal-box__footer");this.f.appendChild(this.c)};a.prototype.D=function(b){this.s()||(b=!1);b?this.f.contains(this.c)&&(this.f.removeChild(this.c),this.a.appendChild(this.c),this.c.classList.add("tingle-modal-box__footer--sticky"),d.call(this),this.j.style["padding-bottom"]=this.c.clientHeight+20+"px"):this.c&&!this.f.contains(this.c)&&(this.a.removeChild(this.c),this.f.appendChild(this.c),this.c.style.width="auto",this.c.style.left="",this.j.style["padding-bottom"]="",this.c.classList.remove("tingle-modal-box__footer--sticky"))};a.prototype.S=function(b,e,k){var m=document.createElement("button");m.innerHTML=b;m.addEventListener("click",k);"string"===typeof e&&e.length&&e.split(" ").forEach(function(n){m.classList.add(n)});this.c.appendChild(m)};a.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};a.prototype.s=function(){return this.f.clientHeight>=window.innerHeight};a.prototype.v=function(){this.a.classList.contains("tingle-modal--visible")&&(this.s()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.s()&&this.b.u?this.D(!1):this.s()&&this.b.u&&(d.call(this),this.D(!0)))};return{a:a}}();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};var ocd={1:"\u2757",2:"\u2714\ufe0f",3:"\u2753",4:"\u2049\ufe0f",5:"\ud83d\uddd1\ufe0f",6:"",7:"\u2699\ufe0f",8:"\u26d4"},oc={};function oce(a,d){var g=void 0===g?{}:g;g.title=a;g.content=d;g.i=1;g.buttons=[{text:"אישור",K:!0,click:function(){},J:"tingle-btn--primary"}];ocf(g)}
function ocg(a){var d=new occ.a({L:!0,u:!1,g:["overlay","button","escape"],w:a.w||"ביטול"});a.title&&d.aa(a.title);a.i&&d.Z(ocd[a.i]);d.Y(a.content||"");var g={};a=ocb(a.buttons);for(var h=a.next();!h.done;g={h:g.h},h=a.next())g.h=h.value,(h=g.h.J||"")&&(h+=" "),h+="tingle-btn",d.S(g.h.text,h,function(c){return function(){c.h.click&&c.h.click();c.h.K&&d.close()}}(g));d.open();return d}
function ocf(a){a.buttons||(a.buttons=[{K:!0,text:"אישור",J:"tingle-btn--primary"}]);void 0===oc.alert&&(oc.alert=[]);oc.alert.push(ocg(a))}function och(){var a=a||["animated-calendar-container","animated-popup-button-set-container","text-slider-container","animated-select-container","quick-nav-container"];a=ocb(a);for(var d=a.next();!d.done;d=a.next())Array.prototype.map.call(document.getElementsByClassName(d.value),function(g){g.classList.add("popup_with_separator")})}(function(){function a(){var c=parseInt(document.getElementById("changing_income").value)||0,f=parseInt(document.getElementById("changing_outcome").value)||0;if(0===c)oce("בעיה עסקית","אם אין לך הכנסה, אין משמעות לנקודת איזון. אנא הזן את ההכנסה המשתנה שלך.");else if(c<f)oce("בעיה עסקית חמורה","לפי הנתונים שהזנת, יוצא שאתה מוציא יותר כסף מאשר מכניס. במצב זה אתה תמיד בהפסד, ואין משמעות לנקודת איזון.");else{0===c&&(c=1);f=(c-f)/c;c=Math.floor(1E4*f)/100;document.getElementById("profit_rate").innerHTML="% "+c;document.getElementById("profit_rate_details").innerHTML="משמעות נתון זה היא שעל כל 100 שקלים שאתה מכניס, אתה מרוויח "+c+" (לא כולל ההוצאות הקבועות)";for(var l=document.getElementsByName("fixed"),b=0,e=0;e<l.length;e++){var k=parseInt(l[e].value);k&&(b+=k)}document.getElementById("total_expenses").innerHTML=b+' ש"ח';f=Math.floor(Math.floor(b/f));document.getElementById("breakeven_point").innerHTML=f;document.getElementById("breakeven_point_text").innerHTML="אתה פועל ברווחיות של "+c+"%.\tמשמעות הנתונים הללו היא, שאם תכניס מדי חודש בדיוק "+f+" שקלים, תהיה במצב בו אינך מרוויח ואינך מפסיד. עד לנקודה זאת, כל ההכנסות שלך משמשות לכיסוי ההוצאות הקבועות, ולכיסוי ההוצאות הכרוכות בייצור המוצרים אתה מוכר. מעבר לסכום זה, על כל מוצר שתמכור תרוויח בשיעור של "+c+"%, כלומר על כל 100 שקלים שתכניס, תרוויח "+c+" שקלים."}}function d(c,f){c.onchange=f;c.onclick=f;c.ba=f;c.onkeypress=f;c.onkeyup=f}function g(){document.getElementById("total_expenses").innerHTML="";document.getElementById("breakeven_graph").innerHTML="";document.getElementById("breakeven_point").innerHTML="";document.getElementById("profit_rate").innerHTML="";document.getElementById("profit_rate_details").innerHTML=""}var h;(function(){h=document.getElementsByName("fixed");for(var c=0;c<h.length;c++)d(h[c],g);d(document.getElementById("changing_income"),g);d(document.getElementById("changing_outcome"),g);c={caption:"חשב את נקודת האיזון"};var f=document.createElement("div");f.className="animated-calculator-button";f.innerHTML=c.caption||"";c.onclick&&(f.onclick=c.onclick);f.onclick=a;document.getElementById("calculator_buttons").appendChild(f);och()})();return this})()})();(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)})})({})})()