

// positions new window  (only for > Navigator 4.0 or Microsoft 4.0)

// Allows for different screen sizes and centers the image
xMax=0,yMax=0
{
if (document.all) 
  xMax=screen.width,yMax=screen.height;
else if (document.layers)
  xMax=window.outerWidth,yMax=window.outerHeight;
else 
  xMax=1024,yMax=768
  
xOffset=(xMax-200)/4,yOffset=(yMax-200)/4;
}
  
// opens small window.

popupWin=null;
function smallWin(file, name) { 
	popupWin = window.open(file, name, 'resizable=0,status,width=200,height=200,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');

	// focus window (only for > Navigator 3.0).
	// Focus is placed on popup initially because popupWin.focus.
	// onload=window.focus() on the html page being called plus popupWin=null,
	// allows for any additional calls to the popup gets brought to the front and focused. 
		
	if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
	
	popupWin.focus();

}
// opens medium window.

popupWin=null;
function mediumWin(file, name) {

	popupWin = window.open(file, name, 'resizable=0,status,width=400,height=400,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');

	// focus window (only for > Navigator 3.0).
	// Focus is placed on popup initially because popupWin.focus.
	// onload=window.focus() on the html page being called plus popupWin=null,
	// allows for any additional calls to the popup gets brought to the front and focused. 
		
	if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
	
	popupWin.focus();

}
// opens large window.

popupWin=null;
function largeWin(file, name) {

	popupWin = window.open(file, name, 'resizable=0,status,width=400,height=500,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');

	// focus window (only for > Navigator 3.0).
	// Focus is placed on popup initially because popupWin.focus.
	// onload=window.focus() on the html page being called plus popupWin=null,
	// allows for any additional calls to the popup gets brought to the front and focused. 
		
	if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
	
	popupWin.focus();

}
