
// script to open photo viewer popup window
function popWin(url) {
  var hres = 800;
  var vres = screen.availHeight;
  remote = window.open(url,"viewer","width=" + hres + ",height=" + vres + ",left=0,top=0,resizable=1,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}

function popWin_photo(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=0,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}

function popWin_msg(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=0,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}

function popWin_map(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=1,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}

function popWin_movie(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=0,menubar=0,status=0,scrollbars=0");
  remote.opener.name = "pswin";
}

function popWin_send2friend(url,width,height) {
  remote = window.open(url,"send2friend","width=" + width + ",height=" + height + ",left=0,top=0,resizable=0,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "photowindow";
}
