
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'water.htm';
scriptName = 'water.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('Water Feature','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
//		new Array('','wtr_564363-R1-05-19A.jpg',592,400), 
//		new Array('','wtr_564363-R1-06-18A.jpg',592,400), 
//		new Array('','wtr_Afton_MN_0003.jpg',592,400), 
		new Array('Hudson WI','wtr_Hudson_WI_0001.jpg',270,400), 
//		new Array('Hudson WI','wtr_Hudson_WI_0005.jpg',270,400), 
		new Array('Hudson WI','wtr_Hudson_WI_0006.jpg',270,400), 
//		new Array('Woodbury MN','wtr_Woodbury_MN_0003.jpg',592,400), 
		new Array('Woodbury MN','wtr_Woodbury_MN_0004.jpg',592,400), 
		new Array('Woodbury MN','wtr_Woodbury_MN_0005.jpg',270,400), 
		new Array('Woodbury MN','wtr_Woodbury_MN_0006.jpg',270,400), 	
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','rinngenbergs.jpg',592,400), 
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','rinngenbergs1.jpg',592,400), 
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','ringgenbers2.jpg',270,400), 
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','ringgenbers3.jpg',270,400), 
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','ringgenbergs4.jpg',592,400), 
		new Array('This beautiful koi pond with multiple streams is located in Hudson, Wisconsin.','rinngenbers5.jpg',270,400), 
		new Array('This two tiered koi pond with two babbling streams, multiple cascading falls, and a bubbling fountain, located in Woodbury, Minnesota was designed as an interactive playing area for children.','siefferts1.jpg',592,400), 
		new Array('This two tiered koi pond with two babbling streams, multiple cascading falls, and a bubbling fountain, located in Woodbury, Minnesota was designed as an interactive playing area for children.','siefferts2.jpg',592,400), 
		new Array('This two tiered koi pond with two babbling streams, multiple cascading falls, and a bubbling fountain, located in Woodbury, Minnesota was designed as an interactive playing area for children.','siefferts3.jpg',592,400), 
		new Array('This two tiered koi pond with two babbling streams, multiple cascading falls, and a bubbling fountain, located in Woodbury, Minnesota was designed as an interactive playing area for children.','siefferts4.jpg',592,400), 	
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_1.jpg',300,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_12.jpg',300,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_2.jpg',300,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_4.jpg',533,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_7.jpg',533,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_8.jpg',300,400), 
		new Array('This beautiful yet quaint pond with a 15 foot stream is located in Woodbury MN','np_9.jpg',533,400), 
		new Array('Hudson Wi, Hills of Troy development','np_hills_of_troy-1.jpg',533,400), 
		new Array('Hudson Wi, Hills of Troy development','np_hills_of_troy_pond.jpg',400,276), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8033.jpg',597,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8054.jpg',597,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8055.jpg',597,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8060.jpg',597,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8078.jpg',267,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8105.jpg',267,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8109.jpg',267,400), 
		new Array('This enormous 45" long water feature containing three waterfalls, a pond, and a pondless system is located in Troy Burne – Hudson WI','np_KM2_8125.jpg',267,400), 
		new Array('','np_Preview13_013.jpg',533,400), 
		new Array('','np_Preview15_015.jpg',533,400), 
		new Array('','np_Preview38_038.jpg',533,400), 
		new Array('','np_Preview39_039.jpg',533,400), 
		new Array('','np_Preview40_040.jpg',533,400), 
		new Array('This tranquil stream running beside a set of meandering paver stairs, is located in Forest Wi. (Near New Richmond WI.)','np_Preview41_041.jpg',533,400), 
		new Array('','np_Preview43_043.jpg',533,400), 
		new Array('','np_Preview44_044.jpg',533,400), 
		new Array('','np_Preview46_046.jpg',533,400), 
		new Array('','np_Preview51_051.jpg',533,400), 
		new Array('','np_Preview53_053.jpg',533,400), 
		new Array('','np_Preview54_054.jpg',533,400), 
		new Array('','np_Preview55_055.jpg',533,400), 
		new Array('','np_Preview56_056.jpg',533,400), 
		new Array('','np_Preview57_057.jpg',533,400), 
		new Array('','np_Preview58_058.jpg',533,400), 
		new Array('','np_Preview60_060.jpg',533,400), 
		new Array('','np_Preview61_061.jpg',533,400), 
		new Array('This beautiful oasis with dual waterfalls, a 50\' meandering stream, leading to a koi pond, located in Hudson WI','np_Preview62_062.jpg',533,400), 
		new Array('Pondless waterfall display provided for Bergmanns nursery in Clayton, WI','np_Preview6_006.jpg',533,400),	
      new Array('','t_apondless1.jpg',150,105),
      new Array('','t_ImagePOND009L.jpg',105,150),
      new Array('','t_ImagePOND013L.jpg',105,150),
      new Array('','t_ImagePOND025L.jpg',105,150),
      new Array('','t_ImagePOND049L.jpg',150,105),
      new Array('','t_ImagePOND054L.jpg',150,105),
      new Array('','t_ImagePOND060L.jpg',150,105),
      new Array('','t_ImageWATF003L.jpg',150,105),
      new Array('','t_ImageWATF007L.jpg',150,105),
      new Array('','t_ImageWATF012L.jpg',150,105),
      new Array('','t_ImageWATF015L.jpg',105,150),
      new Array('','t_ImageWATF075L.jpg',105,150)
    )
  )
)

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]);
  if (arImages[section][4][number][0]!='')
   showMessage('imagemediumname',arImages[section][4][number][0]);   
  else
   showMessage('imagemediumname','Photo '+Number(Number(number)+1));
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
