function show(imgName) {

  imgName = imgName.replace('small', 'large');

  var height = 300
  var width = 400;

  if (window.showModalDialog) {
  	height = height + 60
  	width = width + 12;
  	window.showModalDialog("photo.php?img=" + imgName,"","dialogHeight: " + height + "px; dialogWidth: " + width + "px; dialogTop: px; dialogLeft: px; edge: Raised; scroll: No; center: Yes; help: No; resizable: No; status: No;");
  }
  else {
  	height = height + 25;
  	width = width + 25;
  	window.open("photo.php?img=" + imgName,"","height=" + height + ",width=" + width + ",scrollbars=no,resizable=no,status=no,dependent,modal");
  }
}