// ........................................................
// ????-???? ???????
	var wrImageWindow;
	function rOpenImageWindow_heb(src,width,height){ 
//		wWidth = (width)?width+4:470;
//		wHeight = (height)?height+4:470;

		wWidth = 800;
		wHeight = 600;
		wrImageWindow=window.open("","blankImageWindow", 'status=no,scrollbars=no,resizable=yes,width='+(wWidth)+',height='+(wHeight)+'');
			wrImageWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>Images</title>');
			wrImageWindow.document.write("<base href='"+base+"'>");

			wrImageWindow.document.write("<link type='text/css' rel='stylesheet' href='"+base+"data/styles/slides.css'>");

			wrImageWindow.document.write("</head><body class=popupWnd topmargin=0 marginheight=0 leftmargin=0 marginwidth=0 style='background:#d9effa;' text=black link=black alink=black vlink=black>");
			wrImageWindow.document.write("<script>var classFix = (document.body && document.body.getAttribute('className'))?'className':'class';</script>");
//			wrImageWindow.document.write("<script type='text/javascript' language='javascript' src='"+base+"data/slides.js'></script>");
			wrImageWindow.document.write("<script type='text/javascript' language='javascript'>function fStartShow(){document.getElementById('startShow').value=1;document.getElementById('play').setAttribute(classFix,'active');fShow();return false;}function fStopShow(){document.getElementById('startShow').value=0;document.getElementById('play').setAttribute(classFix,'');return false;}function fShow(){if (document.getElementById('startShow').value==1){forvard();setTimeout('fShow()', 1000*document.getElementById('delay').value);}}function forvard(){var aSrc=document.getElementById('strSrc').value.split(',');oImg = document.getElementById('currimage');currImg=getCurrImg(oImg,aSrc);if (aSrc.length>(currImg+1)){currImg++;}else{currImg=0;}oImg.src=aSrc[currImg];return false;}function back(){var aSrc=document.getElementById('strSrc').value.split(',');oImg = document.getElementById('currimage');currImg=getCurrImg(oImg,aSrc);if ((currImg)>0){currImg--;}else{currImg=aSrc.length-1;}oImg.src=aSrc[currImg];return false;}function getCurrImg(oImg,aSrc){for (i=0; i<aSrc.length; i++) {if (aSrc[i]==oImg.src)return i;}alert('error: curent image not found in array');return -1;}</script>");
			wrImageWindow.document.write("<input id='strSrc' type='hidden' value='"+getImages()+"'>");
			wrImageWindow.document.write("<input id='startShow' type='hidden' value='0'>");
			
			wrImageWindow.document.write("<table border=0 cellspacing=1 cellpadding=1 style='width:100%;height:100%'><tr><td align=center style='width:100%;height:100%'>");
			wrImageWindow.document.write("<img id='currimage' src='"+src+"' border=0>");
			wrImageWindow.document.write("</td></tr><tr><td align=center>");

				
			wrImageWindow.document.write("<b>ניהול תצוגה</b>");
			wrImageWindow.document.write("<div style='width: 124px;height: 18px;'><a href='#' id='back' onclick='return back();' title='backwards'><img src='./img/null.gif' alt=''></a>");
			wrImageWindow.document.write("<a href='#' id='forvard' onclick='return forvard();' title='forward'><img src='./img/null.gif' alt=''></a>");
			wrImageWindow.document.write("<a href='#' id='play' onclick='return fStartShow();' title='play'><img src='./img/null.gif' alt=''></a>");
			wrImageWindow.document.write("<a href='#' id='pause' onclick='return fStopShow();' title='pause'><img src='./img/null.gif' alt=''></a></div>");
			wrImageWindow.document.write("<br clear=all>מהירות: <select id='delay'><option value='2' selected='selected' >2</option><option value='3' selected>3</option><option value='4' selected>4</option><option value='5' selected>5</option></select>");

			
			wrImageWindow.document.write("<br clear=all><br><br></td></tr></table>");
			wrImageWindow.document.write("</body></html>");
			wrImageWindow.document.close();
		wrImageWindow.resizeTo(wWidth+30,wHeight+40);
		wrImageWindow.focus();
	}
	// ???????? ?????? ?????? ?? ???????? ? ???? ??????

