
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.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('Products','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','DSC00015.jpg',534,400),
      new Array('Photo 2','DSC00017.jpg',534,400),
      new Array('Photo 3','DSC00018.jpg',534,400),
      new Array('Photo 4','DSC00019.jpg',534,400),
      new Array('Photo 5','DSC00020.jpg',534,400),
      new Array('Photo 6','DSC00021.jpg',534,400),
      new Array('Photo 7','DSC00022.jpg',534,400),
      new Array('Photo 8','DSC00023.jpg',534,400),
      new Array('Photo 9','DSC00024.jpg',534,400),
      new Array('Photo 10','DSC00025.jpg',534,400),
      new Array('Photo 11','DSC00027.jpg',534,400),
      new Array('Photo 12','DSC00028.jpg',534,400),
      new Array('Photo 13','DSC00029.jpg',534,400),
      new Array('Photo 14','DSC00030.jpg',300,400),
      new Array('Photo 15','DSC00033.jpg',534,400),
      new Array('Photo 16','DSC00065.jpg',534,400),
      new Array('Photo 17','DSC00066.jpg',534,400),
      new Array('Photo 18','DSC00067.jpg',534,400),
      new Array('Photo 19','DSC00068.jpg',534,400),
      new Array('Photo 20','DSC00069.jpg',534,400),
      new Array('Photo 21','DSC00070.jpg',534,400),
      new Array('Photo 22','DSC00072.jpg',534,400),
      new Array('Photo 23','DSC00073.jpg',534,400),
      new Array('Photo 24','DSC00075.jpg',534,400),
      new Array('Photo 25','DSC00077.jpg',534,400),
      new Array('Photo 26','DSC00079.jpg',534,400),
      new Array('Photo 27','DSC00081.jpg',534,400),
      new Array('Photo 28','DSC00082.jpg',534,400),
      new Array('Photo 29','DSC00084.jpg',534,400),
      new Array('Photo 30','DSC00089.jpg',534,400),
      new Array('Photo 31','DSC00092.jpg',534,400),
      new Array('Photo 32','DSC00094.jpg',534,400),
      new Array('Photo 33','DSC00095.jpg',534,400),
      new Array('Photo 34','DSC00146.jpg',534,400),
      new Array('Photo 35','DSC00147.jpg',534,400),
      new Array('Photo 36','DSC00148.jpg',534,400),
      new Array('Photo 37','DSC00149.jpg',534,400),
      new Array('Photo 38','DSC00154.jpg',534,400),
      new Array('Photo 39','DSC00156.jpg',534,400),
      new Array('Photo 40','DSC00157.jpg',534,400)
	)
  ), 
  
  new Array('Finished Projects','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','DSC00158.jpg',534,400),
      new Array('Photo 2','DSC00159.jpg',534,400),
      new Array('Photo 3','DSC00160.jpg',534,400),
      new Array('Photo 4','DSC00163.jpg',534,400),
      new Array('Photo 5','DSC00164.jpg',534,400),
      new Array('Photo 6','DSC00165.jpg',534,400),
      new Array('Photo 7','DSC00166.jpg',534,400),
      new Array('Photo 8','DSC00167.jpg',534,400),
      new Array('Photo 9','DSC00168.jpg',534,400),
      new Array('Photo 10','DSC00169.jpg',534,400),
      new Array('Photo 11','DSC00170.jpg',534,400),
      new Array('Photo 12','DSC00171.jpg',534,400),
      new Array('Photo 13','DSC00172.jpg',534,400),
      new Array('Photo 14','DSC00173.jpg',534,400),
      new Array('Photo 15','DSC00174.jpg',534,400),
      new Array('Photo 16','DSC00175.jpg',534,400),
      new Array('Photo 17','DSC00176.jpg',534,400),
      new Array('Photo 18','DSC00177.jpg',534,400),
      new Array('Photo 19','DSC00178.jpg',534,400),
      new Array('Photo 20','DSC00179.jpg',534,400),
      new Array('Photo 21','DSC00180.jpg',534,400),
      new Array('Photo 22','DSC00181.jpg',534,400),
      new Array('Photo 23','DSC00182.jpg',534,400),
      new Array('Photo 24','DSC00183.jpg',534,400),
      new Array('Photo 25','DSC00184.jpg',534,400),
      new Array('Photo 26','DSC00185.jpg',534,400),
      new Array('Photo 27','DSC00186.jpg',534,400),
      new Array('Photo 28','DSC00187.jpg',534,400),
      new Array('Photo 29','DSC00188.jpg',534,400),
      new Array('Photo 30','DSC00189.jpg',534,400),
      new Array('Photo 31','DSC00190.jpg',534,400),
      new Array('Photo 32','DSC00191.jpg',534,400),
      new Array('Photo 33','DSC00192.jpg',534,400),
      new Array('Photo 34','DSC00193.jpg',534,400),
      new Array('Photo 35','DSC00195.jpg',534,400),
      new Array('Photo 36','DSC00196.jpg',534,400),
      new Array('Photo 37','DSC00197.jpg',300,400),
	  new Array('Photo 38','051208RP 1.jpg',534,400),
      new Array('Photo 39','051208RP 2.jpg',534,400),
      new Array('Photo 40','Veneto 1.jpg',534,400),
      new Array('Photo 41','Veneto 2.jpg',534,400),
      new Array('Photo 42','Veneto 3.jpg',534,400),
      new Array('Eldorado Bluff Stone','IMG_6691.jpg',600,401),
      new Array('Eldorado Field Ledge','Reynolds1.jpg',534,400),
      new Array('Eldorado Hill stone','Reynolds4.jpg',534,400),
      new Array('Dark Oklahoma','Reynolds5.jpg',534,400),
      new Array('Dark Oklahoma/Eldorado Hill Stone','Reynolds7.jpg',534,400),
      new Array('Dark Oklahoma/Eldorado Hill Stone/Fire Pit','Reynolds9.jpg',534,400),
	  new Array('Boulders','IMG_6623.jpg',600,401),
      new Array('Tennessee Ashlar with mortar joint','IMG_6624.jpg',600,401),
      new Array('Tennessee Ashlar with out mortar joint','IMG_6626.jpg',600,401),
      new Array('Club House in Creek Club','IMG_6627.jpg',600,401),
      new Array('Tennessee Ashlar with out mortar joint','IMG_6628.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6634.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6635.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6636.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6637.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6646.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6648.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6649.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6650.jpg',600,401),
      new Array('Eldorado Shadow Rock','IMG_6651.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6660.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6661.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6663.jpg',600,401),
      new Array('Dark Oklahoma','IMG_6664.jpg',600,401),
      new Array('Dark Oklahoma','IMG_6665.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6666.jpg',600,401),
      new Array('Dark Oklahoma','IMG_6667.jpg',600,401),
      new Array('Dark Oklahoma','IMG_6668.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6670.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6671.jpg',600,401),
      new Array('Eldorado Field Ledge','IMG_6673.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6677.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6678.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6679.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6680.jpg',600,401),
      new Array('Eldorado Bluff Stone','IMG_6681.jpg',600,401),
      new Array('Various Stone','IMG_6682.jpg',600,401),
      new Array('Various Stone','IMG_6683.jpg',600,401),
      new Array('Various Stone','IMG_6684.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6685.jpg',600,401),
      new Array('Eldorado Mountain Ledge','IMG_6686.jpg',600,401),
      new Array('Tennessee Ashlar with Mortar joint','IMG_6688.jpg',600,401),
      new Array('Eldorado Bluff Stone','IMG_6689.jpg',600,401)

    )
  )
)




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]);
}
