function centerpop(mypage, myname, w, h, scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
	win = window.open(mypage,myname,settings)
}

function open_window(url, w, h)
   {
   var winsize = ',width='+w+',height='+h;
   var winpos  = (window.screen && document.layers) ? 
',screenX='+((screen.availWidth-w)/2)+',screenY='+((screen.availHeight-h)/2) 
:
                 (window.screen && !document.layers) ? 
',left='+((screen.availWidth-w)/2)+',top='+((screen.availHeight-h)/2) : '';

   imagewin = 
window.open(url,'imageWin','toolbar=no,scrollbars=yes,location=no'+winsize+winpos);
   imagewin.focus();
   }
   
function PopupTallWin(ImgFile) {
  pWindow = window.open("photopop1.html?" + ImgFile, "WhitePop", "toolbar=no, width=480, height=640, status=no, resizable=no, menu=no, scrollbars=no, left=50,top=25");
}
function PopupWideWin(ImgFile) {
  pWindow = window.open("photopop2.html?" + ImgFile, "MyPop2", "toolbar=no, width=640, height=480, status=no, resizable=no, menu=no, scrollbars=no, left=50,top=25");
}

function PopupSquareWin(ImgFile) {
  pWindow = window.open("photopop3.html?" + ImgFile, "MyPop", "toolbar=no, width=680, height=680, status=no, resizable=no, menu=no, scrollbars=no, left=50,top=25");
}

