
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 2;
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('BlueStone','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
     new Array(
      new Array('Photo 1','bluestone01.jpg',400,300),
      new Array('Photo 2','bluestone02.jpg',400,263),
     /* new Array('Photo 3','bluestone03.jpg',400,300),*/
      new Array('Photo 3','bluestone04.jpg',400,263),
      new Array('Photo 4','bluestone05.jpg',400,263),
      new Array('Photo 5','bluestone06.jpg',400,263),
      new Array('Photo 6','bluestone13.jpg',400,230),
      new Array('Photo 7','bluestone14.jpg',400,263),
      new Array('Photo 8','0907_various jobs 053.jpg',534,400),
      new Array('Photo 9','0907_various jobs 053_2.jpg',534,400),
      new Array('Photo 10','0907_various jobs 054.jpg',534,400),
      new Array('Photo 11','0907_various jobs 055.jpg',534,400),
      new Array('Photo 12','0907_various jobs 056.jpg',534,400),
      new Array('Photo 13','0907_various jobs 057.jpg',534,400),
      new Array('Photo 14','0907_various jobs 058.jpg',534,400),
      new Array('Photo 15','0907_various jobs 059.jpg',534,400),
      new Array('Photo 16','0907_various jobs 060.jpg',534,400),
      new Array('Photo 17','0907_various jobs 061.jpg',534,400),
      new Array('Photo 18','0907_various jobs 062.jpg',300,400)

    )
  ),

  new Array('Retaining Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
   new Array(
    new Array('Photo 1','walls01.jpg',400,263),
    new Array('Photo 2','walls02.jpg',400,263),
    new Array('Photo 3','walls03.jpg',400,263),
    new Array('Photo 4','walls04.jpg',400,300),
    new Array('Photo 5','walls05.jpg',400,300),
    new Array('Photo 6','walls06.jpg',400,300),
	new Array('Photo 7','walls13.jpg',400,300),
	new Array('Photo 8','0907_various jobs 019.jpg',534,400),
    new Array('Photo 9','0907_various jobs 021.jpg',534,400),
    new Array('Photo 10','0907_various jobs 027.jpg',300,400),
    new Array('Photo 11','0907_various jobs 029.jpg',534,400),
    new Array('Photo 12','0907_various jobs 043.jpg',534,400),
    new Array('Photo 13','0907_various jobs 063.jpg',534,400),
	new Array('Photo 14','0907_A_various jobs toms camera 003.jpg',534,400),
    new Array('Photo 15','0907_A_various jobs toms camera 004.jpg',534,400),
    new Array('Photo 16','0907_A_various jobs toms camera 005.jpg',534,400),
    new Array('Photo 17','0907_A_various jobs toms camera 006.jpg',534,400),
    new Array('Photo 18','0907_A_various jobs toms camera 118.jpg',534,400),
    new Array('Photo 19','0907_A_various jobs toms camera 119 .jpg',534,400),
    new Array('Photo 20','0907_A_various jobs toms camera 123.jpg',534,400),
    new Array('Photo 21','StoneScapes-DSC04270_1.jpg',300,400),
    new Array('Photo 22','StoneScapes-DSC04464.jpg',534,400),
    new Array('Photo 23','StoneScapes-DSC04465.jpg',534,400),
    new Array('Photo 24','StoneScapes-DSC04466.jpg',534,400)

    )
  ),

  new Array('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
   new Array(
    new Array('Photo 1','pavers01.jpg',400,263),
    new Array('Photo 2','pavers02.jpg',400,263),
    new Array('Photo 3','pavers03.jpg',400,300),
    new Array('Photo 4','pavers04.jpg',400,300),
    new Array('Photo 5','pavers05.jpg',400,300),
    new Array('Photo 6','pavers06.jpg',400,300),
    new Array('Photo 7','pavers08.jpg',400,300),
    new Array('Photo 8','pavers10.jpg',400,300),
    new Array('Photo 9','pavers12.jpg',400,300),
    new Array('Photo 10','pavers13.jpg',400,300),
    new Array('Photo 11','pavers14.jpg',400,320),
    new Array('Photo 12','pavers15.jpg',400,320),
    new Array('Photo 13','pavers16.jpg',400,320),
    new Array('Photo 14','pavers17.jpg',240,226)
  )
),

  new Array('Stone Veneer','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
     new Array('Photo 1','stoneveneer01.jpg',400,300),
     new Array('Photo 2','stoneveneer02.jpg',400,300),
     new Array('Photo 3','stoneveneer03.jpg',400,300),
     new Array('Photo 4','stoneveneer04.jpg',400,300),
     new Array('Photo 5','stone_veneer_ssd_1.jpg',268,400),
	 new Array('Photo 6','0907_A_various jobs toms camera 025.jpg',534,400),
     new Array('Photo 7','0907_A_various jobs toms camera 026.jpg',534,400),
     new Array('Photo 8','0907_A_various jobs toms camera 027.jpg',534,400),
     new Array('Photo 9','0907_A_various jobs toms camera 028.jpg',534,400),
     new Array('Photo 10','0907_A_various jobs toms camera 029.jpg',534,400),
     new Array('Photo 11','0907_A_various jobs toms camera 030.jpg',534,400),
     new Array('Photo 12','0907_A_various jobs toms camera 031.jpg',534,400),
     new Array('Photo 13','0907_A_various jobs toms camera 032.jpg',534,400),
     new Array('Photo 14','0907_A_various jobs toms camera 117.jpg',534,400),
     new Array('Photo 15','0907_various jobs 031.jpg',534,400),
     new Array('Photo 16','0907_various jobs 049.jpg',534,400),
     new Array('Photo 17','0907_various jobs 051.jpg',300,400)

    )
  ),

 // new Array('Concrete','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
   // new Array(
    //new Array('Photo 1','concrete01.jpg',400,300),
    //new Array('Photo 2','concrete02.jpg',400,300),
    //new Array('Photo 3','concrete03.jpg',400,300),
   //new Array('Photo 4','concrete04.jpg',400,300)
//    )
//  ),

  new Array('Stone Tile','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
     new Array('Photo 1','stonetile01.jpg',400,300),
     new Array('Photo 2','stonetile02.jpg',400,300),
     new Array('Photo 3','stonetile03.jpg',400,300),
     new Array('Photo 4','stonetile04.jpg',400,300),
     new Array('Photo 5','stonetile05.jpg',400,300)
    )
  ),

  new Array('Award Winning Display','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','home-garden-show1.jpg',614,355),
      new Array('Photo 2','home-garden-show2.jpg',600,400),
      new Array('Photo 3','home-garden-show3.jpg',600,400),	  
      new Array('Photo 4','Fireplace_0170_opt.jpg',266,400),
      new Array('Photo 5','StoneScapes_set_031507a.jpg',602,400)
      //new Array('Photo 3','CIMG0806.jpg',425,400),
     // new Array('Photo 4','CIMG0815.jpg',500,375)
    )
  ),

  new Array('Awards','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Blue-ribbon.jpg',188,400),
      new Array('Photo 2','Best-of-show-plaq.jpg',551,400)
    )
  ),

  new Array('Custom Stone Work','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','custom_stone_work_041.jpg',500,291),
      new Array('Photo 2','0907_various jobs 063.jpg',534,400),
	  new Array('Photo 3','CIMG0059.jpg',219,400),
      new Array('Photo 4','CIMG2050.jpg',489,400),
      new Array('Photo 5','DSCN5647.jpg',351,400),
      new Array('Photo 6','RC-06-0079.jpg',610,400),
      new Array('Photo 7','RC-08-008.jpg',534,400),
      new Array('Photo 8','RC-08-009.jpg',701,389),
      new Array('Photo 9','RC-08-020.jpg',540,400),
      new Array('Photo 10','RC-08-024.jpg',534,400),
      new Array('Photo 11','RC-08-1976.jpg',543,401),
      new Array('Photo 12','RC-08-1982.jpg',534,400),
      new Array('Photo 13','RC-08-1984.jpg',639,400),
      new Array('Photo 14','RC-08-1985.jpg',700,390),
      new Array('Photo 15','RC-08-1988.jpg',534,400),
      new Array('Photo 16','RC-08-1996.jpg',564,400),
      new Array('Photo 17','RC-08-2014.jpg',534,400),
      new Array('Photo 18','RC-08-2016.jpg',534,400),
      new Array('Photo 19','RC-08-2069.jpg',354,400),
      new Array('Photo 20','RC-08-2071.jpg',497,400),
      new Array('Photo 21','StoneScapes-_-Stone-Store-003.jpg',534,400),
      new Array('Photo 22','StoneScapes-_-Stone-Store-004.jpg',534,400),
      new Array('Photo 23','StoneScapes-_-Stone-Store-005.jpg',534,400),
      new Array('Photo 24','StoneScapes-_-Stone-Store-006.jpg',534,400),
      new Array('Photo 25','StoneScapes-_-Stone-Store-007.jpg',534,400),
      new Array('Photo 26','StoneScapes-_-Stone-Store-008.jpg',534,400),
      new Array('Photo 27','StoneScapes-_-Stone-Store-009.jpg',534,400),
      new Array('Photo 28','StoneScapes-_-Stone-Store-010.jpg',534,400)

    )
  ),

  new Array('Patios and Walkways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','driveway_pavers_49.jpg',482,214),
      new Array('Photo 2','driveway_pavers_56.jpg',476,225),
      new Array('Photo 3','PATIOS-Marks-035.jpg',622,400),
      new Array('Photo 4','patio_2207.jpg',500,375),
      new Array('Photo 5','patio_2219.jpg',500,375),
      new Array('Photo 6','patio_2242.jpg',500,375),
      new Array('Photo 7','patio_a.jpg',500,295),
      new Array('Photo 8','patio_b.jpg',500,375),
      new Array('Photo 9','patio_c.jpg',500,275),
      new Array('Photo 10','pavers_621.jpg',500,375),
      new Array('Photo 11','POOL-391.jpg',700,153),
	  new Array('Photo 12','patios_walkways1.jpg',534,400),
      //new Array('Photo 13','patios_walkways2.jpg',534,400),
      new Array('Photo 13','patios_walkways3.jpg',534,400),
      new Array('Photo 14','patios_walkways4.jpg',534,400),
      new Array('Photo 15','patios_walkways5.jpg',534,400),
      new Array('Photo 16','patios_walkways6.jpg',534,400),
      new Array('Photo 17','patios_walkways7.jpg',534,400),
      new Array('Photo 18','patios_walkways8.jpg',534,400),
      new Array('Photo 19','patios_walkways9.jpg',534,400),
	  new Array('Photo 20','patios_walkways10.jpg',534,400),
      new Array('Photo 21','patios_walkways11.jpg',534,400),
      new Array('Photo 22','patios_walkways12.jpg',534,400),
	 // new Array('Photo 24','patios-walkways-0907-13.jpg',534,400),
      new Array('Photo 23','patios-walkways-0907-14.jpg',534,400),
      new Array('Photo 24','patios-walkways-0907-15.jpg',534,400),
      new Array('Photo 25','patios-walkways-0907-16.jpg',534,400),
      new Array('Photo 26','patios-walkways-0907-17.jpg',534,400),
      new Array('Photo 27','patios-walkways-0907-18.jpg',534,400),
      new Array('Photo 28','patios-walkways-0907-19.jpg',534,400),
      new Array('Photo 29','patios-walkways-0907-20.jpg',534,400),
      new Array('Photo 30','patios-walkways-0907-21.jpg',534,400),
      new Array('Photo 31','patios-walkways-0907-22.jpg',534,400),
      new Array('Photo 32','patios-walkways-0907-23.jpg',534,400),
      new Array('Photo 33','patios-walkways-0907-24.jpg',534,400),
      new Array('Photo 34','patios-walkways-0907-25.jpg',534,400),
	  new Array('Photo 35','StoneScapes-DSC04415_1.jpg',534,400),
      new Array('Photo 36','StoneScapes-DSC04417.jpg',534,400),
      new Array('Photo 37','StoneScapes-DSC04425_1.jpg',534,400)
    )
  ),
 

  new Array('Stone Fireplaces','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','fireplace.jpg',433,400),
	  new Array('Photo 2','071031063302.jpg',299,400)
	  
    )
  ),

  new Array('Tradeshow Exhibits','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','H-G-Show-2010-6126.jpg',267,400),
      new Array('Photo 2','H-G-Show-2010-6138.jpg',267,400),
      new Array('Photo 3','H-G-Show-2010-6152.jpg',601,400),
      new Array('Photo 4','H-G-Show-2010-6165.jpg',601,400),
      new Array('Photo 5','H-G-Show-2010-6166.jpg',601,400),
      new Array('Photo 6','H-G-Show-2010-6169.jpg',601,400),
      new Array('Photo 7','H-G-Show-2010-6170.jpg',601,400),
      new Array('Photo 8','H-G-Show-2010-6171.jpg',601,400),
      new Array('Photo 9','H-G-Show-2010-6172.jpg',601,400),
      new Array('Photo 10','H-G-Show-2010-6173.jpg',601,400),
      new Array('Photo 11','H-G-Show-2010-6176.jpg',601,400),
      new Array('Photo 12','StoneScapes-P2297803.jpg',611,400),
      new Array('Photo 13','StoneScapes-P2297804.jpg',330,401),
      new Array('Photo 14','StoneScapes-P2297805.jpg',534,400),
      new Array('Photo 15','StoneScapes-P2297806.jpg',534,400),
      new Array('Photo 16','StoneScapes-P2297814.jpg',534,401),
      new Array('Photo 17','StoneScapes-P2297816.jpg',431,400),
      new Array('Photo 18','StoneScapes-P2297820.jpg',534,400),
      new Array('Photo 19','StoneScapes-P2297821.jpg',534,400),  
      new Array('Photo 20','StoneScapes-P2297822.jpg',534,400),
      new Array('Photo 21','StoneScapes-P2297824.jpg',534,400),
	  new Array('Photo 22','Fall 08 H & G Show 001.jpg',534,400),
      new Array('Photo 23','Fall 08 H & G Show 002.jpg',534,400),
      new Array('Photo 24','Fall 08 H & G Show 003.jpg',534,400),
      new Array('Photo 25','Fall 08 H & G Show 004.jpg',534,400),
      new Array('Photo 26','Fall 08 H & G Show 005.jpg',534,400),
      new Array('Photo 27','Fall 08 H & G Show 008.jpg',534,400),
      new Array('Photo 28','Fall 08 H & G Show 009.jpg',534,400),
      new Array('Photo 29','Fall 08 H & G Show 013.jpg',650,400),
      new Array('Photo 30','Fall 08 H & G Show 014.jpg',529,400),
      new Array('Photo 31','Fall 08 H & G Show 021.jpg',534,400),
      new Array('Photo 32','Fall 08 H & G Show 022.jpg',534,400),
      new Array('Photo 33','Fall-08-H-&-G-Show-029.jpg',534,400)
	  
    )
  ),
  
  new Array('Water Features','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Photo 1','waterfall_3181.jpg',500,375),
      new Array('Photo 2','waterfall_3181_1.jpg',500,375),
	  new Array('Photo 3','0907_various jobs 012.jpg',534,400),
      new Array('Photo 4','0907_various jobs 013.jpg',300,400),
      new Array('Photo 5','0907_various jobs 016.jpg',534,400),
      new Array('Photo 6','0907_various jobs 023.jpg',534,400),
	  new Array('Photo 7','StoneScapes-DSC04401.jpg',534,400),
      new Array('Photo 8','StoneScapes-DSC04405.jpg',534,400),
      new Array('Photo 9','StoneScapes-DSC04410.jpg',534,400),
	  new Array('Photo 10','StoneScapes-DSC04270.jpg',300,400),
      new Array('Photo 11','StoneScapes-DSC04402.jpg',534,400)

    )
  ),
  
    new Array('Belgard','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
     new Array(
      new Array('Photo 1','Belgard-Arbel_01.jpg',398,400),
      new Array('Photo 2','Belgard-Arbel_04.jpg',282,400),
      new Array('Photo 3','Belgard-BergCircle_02.jpg',527,401),
      new Array('Photo 4','Belgard-Bullnose_03.jpg',268,400),
      new Array('Photo 5','Belgard-Celtik_07.jpg',268,400),
      new Array('Photo 6','Belgard-DubCob_04.jpg',316,400),
      new Array('Photo 7','Belgard-Holland_02.jpg',322,400),
      new Array('Photo 8','Belgard-KSCentury_01.jpg',398,400),
      new Array('Photo 9','Belgard-KSCurv_01.jpg',600,363),
      new Array('Photo 10','Belgard-KSCurv_03.jpg',520,400),
      new Array('Photo 11','Belgard-KSCurv_05.jpg',600,396),
      new Array('Photo 12','Belgard-MegaBergCircle_02.jpg',314,400),
      new Array('Photo 13','Belgard-MegaBerg_04.jpg',523,400),
      new Array('Photo 14','Belgard-Portage_01.jpg',451,400),
      new Array('Photo 15','Belgard-Portage_02.jpg',403,400)
    )
  ),

  new Array('Techo-Bloc','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Athena-Rotondo-Quarry01_268_518.jpg',600,387),
      new Array('Photo 2','Athena_A00069_4911.jpg',600,400),
      new Array('Photo 3','Athena_A00069_4921.jpg',600,400),
      new Array('Photo 4','Athena_Quarry_Neptune_A00068.jpg',600,400),
      new Array('Photo 5','Athena_Quarry_Neptune_A00068_5068.jpg',600,400),
      new Array('Photo 6','Athena_Quarry_Neptune_A00068_5072.jpg',267,400),
      new Array('Photo 7','Athena_Quarry_Neptune_A00068_5197.jpg',600,400),
      new Array('Photo 8','Athena_Quarry_Neptune_A00070_4965.jpg',600,400),
      new Array('Photo 9','Athena_Quarry_Neptune_A49_6412.jpg',600,400),
      new Array('Photo 10','Athena_Quarry_Neptune_A49_6519.jpg',600,400),
      new Array('Photo 11','Athena_Quary_Neptune_A00067_Lanahan2.jpg',600,400),
      new Array('Photo 12','Blu_5778_B_1.jpg',600,400),
      new Array('Photo 13','Chantilly_7314.jpg',600,400),
      new Array('Photo 14','Chantilly_7315_2.jpg',571,400),
      new Array('Photo 15','Creta.jpg',334,400),
      new Array('Photo 16','Elena_A000021_02.jpg',600,400),
      new Array('Photo 17','Hera_A00044_08.jpg',600,400),
      new Array('Photo 18','Inca_Rocka_Atlantis_A00101_5354.jpg',267,400),
      new Array('Photo 19','MiniCretaPlus_A00088_6761.jpg',600,400),
      new Array('Photo 20','MiniCretaPlus_Hera_A00102_Fireplace.jpg',600,400),
      new Array('Photo 21','Pillar_StonedgeCap_Hera_A00104_5612.jpg',600,400),
      new Array('Photo 22','QuarryStone_2377.jpg',600,400),
      new Array('Photo 23','Santorini_A00043_14.jpg',600,400),
      new Array('Photo 24','Trias_00391_07.jpg',600,400),
      new Array('Photo 25','Trias_MiniCretaPlus_A00088_6725.jpg',336,400),
      new Array('Photo 26','Victorien13-1010.jpg',600,383),
      new Array('Photo 27','Villagio_00396_7568.jpg',600,400)
	  
   )
  ),
  
    new Array('Stone Store Display','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
     new Array(
      new Array('Photo 1','SS Display-0009.jpg',410,400),
      new Array('Photo 2','SS Display-0018.jpg',604,375),
      new Array('Photo 3','SS Display-0039.jpg',421,400),
      new Array('Photo 4','SS Display-0043.jpg',267,400),
      new Array('Photo 5','SS Display-0044.jpg',267,400),
      new Array('Photo 6','SS Display-0045.jpg',267,400),
      new Array('Photo 7','SS Display-0049.jpg',600,400),
      new Array('Photo 8','SS Display-0055.jpg',600,400),
      new Array('Photo 9','SS Display-0056.jpg',267,400),
      new Array('Photo 10','SS Display-0068.jpg',600,400),
      new Array('Photo 11','SS Display-0070.jpg',600,400),
      new Array('Photo 12','SS Display-0074.jpg',600,400),
      new Array('Photo 13','SS Display-9943.jpg',600,400),
      new Array('Photo 14','SS Display-9948.jpg',600,400),
      new Array('Photo 15','SS Display-9952.jpg',267,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]);
}

function go2section(section) {
  window.location.href = pageName+'?section='+section;
}
