pageName = 'portphotos.htm';
scriptName = 'portfolio.js';

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Landscapes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','baf163.jpg',720,480,''), //12
//		new Array('','baf189.jpg',720,480,''), //15
		new Array('','baf218.jpg',720,480,''), //21
		new Array('','baf222.jpg',720,480,''), //22
		new Array('','baf224.jpg',720,480,''), //24
		new Array('','baf225.jpg',720,480,''), //25
		new Array('','lf014.jpg',640,480,''), //50
		new Array('','lf018.jpg',640,480,''), //53
		new Array('','lf019.jpg',640,480,''), //54
		new Array('','lf024.jpg',640,480,''), //58
		new Array('','lf041.jpg',640,480,''), //67
		new Array('','lf056.jpg',640,480,''), //68
		new Array('','lf057.jpg',640,480,''), //69
		new Array('','lpbaf132.jpg',720,480,''), //95
		new Array('','Drystack-fieldstone-wall..jpg',720,480,''),
        new Array('','garden1.jpg',180,150,'Garden with Hillside - Client was tired of mowing, now they just enjoy.'),
        new Array('','garden2.jpg',180,150,'This contemporary design lends itself to this contemporary house.')
    ),2,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',1
  ),
  new Array('Plants','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Alberta Spuce','Alberta-Spruce.jpg',320,480,''), 
		new Array('Astilbe','Astilbe.jpg',720,480,''), 
		new Array('Azalea, Hershey Red','Azalea-Hershey-Red.jpg',720,480,''), 
		new Array('Azalea, Purple Splendor','Azalea-Purple-2.jpg',720,480,''), 
		new Array('Azalea, Purple Splendor','Azalea-Purple.jpg',720,480,''), 
		new Array('Barberry, Crimson Pigmy','Barberry-Crimson-Pigmy-2.jpg',320,480,''), 
		new Array('Barberry, Crimson Pigmy','Barberry-Crimson-Pigmy.jpg',720,480,''), 
		new Array('Arborvitea, Berkman\'s','Berkman\'s-Arborvitea.jpg',320,480,''), 
		new Array('Spruce, Birds Nest','Bird\'s-Nest-Spruce.jpg',720,480,''), 
		new Array('Holly, China Girl','Blue-Holly.jpg',720,480,''), 
		new Array('Juniper, Blue Star','Blue-Star-Juniper.jpg',720,480,''), 
		new Array('Juniper, Bonsai','Boulevard-Bonsai-Juniper-2.jpg',720,480,''), 
		new Array('Juniper, Bonsai','Boulevard-Bonsai-Juniper.jpg',320,480,''), 
		new Array('Cypress, Boulevard','Boulevard-Cypress.jpg',320,480,''), 
		new Array('Fern, Japanese','Boxwood-Korean.jpg',720,480,''), 
		new Array('Laurel, Cherry','Cherry-Laurel.jpg',720,480,''), 
		new Array('Holly, China Girl','China-Girl-Holly.jpg',720,480,''), 
		new Array('Arborvitea, Rhiengold','Dwarf-Cryptomeria.jpg',720,480,''), 
		new Array('Spruce, Dwarf Glabosa','Dwarf-Glabosa-Spruce.jpg',720,480,''), 
		new Array('Aroborvitea, Dwarf Globe','Dwarf-Globe-Arborvitea.jpg',720,480,''), 
		new Array('Cypress, Dwarf Hinoki, Kosteri','Dwarf-Hinoki-Cypress.jpg',720,480,''), 
		new Array('Cypress, Dwarf Hinoki, Kosteri','Dwarf-Hinoki-Cyress.jpg',720,480,''), 
		new Array('Arborvitea, Rhiengold','Dwarf-Rhiengold-Arborvitea.jpg',720,480,''), 
		new Array('Aroborvitea, Emerald Green','Emerald-Green-Arborvitea.jpg',320,480,''), 
		new Array('Boxwood, English','English-Boxwood.jpg',320,480,''), 
		new Array('Fern, Autumn','Fern.jpg',720,480,''), 
		new Array('Nandina, Firepower','Firepower-Nandina.jpg',720,480,''), 
		new Array('Cyrptomeria, Dwarf Glabosa','Globosa-Cyrptomeria.jpg',720,480,''), 
		new Array('Cypress, Gold Thread','Gold-Thread-Cyress.jpg',720,480,''), 
		new Array('Euonymus, Gold Spot','Golden-Euonymus.jpg',720,480,''), 
		new Array('Spirea, Gold Flame','Goldflame-Spirea.jpg',720,480,''), 
		new Array('Nandina, Harbor Dwarf','Harbor-Dwarf-Nandina.jpg',720,480,''), 
		new Array('Holly, Compacta','Helleri-Holly.jpg',720,480,''), 
		new Array('Yew, Hicks','Hick\'s-Yew.jpg',320,480,''), 
		new Array('Cypress, Hinoki, Gracilis','Hinoki-Cyress.jpg',320,480,''), 
		new Array('Juniper, Hollywood','Hollywood-Juniper-2.jpg',320,480,''), 
		new Array('Juniper, Hollywood','Hollywood-Juniper-3.jpg',320,480,''), 
		new Array('Juniper, Hollywood','Hollywood-Juniper.jpg',320,480,''), 
		new Array('Hosta, Big Blue','Hosta-Big-Blue.jpg',720,480,''), 
		new Array('Grass, Jap. Forest Grass','Jap.-Forest-Grass-2.jpg',720,480,''), 
		new Array('Grass, Jap. Forest Grass','Jap.-Forest-Grass.jpg',720,480,''), 
		new Array('Maple, Jap. Bloodgood','Jap.-Maple-Bloodgood.jpg',720,480,''), 
		new Array('Maple, Jap. Coral Bark','Jap.-Maple-Green.jpg',320,480,''), 
//		new Array('','Jap.-Painted-Fern.jpg',720,480,''), 
//		new Array('','Leyland-Cypress-2.jpg',320,480,''), 
//		new Array('','Leyland-Cypress.jpg',320,480,''), 
		new Array('Magnolia, Mary Jane','Mary-Jane-Magnolia.jpg',320,480,''), 
		new Array('Mazus, White','Mazus-White.jpg',720,480,''), 
		new Array('Holly, Nellie Stevens','Nellie-Stevens-Holly.jpg',320,480,''), 
		new Array('Pieris Japonica, Mt. Fire','Pieris-Japonica-Mt.-Fire.jpg',720,480,''), 
		new Array('Pieris Japonica, Dorothy Wycoff','Pieris-Japonica.jpg',720,480,''), 
		new Array('Juniper, Procumbens ','Procumbens-Juniper.jpg',720,480,''), 
		new Array('Plum, Thundercloud','Purple-Leaf-Plum.jpg',320,480,''), 
		new Array('Redbud, Eastern Redbud','Red-Bud.jpg',320,480,''), 
		new Array('Juniper, Red Star','Red-Star-Juniper.jpg',320,480,''), 
		new Array('Rhododendron, Purple','Rhododendron.jpg',720,480,''), 
		new Array('Euonymus, Silver King','Silver-King-Euonymus.jpg',320,480,''), 
		new Array('Holly, Soft Touch','Soft-touch-holly.jpg',720,480,''), 
		new Array('Juniper, Spartan','Spartan-Juniper.jpg',320,480,''), 
		new Array('Spirea, Little Princess','Spirea-Anthony-Waterer.jpg',720,480,''), 
		new Array('Pieris Japonica, Variegated','Variegated-Pieris-Japonica.jpg',720,480,''), 
		new Array('Cedar, Weeping Blue Atals','Weeping-Blue-Atlas-Cedar.jpg',320,480,''), 
		new Array('Spruce, Weeping','Weeping-Colorado-Spruce.jpg',320,480,''), 
//		new Array('','Weeping-Jap.-Green-Maple.jpg',320,480,''), 
		new Array('Maple, Dwarf Weeping','Weeping-Jap.-Red-Maple.jpg',320,480,''), 
		new Array('Yews, English Weeping','Weeping-Yews.jpg',720,480,'')
    ),3,77,77,171,171,3,3,'Click on the images to see the plant name and a larger photograph of our elegant colors, shapes and patterns.',0
  ),
  new Array('Ponds & Waterfalls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','3.jpg',720,480,''),
		new Array('','6.jpg',320,480,''), 
		new Array('','7.jpg',720,480,''), 
		new Array('','13.jpg',720,480,''), 
		new Array('','17.jpg',720,480,''), 
		new Array('','18.jpg',720,480,''), 
		new Array('','22.jpg',720,480,''), 
		new Array('','34.jpg',720,480,''), 
		new Array('','35.jpg',720,480,''), 
//		new Array('','48.jpg',640,480,''),
        new Array('','pond3.jpg',180,150,'This natural stream and pond was a perfect companion for this patio.'),
        new Array('','pond4.jpg',180,150,'Clients can enjoy the view from their gazebo.'),
        new Array('','pond5.jpg',180,150,'Another low maintenance pond off a flagstone patio on a stonedust base'),
        new Array('','pond1.jpg',180,150,'This beautiful large waterfall/pond goes under the deck and is visible through all windows.'),
        new Array('','pond2.jpg',180,150,'This is the view that this client sees from their kitchen window.')
    ),1,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',1
  ),    
  new Array('Patios & Walks','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','baf159.jpg',720,480,''), //3
		new Array('','baf160.jpg',320,480,''), //4
		new Array('','baf162.jpg',320,480,''), //6
		new Array('','baf174.jpg',720,480,''), //7
		new Array('','baf181.jpg',720,480,''), //8
		new Array('','baf221.jpg',720,480,''), //10
//		new Array('','baf251.jpg',720,480,''), //12
//		new Array('','baf256.jpg',720,480,''), //14
		new Array('','baf257.jpg',720,480,''), //15
		new Array('','baf258.jpg',720,480,''), //16
		new Array('','baf260.jpg',720,480,''), //17
		new Array('','baf267.jpg',720,480,''), //18
		new Array('','baf386.jpg',720,480,''), //47
		new Array('','baf387.jpg',720,480,''), //48
		new Array('','baf388.jpg',720,480,''), //49
		new Array('','baf390.jpg',720,480,''), //50
		new Array('','lbaf2005-059.jpg',720,480,''), //56
//		new Array('','lbaf2005-098.jpg',720,480,''), //59
		new Array('','lbaf2005-125.jpg',720,480,'') //60
//        new Array('Stonepath','stonepath1.jpg',180,150,'Natural irregular stone path, going through this shady side of the house.')
    ),15,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.'
  ),  
  new Array('Hardscapes','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('Photo 1','0.jpg',229,224),
      new Array('Photo 2','1.jpg',424,426),
      new Array('Photo 3','2.jpg',297,304),
      new Array('Photo 4','3.jpg',298,299),
      new Array('Photo 5','4.jpg',419,333),
      new Array('Photo 6','5.jpg',258,267),
      new Array('Photo 7','6.jpg',249,259),
      new Array('Photo 8','7.jpg',331,393),
      new Array('Photo 9','8.jpg',337,422),
      new Array('Photo 10','10.jpg',408,339),
      new Array('Photo 11','11.jpg',422,332),
      new Array('Photo 12','12.jpg',563,423),
      new Array('Photo 13','13.jpg',254,258),
      new Array('Photo 14','14.jpg',306,307),
      new Array('Photo 15','15.jpg',420,424),
      new Array('Photo 16','16.jpg',275,262),
      new Array('Photo 17','17.jpg',227,226),
      new Array('Photo 18','18.jpg',257,256),
      new Array('Photo 19','19.jpg',305,305),
      new Array('Photo 20','20.jpg',421,336),
      new Array('Photo 21','21.jpg',361,362),
      new Array('Photo 22','22.jpg',250,252),
      new Array('Photo 23','23.jpg',417,293),
      new Array('Photo 24','24.jpg',310,302),
      new Array('Photo 25','25.jpg',343,433),
      new Array('Photo 26','26.jpg',375,299),
      new Array('Photo 27','27.jpg',444,354),
      new Array('Photo 28','28.jpg',392,487),
      new Array('Photo 29','29.jpg',355,376),
      new Array('Photo 30','30.jpg',221,231),
      new Array('Photo 31','31.jpg',421,328),
      new Array('Photo 32','32.jpg',224,228),
      new Array('Photo 33','33.jpg',379,376),
      new Array('Photo 34','34.jpg',423,424),
      new Array('Photo 35','35.jpg',324,422),
      new Array('Photo 36','36.jpg',252,259),
      new Array('Photo 37','37.jpg',331,431),
      new Array('Photo 38','38.jpg',405,335),
      new Array('Photo 39','39.jpg',295,300),
      new Array('Photo 40','40.jpg',420,330),
      new Array('Photo 41','41.jpg',329,426),
      new Array('Photo 42','42.jpg',463,459),
      new Array('Photo 43','43.jpg',412,331),
      new Array('Photo 44','44.jpg',339,424),
      new Array('Photo 45','45.jpg',419,341),
      new Array('Photo 46','46.jpg',424,426),
      new Array('Photo 47','47.jpg',326,420),
      new Array('Photo 48','48.jpg',333,418),
      new Array('Photo 49','49.jpg',423,333),
      new Array('Photo 50','50.jpg',227,222),
      new Array('Photo 51','51.jpg',444,546),
      new Array('Photo 52','52.jpg',417,423),
      new Array('Photo 53','53.jpg',427,427),
      new Array('Photo 54','54.jpg',361,444),
      new Array('Photo 55','55.jpg',505,384),
      new Array('Photo 56','56.jpg',541,436)
    ),4,66,66,280,176,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',0,'photos.htm'
  ),  
  new Array('Retaining walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
//		new Array('','baf026.jpg',720,480,''), //1
		new Array('','baf028.jpg',720,480,''), //2
		new Array('','baf124.jpg',720,480,''), //3
//		new Array('','Carderock-stone-wall-after..jpg',720,480,''), //4
		new Array('','Carderock-wall-from-right-s.jpg',720,480,''), //5
		new Array('','Close-up-of-the-carderock-s.jpg',720,480,''), //6
		new Array('','Dry-stack-retaining-wall-wi.jpg',720,480,''), //7
		new Array('','Drystack-fieldstone-wall..jpg',720,480,''), //8
//		new Array('','During-construction.jpg',720,480,''), //9
		new Array('','Fildstone-retaining-wall..jpg',720,480,''), //10
//		new Array('','Footings-and-base-of-wall..jpg',720,480,''), //11
//		new Array('','Lumber1.jpg',720,480,''), //12
//		new Array('','Lumber2.jpg',720,480,''), //13
//		new Array('','Retaining-wall-before..jpg',720,480,''), //14
//		new Array('','Right-corner-of-house-befor.jpg',720,480,''), //15
        new Array('','wall1.jpg',180,150,'This mortared fieldstone wall surrounds the existing plantings.')
    ),6,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',1
  ),
  new Array('Outdoor Kitchens','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','ok_pictorial_final_037.jpg',600,400,''), 
		new Array('','ok_pictorial_final_038.jpg',600,400,''), 
		new Array('','ok_Pictorial_final_093.jpg',342,400,''), 
		new Array('','ok_rotberts_after_1_.jpg',651,400,''), 
		new Array('','ok_suzanne_rotbert_after_020.jpg',700,361,'')
    ),2,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',1
  ),
  new Array('Outdoor Fireplaces and Firepits','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','ff_pictorial_final_038.jpg',600,400,''), 
		new Array('','ff_pictorial_final_080.jpg',600,400,''), 
		new Array('','ff_pictorial_final_081.jpg',266,400,''), 
		new Array('','ff_Pictorial_final_094.jpg',599,400,'')
    ),1,77,77,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',1
  ),
  new Array('Before & After','images/portfolio/thumb/','','',
    new Array(
	  new Array('Before','Lumber1.jpg',0,0,''), //12
  	  new Array('During','Footings-and-base-of-wall..jpg',0,0,''), //11
	  new Array('During','Retaining-wall-before..jpg',720,480,''), //14
	  new Array('After','Carderock-wall-from-right-s.jpg',0,0,''), //5
	  new Array('Before','baf125.jpg',720,480,''), //11
	  new Array('After','Drystack-fieldstone-wall..jpg',720,480,''), 
   	  new Array('Before','baf193.jpg',720,480,''), //19
	  new Array('After','baf224.jpg',720,480,''), //24
	  new Array('Before','baf190.jpg',720,480,''), 
	  new Array('After','lpbaf126.jpg',720,480,''), 
	  new Array('Before','lpbaf106.jpg',720,480,''),
	  new Array('After','lpbaf132.jpg',720,480,''),
      new Array('Before','baf228.jpg',0,0,''),
      new Array('After','baf254.jpg',0,0,''),
      new Array('Before','51.jpg',0,0,''),
      new Array('After','5.jpg',0,0,''),
      new Array('Stonewall Before','stonewall-bfor.jpg',0,0,'A backyard with no definition or interest.'),
      new Array('Stonewall After','stonewall-aftr.jpg',0,0,'Border made with a fieldstone wall and simple plantings for a lush feel.'),
      new Array('Walkway Before','wlkwypatio-bfor.jpg',0,0,'An outdated front brick raised patio that was falling apart.'),
      new Array('Walkway After','wlkwypatio-aftr.jpg',0,0,'New block wall and planting area along with a new flagstone walkway with fieldstone risers.'),
      new Array('Before','groak-bfor.jpg',0,0,'A bare hill left over from construction in front of the driveway. They wanted to make an impact when driving up to the house.'),
      new Array('After','groak-aftr.jpg',0,0,'We decided on a water feature which included two 30 ft streams going under a walkway and underwater lights that dramatically enhanced the nighttime viewing.'),
      new Array('Before','retainwall-bfor.jpg',0,0,'We removed this old railroad tie retaining wall that was falling apart.'),
      new Array('After','retainwall-aftr.jpg',0,0,'We replaced it and added design features using pressure treated lumber.'),
      new Array('Corner Before','corner-bfor.jpg',0,0,'Driveway entrance to a home-based business.'),
      new Array('Corner After','corner-aftr.jpg',0,0,'A dry stack fieldstone accent wall with plantings.'),
      new Array('House Before','house-bfor.jpg',0,0,'A forty year old landscape.'),
      new Array('House After','house-aftr.jpg',0,0,'New plantings, new walkway and a fresh look.'),
      new Array('Backyard Before','bckyrd2-bfor.jpg',0,0,'Worn out backyard, needing some alteration'),
      new Array('Backyard After','bckyrd2-aftr.jpg',0,0,'With a new lawn and patio, this yard is now ready for summer.'),
      new Array('Backyard Before','bckyrd-bfor.jpg',0,0,'New backyard that is empty'),
      new Array('Backyard After','bckyrd-aftr.jpg',0,0,'Adding some good sized plant material for some screening &amp; beauty.'),
      new Array('Flagstone Before','flgstpatio-bfor.jpg',0,0,'Unusable back hill'),
      new Array('Flagstone After','flgstpatio-aftr.jpg',0,0,'Raised flagstone patio with natural stonewall. Barbeques galore.'),
      new Array('Frontyard Before','frntyrd-bfor.jpg',0,0,'Old, original builders walkway and landscape'),
      new Array('Frontyard After','frntyrd-aftr.jpg',0,0,'New brick pathway with plantings.'),
      new Array('Patio Before','sec8patio-bfor.jpg',0,0,'Removed old existing concrete patio along with their drainage problem'),
      new Array('Patio After','sec8patio-aftr.jpg',0,0,'New flagstone patio with a bench/flow box and drainage problem solved.')
    ),9,180,150,171,171,3,3,'Click on the images for to view a larger display of our elegant colors, shapes and patterns.',0,'before_after.htm'
  )
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length-1))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length-1))
  ind = 0; 

var arPreloadImages = new Array();
function preloadphotos() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length-1);i++) {
      arPreloadImages[i] = new Image(arImages[section][8],arImages[section][9]);
      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]);
}
