		var limit129 = 7;
		var page_no129;
		var imgArrSD129 = new Array('<DDD><DDD>סרט: CMT - בדיקה בצאן<D>http://www.halavi.org.il/info/idb/video/cmt.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: CMT - בדיקה בצאן', '<DDD><DDD>סרט: טיפול במרבץ בתיחוח<D>http://www.halavi.org.il/info/idb/video/mov008.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בתיחוח', '<DDD><DDD>סרט: עירפול בלחץ גבוה<D>http://www.halavi.org.il/info/idb/video/091213_4.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: עירפול בלחץ גבוה', '<DDD><DDD>סרט: מיחזור מי השטיפה של מכון החליבה<D>http://www.halavi.org.il/info/idb/video/100105_mey-shtifa.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מיחזור מי השטיפה של מכון החליבה', '<DDD><DDD>סרט: טיפול במרבץ בקלטור עמוק<D>http://www.halavi.org.il/info/idb/video/091213_3.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בקלטור עמוק', '<DDD><DDD>סרט: מיחזור מי השטיפה של מכון החליבה 2<D>http://www.halavi.org.il/info/idb/video/091213_2.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מיחזור מי השטיפה של מכון החליבה 2', '<DDD><DDD>סרט: מגרפה מכנית לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov007.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מגרפה מכנית לתאי רביצה', '<DDD><DDD>סרט: טיפול במרבץ במשדדה אחורית<D>http://www.halavi.org.il/info/idb/video/mov003.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ במשדדה אחורית', '<DDD><DDD>סרט: טיפול במרבץ בקלטור<D>http://www.halavi.org.il/info/idb/video/mov002.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בקלטור', '<DDD><DDD>סרט: חליבה רובוטית<D>http://www.halavi.org.il/info/idb/video/091213_501.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: חליבה רובוטית', '<DDD><DDD>סרט: מגרפה חלזונית לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov006.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מגרפה חלזונית לתאי רביצה', '<DDD><DDD>סרט: כף למילוי תאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov005.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: כף למילוי תאי רביצה', '<DDD><DDD>סרט: טיפול במרבץ במשדדה קדמית<D>http://www.halavi.org.il/info/idb/video/mov004.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ במשדדה קדמית', '<DDD><DDD>סרט: עגלה פורקת לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov001.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: עגלה פורקת לתאי רביצה', '<DDD><DDD>סרט: צינון<D>http://www.halavi.org.il/info/idb/video/zinun.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: צינון', '<DDD><DDD>סרט: טיפוח זנים<D>http://www.halavi.org.il/info/idb/video/tipuah.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפוח זנים', '<DDD><DDD>סרט: סביבה<D>http://www.halavi.org.il/info/idb/video/sviva.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: סביבה', '<DDD><DDD>סרט: ניהול<D>http://www.halavi.org.il/info/idb/video/nihul.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: ניהול', '<DDD><DDD>סרט: מחקר ופיתוח<D>http://www.halavi.org.il/info/idb/video/mop.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מחקר ופיתוח', '<DDD><DDD>סרט: מבני הרפתות<D>http://www.halavi.org.il/info/idb/video/mivnim.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מבני הרפתות', '<DDD><DDD>סרט: רפתות - כללי<D>http://www.halavi.org.il/info/idb/video/klaly.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: רפתות - כללי', '<DDD><DDD>סרט: הזרעה<D>http://www.halavi.org.il/info/idb/video/hazraa.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזרעה', '<DDD><DDD>סרט: הזנה (2)<D>http://www.halavi.org.il/info/idb/video/hazana2.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזנה (2)', '<DDD><DDD>סרט: הזנה<D>http://www.halavi.org.il/info/idb/video/hazana.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזנה', '<DDD><DDD>סרט: חליבה<D>http://www.halavi.org.il/info/idb/video/haliva.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: חליבה', '<DDD><DDD>סרט: בריאות העדר<D>http://www.halavi.org.il/info/idb/video/edrh.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: בריאות העדר', '<DDD><DDD>סרט: וטרינריה<D>http://www.halavi.org.il/info/idb/video/vet.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: וטרינריה');
		var imgArrClickAdminSD129 = new Array('<DDD><DDD>סרט: CMT - בדיקה בצאן<D>http://www.halavi.org.il/info/idb/video/cmt.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: CMT - בדיקה בצאן<D>title=סרט: CMT - בדיקה בצאן<DDD>date=14/9/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/Untitled_MSWMM_btzan_CMT_bdikt_0001_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפול במרבץ בתיחוח<D>http://www.halavi.org.il/info/idb/video/mov008.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בתיחוח<D>title=סרט: טיפול במרבץ בתיחוח<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/tipol_bmrbtz_btihoh_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: עירפול בלחץ גבוה<D>http://www.halavi.org.il/info/idb/video/091213_4.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: עירפול בלחץ גבוה<D>title=סרט: עירפול בלחץ גבוה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/erpol_blhtz_gboa_laintrnt_-_moktn2_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מיחזור מי השטיפה של מכון החליבה<D>http://www.halavi.org.il/info/idb/video/100105_mey-shtifa.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מיחזור מי השטיפה של מכון החליבה<D>title=סרט: מיחזור מי השטיפה של מכון החליבה<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/aisof_mi_hashtipa_latr_haantrnt_-_moktn2_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפול במרבץ בקלטור עמוק<D>http://www.halavi.org.il/info/idb/video/091213_3.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בקלטור עמוק<D>title=סרט: טיפול במרבץ בקלטור עמוק<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/tipol_bmrbtz_bkltor_emok_-_hardof_-_moktn2_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מיחזור מי השטיפה של מכון החליבה 2<D>http://www.halavi.org.il/info/idb/video/091213_2.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מיחזור מי השטיפה של מכון החליבה 2<D>title=סרט: מיחזור מי השטיפה של מכון החליבה 2<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/aisof_mi_hashtipa_latr_haantrnt_-_moktn2_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מגרפה מכנית לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov007.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מגרפה מכנית לתאי רביצה<D>title=סרט: מגרפה מכנית לתאי רביצה<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/mgrpa_mcnit_ltai_rbitza_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפול במרבץ במשדדה אחורית<D>http://www.halavi.org.il/info/idb/video/mov003.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ במשדדה אחורית<D>title=סרט: טיפול במרבץ במשדדה אחורית<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/tipol_bmrbtz_em_mshdda_ahorit_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפול במרבץ בקלטור<D>http://www.halavi.org.il/info/idb/video/mov002.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ בקלטור<D>title=סרט: טיפול במרבץ בקלטור<DDD>date=11/8/2010<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/tipol_bmrbtz_bkltor_emok_-_hardof_-_moktn2_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: חליבה רובוטית<D>http://www.halavi.org.il/info/idb/video/091213_501.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: חליבה רובוטית<D>title=סרט: חליבה רובוטית<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/hliba_robotit_0001_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מגרפה חלזונית לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov006.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מגרפה חלזונית לתאי רביצה<D>title=סרט: מגרפה חלזונית לתאי רביצה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/mgrpa_hlzonit_ltai_rbitza_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: כף למילוי תאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov005.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: כף למילוי תאי רביצה<D>title=סרט: כף למילוי תאי רביצה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/cf_lmiloi_tai_rbitza_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפול במרבץ במשדדה קדמית<D>http://www.halavi.org.il/info/idb/video/mov004.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפול במרבץ במשדדה קדמית<D>title=סרט: טיפול במרבץ במשדדה קדמית<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/tipol_bmrbtz_em_mshdda_kidmit_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: עגלה פורקת לתאי רביצה<D>http://www.halavi.org.il/info/idb/video/mov001.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: עגלה פורקת לתאי רביצה<D>title=סרט: עגלה פורקת לתאי רביצה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=http://www.halavi.org.il/info/idb/video/egla_porkt_ltai_rbitza_wmv_flv_.jpg<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: צינון<D>http://www.halavi.org.il/info/idb/video/zinun.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: צינון<D>title=סרט: צינון<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: טיפוח זנים<D>http://www.halavi.org.il/info/idb/video/tipuah.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: טיפוח זנים<D>title=סרט: טיפוח זנים<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: סביבה<D>http://www.halavi.org.il/info/idb/video/sviva.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: סביבה<D>title=סרט: סביבה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: ניהול<D>http://www.halavi.org.il/info/idb/video/nihul.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: ניהול<D>title=סרט: ניהול<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מחקר ופיתוח<D>http://www.halavi.org.il/info/idb/video/mop.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מחקר ופיתוח<D>title=סרט: מחקר ופיתוח<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: מבני הרפתות<D>http://www.halavi.org.il/info/idb/video/mivnim.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: מבני הרפתות<D>title=סרט: מבני הרפתות<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: רפתות - כללי<D>http://www.halavi.org.il/info/idb/video/klaly.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: רפתות - כללי<D>title=סרט: רפתות - כללי<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: הזרעה<D>http://www.halavi.org.il/info/idb/video/hazraa.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזרעה<D>title=סרט: הזרעה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: הזנה (2)<D>http://www.halavi.org.il/info/idb/video/hazana2.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזנה (2)<D>title=סרט: הזנה (2)<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: הזנה<D>http://www.halavi.org.il/info/idb/video/hazana.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: הזנה<D>title=סרט: הזנה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: חליבה<D>http://www.halavi.org.il/info/idb/video/haliva.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: חליבה<D>title=סרט: חליבה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: בריאות העדר<D>http://www.halavi.org.il/info/idb/video/edrh.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: בריאות העדר<D>title=סרט: בריאות העדר<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=','<DDD><DDD>סרט: וטרינריה<D>http://www.halavi.org.il/info/idb/video/vet.htm<D><D>/htm-webaxy/ficons/htm.gif<DDD><D><D><D>סרט: וטרינריה<D>title=סרט: וטרינריה<DDD>date=<DDD>author= - arad, http://www.milk.org.il<DDD>writer=<DDD>description=<DDD>keywords=<DDD>previewImage=<DDD>nonew=<DDD>nosearch=<DDD>noscandir=<DDD>categories_n=<DDD>categories=');

	//------------- click Admin -----------------
	editAlow = '', alowToEdit = 0;
	clickadmin='';
	if (document.cookie.length > 0) { // if there are any cookies
		var search =  "clickadmin&";
		var search1 = "clickadmin=";
		offset = document.cookie.indexOf(search);
		if (offset == -1) offset = document.cookie.indexOf(search1);
		if (offset != -1) { // if cookie exists 
			offset += search.length ;  // set index of beginning of value
			end = document.cookie.indexOf("&", offset); // set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length;
			clickadmin= unescape(document.cookie.substring(offset, end));
			if (clickadmin != "" && clickadmin != '0' && clickadmin.search(/^0/) == -1 )
				alowToEdit = 1;
		}
	}
	
	function incrementPage129(){
		page_no129++;
		document.pageInfo129.pageNo129.value=page_no129;
	}
	
	function decrementPage129(){
		page_no129--;
		document.pageInfo129.pageNo129.value=page_no129;
	}
	
	function initPage129(){
		if (alowToEdit == 1) imgArrSD129 = imgArrClickAdminSD129;
		page_no129 = document.pageInfo129.pageNo129.value;
		var limit129 = 7;
		start_page129 = limit129*page_no129;
		end_page129 = limit129*page_no129+limit129;
		if(imgArrSD129.length>0){
			if(imgArrSD129.length>=limit129)
				printPreview129(start_page129,end_page129);
			else
				printPreview129(0,imgArrSD129.length);
		}
		else if(imgArrSD129.length==0 && 1 == 1){
			printPreview129(0,0);
		}
	}
	
	if (typeof(getCookieHash) == 'undefined') loadjscssfile('/htm-webaxy/cookies.js', 'js');
	var cookie_in = '', username='', password='';
	if (document.cookie.length > 0) { // if there are any cookies
		/*var search =  "username&";
		var search1 = "username=";
		offset = document.cookie.indexOf(search);
		if (offset == -1) offset = document.cookie.indexOf(search1);
		if (offset != -1) { // if cookie exists 
			offset += search.length ;  // set index of beginning of value
			end = document.cookie.indexOf("&", offset); // set index of end of cookie value
			if (end == -1) end = document.cookie.indexOf(";", offset); // set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length;
			username = unescape(document.cookie.substring(offset, end));
		}
		var search =  "password&";
		var search1 = "password=";
		offset = document.cookie.indexOf(search);
		if (offset == -1) offset = document.cookie.indexOf(search1);
		if (offset != -1) { // if cookie exists 
			offset += search.length ;  // set index of beginning of value
			end = document.cookie.indexOf("&", offset); // set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length;
			password = unescape(document.cookie.substring(offset, end));
		}*/
		var webaxyCookie = getCookieHash("webaxylogin_265442_milkintranet");
		username = webaxyCookie['username'];
		password = webaxyCookie['password'];
	}
	cookie_in = 'username='+username+'&password='+password;

		var linkButtons = new Object();
	linkButtons.htm_webaxy='/htm-webaxy';
	linkButtons.cgi_webaxy='/cgi-webaxy';
		linkButtons.lang = "he";
		linkButtons.name = "he";
		linkButtons.hidden = "lang=he&ID=265442_milkintranet";
		linkButtons.scandir = "סורק ספריות";
		linkButtons.scanpic = "סורק תמונות";
		linkButtons.file = "קובץ מאתר";
		linkButtons.pic = "תמונה מאתר";
		linkButtons.uploadFileAndGetLink = "שלח קובץ וקשר";
		linkButtons.createPageAndGetLink = "צור דף וקשר";
		linkButtons.curdir = "";
		linkButtons.rootdir = "";
		

	linkButtons.hidden = linkButtons.hidden + '&username='+username+'&password='+password;	
	var myWidth, myHeight, myScroll;
	
function loadjscssfile(filename, filetype){
			 
	 if (filetype=="js"){ //if filename is a external JavaScript file
	 	var fileref=document.createElement('script');
	  fileref.setAttribute("type","text/javascript");
	  fileref.setAttribute("src", filename);
	 }
	 else if (filetype=="css"){ //if filename is an external CSS file
	  var fileref=document.createElement("link");
	  fileref.setAttribute("rel", "stylesheet");
	  fileref.setAttribute("type", "text/css");
	  fileref.setAttribute("href", filename);
	 }
	 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref);
		
}

function getSize() {
		// Window Size
		if (self.innerHeight) { // Everyone but IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
			myScroll = window.pageYOffset;
		} else if (document.documentElement && document.documentElement.clientHeight) { // IE6 Strict
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
			myScroll = document.documentElement.scrollTop;
		} else if (document.body) { // Other IE, such as IE7
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
			myScroll = document.body.scrollTop;
		}
		// Page size w/offscreen areas
	
		if (window.innerHeight && window.scrollMaxY) {	
			myScrollWidth = document.body.scrollWidth;
			myScrollHeight = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight) { // All but Explorer Mac
			myScrollWidth = document.body.scrollWidth;
			myScrollHeight = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			myScrollWidth = document.body.offsetWidth;
			myScrollHeight = document.body.offsetHeight;
		}
	}
	function changeArrow(id) {
		
		if (!document.getElementById(id).getAttribute('open')) {
			document.getElementById(id).style.backgroundImage = "url(/htm-webaxy/icons/arrow-up.gif)";	
			document.getElementById(id).setAttribute('open', 1);
		}
		else {
			document.getElementById(id).style.backgroundImage = "url(/htm-webaxy/icons/arrow-down.gif)";
			document.getElementById(id).setAttribute('open', 0);
		}
		
}

function openAll_SD129(index) {
		
		var val = document.getElementById('scandirCADiv129').getAttribute('open');
		
		if (val == 0) {
			for (var i=1;i<=index;i++) {
					animatedcollapse.show('file'+i);
			}
			document.getElementById('scandirCADiv129').setAttribute('open',1);
			document.getElementById('scandirCADiv129-openall').title = 'סגור הכל';	
			document.getElementById('scandirCADiv129-openall').src = '/htm-webaxy/icons/arrow-up.gif';
			for (var i=1;i<=index;i++) {
				document.getElementById('file_td'+i).style.backgroundImage="url(/htm-webaxy/icons/arrow-up.gif)";
			}
		}
		else {
			for (var i=1;i<=index;i++) {
					animatedcollapse.hide('file'+i);
			}
			document.getElementById('scandirCADiv129').setAttribute('open',0);
			document.getElementById('scandirCADiv129-openall').title = 'פתח הכל';	
			document.getElementById('scandirCADiv129-openall').src = '/htm-webaxy/icons/arrow-down.gif';
			for (var i=1;i<=index;i++) {
				document.getElementById('file_td'+i).style.backgroundImage="url(/htm-webaxy/icons/arrow-down.gif)";
			}
		}
}

function done_update_SD129() {

		if (!document.getElementById('update_done').value) {
				window.setTimeout("done_update_SD129()",250);
				return;
		}
		var rand_no = Math.random()*4567320356435;
		if (window.location.href.search(/sid=/) == -1) {
			if (window.location.href.search(/\?/) == -1) {
				window.location.href = window.location.href+'?sid=s'+parseInt(rand_no)+'e';
			}
			else {
				window.location.href = window.location.href+'&sid=s'+parseInt(rand_no)+'e';
			}
		}
		else {
			window.location.href = window.location.href.replace(/sid=s.+e/,'sid=s'+parseInt(rand_no)+'e');
		}

}

function cancel_update_SD129() {
		
		var hide = document.getElementById('hideAllDiv');
		var d = document.getElementById('scandirCADiv129');
		hide.style.display = 'none';
		d.style.display = 'none';
		hide.style.zIndex = 0;
		if (d.firstChild) d.removeChild(d.firstChild);
		
}

function update_SD129(done) {
	
	document.getElementById('update_done').value = '';
	document.getElementById('files_update').submit();	
	if (done) done_update_SD129();
		
}
	
	function selectCat(type,form,field,field_n) {
		
		var url = "http://www.halavi.org.il/cgi-webaxy/admin/cat2-admin.pl?ID=265442_milkintranet&lang=he&act=select&type="+type+"&form="+form+"&field="+field+"&field_n="+field_n;
		var prop = "height=400,width=500,resizable=yes,scrollbars=yes";
		
		open(url,"selectcat",prop);
	}
	
	function check_update_date(val, i) {
		
		if (val) {
				document.getElementById('sd_fileUpdateCB'+i).style.display = 'none';
				document.getElementById('file_updateDate'+i).checked = false;
		}
		else {
				document.getElementById('sd_fileUpdateCB'+i).style.display = 'inline';
		}
		
	}
	
	function openMP(page) {
		
	        	wEdit = open("http://www.halavi.org.il/cgi-webaxy/magicpage/magicpage.pl?ID=265442_milkintranet&lang=he&username="+username+"&password="+password+"&count="+page+"&frames=yes", "wEdit", "location=0, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
	        	
	}
	
	function clickEditSD129(str, index, type, dataid, filter, filter2){
		if (typeof(type) != 'undefined' && type == 'sal') {
			var dbid = dataid.replace(/^sal\s+/, '');
			if (index == -1) {
				if (typeof(extFilter) == 'undefined') extFilter = '';
				if (filter) wAdd = open(filter+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
				else wAdd = open("http://www.halavi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=265442_milkintranet&act=search&dbid="+dbid+filter2+extFilter+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
			}
			else {
				str = str.replace(/act=show/, 'act=edit');
				str = str.replace(/act=show/, 'act=edit');
				if (str.search(/^http\:\/\/www\.halavi\.org\.il/) >= 0)
					wAdd = open(""+str+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
				else
					wAdd = open("http://www.halavi.org.il"+str+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
			}
			return;
		}
		//wEdit = open("http://www.halavi.org.il/cgi-webaxy/page_edit_login.pl?lang=he&ID=265442_milkintranet&"+cookie_in+"&curdir=info/idb/video&count="+str+"&act=edit", "wEdit", "location=0, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1");
		getSize();
		var objHead = document.getElementsByTagName('head')[0];
		var objCSS = objHead.appendChild(document.createElement('link'));
		objCSS.rel = 'stylesheet';
		objCSS.href = '/htm-webaxy/skins/standard/standard_new.css';
		objCSS.type = 'text/css';		

		hide = document.getElementById('hideAllDiv');
		hide.style.height = (myHeight+myScrollHeight)+'px';
		hide.style.display = 'block';
		hide.style.width = myWidth+'px';
		hide.style.zIndex = 1111;
		if (navigator.appVersion.indexOf("MSIE")!=-1) {
			document.getElementById('hideAllDiv').style.filter = "alpha(opacity=85)";
		}
		else {
			document.getElementById('hideAllDiv').style.opacity = 0.85;
		}
		var addDiv = '';
		var d = document.getElementById('scandirCADiv129');
		var form = document.createElement("form");
		form.name = "files_update";
		form.id = "files_update";
		form.setAttribute("action", "http://www.halavi.org.il/cgi-webaxy/scandiradmin.pl");
		form.setAttribute("method", "post");
		form.setAttribute("target", "hidden_iframe");
		form.setAttribute("enctype", "multipart/form-data"); 
		
		d.style.display = 'block';
		scroll((myWidth-d.style.width.replace(/px/,''))/2,0);
		d.style.left = ((myWidth-d.style.width.replace(/px/,''))/2)+'px';
		var tb = document.createElement('table');
		tb.width = '770px';
		tb.className = 'list-row';
		var row, cell;
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.align = 'right'
		cell.setAttribute('colSpan', 5);
		cell.innerHTML = '<a href="javascript:void(0);" onClick="cancel_update_SD129();"><img border="0" src="/htm-webaxy/skins/standard/close.gif" title="סגור" id="scandir-close"></a>';
		
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.align = "center";
		cell.setAttribute('colSpan', 5);
		if (index < 0) cell.innerHTML = '<a href="javascript:void(0);" onClick="openAll_SD129('+imgArrSD129.length+');"><img border="0" src="/htm-webaxy/icons/arrow-down.gif" title="פתח הכל" id="scandirCADiv129-openall"></a>';
		else cell.innerHTML = '';
		cell.innerHTML += '<input type="hidden" name="ID" value="265442_milkintranet">';
		cell.innerHTML += '<input type="hidden" name="lang" value="he">';
		cell.innerHTML += '<input type="hidden" name="username" value="'+username+'">';
		cell.innerHTML += '<input type="hidden" name="action" value="update_details">';
		cell.innerHTML += '<input type="hidden" name="password" value="'+password+'">';
		if (index < 0)
			cell.innerHTML += '<input type="hidden" name="num_of_items" value="'+imgArrSD129.length+'">';
		else
			cell.innerHTML += '<input type="hidden" name="num_of_items" value="1">';
		cell.innerHTML += '<input type="hidden" name="scandirID" value="129">';
		cell.innerHTML += '<input type="hidden" name="update_done" id="update_done" value="">';
		var new_src = 'http://www.halavi.org.il/cgi-webaxy/scandiradmin.pl?ID=265442_milkintranet&lang=he&username='+username+'&password='+password+'&action=update_details&num_of_items'+imgArrSD129.length+'&scandirID=129';
		var curIndex = 0;
		var sdID = '129';
		for (i = 1 ; i <= imgArrSD129.length ; i++) {
			if (index >= 0 && i != index+1) continue;
			var j = i;
			var fileData = eval('imgArrSD'+sdID+'[i-1]');
			if (index >=0 && i == index +1) i=1;
			var imgData = fileData.split("<D>")[3];
			var img = imgData.split("<DDD>");
			var dscData = fileData.split("<D>")[7];
			var data = dscData.split("<DDD>");
			var file = fileData.split("<D>")[1];
			file = file.replace(/http\:\/\/www\.halavi\.org\.il/,'');
			if (str.indexOf(file) == (str.length - file.length)) curIndex = i;
			var fileData = new Object();
			fileData.title = '';
			fileData.date = '';
			fileData.writer = '';
			fileData.date = '';
			fileData.description = '';
			fileData.keywords = '';
			fileData.nonew = '';
			fileData.nosearch = '';
			fileData.noscandir = '';
			fileData.date = '';
			fileData.previewImage = '';
			fileData.imageLink = '';
			for (var p=0; p<data.length;p++) {
				field = (data[p].split("="))[0];
				value = (data[p].split("="))[1];
				if (field == 'photog') field = 'writer';
				if ((field == 'nonew' || field == 'nosearch' || field == 'noscandir') && value == '1') value = 'checked';
				fileData[field] = value;
			}
			
			field = 'title';
			var file2 = file;
			if ('info\/idb\/video' != '-1#') file = file.replace(/info\/idb\/video/,'');
			file = file.replace(/^\//,'');
			file = file.replace(/^\//,'');
			var file1 = file;
			if (file1.search(/scandir3.pl/) >= 0) continue;
			
			row = tb.insertRow(-1);
			cell = row.insertCell(-1);
			cell.setAttribute('title', ''+file2);
			cell.innerHTML = '<img border="0" src="'+img[0]+'">';
			cell.dir = 'ltr';
			cell = row.insertCell(-1);
			cell.setAttribute('title', '/'+file2);
			if (file.length > 25) {
					file1 = "..."+file.substring(file.length-22);
			}
			cell.innerHTML = '<input type="hidden" name="file'+i+'" value="/'+file2+'"><b>'+file1+'</b>';
			cell.dir = 'ltr';
			cell = row.insertCell(-1);
			cell.innerHTML = 'כותרת';
			cell = row.insertCell(-1);
			cell.setAttribute('index', i);
			cell.innerHTML += '<input type="text" name="file_title'+i+'" value="'+fileData.title+'" style="width:200px;">&nbsp;';
			cell.innerHTML += 'תאריך&nbsp;<input type="text" name="file_date'+i+'" style="direction:ltr;width:70px;" value="'+fileData.date+'" onChange="check_update_date(this.value, '+eval(i)+');">&nbsp;';
			cell.innerHTML += '<img src="/htm-webaxy/select/cal.gif" style="border-width:0;cursor:pointer;" onclick="window.frames[\'date_ifr\'].clickDate(0,event.clientY,document.getElementById(\'files_update\').file_date'+i+',\'תאריך\');" title="">&nbsp;';
			cell.innerHTML += '&nbsp;&nbsp;'+
											 'מחבר&nbsp;'+
											 '<input type="text" name="file_writer'+i+'" style="width:100px;" value="'+fileData.writer+'">'+
											 '<input type="hidden" name="file_author'+i+'" value="'+fileData.author+'">';
			
			cell = row.insertCell(-1);						
			cell.style.width = '20px';
			cell.style.cursor = 'pointer';
			cell.style.backgroundRepeat = 'no-repeat';
			cell.style.backgroundPosition = '1% 0pt';
			if (index >=0 && j == index+1) cell.style.backgroundImage = 'url(/htm-webaxy/icons/arrow-up.gif)';
			else cell.style.backgroundImage = 'url(/htm-webaxy/icons/arrow-down.gif)';
			cell.open = 0;
			cell.id = 'file_td'+i;
			cell.onclick = function () { animatedcollapse.toggle('file'+this.index); changeArrow('file_td'+this.index); };
			cell.index = i;
			
			row = tb.insertRow(-1);
			mainCell = row.insertCell(-1);
			mainCell.setAttribute('colSpan', 5);
			
			var animateDiv = document.createElement('div');
			animateDiv.id = 'file'+i;
			if (index >=0 && j == index+1) animateDiv.style.display = 'block';
			else animateDiv.style.display = 'none';
			var animateTB = document.createElement('table');
			
			if (file.search(/\..?htm.?$/) != -1 && !fileData.nodsc) {
				row = animateTB.insertRow(-1);
				cell = row.insertCell(-1);
				cell.innerHTML = 'קטגוריות';
				cell = row.insertCell(-1);
				cell.innerHTML = '<input type="text" name="file_categories_n'+i+'" style="width:400px;" value="'+fileData.categories_n+'">'+
												 '<a style="text-decoration: none; color: rgb(0, 0, 170);" onclick="selectCat(\'checkbox\',\'files_update\',\'file_categories'+i+'\',\'file_categories_n'+i+'\');return false;" href="javascript:void(0)">בחירה מרשימה</a>'+
	      								 '<input type="hidden" value="'+fileData.categories+'" name="file_categories'+i+'"/>';
      }
      								 
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'תיאור';
			cell = row.insertCell(-1);
			fileData.description = fileData.description.replace(/&lt;br&gt;/g,"\n");
			cell.innerHTML = '<textarea rows="3" cols="40" name="file_description'+i+'" style="width:400px;">'+fileData.description+'</textarea>';
			//cell.innerHTML = '<input type="text" name="file_description'+i+'" style="width:400px;" value="'+fileData.description+'">';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'מילות מפתח';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="text" name="file_keywords'+i+'" value="'+fileData.keywords+'" style="width:400px;"></td>';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'מאפיינים';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="checkbox" name="file_nonew'+i+'" value="1" '+fileData.nonew+'>הסתר מחידושים&nbsp;'+
											 '<input type="checkbox" name="file_nosearch'+i+'" value="1" '+fileData.nosearch+'>הסתר מחיפוש&nbsp;'+
											 '<input type="checkbox" name="file_noscandir'+i+'" value="1" '+fileData.noscandir+'>הסתר מסורק ספריות &nbsp;';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'תמונה ייצוגית';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="text" id="file_previewImage'+i+'" name="file_previewImage'+i+'" value="'+fileData.previewImage+'" style="width:350px;direction:ltr;">'+
											 '<div class="getLink" fieldID="file_previewImage'+i+'" btnType="uploadFile;selectPic"></div>';
						
			if (file.search(/\..?htm.?$/) == -1) {
				row = animateTB.insertRow(-1);
				cell = row.insertCell(-1);
				cell.innerHTML = 'קישור';
				cell = row.insertCell(-1);
				cell.innerHTML = '<input type="text" id="file_imageLink'+i+'" name="file_imageLink'+i+'" value="'+fileData.imageLink+'" style="width:350px;direction:ltr;">'+
												 '<div class="getLink" fieldID="file_imageLink'+i+'"></div>';
			}
			
			if ((file.search(/\..?htm.?$/) == -1 || fileData.nodsc) && ('info/idb/video/'+file).search(/scanpic\/scanpic\d+\.htm/) == -1 && ('info/idb/video/'+file).search(/Albms\/albm\d+\.htm/) == -1) {
				row = animateTB.insertRow(-1);
				cell = row.insertCell(-1);
				cell.innerHTML = 'קובץ';
				cell = row.insertCell(-1);
				cell.innerHTML = '<input type="file" id="file_file'+i+'" name="file_file'+i+'" size="42">';
				var divStyle = '';
				if (fileData.date) divStyle = 'style="display: none;"';
				else divStyle = 'style="display: inline;"';
				cell.innerHTML += '&nbsp;<div '+divStyle+' id="sd_fileUpdateCB'+i+'">עדכן תאריך <input type="checkbox" value="1" id="file_updateDate'+i+'" name="file_updateDate'+i+'"></div>';
			}
			else if (!fileData.nodsc){
				/*if (index >= 0 && j == index+1) {
					wEdit = open("/cgi-webaxy/magicpage/magicpage.pl?ID=265442_milkintranet&lang=he&username="+username+"&password="+password+"&count="+str+"&frames=yes", "wEdit", "location=0, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
					cancel_update_SD129();
					return;
				}*/
				row = animateTB.insertRow(-1);
				cell = row.insertCell(-1);
				//cell = row.insertCell(-1);
				cell.setAttribute('colSpan', 2);
				var divStyle = '';
				if (fileData.date) divStyle = 'style="display: none;"';
				else divStyle = 'style="display: inline;"';
				cell.innerHTML = '<div '+divStyle+' id="sd_fileUpdateCB'+i+'">עדכן תאריך <input type="checkbox" value="1" id="file_updateDate'+i+'" name="file_updateDate'+i+'"></div>';
			}
			
			animateDiv.appendChild(animateTB);
			mainCell.appendChild(animateDiv);
			i = j;
		}
		
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.align = "center";
		cell.setAttribute('colSpan', 5);		
		cell.innerHTML = '<table cellspacing="0" cellpadding="0" border="0" onclick="update_SD129();" style="display:inline;cursor:pointer;margin:auto;direction:ltr;" title="עדכון">'+
												'<tr>'+
													'<td class="left-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
												  '<td>'+
								  					'<table cellspacing="0" cellpadding="0" border="0" style="direction:rtl;">'+
												  	'<tr>'+
													  	'<td class="execute-butt"><img src="/htm-webaxy/skins/p.gif"></td>'+
								  						'<td class="text-button">עדכון</td>'+
											  		'</tr>'+
												  '</table>'+
												'</td>'+
							  				'<td class="right-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
										 '</tr>'+
										'</table>'+
										'<table cellspacing="0" cellpadding="0" border="0" onclick="update_SD129(1);" style="display:inline;cursor:pointer;margin:auto;direction:ltr;" title="עדכן וסגור">'+
												'<tr>'+
													'<td class="left-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
												  '<td>'+
								  					'<table cellspacing="0" cellpadding="0" border="0" style="direction:rtl;">'+
												  	'<tr>'+
													  	'<td class="execute-butt"><img src="/htm-webaxy/skins/p.gif"></td>'+
								  						'<td class="text-button">עדכן וסגור</td>'+
											  		'</tr>'+
												  '</table>'+
												'</td>'+
							  				'<td class="right-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
										 '</tr>'+
										'</table>';
		form.appendChild(tb);
		d.appendChild(form);
		for (i = 1 ; i <= imgArrSD129.length ; i++) {
				animatedcollapse.addDiv('file'+i, 'fade=1');
		}
		animatedcollapse.init();
		creatAllLinkButtons();
		
		var f = document.getElementById('files_update');
		if (f['file_title'+curIndex]) f['file_title'+curIndex].focus();
	}
	
	function clickEditDir(dir, type, dataid, filter2){
		if (typeof(type) != 'undefined' && type == 'sal') {
			var dbid = dataid.replace(/^sal\s+/, '');
			wAdd = open("http://www.halavi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=265442_milkintranet&act=edit&dbid="+dbid+filter2+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
		}
		else {
			wAdd = open("http://www.halavi.org.il/cgi-webaxy/page_edit_login.pl?lang=he&dir="+dir+"&ID=265442_milkintranet&scandirID=129&"+cookie_in+"&act=addfile","wAdd","height=150,width=250,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
		}
		
	}
	
	function clickEditScan(id){
		wAdd = open("http://www.halavi.org.il/cgi-webaxy/scandiradmin.pl?lang=he&id_to_edit="+id+"&ID=265442_milkintranet&"+cookie_in+"&action=edit_scan","wAdd","height=700,width=600,top=150,left=150,resizable=yes,status=yes");
		
	}
	
	function clickDel(item, str, type, dataid){
		
		while (item.nodeName != 'TR') {
			item = item.parentNode;
		}
		if (typeof(type) != 'undefined' && type == 'sal') {
			if( confirm("האם למחוק רשומה?") ){
				var dbid = dataid.replace(/^sal\s+/, '');
				str.search(/dataid=(\d+)/);
				dataid = RegExp.$1;
				wAdd = open("http://www.halavi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=265442_milkintranet&act=del&closeMe=1&dbid="+dbid+"&dataid="+dataid+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");	
				item.parentNode.removeChild(item);
			}
		}
		else {
			if( confirm("האם למחוק \n"+str) ){
				dWin = open("http://www.halavi.org.il/cgi-webaxy/page_edit_login.pl?lang=he&ID=265442_milkintranet&"+cookie_in+"&act=delFile&dfile="+str ,"dWin","toolbar=yes,status=yes,scrollbars=no,resizable=no,width=1,height=1");
				//dWin.close();
				self.focus();
			//window.setTimeout("window.location.reload()",1000);
			}
		}
	}
	
	
	function setMyCss(item, classN) {
		
		item.className = classN;
		
	}
	
	function printPreview129(sCount, eCount){
	var wantBullet="http://www.halavi.org.il/main/hlv-16.gif";
	var wuBullet="";
		var prntRecord;
		var strView = '<TABLE cellpadding="2" cellspacing="0" border="0" align="center" width="100%">';
		if (alowToEdit == 1) {
			strView += '<tr valign="top"><td colspan="2"><br></td><td align="center"><img src="/htm-webaxy/edit_all_docs.gif" border="0" onclick="clickEditSD129(\'info/idb/video\', -1, \'\',\'\',\'\', \'\')" title="ערוך כל המסמכים" style="cursor: pointer"><img src="/htm-webaxy/nadd.gif" border="0" onclick="clickEditDir(\'info/idb/video\',\'\',\'\',\'\')" title="הוספה ל: info/idb/video" style="cursor: pointer"></td></TR>'
		}
		var filepath = '';
		var talkback = '';
		var counter = 0;	
		var pv_counter = 0;
		var className, classNameOver;			
		var myTarget, lastDot;
		var ext_open_blank = 'ppt,doc,xls,pdf';
		eob = ext_open_blank.split(",");
		if (eCount<sCount) {
			for (i=eCount; i>sCount; i--) {
				ext = '';
				myTarget = '';
				prntRecord = imgArrSD129[i].split("<D>");
				lastDot = prntRecord[1].lastIndexOf('.');
				if (lastDot >= 0) ext = prntRecord[1].substring(lastDot+1);
				if (ext_open_blank && eob.length) {
						var ext2 = ext.toLowerCase();
						for (j=0;j<eob.length;j++) {
								var str1 = eob[j].toLowerCase();
								if (str1 == ext2) myTarget = '_new';
						}
				}
				alt = prntRecord[6];
				if (alt == undefined || alt == '') alt = '';
				else {
					//alt = alt.replace(/%22/g,"\"");
					alt = 'title="'+alt+'"';
				}
				//if (prntRecord[5] == 'ClickAdmin' && !alowToEdit) continue;
				counter++;
				if (counter % 2 == 0) {
						className = 'scandir129-item scandir129-even scandir-item scandir-even';
						classNameOver = 'scandir129-item-over scandir129-even-over scandir-item-over scandir-even-over';
				}
				else {
						className = 'scandir129-item scandir129-odd scandir-item scandir-odd';
						classNameOver = 'scandir129-item-over scandir129-odd-over scandir-item-over scandir-odd-over';
				}
				
				titleRecord = prntRecord[0].split("<DDD>");
				prntRecord[0] = titleRecord[2];
				var protect_icon = titleRecord[0];
				var new1 = titleRecord[1];
				if (prntRecord[0] == undefined) prntRecord[0] = '' ;
				if (new1 == undefined) new1 = '' ;				
				
				if (prntRecord[1].match("/cgi-webaxy/scandir3.pl")) {
					prntRecord[1].match(/dir=([^&]+)/);
					filepath = "http://www.halavi.org.il/" + RegExp.$1;
				}
				else {
					filepath = prntRecord[1];
				}
				
				if (prntRecord[4] != "") {
					talkback = '<div class="scandir129-replies scandir-replies" style="display:inline;"> (' + prntRecord[4] + ' תגובות)</div>';
				}
				else {
					talkback = "";
				}
				var onmouseover='';
				var onmouseout='';
				if (('' || '') && (counter % 2 != 0)) {
						onmouseover = 'onmouseover="setMyCss(this, \''+classNameOver+'\');"';
						onmouseout = 'onmouseout="setMyCss(this, \''+className+'\');" class="'+className+'"';
				}
				if (('' || '') && (counter % 2 == 0)) {
						onmouseover = 'onmouseover="setMyCss(this, \''+classNameOver+'\');"';
						onmouseout = 'onmouseout="setMyCss(this, \''+className+'\');" class="'+className+'"';
				}
				strView += '<TR valign="top">';
				prntRecord3Arr = prntRecord[3].split("<DDD>");
				var pv_limit = parseInt('');
				var pv_class = '';
				if (('' == 'checked' || pv_counter < pv_limit) && prntRecord3Arr[1]) {
					pv_counter++;prntRecord[3] = prntRecord3Arr[1];
					pv_class = " scandir-pvBullet scandir129-pvBullet";
				}
				else {prntRecord[3] = prntRecord3Arr[0];prntRecord3Arr[1]='';}
				
				if (prntRecord[1].search(/\.flv$/i) > 0 || prntRecord[1].search(/\.flv\?/i) > 0) {
						prntRecord[1] = "/htm-webaxy/flowplayer/playurl.htm?video="+prntRecord[1];
				}
						
				if(prntRecord[3].match(/bullet.gif|htm.gif|untitled.gif|jpg.gif|wav.gif|mpg.gif|doc.gif|txt.gif|zip.gif|xls.gif|ppt.gif|exe.gif|pdf.gif/)) {
					if(wantBullet != "" && (('' && prntRecord3Arr[1] == '') || '' == '')) {
						prntRecord[3]=wantBullet;
					}
					strView += '<td colspan="2">';
					strView += '	<table '+onmouseover+' '+onmouseout+' class="'+className+'" width="100%" cellpadding="0">';
					strView += '		<tr valign="top">';
					if (wuBullet == '') {
						strView += '<td class="scandir-bullet scandir129-bullet'+pv_class+'" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0"></a></td>'
					}
					if (alowToEdit && prntRecord[0] == '') {
							var fileName = prntRecord[1];
				 			lastDot = prntRecord[1].lastIndexOf('/');
							if (lastDot >= 0) fileName = prntRecord[1].substring(lastDot+1);
							fileName = "קובץ: "+fileName;
							strView += '<td class="scandir129-link" style="font-size: 13px;"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+fileName+'</a>'+prntRecord[2]+' '+talkback+'</td>'
					}
				 	else 
						strView += '<td class="scandir129-link" style="font-size: 13px;"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+prntRecord[0]+'</a>'+prntRecord[2]+' '+talkback+'</td>'
					strView += '		</tr>';
					strView += '	</table>';
					strView += '</td>';
				}
				else {
					strView += '<td colspan="2">';
					strView += '	<table '+onmouseover+' '+onmouseout+' class="'+className+'" width="100%" cellpadding="0">';
					strView += '		<tr valign="top">';
					if (wuBullet == '') {
						//strView += '			<td class="scandir-bullet scandir129-bullet" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0" hspace="5"></a></td>'
						strView += '			<td class="scandir-bullet scandir129-bullet'+pv_class+'" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0"></a></td>'
					}
					if (alowToEdit && prntRecord[0] == '') {
							var fileName = prntRecord[1];
				 			lastDot = prntRecord[1].lastIndexOf('/');
							if (lastDot >= 0) fileName = prntRecord[1].substring(lastDot+1);
							fileName = "קובץ: "+fileName;
							strView += '			<td class="scandir129-link" style="font-size: 13px;"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+fileName+'</a>'+prntRecord[2]+' '+talkback+'</td>'
					}
				 	else 
							strView += '			<td class="scandir129-link" style="font-size: 13px;"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+prntRecord[0]+'</a>'+prntRecord[2]+' '+talkback+'</td>'
					strView += '		</tr>';
					strView += '	</table>';
					strView += '</td>';
				}				
				strView += '<td align="left">';
				if (alowToEdit == 1 && prntRecord[1].search(/scandir3.pl/) == -1) {
					var dscData = prntRecord[7];
					if (dscData.search(/nodsc=true/) == -1 && prntRecord[1].search(/\..?htm.?$/) > 0) strView += ' <img src="/htm-webaxy/magicpage.gif" border="0" onclick="openMP(\'%%FILE%%\')" title="בנה ביתך" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> '.replace(/%%FILE%%/g, prntRecord[1]);
					strView += ' <img src="/htm-webaxy/pagedit.gif" border="0" onclick="clickEditSD129(\''+filepath+'\', %%ID%%, \'\',\'\',\'\',\'\')" title="עריכה מאפיינים" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> '.replace(/%%ID%%/g, i);
					strView += ' <img src="/htm-webaxy/ndel.gif" border="0" onclick="clickDel(this, \''+filepath+'\',\'\',\'\')" title="Delete page from info/idb/video " title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> ';
				}
				strView += '</td>';
				strView += '</TR>';
			}
		}
		else {
			for (i=sCount; i<eCount; i++){				
				ext = '';
				myTarget = '';
				prntRecord = imgArrSD129[i].split("<D>");
				lastDot = prntRecord[1].lastIndexOf('.');
				if (lastDot >= 0) ext = prntRecord[1].substring(lastDot+1);
				if (ext_open_blank && eob.length) {
						var ext2 = ext.toLowerCase();
						for (j=0;j<eob.length;j++) {
								var str1 = eob[j].toLowerCase();
								if (str1 == ext2) myTarget = '_new';
						}
				}
				alt = prntRecord[6];
				if (alt == undefined || alt == '') alt = '';
				else {
					//alt = alt.replace(/%22/g,"\"");
					alt = 'title="'+alt+'"';
				}
				//if (prntRecord[5] == 'ClickAdmin' && !alowToEdit) continue;
				counter++;
				if (counter % 2 == 0) {
						className = 'scandir129-item scandir129-even scandir-item scandir-even';
						classNameOver = 'scandir129-item-over scandir129-even-over scandir-item-over scandir-even-over';
				}
				else {
						className = 'scandir129-item scandir129-odd scandir-item scandir-odd';
						classNameOver = 'scandir129-item-over scandir129-odd-over scandir-item-over scandir-odd-over';
				}
				titleRecord = prntRecord[0].split("<DDD>");
				prntRecord[0] = titleRecord[2];
				var protect_icon = titleRecord[0];
				var new1 = titleRecord[1];
				if (prntRecord[0] == undefined) prntRecord[0] = '' ;
				if (new1 == undefined) new1 = '' ;				
				if (prntRecord[1].match("/cgi-webaxy/scandir3.pl")) {
					prntRecord[1].match(/dir=([^&]+)/);
					filepath = "http://www.halavi.org.il/" + RegExp.$1;
				}
				else {
					filepath = prntRecord[1];
				}
								
				if (prntRecord[4] != "") {
					talkback = '<div class="scandir129-replies scandir-replies" style="display:inline;"> (' + prntRecord[4] + ' תגובות)</div>';
				}
				else {
					talkback = "";
				}
				var onmouseover='';
				var onmouseout='';
				if (('' || '') && (counter % 2 != 0)) {
						onmouseover = 'onmouseover="setMyCss(this, \''+classNameOver+'\');"';
						onmouseout = 'onmouseout="setMyCss(this, \''+className+'\');" class="'+className+'"';
				}
				if (('' || '') && (counter % 2 == 0)) {
						onmouseover = 'onmouseover="setMyCss(this, \''+classNameOver+'\');"';
						onmouseout = 'onmouseout="setMyCss(this, \''+className+'\');" class="'+className+'"';
				}
				//alert(prntRecord[0]+':'+prntRecord[1]+':'+prntRecord[2]+':'+prntRecord[3]);
				
				strView += '<TR valign="top">';
				prntRecord3Arr = prntRecord[3].split("<DDD>");
				var pv_limit = parseInt('');
				var pv_class = '';
				if (('' == 'checked' || pv_counter < pv_limit) && prntRecord3Arr[1]) {
					pv_counter++;prntRecord[3] = prntRecord3Arr[1];
					pv_class = " scandir-pvBullet scandir129-pvBullet";
				}
				else {prntRecord[3] = prntRecord3Arr[0];prntRecord3Arr[1]='';}
				
				if (prntRecord[1].search(/\.flv$/i) > 0 || prntRecord[1].search(/\.flv\?/i) > 0) {
						prntRecord[1] = "/htm-webaxy/flowplayer/playurl.htm?video="+prntRecord[1];
				}
				
				if(prntRecord[3].match(/bullet.gif|htm.gif|untitled.gif|jpg.gif|wav.gif|mpg.gif|doc.gif|txt.gif|zip.gif|xls.gif|ppt.gif|exe.gif|pdf.gif/)) {
					if(wantBullet != "" && (('' && prntRecord3Arr[1] == '') || '' == '')){
						prntRecord[3]=wantBullet;					
					}
					strView += '<td colspan="2">';
					strView += '	<table '+onmouseover+' '+onmouseout+' class="'+className+'" width="100%" cellpadding="0">';
					strView += '		<tr valign="top">';
					if (wuBullet == '') {
						strView += '<td class="scandir-bullet scandir129-bullet'+pv_class+'" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0"></a></td>';
					}
					if (alowToEdit && prntRecord[0] == '') {
							var fileName = prntRecord[1];
				 			lastDot = prntRecord[1].lastIndexOf('/');
							if (lastDot >= 0) fileName = prntRecord[1].substring(lastDot+1);
							fileName = "קובץ: "+fileName;
							strView += '<td class="scandir129-link"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+fileName+'</a>'+prntRecord[2]+' '+talkback+' </td>';
					}
				 	else 
				 		strView += '<td class="scandir129-link"><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+prntRecord[0]+'</a>'+prntRecord[2]+' '+talkback+' </td>';
				 	strView += '		</tr>';
					strView += '	</table>';
					strView += '</td>';
				}
				else {
					strView += '<td colspan="2">';
					strView += '	<table '+onmouseover+' '+onmouseout+' class="'+className+'" width="100%" cellpadding="0">';
					strView += '		<tr valign="top">';
				 	if (wuBullet == '') {
				 		//strView += '			<td class="scandir-bullet scandir129-bullet" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0" hspace="5"></a></td>';
				 		strView += '			<td class="scandir-bullet scandir129-bullet'+pv_class+'" width="25px"><A '+alt+' href="'+prntRecord[1]+'"  target="'+myTarget+'"><img src="'+prntRecord[3]+'" border="0"></a></td>';
				 	}
				 	if (alowToEdit && prntRecord[0] == '') {
				 		var fileName = prntRecord[1];
				 		lastDot = prntRecord[1].lastIndexOf('/');
						if (lastDot >= 0) fileName = prntRecord[1].substring(lastDot+1);
						fileName = "קובץ: "+fileName;
				 		strView += '			<td class="scandir129-link" ><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+fileName+'</a>'+prntRecord[2]+' '+talkback+' </td>';
				 	}
				 	else
				 		strView += '			<td class="scandir129-link" ><a class="scandir129-fTitle" '+alt+' href="'+prntRecord[1]+'" target="'+myTarget+'">'+protect_icon+new1+prntRecord[0]+'</a>'+prntRecord[2]+' '+talkback+' </td>';
					strView += '		</tr>';
					strView += '	</table>';
					strView += '</td>';
				}
				strView += '<td align="left">';
				if (alowToEdit == 1 && prntRecord[1].search(/scandir3.pl/) == -1) {
					var dscData = prntRecord[7];
					if (dscData.search(/nodsc=true/) == -1 && prntRecord[1].search(/\..?htm.?$/) > 0) strView += ' <img src="/htm-webaxy/magicpage.gif" border="0" onclick="openMP(\'%%FILE%%\')" title="בנה ביתך" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> '.replace(/%%FILE%%/g, prntRecord[1]);
					strView += ' <img src="/htm-webaxy/pagedit.gif" border="0" onclick="clickEditSD129(\''+filepath+'\', %%ID%%, \'\',\'\',\'\',\'\')" title="עריכה מאפיינים" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> '.replace(/%%ID%%/g, i);
					strView += ' <img src="/htm-webaxy/ndel.gif" border="0" onclick="clickDel(this, \''+filepath+'\',\'\',\'\')" title="Delete page from info/idb/video " title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.style.backgroundColor=\'#ebebdf\'"> ';
				}
				strView += '</td>';
				strView += '</TR>';
			}
		}
		
		if (alowToEdit == 1) {
			strView += '<tr valign="top"><td colspan="2"><br></td><td align="center"><img src="/htm-webaxy/edit_all_docs.gif" border="0" onclick="clickEditSD129(\'info/idb/video\', -1, \'\',\'\',\'\', \'\')" title="ערוך כל המסמכים" style="cursor: pointer"><img src="/htm-webaxy/nadd.gif" border="0" onclick="clickEditDir(\'info/idb/video\',\'\',\'\',\'\')" title="הוספה ל: info/idb/video" style="cursor: pointer"></td></TR>'
		}
		strView += '</table>'
		document.getElementById('scandir129-PageViewDiv').innerHTML = strView;
		if ('checked' != 'hide' && 'checked' != 'checked') {
			var nextItms = (eCount+limit129);
			var beforeItms = (sCount-limit129);
			var information;
			
			if (nextItms>imgArrSD129.length){
				nextItms = (eCount+(imgArrSD129.length-eCount));
			}
			if (eCount == imgArrSD129.length)
				nextStr = '';
			else {
				//nextStr = ' <a title="קדימה" href="javascript:incrementPage129(); printPreview129('+eCount+','+nextItms+'); "><IMG SRC="/htm-webaxy/multimedia/scandir/next1.png" BORDER="0"></a>';
				nextStr = 'javascript:incrementPage129();printPreview129('+eCount+','+nextItms+');';
			}
			if (sCount == 0)
				beforeStr = '';
			else
				//beforeStr = ' <a title="אחורה" href="javascript:decrementPage129(); printPreview129('+beforeItms+','+sCount+'); "<IMG SRC="/htm-webaxy/multimedia/scandir/prev1.png" BORDER="0"></a>';
				beforeStr = 'javascript:decrementPage129();printPreview129('+beforeItms+','+sCount+');';
			
			if (nextStr == '' && beforeStr == '') {
				information = '<BR>';
			}
			else {
				//information = '<font style="font-size: 14px; color: #004080;">ספריה: "video", קבצים: '+(sCount+1)+' - '+(eCount)+', סך הכל: '+imgArrSD129.length+'</font>';
				information = '<div id="scandir2-bottomnav" class="scandir-Field scandir2-Field scandir2-bottomnav"><table><tr><td id="scandir2-nav_prv_div">	<a href="" id="scandir2-nav_prv"><IMG SRC="/htm-webaxy/multimedia/scandir/prev1.png" BORDER="0"></a></td><td id="scandir2-nav_numbering_div"><table dir="ltr" id="scandir2-nav_numbering" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=13">14</a>...<a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=4">5</a><a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=3">4</a><a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=2">3</a><a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=1">2</a><span>1</span></td></tr></table></td><td id="scandir2-nav_nxt_div">	<a href="/cgi-webaxy/scandir3.pl?lang=he&ID=252501_shaked&scandirID=2&page_no=1" id="scandir2-nav_nxt" title="קדימה"><IMG SRC="/htm-webaxy/multimedia/scandir/next1.png" BORDER="0"></a></td></tr></table></div>';
			}
			/*
			strView = '';
			strView += '<TR valign="top">';
			strView += '<td>';
			strView += '<table width="90%" border="0"><tr>';
			strView += '<td id="scandir129-pageBottomCell" align="center" class="scandir-pageBottomCell">'+information+beforeStr+nextStr+'</td>';
			strView += '</tr></table>';
			strView += '</TR>';
			if (alowToEdit == '1') {
				strView = strView.replace(/stylE[^ ]+/g," ");
			}
			*/
			strView = '<div id="scandir129-PageBottomDiv">'+information+'</div>';
			document.getElementById('scandir129-PageBottom').innerHTML = strView;
			if (document.getElementById('scandir129-nav_prv')) {
				if (beforeStr != '') {
					document.getElementById('scandir129-nav_prv').href = beforeStr;
					document.getElementById('scandir129-nav_prv').style.display = '';
				}
				else document.getElementById('scandir129-nav_prv').style.display = 'none';
			}
			if (document.getElementById('scandir129-nav_nxt')) {
				if (nextStr != '') {
					document.getElementById('scandir129-nav_nxt').href = nextStr;
					document.getElementById('scandir129-nav_nxt').style.display = '';
				}
				else document.getElementById('scandir129-nav_nxt').style.display = 'none';
			}
			if ('checked' != 'hide' && 'checked' != 'checked' && '1' == 1 && limit129) {
				if (document.getElementById('scandir129-nav_numbering_div')) updateNavNumbering();
			}
		}
		
		/*
		try {
			if (document.links.length) {
				document.links[0].focus();
			}
		}
		catch(e){}
		*/
	
	}
	
	function updateNavNumbering() {
	
		var eCount,sCount;
		var nav_numbering = '';
		var pages = Math.ceil(imgArrSD129.length/limit129);
		curP = page_no129;
		middle = Math.ceil(5/2);
		middle_inc = Math.floor(5/2);
		curP++;
		nav_numbering += '<table dir="ltr" id="scandir129-nav_numbering" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td>';
		elements = new Array();				
		start = '';
		if (curP <= middle+1) {
			start = 1;
		}
		else {
			start = curP - middle_inc;
		}
		if (start + 5 > pages) {start = pages - 5 + 1;}
		if (start <= 0 ) {start = 1;}
	
		if (start > 2) {
			eCount = 0;
			sCount = 1*limit129;
			//elements.push('<a href="/cgi-webaxy/scandir3.pl?lang=he&ID=265442_milkintranet&scandirID=129&page_no=0">1</a>');
			elements.push('<a href="javascript:incrementPage129();printPreview129('+eCount+','+sCount+');">1</a>');
			elements.push("...");
		}
		for (i = start ; i <= pages && i < start + 5; i++) {
			j = i - 1;
			if (i == curP) {elements.push("<span>"+i+"</span>");}
			else {
				eCount = j*limit129;
				sCount = i*limit129;
				elements.push('<a href="javascript:incrementPage129();printPreview129('+eCount+','+sCount+');">'+i+'</a>');
			}
		}
		i--;
		if (pages > 5 && i < pages) {
			elements.push("...");
			eCount = (pages-1)*limit129;
			sCount = pages*limit129;
			elements.push('<a href="javascript:incrementPage129();printPreview129('+eCount+','+sCount+');">'+pages+'</a>');
			//elements.push('<a href="/cgi-webaxy/scandir3.pl?lang=he&ID=265442_milkintranet&scandirID=129&page_no='+(pages-1)+'">'+pages+'</a>');
		}
		if ('he' == 'he' || 'he' == 'he') {
			nav_numbering += elements.reverse().join('');
		}
		else {
			nav_numbering += elements.reverse().join('');
		}
				
		nav_numbering += '</td></tr>';				
		nav_numbering += '</table>';
		//alert(nav_numbering);
		if (document.getElementById('scandir129-nav_numbering_div')) document.getElementById('scandir129-nav_numbering_div').innerHTML = nav_numbering;
			
	}
	

