
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gallery_commercial.htm';
scriptName = 'gallery_commercial.js';
countX = 2;
countY = 5;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height

var arImages = new Array(

  new Array('American National Bank','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','ANB, Rockwall Pogue 005.jpg',534,400),
      new Array('Photo 2','ANB, Rockwall Pogue 006.jpg',534,400),
      new Array('Photo 3','ANDERSON CO. & POGUE 155.jpg',534,400),
      new Array('Photo 4','different pics 2 052.jpg',534,400),
      new Array('Photo 5','plastine and tyler 229.jpg',534,400)
    )
  ),

  new Array('Chase Bank','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','bristow ok walmart grout holes in wall 009.jpg',534,400),
      new Array('Photo 2','bristow ok walmart grout holes in wall 019.jpg',534,400),
      new Array('Photo 3','bristow ok walmart grout holes in wall 020.jpg',534,400),
      new Array('Photo 4','paco camera 007.jpg',534,400)
    )
  ),

  new Array('Cinemark 14 Cedar Hill','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_1386.jpg',534,400),
      new Array('Photo 2','IMG_1387.jpg',534,400),
      new Array('Photo 3','IMG_1388.jpg',534,400)
    )
  ),

  new Array('Cinemark Vista Ridge Mall','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','anderson co. and ricky green 011.jpg',534,400),
      new Array('Photo 2','anderson co. and ricky green 015.jpg',534,400),
      new Array('Photo 3','IMG_3540.jpg',534,400),
      new Array('Photo 4','IMG_3600.jpg',534,400),
      new Array('Photo 5','IMG_3601.jpg',534,400),
      new Array('Photo 6','IMG_3603.jpg',534,400),
      new Array('Photo 7','IMG_3610.jpg',534,400),
      new Array('Photo 8','IMG_3655.jpg',534,400),
      new Array('Photo 9','IMG_3657.jpg',534,400),
      new Array('Photo 10','IMG_3668.jpg',534,400),
      new Array('Photo 11','IMG_3682.jpg',534,400),
      new Array('Photo 12','ricky green 7.3.06 031.jpg',300,400),
      new Array('Photo 13','SOIL NAILING 7-3-06 VCC (15).jpg',534,400),
      new Array('Photo 14','SOIL NAILING 7-3-06 VCC (9).jpg',534,400),
      new Array('Photo 15','SOIL NAILING 7-3-06 VCC.jpg',300,400),
      new Array('Photo 16','vcc rebuild wall 007.jpg',534,400),
      new Array('Photo 17','vcc rebuild wall 015.jpg',534,400),
      new Array('Photo 18','vcc rebuild wall 027.jpg',534,400),
      new Array('Photo 19','VCC wall going up 4.26 019.jpg',534,400),
      new Array('Photo 20','VCC wall going up 4.26 024.jpg',534,400),
      new Array('Photo 21','VCC wall going up 5.15.06 102.jpg',534,400),
      new Array('Photo 22','VCC wall going up 5.15.06 105.jpg',534,400),
      new Array('Photo 23','VCC wall going up 5.15.06 112.jpg',534,400),
      new Array('Photo 24','VCC wall going up 5.15.06 113.jpg',534,400),
      new Array('Photo 25','VCC wall going up 5.15.06 114.jpg',534,400),
      new Array('Photo 26','VCC-Vista Ridge Mall 026.jpg',534,400),
      new Array('Photo 27','VCC-Vista Ridge Mall 035.jpg',534,400),
      new Array('Photo 28','VCC-Vista Ridge Mall 050.jpg',534,400)
    )
  ),

  new Array('Commercial Bank of Texas','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','8-1-07 003.jpg',534,400),
      new Array('Photo 2','8-1-07 005.jpg',534,400),
      new Array('Photo 3','8-1-07 006.jpg',534,400),
      new Array('Photo 4','8-1-07 016.jpg',534,400),
      new Array('Photo 5','8-1-07 017.jpg',534,400),
      new Array('Photo 6','8-1-07 018.jpg',534,400),
      new Array('Photo 7','8-1-07 020.jpg',534,400),
      new Array('Photo 8','8-1-07 021.jpg',534,400),
      new Array('Photo 9','8-1-07 022.jpg',534,400)
    )
  ),

  new Array('Hickory Creek Market Place','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_0904.jpg',534,400),
      new Array('Photo 2','IMG_0908.jpg',534,400),
      new Array('Photo 3','IMG_0909.jpg',534,400),
      new Array('Photo 4','IMG_0963.jpg',534,400),
      new Array('Photo 5','IMG_0964.jpg',534,400),
      new Array('Photo 6','IMG_0965.jpg',534,400),
      new Array('Photo 7','IMG_1391.jpg',534,400),
      new Array('Photo 8','IMG_1393.jpg',534,400),
      new Array('Photo 9','IMG_1394.jpg',534,400)
    )
  ),

  new Array('Home Depot - Lancaster','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_1888.jpg',534,400),
      new Array('Photo 2','IMG_1889.jpg',534,400),
      new Array('Photo 3','IMG_1890.jpg',534,400),
      new Array('Photo 4','IMG_1891.jpg',534,400),
      new Array('Photo 5','IMG_1895.jpg',300,400),
      new Array('Photo 6','IMG_1896.jpg',534,400),
      new Array('Photo 7','IMG_1932.jpg',534,400),
      new Array('Photo 8','IMG_1945.jpg',534,400),
      new Array('Photo 9','IMG_2016.jpg',534,400),
      new Array('Photo 10','IMG_2037.jpg',534,400),
      new Array('Photo 11','IMG_2038.jpg',534,400),
      new Array('Photo 12','IMG_2039.jpg',534,400),
      new Array('Photo 13','IMG_2050.jpg',534,400),
      new Array('Photo 14','IMG_2051.jpg',534,400),
      new Array('Photo 15','IMG_2052.jpg',534,400),
      new Array('Photo 16','IMG_2073.jpg',534,400),
      new Array('Photo 17','IMG_2074.jpg',534,400),
      new Array('Photo 18','IMG_2077.jpg',534,400)
    )
  ),

  new Array('Razoos Cajun Restaurant','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','mckinney and razoos 029.jpg',534,400),
      new Array('Photo 2','mckinney and razoos 030.jpg',534,400),
      new Array('Photo 3','mckinney and razoos 031.jpg',534,400),
      new Array('Photo 4','mckinney and razoos 032.jpg',534,400),
      new Array('Photo 5','mckinney and razoos 033.jpg',534,400),
      new Array('Photo 6','mckinney and razoos 034.jpg',534,400),
      new Array('Photo 7','mckinney and razoos 035.jpg',534,400),
      new Array('Photo 8','mckinney and razoos 036.jpg',534,400),
      new Array('Photo 9','mckinney and razoos 037.jpg',534,400),
      new Array('Photo 10','mckinney and razoos 038.jpg',534,400),
      new Array('Photo 11','mckinney and razoos 039.jpg',534,400)
    )
  ),

  new Array('Rockwall Surgery Center','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_1053.jpg',534,400),
      new Array('Photo 2','IMG_1058.jpg',534,400),
      new Array('Photo 3','IMG_1441.jpg',534,400),
      new Array('Photo 4','IMG_1442.jpg',534,400),
      new Array('Photo 5','IMG_1443.jpg',534,400),
      new Array('Photo 6','IMG_1447.jpg',534,400),
      new Array('Photo 7','IMG_1448.jpg',534,400),
      new Array('Photo 8','IMG_1449.jpg',534,400),
      new Array('Photo 9','IMG_1450.jpg',534,400)
    )
  ),

  new Array('The Forums - Flower Mound','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_2525.jpg',300,400),
      new Array('Photo 2','IMG_2526.jpg',534,400),
      new Array('Photo 3','IMG_2545.jpg',534,400),
      new Array('Photo 4','IMG_2575.jpg',534,400),
      new Array('Photo 5','IMG_2737.jpg',534,400),
      new Array('Photo 6','IMG_2738.jpg',534,400),
      new Array('Photo 7','IMG_2923.jpg',534,400),
      new Array('Photo 8','IMG_2924.jpg',534,400),
      new Array('Photo 9','IMG_2926.jpg',534,400),
      new Array('Photo 10','IMG_2933.jpg',534,400)
    )
  ),

  new Array('Walmart - Mineral Wells','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Photo 1','IMG_2202.jpg',534,400),
      new Array('Photo 2','IMG_2203.jpg',534,400),
      new Array('Photo 3','IMG_2204.jpg',534,400),
      new Array('Photo 4','IMG_2810.jpg',534,400),
      new Array('Photo 5','IMG_2811.jpg',534,400),
      new Array('Photo 6','IMG_2812.jpg',534,400),
      new Array('Photo 7','IMG_2817.jpg',534,400),
      new Array('Photo 8','IMG_2820.jpg',534,400),
      new Array('Photo 9','IMG_2838.jpg',534,400),
      new Array('Photo 10','IMG_2839.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]);
}
