/***********************************************************/
var pixWin;


function PopWin(wid,hgt,finm,pgnm) {
	pixWin=window.open(finm, pgnm, 'menubar=no,toolbar=no,status=no,location=no,width='+(wid+24)+',height='+(hgt+24));
	pixWin.focus();
}



/*use for popping links*/
function pop_up(target) {
	mywindow = open("http://"+target,"NewWindow");
}


/*******************************************************************/
/*       TO AUTO CENTER AND AUTOSIZE IMAGE POPUPS                  */
/*******************************************************************/

function openImageWindow(imageSrc,volume,imageID) { 
    fileName = 'img_template.jsp?' + escape(imageSrc) + '&volume=' + volume + '&imgid=' + imageID;
    myWindowHandle = 
window.open(fileName,'_blank','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes');
}

function PrevImage(img){
  foto1= new Image();
  foto1.src=(img);
  Control(img);
}
function Control(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewImage(img);
  }
  else{
    func="Control('"+img+"')";
    interval=setTimeout(func,20);
  }
}
function viewImage(img){
  wide=foto1.width+20;
  tall=foto1.height+20;
  fleft = (screen.width - wide)/2;
ftop = (screen.width - tall)/3;
  str="width="+wide+",height="+tall+",left="+fleft+",top="+ftop;
  finish=window.open(img,"JewishEncyclopedia",str);
}

/***********************************************************/
function show_footer() {
document.write('<br>');
document.write('<table border=0 cellspacing=0 cellpadding=0 width=100%>');
document.write('	<tr>');
document.write('		<td width=16><img src="gfx/spacer.gif" width=1 height=1></td>');
document.write('		<td bgcolor="#666666"><img src="gfx/spacer.gif" width=580 height=1><br></td>');
document.write('		<td width=12><img src="gfx/spacer.gif" width=1 height=1></td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td>&nbsp;</td>');
document.write('		<td align="center">');
document.write('			Copyright  2001, JewishEncyclopedia.com. All rights reserved. <img src="gfx/bult1.gif">');
document.write('			<a href="privacy.html">Privacy</a> <img src="gfx/bult1.gif">');
document.write('			<a href="terms.html">Terms</a> <img src="gfx/bult1.gif">');
document.write('		</td>');
document.write('		<td>&nbsp;</td>');
document.write('	</tr>');
document.write('</table>');
}
