
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 3;
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('Portfolio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
/*
      new Array('Photo 1','Nealragan1.jpg',534,400),
      new Array('Photo 2','Nealragan2.jpg',276,400),
      new Array('Photo 3','Nealragan3.jpg',600,400),
      new Array('Photo 4','Nealragan4.jpg',592,400),
      new Array('Photo 5','Nealragan5.jpg',598,400),
      new Array('Photo 6','Nealragan6.jpg',584,400),
      new Array('Photo 7','Nealragan7.jpg',584,400)
*/
      new Array('Neal Ragan and our client Linda Palmer','DSCF1897.jpg',534,400),
      new Array('Neal Ragan, Linda Palmer and Lucky','DSCF1896.jpg',534,400),
      new Array('Photo 1','Nealragan_DSCF1772.jpg',534,400),
      new Array('Photo 2','NealRegan_DSCF1773.jpg',534,400),
      new Array('Photo 3','NealRegan_DSCF1774.jpg',534,400),
      new Array('Photo 4','NealRegan_DSCF1775.jpg',534,400),
      new Array('Photo 5','DSCF1863.jpg',534,400),
      new Array('Photo 6','DSCF1864.jpg',534,400),
      new Array('Photo 7','DSCF1865.jpg',534,400),
      new Array('Photo 8','DSCF1866.jpg',534,400),
      new Array('Photo 9','DSCF1867.jpg',534,400),
      new Array('Photo 10','DSCF1868.jpg',534,400),
      new Array('Photo 11','DSCF1869.jpg',534,400),
      new Array('Photo 12','DSCF1872.jpg',534,400),
      new Array('Photo 13','DSCF1873.jpg',534,400),
      new Array('Photo 14','DSCF1891.jpg',534,400),
      new Array('Photo 15','DSCF1892.jpg',534,400),
      new Array('Photo 16','DSCF1893.jpg',534,400),
      new Array('Photo 17','DSCF2048.jpg',534,400),
      new Array('Photo 18','DSCF2049.jpg',534,400),
      new Array('Photo 19','DSCF2050.jpg',534,400),
      new Array('Photo 20','DSCF2051.jpg',534,400),
      new Array('Photo 21','DSCF2052.jpg',534,400),
      new Array('Photo 22','DSCF2053.jpg',534,400),
      new Array('Photo 23','DSCF2054.jpg',534,400),
      new Array('Photo 24','DSCF2055.jpg',534,400),
      new Array('Photo 25','DSCF2056.jpg',534,400),
      new Array('Photo 26','DSCF2057.jpg',534,400),
      new Array('Photo 27','DSCF2058.jpg',534,400),
      new Array('Photo 28','DSCF2059.jpg',534,400),
      new Array('Photo 29','DSCF2060.jpg',534,400),
      new Array('Photo 30','DSCF2061.jpg',534,400),
      new Array('Photo 31','DSCF2062.jpg',534,400),
      new Array('Photo 32','DSCF2064.jpg',534,400),
      new Array('Photo 33','DSCF2065.jpg',534,400),
      new Array('Photo 34','DSCF2074.jpg',534,400)	  

    )
  ),

  new Array('Barbeques','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','bbq10_slide.jpg',352,352),
      new Array('Photo 2','bbq11_slide.jpg',352,352),
      new Array('Photo 3','bbq15_slide.jpg',352,352),
      new Array('Photo 4','bbq16_slide.jpg',352,352),
      new Array('Photo 5','bbq18_slide.jpg',352,352),
      new Array('Photo 6','bbq19_slide.jpg',352,352),
      new Array('Photo 7','bbq1_slide.jpg',352,352),
      new Array('Photo 8','bbq20_slide.jpg',352,352),
      new Array('Photo 9','bbq21_slide.jpg',352,352),
      new Array('Photo 10','bbq22_slide.jpg',352,352),
      new Array('Photo 11','bbq23_slide.jpg',352,352),
      new Array('Photo 12','bbq24_slide.jpg',352,352),
      new Array('Photo 13','bbq25_slide.jpg',352,352),
      new Array('Photo 14','bbq26_slide.jpg',352,352),
      new Array('Photo 15','bbq28_slide.jpg',352,352),
      new Array('Photo 16','bbq29_slide.jpg',352,352),
      new Array('Photo 17','bbq2_slide.jpg',352,352),
      new Array('Photo 18','bbq30_slide.jpg',352,352),
      new Array('Photo 19','bbq31_slide.jpg',352,352),
      new Array('Photo 20','bbq32_slide.jpg',352,352),
      new Array('Photo 21','bbq33_slide.jpg',352,352),
      new Array('Photo 22','bbq34_slide.jpg',352,352),
      new Array('Photo 23','bbq35_slide.jpg',352,352),
      new Array('Photo 24','bbq36_slide.jpg',352,352),
      new Array('Photo 25','bbq3_slide.jpg',352,352),
      new Array('Photo 26','bbq4_slide.jpg',352,352),
      new Array('Photo 27','bbq5_slide.jpg',352,352),
      new Array('Photo 28','bbq6_slide.jpg',352,352),
      new Array('Photo 29','bbq7_slide.jpg',352,352),
      new Array('Photo 30','bbq8_slide.jpg',352,352),
      new Array('Photo 31','bbq9_slide.jpg',352,352)
    )
  ),

  new Array('Fireplaces','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','300n_slide1.jpg',352,352),
      new Array('Photo 2','300n_slide10.jpg',352,352),
      new Array('Photo 3','300n_slide11.jpg',352,352),
      new Array('Photo 4','300n_slide12.jpg',352,352),
      new Array('Photo 5','300n_slide13.jpg',352,352),
      new Array('Photo 6','300n_slide14.jpg',352,352),
      new Array('Photo 7','300n_slide15.jpg',352,352),
      new Array('Photo 8','300n_slide16.jpg',352,352),
      new Array('Photo 9','300n_slide17.jpg',352,352),
      new Array('Photo 10','300n_slide18.jpg',352,352),
      new Array('Photo 11','300n_slide19.jpg',352,352),
      new Array('Photo 12','300n_slide2.jpg',352,352),
      new Array('Photo 13','300n_slide20.jpg',352,352),
      new Array('Photo 14','300n_slide21.jpg',352,352),
      new Array('Photo 15','300n_slide3.jpg',352,352),
      new Array('Photo 16','300n_slide4.jpg',352,352),
      new Array('Photo 17','300n_slide5.jpg',352,352),
      new Array('Photo 18','300n_slide6.jpg',352,352),
      new Array('Photo 19','300n_slide7.jpg',352,352),
      new Array('Photo 20','300n_slide9.jpg',352,352),
      new Array('Photo 21','300_closeup_slide.jpg',352,352),
      new Array('Photo 22','bbq13_slide.jpg',352,352),
      new Array('Photo 23','carefree_lg.jpg',352,352),
      new Array('Photo 24','ga_patio_lg.jpg',352,352),
      new Array('Photo 25','sonoran-living-001.jpg',352,352)
    )
  ),

  new Array('Pots and Benches','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','pot_bench_1.jpg',352,352),
      new Array('Photo 2','pot_bench_2.jpg',352,352),
      new Array('Photo 3','pot_bench_3.jpg',352,352),
      new Array('Photo 4','pot_bench_4.jpg',352,352),
      new Array('Photo 5','pot_bench_5.jpg',352,352)
    )
  ),

  new Array('Bank of Marion','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Bank_of_Marion.jpg',576,400)
    ), 'We installed 63 Replacement Windows and covered all the old wood casings with matching trim. All windows tilt in for easy cleaning. All windows have special Low-E glass that filters out the ultra violet rays and the sun`s heat. We guarantee the job will be done right and done right the first time. "Workmanship Guaranteed".'
  ),
/*
  new Array('Christmas 2006 Mark Smith Family Ashtyn in red outfit','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_001.jpg',534,400),
      new Array('Photo 2','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_002.jpg',534,400),
      new Array('Photo 3','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_003.jpg',534,400),
      new Array('Photo 4','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_004.jpg',534,400),
      new Array('Photo 5','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_005.jpg',534,400),
      new Array('Photo 6','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_006.jpg',534,400),
      new Array('Photo 7','Ashtyn_Grayson_Smith_Christmas_2006_Wytheville_007.jpg',534,400),
      new Array('Photo 8','Ashtyn_Smith_Christmas_2006_001.jpg',534,400),
      new Array('Photo 9','Ashtyn_Smith_Christmas_2006_002.jpg',534,400),
      new Array('Photo 10','Ashtyn_Smith_Christmas_2006_003.jpg',534,400),
      new Array('Photo 11','Ashtyn_Smith_Christmas_2006_004.jpg',534,400),
      new Array('Photo 12','Ashtyn_Smith_Christmas_2006_005.jpg',534,400),
      new Array('Photo 13','Ashtyn_Smith_Christmas_2006_006.jpg',534,400),
      new Array('Photo 14','Ashtyn_Smith_Christmas_2006_007.jpg',534,400),
      new Array('Photo 15','Ashtyn_Smith_Christmas_2006_008.jpg',534,400),
      new Array('Photo 16','Ashtyn_Smith_Christmas_2006_010.jpg',534,400),
      new Array('Photo 17','Ashtyn_Smith_Christmas_2006_013.jpg',534,400),
      new Array('Photo 18','Snowman_2007_003.jpg',534,400)
    )
  ),
*/
  new Array('Mike Doyle House Photos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Doyle_Mike_Anne_001.jpg',534,400),
      new Array('Photo 2','Doyle_Mike_Anne_004.jpg',534,400),
      new Array('Photo 3','Doyle_Mike_Anne_007.jpg',534,400),
      new Array('Photo 4','Doyle_Mike_Anne_008.jpg',534,400),
      new Array('Photo 5','Doyle_Mike_Anne_009.jpg',534,400),
      new Array('Photo 6','Doyle_Mike_Anne_010.jpg',534,400),
      new Array('Photo 7','Doyle_Mike_Anne_011.jpg',534,400),
      new Array('Photo 8','Doyle_Mike_Anne_012.jpg',534,400),
      new Array('Photo 9','Doyle_Mike_Anne_013.jpg',534,400)
    )
  ),

  new Array('Vista Lighting images','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','452_RT8.jpg',267,400),
      new Array('Photo 2','460_RT8.jpg',267,400),
      new Array('Photo 3','473_RT8.jpg',601,400),
      new Array('Photo 4','479_RT8.jpg',267,400),
      new Array('Photo 5','496_RT8.jpg',601,400),
      new Array('Photo 6','6956_A.jpg',667,400),
      new Array('Photo 7','6956_B.jpg',600,400),
      new Array('Photo 8','6956_C.jpg',267,400),
      new Array('Photo 9','6956_D.jpg',600,400),
      new Array('Photo 10','6956_E.jpg',600,400),
      new Array('Photo 11','6956_H.jpg',632,400),
      new Array('Photo 12','B003416_type.jpg',619,400),
      new Array('Photo 13','B31S280000.jpg',267,400),
      new Array('Photo 14','BrickHouse.jpg',601,400),
      new Array('Photo 15','C003416.jpg',628,400),
      new Array('Photo 16','D003416.jpg',608,400),
      new Array('Photo 17','D003418.jpg',527,400),
      new Array('Photo 18','DSCF0260.jpg',268,400),
      new Array('Photo 19','DSCF0265.jpg',268,400),
      new Array('Photo 20','E003416.jpg',612,400),
      new Array('Photo 21','F003416.jpg',609,400),
      new Array('Photo 22','G003416.jpg',270,400),
      new Array('Photo 23','H003416.jpg',289,400),
//      new Array('Photo 24','LastNight.jpg',599,400),
//      new Array('Photo 25','Path_light.jpg',406,400),
      new Array('Photo 24','pathlight1.jpg',378,400),
      new Array('Photo 25','pathlight3.jpg',326,400),
      new Array('Photo 26','pathlight4.jpg',325,400),
      new Array('Photo 27','pathlight6.jpg',327,400),
//      new Array('Photo 30','Tonight.jpg',611,400)
      new Array('Photo 28','VISTA SHOTS 0011.jpg',327,400),
      new Array('Photo 29','VISTA SHOTS 0021-1.jpg',327,400),
      new Array('Photo 30','VISTA SHOTS 0041-1.jpg',327,400),
      new Array('Photo 31','VISTA SHOTS 0051-1.jpg',327,400),
      new Array('Photo 32','VISTA SHOTS 036-1.jpg',598,400),
      new Array('Photo 33','Vista Lighting 010.jpg',601,400),
      new Array('Photo 34','Vista Lighting 011.jpg',601,400),
      new Array('Photo 35','Vista Lighting 012.jpg',601,400),
      new Array('Photo 36','Vista Lighting 013.jpg',601,400),
      new Array('Photo 37','Vista Lighting 015.jpg',601,400),
      new Array('Photo 38','Vista Lighting 016.jpg',601,400),
      new Array('Photo 39','Vista Lighting 017.jpg',601,400),
      new Array('Photo 40','Vista Lighting 018.jpg',601,400),
      new Array('Photo 41','Vista Lighting 023.jpg',268,400),
      new Array('Photo 42','Vista Lighting 024.jpg',268,400),
      new Array('Photo 43','Vista Lighting 025.jpg',268,400),
      new Array('Photo 44','Vista Lighting 030.jpg',268,400),
      new Array('Photo 45','Vista Lighting 031.jpg',598,400),
      new Array('Photo 46','Vista Lighting 032.jpg',268,400),
      new Array('Photo 47','Vista Lighting 033.jpg',268,400),
      new Array('Photo 48','Vista Lighting 035.jpg',268,400),
      new Array('Photo 49','Vista Lighting 036.jpg',268,400),
      new Array('Photo 50','Vista Lighting 041.jpg',613,400),
      new Array('Photo 51','Vista Lighting 042.jpg',613,400),
      new Array('Photo 52','Vista Lighting 043.jpg',613,400),
      new Array('Photo 53','Vista Lighting 044.jpg',613,400),
      new Array('Photo 54','Vista Lighting 050.jpg',601,400),
      new Array('Photo 55','Vista Lighting 051.jpg',267,400),
      new Array('Photo 56','Vista Lighting 053.jpg',267,400),
      new Array('Photo 57','Vista Lighting 056.jpg',267,400),
      new Array('Photo 58','Vista Lighting 057.jpg',267,400),
      new Array('Photo 59','Vista Lighting 058.jpg',601,400),
      new Array('Photo 60','Vista Lighting 061.jpg',268,400),
      new Array('Photo 61','Vista Lighting 029.jpg',268,400)

    )
  ),
  
  new Array('Outdoor Kitchens','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Outdoor_Living_Kitchen_001.jpg',534,400),
      new Array('Photo 2','Outdoor_Living_Kitchen_002.jpg',534,400),
      new Array('Photo 3','Outdoor_Living_Kitchen_003.jpg',534,400),
      new Array('Photo 4','Outdoor_Living_Kitchen_004.jpg',534,400),
      new Array('Photo 5','Outdoor_Living_Kitchen_018.jpg',534,400),
      new Array('Photo 6','Outdoor_Living_Kitchen_025.jpg',603,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]);
}
