
smallSizes = new Array(77,77);
mediumSizes = new Array(200,150);
pageName = 'photos.htm';
scriptName = 'photos.js';
countX = 4;
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('Paver Driveways, Walkways, and Patios','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','new_pavers15.jpg',408,309),
	  new Array('Photo 2','new_pavers16.jpg',408,309),
	  new Array('Photo 3','new_pavers17.jpg',408,309),
	  new Array('Photo 4','new_pavers18.jpg',408,309),
	  new Array('Photo 5','new_pavers19.jpg',408,309),
	  new Array('Photo 6','new_pavers20.jpg',288,400),
	  new Array('Photo 7','paver_000.jpg',410,313),
	  new Array('Photo 8','paver_001.jpg',408,309),
	  new Array('Photo 9','2after.jpg',408,306),
      new Array('Photo 10','paver_002.jpg',408,309),
      new Array('Photo 11','paver_007.jpg',408,309),
	  new Array('Photo 12','paver_013.jpg',408,309),
	  new Array('Photo 13','paver_030.jpg',408,309),
      new Array('Photo 14','paver_031.jpg',408,309),
	  new Array('Photo 15','new_pavers02.jpg',408,309),
	  new Array('Photo 16','new_pavers03.jpg',408,309),
	  new Array('Photo 17','new_pavers04.jpg',408,309),
	  new Array('Photo 18','new_pavers05.jpg',408,309),
	  new Array('Photo 19','new_pavers06.jpg',408,309),
	  new Array('Photo 20','1after.jpg',408,306),
	  new Array('Photo 21','new_pavers07.jpg',408,309),
	  new Array('Photo 22','new_pavers09.jpg',408,309),
	  new Array('Photo 23','new_pavers10.jpg',408,309),
	  new Array('Photo 24','new_pavers11.jpg',408,309),
	  new Array('Photo 25','new_pavers12.jpg',408,309),
	  new Array('Photo 26','new_pavers13.jpg',408,309),
	  new Array('Photo 27','3after.jpg',408,306),
	  new Array('Photo 28','new_pavers14.jpg',408,309),
	  new Array('Photo 29','SRACambridge001.jpg',408,321),
	  new Array('Photo 30','SRADublin017.jpg',408,500),
	  new Array('Photo 31','SRAMegaBerg002.jpg',408,323),
	  new Array('Photo 32','SRAMegaBerg043.jpg',408,301),
	  new Array('Photo 33','4after.jpg',408,306),
	  new Array('Photo 34','STNDublin004.jpg',408,500),
	  new Array('Photo 35','SRAdublin020.jpg',408,286),
	  new Array('Photo 36','SRAArbel001.jpg',375,500),
	  new Array('Photo 37','SRABerg007.jpg',361,500),
	  new Array('Photo 38','SRABerg010.jpg',338,500),
	  new Array('Photo 39','SRAbergerac012.jpg',443,500),
	  new Array('Photo 40','SRABergerac014.jpg',265,500),
	  new Array('Photo 41','SRAbergeracdublin002.jpg',352,500),
	  new Array('Photo 42','SRACambridge002.jpg',395,500),
	  new Array('Photo 43','SRACambridge003.jpg',431,500),
	  new Array('Photo 44','SRACambridge004.jpg',408,322),
	  new Array('Photo 45','SRACambridge011.jpg',339,500),
	  new Array('Photo 46','SRACambridge013.jpg',341,500),
	  new Array('Photo 47','SRACambridge015.jpg',408,313),
	  new Array('Photo 48','SRACambridge018.jpg',408,193),
	  new Array('Photo 49','SRACambridge019.jpg',408,296),
	  new Array('Photo 50','SRAmegaberg007.jpg',408,320),
	  new Array('Photo 51','SRAMegaBerg047.jpg',308,450),
	  new Array('Photo 52','STNCambridge006.jpg',408,298),
	  new Array('Photo 53','STNCambridge003.jpg',408,310),
	  new Array('Photo 54','SRAMegaBerg004.jpg',353,450),
	  new Array('Photo 55','SRAMegaBerg045.jpg',408,203),
	  new Array('Photo 56','SRADublin005.jpg',408,267),
	  new Array('Photo 57','STNCambridge002.jpg',408,273),
	  new Array('Photo 58','STNDublin002.jpg',408,211),
	  new Array('Photo 59','STNDublinCeltic004.jpg',408,264),
	  new Array('Photo 60','SRAMegaBerg033.jpg',304,450),
	  new Array('Photo 61','SRAdublin007.jpg',370,450),
	  new Array('Photo 62','SRACeltic002.jpg',333,450),
	  new Array('Photo 63','SRAdublin004.jpg',357,450),
	  new Array('Photo 64','SRAMegaBerg041.jpg',408,275),
	  new Array('Photo 65','SRAdublin006.jpg',408,245),
	  new Array('Photo 66','SRAMegaBerg005.jpg',371,450),
	  new Array('Photo 67','SRADublin029.jpg',358,450),
	  new Array('Photo 68','STNDublinCeltic002.jpg',408,298),
	  new Array('Photo 69','SRADublinCeltic001.jpg',408,270),
	  new Array('Photo 70','SRADublinCeltic002.jpg',334,450),
	  new Array('Photo 71','SRADublin022.jpg',286,450),
	  new Array('Photo 72','SRAMegaBerg042.jpg',356,450),
	  new Array('Photo 73','STNMegaBerg001.jpg',408,310),
	  new Array('Photo 74','STNDublin005.jpg',310,450),
	  new Array('Photo 75','SRAmega-bergcircle001.jpg',372,450),
	  new Array('Photo 76','SRAmega002.jpg',408,315),
	  new Array('Photo 77','SRAdublin021.jpg',408,316),
	  new Array('Photo 78','STNCambridgeCeltic001.jpg',408,304),
	  new Array('Photo 79','SRADublin014.jpg',408,308),
	  new Array('Photo 80','STNMegaBergCeltic001.jpg',408,301),
	  new Array('Photo 81','STNDublinCeltic003.jpg',408,306),
	  new Array('Photo 82','SRAmegaberg011.jpg',408,321),
	  new Array('Photo 83','SRAMegaBerg050.jpg',408,262),
	  new Array('Photo 84','SRAMegaBerg022.jpg',346,450),
	  new Array('Photo 85','SRAmega003.jpg',365,450),
	  new Array('Photo 86','SRAmega004.jpg',408,318),
	  new Array('Photo 87','STNCambridge007.jpg',289,450),
	  new Array('Photo 88','STNBergeracMegaBerg003.jpg',289,450),
	  new Array('Photo 90','SRAmega005.jpg',310,450),
	  new Array('Photo 91','SRAMegaBergCambridge001.jpg',408,146),
	  new Array('Photo 92','SRAMegaBergCeltic001.jpg',336,450),
	  new Array('Photo 93','SRAdublin018.jpg',359,450),
	  new Array('Photo 94','SRAMegaBerg021.jpg',408,303),
	  new Array('Photo 95','SRADublin0165.jpg',408,198),
	  new Array('Photo 96','SRAmegaberg010.jpg',353,450),
	  new Array('Photo 97','SRAMegaBerg024.jpg',408,191),
	  new Array('Photo 98','SRAmegaberg008.jpg',352,450),
	  new Array('Photo 99','SRAdublin012.jpg',306,450),
	  new Array('Photo 100','SRADublin003.jpg',371,450),
	  new Array('Photo 101','SRACambridgeHighland003.jpg',340,450),
	  new Array('Photo 102','SRAdublinbergceltic001.jpg',376,450)
	 
    )
  ),
  
    new Array('Artificial Grass','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','residential3TH.jpg',171,137),
	  new Array('Photo 2','residential15TH.jpg',171,137),
	  new Array('Photo 3','residential30TH.jpg',171,137),
	  new Array('Photo 4','residential27TH.jpg',171,137),
	  new Array('Photo 5','residential8TH.jpg',171,137),
	  new Array('Photo 6','residential10TH.jpg',171,137),
	  new Array('Photo 7','residential14TH.jpg',171,137),
	  new Array('Photo 8','pool_03.jpg',171,137),
	  new Array('Photo 9','residential23TH.jpg',171,137),
	  new Array('Photo 10','putting-greens12TH.jpg',171,137),
	  new Array('Photo 11','pool_02.jpg',171,137),
	  new Array('Photo 12','putting-greens5TH.jpg',171,137),
	  new Array('Photo 13','residential29TH.jpg',171,137),
	  new Array('Photo 14','pool_01.jpg',171,137)		
    )
  ),


new Array('Landscape Construction','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','landscape_003.jpg',408,309),
      new Array('Photo 2','landscape_004.jpg',408,309),  
      new Array('Photo 3','landscape_006.jpg',408,309),
      new Array('Photo 4','landscape_007.jpg',408,309),
      new Array('Photo 5','landscape_008.jpg',408,309),
      new Array('Photo 6','landscape_009.jpg',408,309),
      new Array('Photo 7','landscape_010.jpg',408,309),
      //new Array('Photo 8','landscape_011.jpg',408,309),
      //new Array('Photo 9','landscape_012.jpg',408,309), 
      new Array('Photo 8','landscape_015.jpg',408,309),	  
     // new Array('Photo 12','landscape_017.jpg',408,309),
      //new Array('Photo 9','P8100477.jpg',408,309),
      //new Array('Photo 10','P6210393.jpg',408,309),
      new Array('Photo 9','P6210386.jpg',408,309),
	  new Array('Photo 10','P6250401.jpg',408,309),
	  new Array('Photo 11','paver_003.jpg',408,309),
      new Array('Photo 12','paver_004.jpg',408,309),
      new Array('Photo 13','paver_005.jpg',408,309),
	  new Array('Photo 14','paver_008.jpg',408,309),
	  new Array('Photo 15','paver_014.jpg',408,309),
      new Array('Photo 16','paver_018.jpg',408,309)
	  
    )
  ),
  


   new Array('Plants and Irrigation','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Japanese Maple','001_Japanese-Maple.jpg',408,309),
      new Array('Roses','002_Roses.jpg',408,309),
      new Array('Sun Fuchsia','003_Sun-Fuchsia.jpg',408,309),
      new Array('Coleus Gardenia','004_Coleus_Gardenia.jpg',408,309),
      new Array('Oleander','005_Oleander.jpg',408,309),
      new Array('Morning Glory','006_Morning-Glory.jpg',408,309),
      new Array('Day Lillies Lobelia','007_Day-Lillies_Lobelia.jpg',408,309),
      new Array('Lantana Radiance','008_Lantana-Radiance.jpg',408,309),
      new Array('Plumeria','009_Plumeria.jpg',408,309),
      new Array('Bougainvillea','010_Bougainvillea.jpg',408,309),
      new Array('Jacaranda','011_Jacaranda.jpg',408,309),
      new Array('Irrigated Lawn','012_Irrigated-Lawn.jpg',408,309),
      new Array('King Palm','013_King-Palm.jpg',276,311),
      new Array('Bougainvillea','014_Bougainvillea.jpg',408,309),
      new Array('Aloe Tree','015_Aloe-Tree.jpg',324,311),
      new Array('Coleus','016_Coleus.jpg',408,309),
      new Array('Agapanthus','017_Agapanthus.jpg',408,309),
      new Array('Jasmine','018_Jasmine.jpg',408,309),
      new Array('Canna Lily','019_Canna-Lily.jpg',408,309),
      new Array('Mandevillea','020_Mandevillea.jpg',408,309),
      new Array('Giant Bird of Paradise','021_Giant-Bird-of-Paradise.jpg',408,309),
      new Array('Marigolds','022_Marigolds.jpg',408,309),
      new Array('Red Fountain Grass','023_Red-Fountain-Grass.jpg',408,309),
      new Array('Day Lilies','024_Day-Lilies.jpg',408,309),
      new Array('Impatiens','025_Impatiens.jpg',408,309),
      new Array('Tasmainian Tree Fern','026_Tasmainian-Tree-Fern.jpg',408,309),
      new Array('Tree Fern Close up','027_Tree-Fern-Close-up.jpg',408,309),
      new Array('Fox Tail Palm','028_Fox-Tail-Palm.jpg',326,310),
      new Array('Fox Tail Palm','029_Fox-Tail-Palm.jpg',408,309),
      new Array('Canna Lily','030_Canna-Lily.jpg',408,309),
      new Array('Mexican Sage','031_Mexican-Sage.jpg',408,309),
      new Array('Read Leaf Banana','032_Read-Leaf-Banana.jpg',408,309),
      new Array('Bromelia','033_Bromelia.jpg',408,309),
      new Array('Chocolate Aeonium','034_Chocolate-Aeonium.jpg',408,309),
      new Array('Aloe','035_Aloe.jpg',408,309),
      new Array('Angel Trumpets','036_Angel-Trumpets.jpg',408,309),
      new Array('Silk Tree','037_Silk-Tree.jpg',408,309),
      new Array('Purple Plum Leaf','038_Purple-Plum-Leaf.jpg',408,309),
      new Array('Magnolia','039_Magnolia.jpg',408,309),
      new Array('Agave','040_Agave.jpg',408,309),
      new Array('Lobelia','041_Lobelia.jpg',408,309),
      new Array('Philodendron','042_Philodendron.jpg',408,309),
      new Array('Sago Palm <br>(Blooming)','043_Sago-Palm-(Blooming).jpg',315,309),
      new Array('Fish Tail Palm','044_Fish-Tail-Palm.jpg',320,310),
      new Array('Triangle Palm','045_Triangle-Palm.jpg',321,310),
      new Array('Hong Kong<br>Orchid Tree','046_Hong-Kong-Orchid-Tree.jpg',408,309),
      new Array('Dahlia','047_Dahlia.jpg',408,309),
      new Array('Red Hot Poker','048_Red-Hot-Poker.jpg',340,310),
	  new Array('Plants and <br>Irrigation','P9240694.jpg',408,306),
	  new Array('Plants and <br>Irrigation','P9240697.jpg',408,306)
	  
    )
  )
   
 

 
)


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]);
}
