
smallSizes = new Array(77,77);
smallSizes2 = new Array(400,310);
mediumSizes = new Array(200,150);
largeSizes = new Array(400,310);
pageName = 'driveways-patios-turf/san-diego-driveways.html';
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_pavers18.jpg',408,309),
	  new Array('Photo 2','new_pavers20.jpg',288,400),
	  new Array('Photo 3','paver_000.jpg',410,313),
	  new Array('Photo 4','paver_001.jpg',408,309),
	  new Array('Photo 5','2after.jpg',408,306),
      new Array('Photo 6','paver_002.jpg',408,309),
	  new Array('Photo 7','paver_013.jpg',408,309),
	  new Array('Photo 8','new_pavers05.jpg',408,309),
	  new Array('Photo 9','new_pavers06.jpg',408,309),
	  new Array('Photo 10','new_pavers09.jpg',408,309),
	  new Array('Photo 11','new_pavers12.jpg',408,309),
	  new Array('Photo 12','new_pavers13.jpg',408,309),
	  new Array('Photo 13','new_pavers14.jpg',408,309),
	  new Array('Photo 14','SRAMegaBerg043.jpg',408,301),
	  new Array('Photo 15','SRAdublin020.jpg',408,286),
	  new Array('Photo 16','SRAArbel001.jpg',375,500),
	  new Array('Photo 17','SRABerg007.jpg',361,500),
	  new Array('Photo 18','SRACambridge019.jpg',408,296),
	  new Array('Photo 19','SRAMegaBerg033.jpg',304,450),
	  new Array('Photo 20','SRAdublin007.jpg',370,450),
	  new Array('Photo 21','SRAdublin021.jpg',408,316),
	  new Array('Photo 22','STNCambridge007.jpg',289,450),
	  new Array('Photo 23','STNBergeracMegaBerg003.jpg',289,450),
	  new Array('Photo 24','SRAmega005.jpg',310,450)
	  
    )
  ),
  
    new Array('Retaining Walls, Walls and Stone','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
     
      new Array('Photo 1','PC130443.jpg',400,300),
	  new Array('Photo 2','P6280431.jpg',400,300),
	  new Array('Photo 3','PC150211.jpg',400,300),
	  new Array('Photo 4','P5100317.jpg',400,300),
	  new Array('Photo 5','PB010395.jpg',400,300),
	  new Array('Photo 6','P6280429.jpg',400,300),
	  new Array('Photo 7','PC190224.jpg',400,300),
	  new Array('Photo 8','624594129_dsc_1097.jpg',400,300),
	  new Array('Photo 9','PA260722.jpg',400,300),
	  new Array('Photo 10','PC130449.jpg',400,300),
	  new Array('Photo 11','PA200127.jpg',400,300),
	  new Array('Photo 12','P2230472.jpg',400,300),
	  new Array('Photo 13','landscape_004.jpg',408,309),  
      new Array('Photo 14','landscape_007.jpg',408,309),
      new Array('Photo 15','landscape_009.jpg',408,309),
	  new Array('Photo 16','P6250401.jpg',408,309),
	  new Array('Photo 17','paver_003.jpg',408,309),
	  new Array('Photo 18','paver_014.jpg',408,309),
      new Array('Photo 19','paver_018.jpg',408,309),
	  new Array('Photo 20','P5040537.jpg',500,375),
	  new Array('Photo 21','P5040534.jpg',375,500),
	  new Array('Photo 22','P4160505.jpg',500,375),
	  new Array('Photo 23','P4160507.jpg',500,375),
	  new Array('Photo 24','P4160499.jpg',500,375)
	  
    )
  ),


new Array('Artificial Grass','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
	  new Array('Photo 1','residential30TH.jpg',171,137),
	  new Array('Photo 2','residential27TH.jpg',171,137),
	  new Array('Photo 3','residential8TH.jpg',171,137),
	  new Array('Photo 4','pool_03.jpg',171,137),
	  new Array('Photo 5','pool_02.jpg',171,137),
	  new Array('Photo 6','putting-greens5TH.jpg',171,137),
	  new Array('Photo 7','residential29TH.jpg',171,137),
	  new Array('Photo 8','pool_01.jpg',171,137)
      
	  
    )
  ),
  
new Array('Tile and Wood Flooring','images/photos/big/','images/photos/big/','images/photos/big/',
    new Array(
	 // new Array('Photo 1','residential30TH.jpg',400,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]);
}

