function PostData(n,t,i,r){$.ajax({url:n,async:!1,type:"POST",data:t,dataType:"json",contentType:"application/json; charset=utf-8",error:r,success:i})}function ShareMe(n,t,i){return n=="Fb"?(window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(t),"facebook-share-dialog","width=626,height=436"),!1):n=="Gog"?(window.open("https://plus.google.com/share?url="+t+"","Google-dialog","width=626,height=436"),!1):n=="Tw"?(window.open("https://twitter.com/share?text="+encodeURIComponent(i.replace("\\n","\n"))+"&amp;url="+t+" data-lang=he","Twitter-dialog","width=626,height=436"),!1):n=="Pint"?(window.open("http://pinterest.com/pin/create/link/?url="+encodeURIComponent(t)+"&description="+encodeURIComponent(i.replace("\\n","\n"))),!1):n=="In"?(window.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(t),"LinkedIn-dialog","width=626,height=436"),!1):void 0}function stringStartsWith(n,t){return n===undefined?!1:n.slice(0,t.length)==t}function sleep2(n){for(var i=(new Date).getTime(),t=0;t<1e7;t++)if((new Date).getTime()-i>n)break}function GetCommercialForPage(n,t){PostData("BoPromotion/GetcommercialsForPage?id="+n,JSON.stringify({}),function(n){$("."+t).html(n.html);setInterval(function(){},1e4)},function(){return e.preventDefault(),!1})}function UpdateClicks(n){PostData("BoPromotion/UpdateClicks?id="+n,JSON.stringify({}),function(){},function(){return e.preventDefault(),!1})}function setCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";path=/;"+u}function isNumber(n){n=n?n:window.event;var t=n.which?n.which:n.keyCode;return t>31&&t!=46&&(t<48||t>57)?!1:!0}function setCookieT(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"}function getCookieT(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function PostDataAsync(n,t,i,r){$.ajax({url:n,async:!0,type:"POST",data:t,dataType:"json",contentType:"application/json; charset=utf-8",error:r,success:i})}$(document).ready(function(){setCookie("LastPage",document.URL,100);$(".openmdrop").click(function(){$(".mdrop").toggle()});$(".categories").click(function(){$(".categorieslist").animate({height:"toggle"},50,"linear");$(this).toggleClass("bottomcorners")});$("#nav-icon1,#nav-icon2,#nav-icon3,#nav-icon4").click(function(){$(".categorieslist").animate({height:"toggle"},50,"linear");$(this).toggleClass("open");$("#nav-icon1").toggleClass("NoRoundBottom")})})