
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'company_pictures.htm';
scriptName = 'company_pictures.js';
countX = 4;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('50th Anniversary photos','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','Picture 015.jpg',534,400),
      new Array('Photo 2','Picture 023.jpg',534,400),
      new Array('Photo 3','Picture 031.jpg',534,400),
      new Array('Photo 4','Picture 034.jpg',534,400),
      new Array('Photo 5','Picture 039.jpg',534,400),
      new Array('Photo 6','Picture 057.jpg',534,400),
      new Array('Photo 7','Picture 064.jpg',534,400),
      new Array('Photo 8','Picture 073.jpg',534,400),
      new Array('Photo 9','Picture 087.jpg',534,400),
      new Array('Photo 10','Picture 105.jpg',534,400),
      new Array('Photo 11','Picture 106.jpg',534,400),
      new Array('Photo 12','Picture 118.jpg',534,400),
      new Array('Photo 13','Picture 119.jpg',534,400),
      new Array('Photo 14','Picture 124.jpg',534,400),
      new Array('Photo 15','Picture 125.jpg',534,400),
      new Array('Photo 16','Picture 135.jpg',534,400),
      new Array('Photo 17','Picture 140.jpg',534,400),
      new Array('Photo 18','Picture 145.jpg',534,400),
      new Array('Photo 19','Picture 151.jpg',534,400),
      new Array('Photo 20','Picture 161.jpg',534,400),
      new Array('Photo 21','Picture 172.jpg',534,400),
      new Array('Photo 22','Picture 180.jpg',534,400),
      new Array('Photo 23','Picture 184.jpg',534,400),
      new Array('Photo 24','Picture 187.jpg',534,400)
    )
  ),

  new Array('OSU OKC Rainwater Collection Installation','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','1525.jpg',300,400),
      new Array('Photo 2','1526.jpg',534,400),
      new Array('Photo 3','1683.jpg',534,400),
      new Array('Photo 4','1684.jpg',534,400),
      new Array('Photo 5','1686.jpg',534,400),
      new Array('Photo 6','20081106 Photos 015.jpg',534,400),
      new Array('Photo 7','20081106 Photos 018.jpg',534,400),
      new Array('Photo 8','20081106 Photos 020.jpg',300,400),
      new Array('Photo 9','20081106 Photos 021.jpg',534,400),
      new Array('Photo 10','20081106 Photos 022.jpg',300,400),
      new Array('Photo 11','20081106 Photos 023.jpg',300,400),
      new Array('Photo 12','20081106 Photos 024.jpg',534,400),
      new Array('Photo 13','20081106 Photos 025.jpg',534,400),
      new Array('Photo 14','20081106 Photos 032.jpg',534,400),
      new Array('Photo 15','20081106 Photos 033.jpg',534,400),
      new Array('Photo 16','20081106 Photos 034.jpg',534,400),
      new Array('Photo 17','20081106 Photos 035.jpg',534,400),
      new Array('Photo 18','20081106 Photos 036.jpg',300,400),
      new Array('Photo 19','20081106 Photos 039.jpg',534,400),
      new Array('Photo 20','C.U. Soil on top of AquaBlox.jpg',534,400),
      new Array('Photo 21','Collected Condensation.jpg',534,400),
      new Array('Photo 22','Picture 027.jpg',534,400),
      new Array('Photo 23','Picture 029.jpg',534,400),
      new Array('Photo 24','Picture 035.jpg',534,400),
      new Array('Photo 25','Picture 036.jpg',534,400),
      new Array('Photo 26','Picture 039_1.jpg',534,400),
      new Array('Photo 27','Picture 045.jpg',534,400),
      new Array('Photo 28','Picture 055.jpg',534,400),
      new Array('Photo 29','Picture 077.jpg',534,400),
      new Array('Photo 30','Picture 084.jpg',534,400),
      new Array('Photo 31','Picture 086.jpg',534,400),
      new Array('Photo 32','Picture 092.jpg',300,400),
      new Array('Photo 33','Picture 1126.jpg',534,400),
      new Array('Photo 34','Picture 1176.jpg',300,400),
      new Array('Photo 35','Picture 1199.jpg',534,400),
      new Array('Photo 36','Picture 1247.jpg',534,400),
      new Array('Photo 37','Picture 1334.jpg',534,400),
      new Array('Photo 38','Picture 1385.jpg',534,400),
      new Array('Photo 39','Picture 1389.jpg',534,400),
      new Array('Photo 40','Picture 1445.jpg',534,400),
      new Array('Photo 41','Picture 1448.jpg',534,400),
      new Array('Photo 42','Picture 1449.jpg',300,400),
      new Array('Photo 43','Picture 1457.jpg',300,400),
      new Array('Photo 44','Picture 1460.jpg',300,400),
      new Array('Photo 45','Picture 1462.jpg',534,400),
      new Array('Photo 46','Picture 1466.jpg',300,400),
      new Array('Photo 47','Picture 1468.jpg',534,400),
      new Array('Photo 48','Picture 1470.jpg',534,400),
      new Array('Photo 49','Picture 1472.jpg',534,400),
      new Array('Photo 50','Picture 1473.jpg',534,400),
      new Array('Photo 51','Picture 1476.jpg',534,400),
      new Array('Photo 52','Picture 1477.jpg',300,400),
      new Array('Photo 53','Picture 1482.jpg',534,400),
      new Array('Photo 54','Picture 1488.jpg',534,400),
      new Array('Photo 55','Picture 1497.jpg',300,400),
      new Array('Photo 56','Picture 1499.jpg',534,400),
      new Array('Photo 57','Picture 1501.jpg',534,400),
      new Array('Photo 58','Picture 1503.jpg',534,400),
      new Array('Photo 59','Picture 1519.jpg',534,400),
      new Array('Photo 60','Picture 1522.jpg',300,400),
      new Array('Photo 61','Picture 1524.jpg',534,400),
      new Array('Photo 62','Picture 164.jpg',534,400),
      new Array('Photo 63','Picture 165.jpg',534,400),
      new Array('Photo 64','Picture 166.jpg',300,400),
      new Array('Photo 65','Picture 174.jpg',534,400),
      new Array('Photo 66','Picture 178.jpg',534,400),
      new Array('Photo 67','Picture 182.jpg',534,400),
      new Array('Photo 68','Picture 235.jpg',534,400),
      new Array('Photo 69','Picture 269.jpg',534,400),
      new Array('Photo 70','Picture 281.jpg',534,400),
      new Array('Photo 71','Picture 300.jpg',534,400),
      new Array('Photo 72','Picture 342.jpg',534,400),
      new Array('Photo 73','Picture 344.jpg',300,400),
      new Array('Photo 74','Picture 396.jpg',300,400),
      new Array('Photo 75','Picture 399.jpg',534,400),
      new Array('Photo 76','Picture 407.jpg',534,400),
      new Array('Photo 77','Picture 423.jpg',534,400),
      new Array('Photo 78','Picture 425.jpg',534,400),
      new Array('Photo 79','Picture 429.jpg',534,400),
      new Array('Photo 80','Picture 431.jpg',534,400),
      new Array('Photo 81','Picture 436.jpg',534,400),
      new Array('Photo 82','Picture 442.jpg',534,400),
      new Array('Photo 83','Picture 462.jpg',534,400),
      new Array('Photo 84','Picture 490.jpg',534,400),
      new Array('Photo 85','Picture 511.jpg',534,400),
      new Array('Photo 86','Picture 606.jpg',534,400),
      new Array('Photo 87','Picture 617.jpg',534,400),
      new Array('Photo 88','Picture 618.jpg',534,400),
      new Array('Photo 89','Skid Steer on top of AquaBlox.jpg',534,400),
      new Array('Photo 90','Sugarloaf Bridge.jpg',534,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]);
}
