
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'events_photos.html';
scriptName = 'events_photos.js';
countX = 4;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Golf Tourney 2007','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array()
  ),

  new Array('2008 Awards Banquet','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','DSC_0002.jpg',598,400),
      new Array('Photo 2','DSC_0003.jpg',598,400),
      new Array('Photo 3','DSC_0004.jpg',504,400),
      new Array('Photo 4','DSC_0005.jpg',598,400),
      new Array('Photo 5','DSC_0006.jpg',598,400),
      new Array('Photo 6','DSC_0008.jpg',504,400),
      new Array('Photo 7','DSC_0009.jpg',598,400),
      new Array('Photo 8','DSC_0010.jpg',598,400),
      new Array('Photo 9','DSC_0011.jpg',598,400),
      new Array('Photo 10','DSC_0012.jpg',598,400),
      new Array('Photo 11','DSC_0013.jpg',598,400),
      new Array('Photo 12','DSC_0014.jpg',598,400),
      new Array('Photo 13','DSC_0015.jpg',560,400),
      new Array('Photo 14','DSC_0016.jpg',598,400),
      new Array('Photo 15','DSC_0017.jpg',598,400),
      new Array('Photo 16','DSC_0018.jpg',598,400),
      new Array('Photo 17','DSC_0019.jpg',598,400),
      new Array('Photo 18','DSC_0020.jpg',268,400),
      new Array('Photo 19','DSC_0021.jpg',598,400),
      new Array('Photo 20','DSC_0022.jpg',598,400),
      new Array('Photo 21','DSC_0023.jpg',598,400),
      new Array('Photo 22','DSC_0024.jpg',598,400),
      new Array('Photo 23','DSC_0025.jpg',598,400),
      new Array('Photo 24','DSC_0026.jpg',598,400),
      new Array('Photo 25','DSC_0027.jpg',598,400),
      new Array('Photo 26','DSC_0028.jpg',598,400),
      new Array('Photo 27','DSC_0029.jpg',598,400),
      new Array('Photo 28','DSC_0030.jpg',598,400),
      new Array('Photo 29','DSC_0031.jpg',598,400),
      new Array('Photo 30','DSC_0032.jpg',598,400),
      new Array('Photo 31','DSC_0033.jpg',598,400),
      new Array('Photo 32','DSC_0034.jpg',598,400),
      new Array('Photo 33','DSC_0035.jpg',598,400),
      new Array('Photo 34','DSC_0036.jpg',598,400),
      new Array('Photo 35','DSC_0038.jpg',598,400),
      new Array('Photo 36','DSC_0039.jpg',598,400),
      new Array('Photo 37','DSC_0042.jpg',598,400),
      new Array('Photo 38','DSC_0046.jpg',598,400),
      new Array('Photo 39','DSC_0047.jpg',598,400),
      new Array('Photo 40','DSC_0049.jpg',598,400),
      new Array('Photo 41','DSC_0050.jpg',598,400),
      new Array('Photo 42','DSC_0051.jpg',598,400),
      new Array('Photo 43','DSC_0052.jpg',598,400),
      new Array('Photo 44','DSC_0054.jpg',598,400),
      new Array('Photo 45','DSC_0056.jpg',598,400),
      new Array('Photo 46','DSC_0058.jpg',598,400),
      new Array('Photo 47','DSC_0059.jpg',598,400),
      new Array('Photo 48','DSC_0060.jpg',598,400),
      new Array('Photo 49','DSC_0061.jpg',598,400),
      new Array('Photo 50','DSC_0062.jpg',598,400),
      new Array('Photo 51','DSC_0063.jpg',598,400),
      new Array('Photo 52','DSC_0064.jpg',598,400),
      new Array('Photo 53','DSC_0065.jpg',598,400),
      new Array('Photo 54','DSC_0066.jpg',598,400),
      new Array('Photo 55','DSC_0067.jpg',598,400),
      new Array('Photo 56','DSC_0069.jpg',598,400),
      new Array('Photo 57','DSC_0070.jpg',598,400),
      new Array('Photo 58','DSC_0071.jpg',598,400),
      new Array('Photo 59','DSC_0072.jpg',598,400),
      new Array('Photo 60','DSC_0074.jpg',598,400),
      new Array('Photo 61','DSC_0075.jpg',598,400),
      new Array('Photo 62','DSC_0076.jpg',598,400),
      new Array('Photo 63','DSC_0077.jpg',598,400),
      new Array('Photo 64','DSC_0078.jpg',598,400),
      new Array('Photo 65','DSC_0079.jpg',598,400),
      new Array('Photo 66','DSC_0080.jpg',598,400),
      new Array('Photo 67','DSC_0081.jpg',598,400),
      new Array('Photo 68','DSC_0082.jpg',598,400),
      new Array('Photo 69','DSC_0083.jpg',598,400),
      new Array('Photo 70','DSC_0084.jpg',598,400),
      new Array('Photo 71','DSC_0087.jpg',598,400),
      new Array('Photo 72','DSC_0088.jpg',598,400),
      new Array('Photo 73','DSC_0089.jpg',598,400),
      new Array('Photo 74','DSC_0090.jpg',598,400),
      new Array('Photo 75','DSC_0091.jpg',598,400),
      new Array('Photo 76','DSC_0092.jpg',598,400),
      new Array('Photo 77','DSC_0093.jpg',598,400),
      new Array('Photo 78','DSC_0094.jpg',598,400),
      new Array('Photo 79','DSC_0095.jpg',598,400),
      new Array('Photo 80','DSC_0096.jpg',598,400),
      new Array('Photo 81','DSC_0097.jpg',598,400),
      new Array('Photo 82','DSC_0099.jpg',598,400),
      new Array('Photo 83','DSC_0100.jpg',560,400),
      new Array('Photo 84','DSC_0101.jpg',560,400),
      new Array('Photo 85','DSC_0102.jpg',560,400),
      new Array('Photo 86','DSC_0103.jpg',598,400),
      new Array('Photo 87','DSC_0104.jpg',647,400),
      new Array('Photo 88','DSC_0105.jpg',560,400),
      new Array('Photo 89','DSC_0106.jpg',560,400),
      new Array('Photo 90','DSC_0107.jpg',560,400),
      new Array('Photo 91','DSC_0108.jpg',598,400),
      new Array('Photo 92','DSC_0109.jpg',598,400),
      new Array('Photo 93','DSC_0110.jpg',598,400),
      new Array('Photo 94','DSC_0111.jpg',598,400),
      new Array('Photo 95','DSC_0112.jpg',560,400),
      new Array('Photo 96','DSC_0113.jpg',560,400),
      new Array('Photo 97','DSC_0114.jpg',560,400)
	)
  )

)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length))
  ind = 0; 

var arPreloadImages = new Array();
function preload() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length);i++) {
      arPreloadImages[i] = new Image(mediumSizes[0],mediumSizes[1]);
      arPreloadImages[i].src = arImages[section][2]+arImages[section][4][i][1];
    }
  }
}
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
