ועדות השמה: מהן זכויות ההורים והילדים? - נגה ויזל עו"ד • LawGuide
בלוג משפטי בלוג משפט מנהלי ועתירות ועדות השמה: מהן זכויות ההורים והילדים?
מאת: נגה ויזל עו"ד 053-9428360| פורסם ב: 17/06/2019 | צפיות: 237
'; document.getElementById('DivAddFaceBook').innerHTML='1'; (function() { var e = document.createElement('script'); e.async = true; e.src = 'https://connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); window.fbAsyncInit = function() { AddFaceBook =1; ///CreateFBLike('23793','https%3A%2F%2Fblog.lawguide.co.il%2Fshowarticle.asp%3Fa%3D23793','button_count'); CreateFBLike('23793','https://blog.lawguide.co.il/showarticle.asp?a=23793','button_count'); }; } } function ShowHideMessage11(MessageID){ if (document.getElementById('AllText' + MessageID)) { if (document.getElementById('AllText' + MessageID).style.display=='none') { document.getElementById('AllText' + MessageID).style.display='block' } else { document.getElementById('AllText' + MessageID).style.display='none' } } } function CheckLawyers(){ var AllChecked=0 for(i=0;i2 || AllChecked==document.ContactMultiForm.AllContact.length) document.ContactMultiForm.submit(); } } function CheckLawyers1(){ var AllChecked=0 for(i=0;i0)	document.ContactMultiForm.submit(); else alert("יש לסמן עורכי דין") } function CloseDialog(){ $('#dialog10').dialog('close'); } function ShowSMSForm(LawyerID) { $( '#dialog10' ).dialog( "option", "height", 450 ); $( '#dialog10' ).dialog( "option", "width", 300 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowCardPopup(LawyerID){ $( '#dialog10' ).dialog( "option", "height", 500 ); $( '#dialog10' ).dialog( "option", "width", 650 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowCardPopupNRG(LawyerID, MyEvent){ var MyY = MyEvent.clientY $( '#dialog10' ).dialog( "option", "height", 500 ); $( '#dialog10' ).dialog( "option", "width", 560 ); $( '#dialog10' ).dialog( "option", "position", ['center',(MyY-300) ]); $('#dialog10').dialog('open'); //$(document).scrollTop(0); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowContactForm(){ $( '#dialog10' ).dialog( "option", "height", 300 ); $( '#dialog10' ).dialog( "option", "width", 450 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowSMSForm1(LawyerID){ $( '#dialog10' ).dialog( "option", "height", 450 ); $( '#dialog10' ).dialog( "option", "width", 300 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } var isExitPageOpen =0; function ShowSMSForm2(LawyerID){ if(isExitPageOpen){return;} isExitPageOpen =1; $(".lightbox_full_box_bg").css("filter:progid", "DXImageTransform.Microsoft.alpha(opacity=60)").css("-moz-opacity", "0.60").css("opacity", "0.60").show(); $("#lt_yeutz").fadeIn('slow'); $(".lightbox").css('left', ($(window).width() - $(".lightbox").width()) /2); $(".lightbox").css('top', ($(window).height() - $(".lightbox").height()) /2); document.getElementById('lt_yeutz').innerHTML=' '; } function ShowSMSForm3(LawyerID){ $(".lightbox_full_box_bg").css("filter:progid", "DXImageTransform.Microsoft.alpha(opacity=60)").css("-moz-opacity", "0.60").css("opacity", "0.60").show(); $("#lt_sms").fadeIn('slow'); $(".lightbox").css('left', ($(window).width() - $(".lightbox").width()) /2); $(".lightbox").css('top', ($(window).height() - $(".lightbox").height()) /2); document.getElementById('lt_sms').innerHTML=' '; } function ShowSMSForm4(ForumID){ if(isExitPageOpen){return;} isExitPageOpen =1; $(".lightbox_full_box_bg").css("filter:progid", "DXImageTransform.Microsoft.alpha(opacity=60)").css("-moz-opacity", "0.60").css("opacity", "0.60").show(); $("#lt_yeutz1").fadeIn('slow'); $(".lightbox").css('left', ($(window).width() - $(".lightbox").width()) /2); $(".lightbox").css('top', ($(window).height() - $(".lightbox").height()) /2); document.getElementById('lt_yeutz1').innerHTML=' '; } function ShowCVForm(MessageID) { $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowForumContactForm(){ $( '#dialog10' ).dialog( "option", "width", 450 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowForumContactForm1NRG(ForumID,MyEvent){ var MyY = MyEvent.clientY $( '#dialog10' ).dialog( "option", "width", 450 ); $( '#dialog10' ).dialog( "option", "position", ['center',(MyY-300) ]); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowForumContactForm1(ForumID){ $( '#dialog10' ).dialog( "option", "width", 450 ); $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowBlogContactForm(){ $('#dialog10').dialog('open'); document.getElementById('dialog10Inner').innerHTML=' '; } function ShowSurvey(LawyerID){ document.getElementById('SurveyDiv').style.display='block'; document.getElementById('SurveyDiv').innerHTML=' '; return; } function showDivAvi(MyObj){ if (window.innerWidth || window.innerHeight){ docwidth = window.innerWidth; docheight = window.innerHeight; } //IE Mozilla if (document.body.clientWidth || document.body.clientHeight){ docwidth = document.body.clientWidth; docheight = document.body.clientHeight; } //alert('docwidth =' +docwidth ) //alert('docheight =' + docheight ) ElelementWidth = document.getElementById(MyObj).style.width ElelementWidth = ElelementWidth.replace('px','') ElelementHeight = document.getElementById(MyObj).style.height ElelementHeight = ElelementHeight.replace('px','') destX = parseInt((docwidth-ElelementWidth) /2) if(destX<0){destX=0;} destY = parseInt((docheight-ElelementHeight) /2) if(destY<0){destY=0;} //alert(destX) MyScrollTop = 0 //if (document.body.scrollTop){alert('document.body.scrollTop = ' + document.body.scrollTop)} //if (window.pageYOffset) {alert('window.pageYOffset = ' + window.pageYOffset)} if (document.body.scrollTop) {MyScrollTop =document.body.scrollTop} if (window.pageYOffset) {MyScrollTop = window.pageYOffset} //alert('MyScrollTop=' + MyScrollTop ) //alert('destY =' + destY ) //alert('ElelementHeight =' + ElelementHeight) destX = parseInt(destX) if (destX <0) { destX =0} document.getElementById(MyObj).style.top = parseInt(MyScrollTop + destY) + 'px'; document.getElementById(MyObj).style.left = destX + 'px'; document.getElementById(MyObj).style.display = 'block'; }	function CalculateURL(MyForm){ var MyParams = '' MyUrl = 'https://www.lawguide.co.il/SearchLawyer.asp?it=31' if(MyForm.cid.value!='' && MyForm.cid.value!='0') { MyParams = MyParams + '&cid=' + MyForm.cid.value } if(MyForm.a.value!='' && MyForm.a.value!='0') { MyParams = MyParams + '&a=' + MyForm.a.value } location.href=MyUrl + MyParams ; } function CheckFormUnique(MyForm){ if (MyForm.vcName.value=='' || MyForm.vcName.value=='שם') { alert('נא למלא שם') MyForm.vcName.focus(); return; } if (MyForm.vcEmail.value=='' || MyForm.vcEmail.value=='מייל' ) { alert('נא למלא מייל') MyForm.vcEmail.focus(); return; } if (MyForm.vcPhone.value=='' || MyForm.vcPhone.value=='נייד') { alert('נא למלא טלפון') MyForm.vcPhone.focus(); return; } if (isNaN(MyForm.vcPhone.value.replace('-','')) || MyForm.vcPhone.value.replace('-','').length<9 ) { alert('נא למלא טלפון חוקי') MyForm.vcPhone.focus(); return; } if (!isEmail(MyForm.vcEmail.value)) { alert('נא למלא מייל חוקי') MyForm.vcEmail.focus(); return; } if (MyForm.iAreaCodeID.value=='') { alert('נא לבחור איזור') MyForm.iLeadsTypeID.focus(); return; } if (MyForm.vcComments.value=='' || MyForm.vcComments.value=='פרטים') { alert('נא למלא פרטי הפניה') MyForm.vcComments.focus(); return; } MyForm.submit(); } function isEmail(str) { // are regular expressions supported? var supported = 0; if (window.RegExp) { var tempStr = "a"; var tempReg = new RegExp(tempStr); if (tempReg.test(tempStr)) {supported = 1;} } if (!supported){ return (str.indexOf(".") > 2) && (str.indexOf("@") > 0); } var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,4})(\\]?)$"); return (!r1.test(str) && r2.test(str)); } function OpenChat(UserID, MyUser){ var MyName; if (MyUser!=undefined) { ManageFrame.location.href='/chat2/Startchat.asp?u=' + UserID return; } jPrompt('הקלד את שמך:', '', 'כניסה לצאט', function(r) { if( r ) { ManageFrame.location.href='/chat2/Startchat.asp?u=' + UserID + '&MyName=' + r; } }); } function OpenChat11(UserID, MyUser){ var MyName if (MyUser!=undefined) { ManageFrame.location.href='/chat2/Startchat.asp?u=' + UserID return; } MyName = prompt('אנא הקלד את שמך') if(MyName!='') { ManageFrame.location.href='/chat2/Startchat.asp?u=' + UserID + '&MyName=' + MyName } } function RunScripts(MyDiv){ var AllScripts = '' var MyScripts = document.getElementById(MyDiv).getElementsByTagName("script"); //alertaaaaaa(MyScripts.length) for(yyy=0; yyy0) eval(MyScripts[yyy].text); } //alertaaaaaa(AllScripts) eval(AllScripts) } function LoadFileAjax(URL, MyDiv){ document.getElementById(MyDiv).innerHTML='טוען נתונים...'; $.get( URL, function( data ) { $('#'+MyDiv).html( data ); //RunScripts5(MyDiv) }); } $(function() { $(document).mouseover(function() { if(!AddFaceBook) { AddFaceBook =1; LoadFaceBookBottom(); } }); if( /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) ) { if(!AddFaceBook) { AddFaceBook =1; LoadFaceBookBottom(); } } originalTitle = document.title; //startChatSession(); $("#dialog10").dialog({ modal: true , width:650, autoOpen: false, closeOnEscape:true, open: function(event, ui) { // $(".ui-dialog-titlebar").hide(); $(".ui-dialog").css({'background': 'white','border': '0','padding':'0','margin':'0'}) } , resizable: false }); if($("#SearchSiteInput").length>0) { $("#SearchSiteInput").autocomplete({ serviceUrl :'/GlobalInc1/GetQACT.asp', minChars:1, delimiter: '', maxHeight:400, width:190, isRTL:true, zIndex: 9999, deferRequestBy: 0, noCache: true, onSelect: function(value, data){location.href=data } }); } $(".header_search_input input").focus(function() { if($(this).attr("value") == 'חיפוש חופשי באתר') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'חיפוש חופשי באתר'); }); $("#vcEmail").focus(function() { if($(this).attr("value") == 'מייל') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'מייל'); }); $("#vcName").focus(function() { if($(this).attr("value") == 'שם') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'שם'); }); $("#vcPhone").focus(function() { if($(this).attr("value") == 'נייד') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'נייד'); }); $("#vcComments").focus(function() { if($(this).attr("value") == 'פרטים') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'פרטים'); }); $(".home_gallery_big_over_bg").css("filter", "alpha(opacity=50)"); $("#eMail").focus(function() { if($(this).attr("value") == 'מייל') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'מייל'); }); $("#name").focus(function() { if($(this).attr("value") == 'שם') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'שם'); }); $("#cellPhone").focus(function() { if($(this).attr("value") == 'נייד') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'נייד'); }); $("#phone").focus(function() { if($(this).attr("value") == 'טלפון') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'טלפון'); }); $("#info").focus(function() { if($(this).attr("value") == 'פרטים') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'פרטים'); }); if(document.getElementById('RightBar')) document.getElementById('RightBar').className='RightNavOpen' if(document.getElementById('RightBar')) document.getElementById('RightBar').className='RightNavOpen' if($('.vertical_scroller').length>0) $('.vertical_scroller').SetScroller({	velocity: 180, direction: 'vertical' });	if($(".home_gallery_big").length>0) { _pos = $(".home_gallery_big").offset(); $(".home_gallery_big_over_bg").css("filter", "alpha(opacity=50)").css("left", _pos.left + 1 + "px"); $(".home_gallery_big_over").css("left", _pos.left + 1 + "px"); /* Gallery*/ $(".h_g_img").click(function() { if($(this).find("img").attr("src").replace("thumbs", "big") != $(".home_gallery_big img").attr("src")) { $(".home_gallery_big img").attr("src", $(this).find("img").attr("src").replace("thumbs", "big")).hide(); $(".home_gallery_big img").fadeIn("slow"); $(".home_gallery_big .home_gallery_big_over").html($(this).find("div").html()); } }); var $kids_gallery = $(".home_gallery_images").children(); var len_gallery = $kids_gallery.addClass("hilite").length; var total_gallery = len_gallery; var perpage_gallery = 3; var curPage_gallery = 1; var totlaPages_gallery = parseInt(total_gallery/perpage_gallery); if(total_gallery%perpage_gallery) totlaPages_gallery += 1; // Udated by Miki $(".home_gallery_arrow_up").mouseenter(function() { if(curPage_gallery>1) $(this).css("background", "transparent url(https://images1.lawguide.co.il/images/sprite.png) no-repeat scroll -485px -498px").css("cursor", "pointer").attr("title", "קודם"); else $(this).css("background", "transparent url(https://images1.lawguide.co.il/images/sprite.png) no-repeat scroll -485px -480px").css("cursor", "auto").attr("title", ""); }).mouseleave(function() { $(this).css("background", "transparent url(https://images1.lawguide.co.il/images/sprite.png) no-repeat scroll -485px -480px").css("cursor", "auto"); });	// Udated by Miki $(".home_gallery_arrow_down").mouseenter(function() { if(curPage_gallery< totlaPages_gallery) { $(".home_gallery_images").children().hide(); curPage_gallery ++; var index = (curPage_gallery-1)*perpage_gallery + 1; $(".home_gallery_big img").attr("src", $(".home_gallery_images .h_g_img:nth-child(" + index + ")").find("img").attr("src").replace("thumbs", "big")).hide(); $(".home_gallery_big img").fadeIn("slow"); $(".home_gallery_big .home_gallery_big_over").html($(".home_gallery_images .h_g_img:nth-child(" + index + ")").find("div").html()); var count=0; for(var i=(curPage_gallery-1)*perpage_gallery; i1) { $(".home_gallery_images").children().hide(); curPage_gallery = (curPage_gallery-1) ; var index = (curPage_gallery-1)*perpage_gallery + 1; $(".home_gallery_big img").attr("src", $(".home_gallery_images .h_g_img:nth-child(" + index + ")").find("img").attr("src").replace("thumbs", "big")).hide(); $(".home_gallery_big img").fadeIn("slow"); $(".home_gallery_big .home_gallery_big_over").html($(".home_gallery_images .h_g_img:nth-child(" + index + ")").find("div").html()); var count=0; for(var i=(curPage_gallery-1)*perpage_gallery; i0) { $(".jobs_table_row").mouseenter(function() { if($(this).find(".jobs_table_row_desc").css("display") == 'none') $(this).css("background", "#f2f2f2"); }).mouseleave(function() { $(this).css("background", "#fff"); }); $(".jobs_table_row").click(function() { $(this).next().slideDown(); $(this).css("border-bottom", "none"); $(this).find(".j_t_td_1").css("border-left", "none").css("padding", "10px 10px 10px 11px"); $(this).find(".j_t_td_2").css("border-left", "none").css("padding", "10px 10px 10px 11px"); $(this).find(".j_t_td_3").css("border-left", "none").css("padding", "10px 10px 10px 11px"); $(this).css("background", "#fff"); }); $(".option_close").click(function() { $(this).parents(".jobs_table_row_desc").slideUp(); $(this).parents(".jobs_table_row_desc").prev().css("border-bottom", "1px solid #dbdbdb"); $(this).parents(".jobs_table_row_desc").prev().find(".j_t_td_1").css("border-left", "1px solid #dbdbdb").css("padding", "10px 10px 10px 10px"); $(this).parents(".jobs_table_row_desc").prev().find(".j_t_td_2").css("border-left", "1px solid #dbdbdb").css("padding", "10px 10px 10px 10px"); $(this).parents(".jobs_table_row_desc").prev().find(".j_t_td_3").css("border-left", "1px solid #dbdbdb").css("padding", "10px 10px 10px 10px"); }); } if($(".tab1").length>0) { $(".tab1").css("color", "#e56000"); $(".tab1").click(function() { $(".tab2_content").hide(); $(".tab3_content").hide(); $(".tab4_content").hide(); $(".tab1_content").show(); //$(this).css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_1.jpg) bottom no-repeat").css("color", "#3e8bbe"); $(this).css("color", "#e56000"); $(".tab2").css("color", "#3e8bbe"); $(".tab3").css("color", "#3e8bbe"); $(".tab4").css("color", "#3e8bbe"); //$(".tab2").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_2.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab3").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_3.jpg) top no-repeat").css("color", "#e56000"); //$(".tab4").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_4.jpg) top no-repeat").css("color", "#5b5b5b"); }); $(".tab2").click(function() { $(".tab1_content").hide(); $(".tab3_content").hide(); $(".tab4_content").hide(); $(".tab2_content").show(); $(this).css("color", "#e56000"); $(".tab1").css("color", "#3e8bbe"); $(".tab3").css("color", "#3e8bbe"); $(".tab4").css("color", "#3e8bbe"); //$(this).css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_2.jpg) bottom no-repeat").css("color", "#3e8bbe"); //$(".tab1").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_1.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab3").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_3.jpg) top no-repeat").css("color", "#e56000"); //$(".tab4").css("background", "url(https://images1.lawguide.co.il/images/m_a_t_nav_4.jpg) top no-repeat").css("color", "#5b5b5b"); }); $(".tab3").click(function() { $(".tab1_content").hide(); $(".tab2_content").hide(); $(".tab3_content").show(); $(".tab4_content").hide(); $(this).css("color", "#e56000"); $(".tab2").css("color", "#3e8bbe"); $(".tab1").css("color", "#3e8bbe"); $(".tab4").css("color", "#3e8bbe"); //$(this).css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_3.jpg) bottom no-repeat").css("color", "#e56000"); //$(".tab2").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_2.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab1").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_1.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab4").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_4.jpg) top no-repeat").css("color", "#5b5b5b"); }); $(".tab4").click(function() { $(".tab1_content").hide(); $(".tab2_content").hide(); $(".tab3_content").hide(); $(".tab4_content").show();	$(this).css("color", "#e56000"); $(".tab2").css("color", "#3e8bbe"); $(".tab3").css("color", "#3e8bbe"); $(".tab1").css("color", "#3e8bbe"); //$(this).css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_4.jpg) bottom no-repeat").css("color", "#3e8bbe"); //$(".tab2").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_2.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab1").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_1.jpg) top no-repeat").css("color", "#5b5b5b"); //$(".tab3").css("background", "url(https://images2.lawguide.co.il/images/m_a_t_nav_3.jpg) top no-repeat").css("color", "#e56000"); }); $("#eMail1").focus(function() { if($(this).attr("value") == 'מייל') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'מייל'); }); $("#name1").focus(function() { if($(this).attr("value") == 'שם') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'שם'); }); $("#phone1").focus(function() { if($(this).attr("value") == 'טלפון') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'טלפון'); }); $("#info1").focus(function() { if($(this).attr("value") == 'פרטים') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'פרטים'); }); } if(document.getElementById("DivMultiForm")) { //alert($("#DivMultiForm").offset().top) menuYloc = $("#DivMultiForm").offset().top //$("#DivMultiForm").css({'position':'absolute'}); $("#DivMultiForm").css({'top':menuYloc }); $(window).scroll(function () { if(parseInt($(document).scrollTop())>300)	{ offset = parseInt(parseInt(menuYloc)+parseInt($(document).scrollTop())-200); $("#DivMultiForm").css({'top':offset}); } else { $("#DivMultiForm").css({'top':menuYloc }); } }); } if($(".catpage_form_button").length>0) { $(".catpage_form_button").mouseenter(function() { $(this).css("background", "url(https://images2.lawguide.co.il/images/catpage_form_button.jpg) bottom no-repeat"); }).mouseleave(function() { $(this).css("background", "url(https://images2.lawguide.co.il/images/catpage_form_button.jpg) top no-repeat"); }); $(".catpage_form_input_name input").focus(function() { if($(this).attr("value") == 'שם') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'שם'); }); $(".catpage_form_input_mail input").focus(function() { if($(this).attr("value") == 'מייל') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'מייל'); }); $(".catpage_form_input_tel input").focus(function() { if($(this).attr("value") == 'טלפון') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'טלפון'); }); $(".catpage_form_input_details input").focus(function() { if($(this).attr("value") == 'פרטים') $(this).attr("value", ''); }).blur(function() { if($(this).attr("value") == '') $(this).attr("value", 'פרטים'); }); } }); $(document).ready(function(){ var $q = function(q, res){ if (document.querySelectorAll) { res = document.querySelectorAll(q); } else { var d=document , a=d.styleSheets[0] || d.createStyleSheet(); a.addRule(q,'f:b'); for(var l=d.all,b=0,c=[],f=l.length;b< images.length; i++) { if (elementInViewport(images[i])) { loadImage(images[i], function () { images.splice(i, i); }); } }; } ; // Array.prototype.slice.call is not callable under our lovely IE8 for (var i = 0; i < query.length; i++) { images.push(query[i]); }; processScroll(); //	window.addEventListener('scroll',function(){ //	processScroll(); //	}); //$(window).scroll(function () { //	processScroll(); //	}); addEventListener('scroll',processScroll); }); function loadImage (el, fn) { var img = new Image() , src = el.getAttribute('data-src'); img.onload = function() { if (!! el.parent) el.parent.replaceChild(img, el) else el.src = src; fn? fn() : null; } img.src = src; } function elementInViewport(el) { var rect = el.getBoundingClientRect() return ( rect.top >= 0 && rect.left >= 0 && rect.top <= (window.innerHeight || document.documentElement.clientHeight) ) }