
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'concrete.htm';
scriptName = 'concrete.js';
countX = 5;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
 new Array('Concrete Finishes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
  new Array(   
   new Array('Photo 1','102_0222.jpg',534,400),
   new Array('Photo 2','102_0223.jpg',534,400),
   new Array('Photo 3','102_0225.jpg',534,400),
   new Array('Photo 4','102_0226.jpg',534,400),
   new Array('Photo 5','102_0229.jpg',534,400),
//new Array('Photo 5','600_4.jpg',533,400),
//new Array('Photo 7','600_6.jpg',533,400),
   new Array('Photo 6','600_7.jpg',533,400),
   new Array('Photo 7','600_8.jpg',533,400),
   new Array('Photo 8','600_9.jpg',533,400),
//new Array('Photo 14','600_b104.jpg',533,400),
   new Array('Photo 9','600_b109.jpg',533,400),
   new Array('Photo 10','600_b11.jpg',533,400),
   new Array('Photo 11','Picture 308.jpg',534,400),
   new Array('Photo 12','Picture 309.jpg',534,400),
//new Array('Photo 20','600_b110.jpg',533,400),
   new Array('Photo 13','Brick Island.jpg',534,400),
   new Array('Photo 14','IMG_1018.jpg',534,400),	  
   new Array('Photo 15','600_b111.jpg',533,400),
   new Array('Photo 16','600_b112.jpg',533,400),
   new Array('Photo 17','106_0633.jpg',534,400),
   new Array('Photo 18','600_b113.jpg',533,400),
   new Array('Photo 19','600_b114.jpg',533,400),
   new Array('Photo 20','600_b115.jpg',533,400),
   new Array('Photo 21','600_b116.jpg',533,400),
   new Array('Photo 22','600_b117.jpg',533,400),
   new Array('Photo 23','600_b118.jpg',533,400),
   new Array('Photo 24','600_b121.jpg',533,400),
   new Array('Photo 25','600_b122.jpg',533,400),
   new Array('Photo 26','600_b124.jpg',533,400),
   new Array('Photo 27','Picture 157.jpg',534,400),
   new Array('Photo 28','600_b125.jpg',533,400),
   new Array('Photo 29','600_b126.jpg',533,400),
   new Array('Photo 30','600_b127.jpg',533,400),
   new Array('Photo 31','600_b128.jpg',533,400),
   new Array('Photo 32','600_b129.jpg',533,400),
   new Array('Photo 33','600_b13.jpg',533,400),
   new Array('Photo 34','600_b133.jpg',533,400),
//new Array('Photo 40','600_b134.jpg',533,400),
   new Array('Photo 35','600_b135.jpg',533,400),
   new Array('Photo 36','600_b136.jpg',533,400),
   new Array('Photo 37','Picture 346.jpg',534,400),
   new Array('Photo 38','Picture 232.jpg',534,400),
//new Array('Photo 44','600_b138.jpg',533,400),
   new Array('Photo 39','600_b139.jpg',533,400),
   new Array('Photo 40','600_b14.jpg',533,400),
   new Array('Photo 41','600_b140.jpg',533,400),
   new Array('Photo 42','600_b141.jpg',533,400),
   new Array('Photo 43','600_b142.jpg',533,400),
   new Array('Photo 44','600_b145.jpg',428,286),
   new Array('Photo 45','600_b146.jpg',412,268),
   new Array('Photo 46','600_b147.jpg',524,315),
   new Array('Photo 47','600_b15.jpg',533,400),
   new Array('Photo 48','600_b16.jpg',533,400),
   new Array('Photo 49','600_b17.jpg',533,400),
   new Array('Photo 50','600_b18.jpg',533,400),
//new Array('Photo 60','600_b20.jpg',533,400),
   new Array('Photo 51','600_b23.jpg',533,400),
   new Array('Photo 52','600_b24.jpg',533,400),
   new Array('Photo 53','600_b25.jpg',533,400),
   new Array('Photo 54','600_b26.jpg',533,400),
   new Array('Photo 55','600_b27.jpg',533,400),
   new Array('Photo 56','600_b28.jpg',533,400),
   new Array('Photo 57','600_b29.jpg',533,400),
   new Array('Photo 58','600_b32.jpg',533,400),
   new Array('Photo 59','600_b30.jpg',533,400),
   new Array('Photo 60','600_b31.jpg',533,400),
   new Array('Photo 61','600_b33.jpg',533,400),
   new Array('Photo 62','600_b34.jpg',533,400),
//new Array('Photo 75','600_b35.jpg',533,400),
   new Array('Photo 63','600_b36.jpg',533,400),
   new Array('Photo 64','DSC00011.jpg',534,400),
   new Array('Photo 65','DSC00008.jpg',534,400),
   new Array('Photo 66','600_b42.jpg',533,400),
   new Array('Photo 67','600_b44.jpg',533,400),
//new Array('Photo 85','600_b45.jpg',533,400),
   new Array('Photo 68','600_b46.jpg',533,400),
   new Array('Photo 69','600_b47.jpg',533,400),
   new Array('Photo 70','600_b48.jpg',533,400),
//new Array('Photo 89','600_b49.jpg',533,400),
   new Array('Photo 71','600_b50.jpg',533,400),
   new Array('Photo 72','600_b51.jpg',533,400),
   new Array('Photo 73','600_b52.jpg',533,400),
   new Array('Photo 74','600_b53.jpg',533,400),
   new Array('Photo 75','600_b54.jpg',533,400),
   new Array('Photo 76','600_b55.jpg',533,400),
   new Array('Photo 77','600_b56.jpg',533,400),
   new Array('Photo 78','600_b57.jpg',533,400),
   new Array('Photo 79','600_b58.jpg',533,400),
   new Array('Photo 80','600_b59.jpg',533,400),
   new Array('Photo 81','600_b60.jpg',590,400),
   new Array('Photo 82','600_b61.jpg',592,400),
   new Array('Photo 83','600_b62.jpg',591,400),
   new Array('Photo 84','600_b63.jpg',591,400),
   new Array('Photo 85','600_b64.jpg',593,400),
   new Array('Photo 86','600_b65.jpg',590,400),
   new Array('Photo 87','600_b66.jpg',587,400),
   new Array('Photo 88','600_b67.jpg',595,400),
   new Array('Photo 89','600_b68.jpg',593,400),
   new Array('Photo 90','600_b69.jpg',590,400),
   new Array('Photo 91','600_b70.jpg',606,400),
   new Array('Photo 92','600_b71.jpg',605,400),
   new Array('Photo 93','600_b72.jpg',604,400),
   new Array('Photo 94','600_b73.jpg',603,400),
   new Array('Photo 95','600_b74.jpg',606,400),
   new Array('Photo 96','600_b75.jpg',396,400),
   new Array('Photo 97','600_b76.jpg',395,400),
   new Array('Photo 98','600_b77.jpg',395,400),
   new Array('Photo 99','600_b78.jpg',395,400),
   new Array('Photo 100','600_b79.jpg',403,400),
   new Array('Photo 101','600_b80.jpg',397,400),
   new Array('Photo 102','600_b81.jpg',580,400),
   new Array('Photo 103','600_b82.jpg',585,400),
   new Array('Photo 104','600_b83.jpg',574,400),
   new Array('Photo 105','600_b84.jpg',572,400),
   new Array('Photo 106','600_b85.jpg',568,400),
   new Array('Photo 107','600_b86.jpg',571,400),
   new Array('Photo 108','600_b87.jpg',581,400),
   new Array('Photo 109','600_b88.jpg',613,400),
   new Array('Photo 110','600_b89.jpg',594,400),
   new Array('Photo 111','600_b90.jpg',598,395),
   new Array('Photo 112','600_b91.jpg',571,400),
   new Array('Photo 113','600_b92.jpg',533,400),
   new Array('Photo 114','600_b93.jpg',533,400),
   new Array('Photo 115','600_b94.jpg',533,400),
   new Array('Photo 116','600_b95.jpg',533,400),
//new Array('Photo 136','600_b96.jpg',533,400),
   new Array('Photo 117','600_b97.jpg',533,400),
   new Array('Photo 118','600_b98.jpg',533,400),
   new Array('Photo 119','600_b99.jpg',533,400),
   new Array('Photo 120','600_b38.jpg',517,307),
   new Array('Photo 121','Basket-Weave-Brick-Pattern.jpg',255,172),
	  new Array('Photo 122','Basket-Weave-Brick-Pattern1.jpg',257,171),
      new Array('Photo 123','Copy (2) of IMG_1008.jpg',534,400),
      new Array('Photo 124','Rancho-Palos-Verde-Stone1.jpg',206,135),
      new Array('Photo 125','Copy (2) of Here it is !!!!.jpg',534,400),
      new Array('Photo 126','Copy (2) of Time to Grill.jpg',534,400),
      new Array('Photo 127','DSC00009.jpg',534,400),
      new Array('Photo 128','DSC00034.jpg',534,400),
      new Array('Photo 129','DSC00496.jpg',534,400),
      new Array('Photo 130','DSC00498.jpg',534,400),
      new Array('Photo 131','DSC00499.jpg',534,400),
      new Array('Photo 132','DSC00500.jpg',534,400),
      new Array('Photo 133','DSC00512.jpg',534,400),
      new Array('Photo 134','DSC00516.jpg',534,400),
      new Array('Photo 135','DSC00575.jpg',534,400),
      new Array('Photo 136','DSC00705.jpg',534,400),
      new Array('Photo 137','DSC00719_1.jpg',534,400),
      new Array('Photo 138','DSC00779.jpg',534,400),
      new Array('Photo 139','DSC00780.jpg',534,400),
      new Array('Photo 140','DSC00781.jpg',534,400),
      //new Array('Photo 159','DSC00826.jpg',534,400),
      //new Array('Photo 160','DSC00827.jpg',534,400),
      //new Array('Photo 161','DSC00836.jpg',534,400),
      new Array('Photo 141','Front Entry.jpg',534,400),
      new Array('Photo 142','Garden Sitting Area.jpg',534,400),
      new Array('Photo 143','IMG_1116.jpg',534,400),
      new Array('Photo 144','IMG_1135.jpg',534,400),
      new Array('Photo 145','IMG_1139.jpg',534,400),
      new Array('Photo 146','IMG_1141.jpg',534,400),
      new Array('Photo 147','IMG_1142.jpg',534,400),
      new Array('Photo 148','IMG_1143.jpg',534,400),
      new Array('Photo 149','IMG_1144.jpg',534,400),
      new Array('Photo 150','IMG_1152.jpg',534,400),
      new Array('Photo 151','IMG_1153.jpg',534,400),
      new Array('Photo 152','IMG_1158.jpg',534,400),
      new Array('Photo 153','IMG_1159.jpg',534,400),
      new Array('Photo 154','IMG_1236.jpg',534,400),
      new Array('Photo 155','IMG_1237.jpg',534,400),
      new Array('Photo 156','IMG_1249.jpg',534,400),
      new Array('Photo 157','IMG_1252.jpg',534,400),
      new Array('Photo 158','IMG_1253.jpg',534,400),
      new Array('Photo 159','IMG_1267.jpg',534,400),
      new Array('Photo 160','IMG_1268.jpg',534,400),
      new Array('Photo 161','IMG_1278.jpg',534,400),
      new Array('Photo 162','IMG_1279.jpg',534,400),
      new Array('Photo 163','IMG_1285.jpg',534,400),
      new Array('Photo 164','IMG_1286.jpg',534,400),
      new Array('Photo 165','new construction pictures 002.jpg',534,400),
      new Array('Photo 166','new construction pictures 003.jpg',534,400),
      new Array('Photo 167','new construction pictures 006.jpg',534,400),
      new Array('Photo 168','new construction pictures 080.jpg',534,400),
      new Array('Photo 169','Picture 035.jpg',534,400),
      new Array('Photo 170','Picture 054.jpg',534,400),
      new Array('Photo 171','Picture 058.jpg',534,400),
      new Array('Photo 172','Picture 071.jpg',534,400),
      new Array('Photo 173','Picture 072.jpg',534,400),
      new Array('Photo 174','Picture 073.jpg',534,400),
      new Array('Photo 175','Picture 074.jpg',534,400),
      new Array('Photo 176','Picture 099.jpg',534,400),
      new Array('Photo 177','Picture 121.jpg',534,400),
      new Array('Photo 178','Picture 154.jpg',534,400),
      new Array('Photo 179','Picture 155.jpg',534,400),
      new Array('Photo 180','Picture 160.jpg',534,400),
      new Array('Photo 181','Picture 161.jpg',534,400),
      new Array('Photo 182','Picture 170.jpg',534,400),
      new Array('Photo 183','Picture 178.jpg',534,400),
      new Array('Photo 184','Picture 179.jpg',534,400),
      new Array('Photo 185','Picture 182.jpg',534,400),
      new Array('Photo 186','Picture 183.jpg',534,400),
      new Array('Photo 187','Picture 184.jpg',534,400),
      new Array('Photo 188','Picture 187.jpg',534,400),
      new Array('Photo 189','Picture 188.jpg',534,400),
      new Array('Photo 190','Picture 189.jpg',534,400),
      new Array('Photo 191','Picture 282.jpg',534,400),
      new Array('Photo 192','Picture 283.jpg',534,400),
      //new Array('Photo 231','Picture 296.jpg',534,400),
      new Array('Photo 193','Picture 298.jpg',534,400),
      new Array('Photo 194','Picture 299.jpg',534,400),
      new Array('Photo 195','Picture 310.jpg',534,400),
      new Array('Photo 196','Picture 311.jpg',534,400),
      new Array('Photo 197','Picture 313.jpg',534,400),
      new Array('Photo 198','Picture 314.jpg',534,400),
      new Array('Photo 199','Picture May 2005 072.jpg',534,400),
      new Array('Photo 200','Picture May 2005 084.jpg',534,400),
      new Array('Photo 201','Picture May 2005 087.jpg',534,400),
      new Array('Photo 202','Picture May 2005 114.jpg',534,400),
      new Array('Photo 203','Picture May 2005 115.jpg',534,400),
      new Array('Photo 204','Picture May 2005 116.jpg',534,400),
      new Array('Photo 205','Picture May 2005 117.jpg',534,400),
      new Array('Photo 206','Picture May 2005 118.jpg',534,400),
      new Array('Photo 207','Picture May 2005 119.jpg',534,400),
      new Array('Photo 208','600_b64.jpg',593,400),
      new Array('Photo 209','Scored-Square-Design.jpg',196,125),
      new Array('Photo 210','Stepping STones.jpg',534,400),
      new Array('Photo 211','Time to Grill.jpg',534,400),
	  new Array('Photo 212','100_0003_3.jpg',534,400),
      new Array('Photo 213','100_0008_5.jpg',534,400),
      new Array('Photo 214','100_0009.jpg',534,400),
      new Array('Photo 215','100_0009_6.jpg',534,400),
      new Array('Photo 216','100_0010_4.jpg',534,400),
      new Array('Photo 217','100_0014_2.jpg',534,400),
      new Array('Photo 218','100_0015_3.jpg',534,400),
      new Array('Photo 219','100_0016_3.jpg',534,400),
      new Array('Photo 220','100_0017_2.jpg',534,400),
      new Array('Photo 221','100_0017_7.jpg',534,400),
      new Array('Photo 222','100_0021_5.jpg',534,400),
      new Array('Photo 223','100_0023_4.jpg',534,400),
      new Array('Photo 224','100_0024_6.jpg',534,400),
      new Array('Photo 225','100_0025_4.jpg',534,400),
      new Array('Photo 226','100_0027_2.jpg',534,400),
      new Array('Photo 227','100_0028_3.jpg',534,400),
      new Array('Photo 228','100_0030_3.jpg',534,400),
      new Array('Photo 229','100_0037.jpg',534,400),
      new Array('Photo 230','100_0038.jpg',534,400),
      new Array('Photo 231','100_0039.jpg',534,400),
      new Array('Photo 232','100_0039_5.jpg',300,400),
      new Array('Photo 233','100_0041_5.jpg',534,400),
      new Array('Photo 234','100_0041.jpg',534,400),
      new Array('Photo 235','100_0042.jpg',534,400),
      new Array('Photo 236','100_0042_5.jpg',534,400),
      new Array('Photo 237','100_0044_2.jpg',534,400),
      new Array('Photo 238','100_0047.jpg',534,400),
      new Array('Photo 239','100_0048_3.jpg',534,400),
      new Array('Photo 240','100_0049_3.jpg',534,400),
      new Array('Photo 241','100_0050.jpg',534,400),
      new Array('Photo 242','100_0051_2.jpg',534,400),
      new Array('Photo 243','100_0053_2.jpg',534,400),
      new Array('Photo 244','100_0055_2.jpg',534,400),
      new Array('Photo 245','100_0058_3.jpg',534,400),
      new Array('Photo 246','100_0064_4.jpg',534,400),
      new Array('Photo 247','100_0089_3.jpg',534,400),
      new Array('Photo 248','100_0090_2.jpg',300,400),
      new Array('Photo 249','102_0203.jpg',534,400),
      new Array('Photo 250','102_0230.jpg',534,400),
      new Array('Photo 251','102_0231.jpg',534,400),
      new Array('Photo 252','106_0619.jpg',534,400),
      new Array('Photo 253','112_1237.jpg',534,400),
      new Array('Photo 254','112_1264.jpg',534,400),
      new Array('Photo 255','112_1265.jpg',534,400),
      new Array('Photo 256','112_1267.jpg',534,400),
      new Array('Photo 257','112_1268.jpg',534,400),
      new Array('Photo 258','112_1300.jpg',534,400),
      new Array('Photo 259','113_1306.jpg',534,400),
      new Array('Photo 260','113_1400.jpg',534,400),
      new Array('Photo 261','114_1402.jpg',534,400),
      new Array('Photo 262','114_1403.jpg',534,400),
      new Array('Photo 263','114_1406.jpg',534,400),
      new Array('Photo 264','114_1407.jpg',534,400),
      new Array('Photo 265','114_1448.jpg',534,400),
      new Array('Photo 266','114_1465.jpg',534,400),
      new Array('Photo 267','114_1467.jpg',534,400),
      new Array('Photo 268','114_1468.jpg',534,400),
      new Array('Photo 269','600_b37.jpg',412,279),
      new Array('Photo 270','Brick-&-Flagstone.jpg',201,132),
      new Array('Photo 271','600_b143.jpg',412,287),
      new Array('Photo 272','600_b144.jpg',423,264),
	  new Array('Photo 273','Rancho-Palos-Verde-Stone2.jpg',195,126)


  )
 )
)
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]);
}
