var i = 0;
var image_widths  = new Array(562, 582, 598, 545, 531, 526, 535, 507, 528, 550, 586, 529, 503, 456, 519, 452, 504, 549, 491, 466, 466, 415, 421, 467, 456, 423);
var image_heights = new Array(513, 582, 582, 543, 582, 554, 507, 506, 536, 531, 465, 493, 542, 515, 430, 459, 353, 351, 375, 410, 432, 514, 458, 367, 343, 334);


function popup(i) { // pop up a window displaying i-th projectile point and its description
  var window_width = image_widths[i-1] + 80;
  var window_height = image_heights[i-1] + 180;
  var filename;
  if(i < 10) {
    filename = '/archive/artifacts/indianpoints/point0' + i + '.html';
  } else {
    filename = '/archive/artifacts/indianpoints/point' + i + '.html';
  }
  window.open(filename, '',  'width=' + window_width + ',height=' + window_height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}

function popupmap(pointname) { // pop up a window displaying projectile point distribution map, ex. popupmap('kirk-stemmed')
  var filename;
  filename = '/archive/artifacts/indianpoint-maps/' + pointname + '.html';
  window.open(filename, '', 'width=400,height=500,left=540,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}
