// Opens a centered window with selected image
// Use this format in the <a> tag - <a href="javascript: onClick=imagePopup('image','width','height');">	

function imagePopup(image,width,height) {
	// Image name with extension
	var image
	
	var popup
	
	// Width of popup
	var width
	
	// Height of popup
	var height
	
	// Path to image folder
	var path = 'graphics/00000001/'
	
	var winl = (screen.width-width)/2;
	var wint = (screen.height-height)/2;
	var settings = 'height=' + height + ',';
	settings += 'width=' + width +',';
	settings +='top='+wint+',';
    settings +='left='+winl+',';
	
	// Popup window features
	settings += 'toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no';
	
	popup = window.open(path + image,'Gallery',settings);
	popup.focus();
}// JavaScript Document