
smallSizes = new Array(66,66);
mediumSizes = new Array(280,176);
pageName = 'photos.htm';
scriptName = 'photos.js';
countX = 3;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Photo Gallery','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','Riverview-Park,-Buelton-001.jpg',533,400,''),
      new Array('','Riverview-Park,-Buelton-002.jpg',533,400,''),
      new Array('','Riverview-Park,-Buelton-003.jpg',533,400,''),
      new Array('','Riverview-Park,-Buelton-004.jpg',533,400,''),
      new Array('Mega-Bergerac Pavers&reg;','0.jpg',229,224,'and 90mm Celtik Wall&reg; accent this pool and creates a feeling solid durability.'),
      new Array('Bergerac pavers&reg;','1.jpg',424,426,'and Bergerac circle&reg; highlight this landscape, achieving the ambience of a quiet rendezvous.'),
      new Array('90mm Celtik Wall&reg;','2.jpg',297,304,'raises this entry to eliminate a step while Celtik Curb&reg; separates the softscape from the Dublin Modular Combo&reg; pavers.'),
      new Array('Dublin Cobble Combo&reg;','3.jpg',298,299,'pavers hug the curve of this shapely pool.'),
      new Array('Transitions are...','4.jpg',419,333,'made easy with the Celtik Step &amp; Riser&reg; system.'),
      new Array('Any Transition...','5.jpg',258,267,'is made easy when you are using the Celtik Step &amp; Riser&reg; system.'),
      new Array('Celtik Cap&reg;','6.jpg',249,259,'creates a beautiful overhang and a smooth finish for this Celtik Wall&reg;.'),
      new Array('Celtik Curb&reg;','7.jpg',331,393,'encompasses this driveway.  Celtik Wall&reg; surrounds the front of this house.'),
      new Array('','8.jpg',337,422,''),
      new Array('Nothing else...','10.jpg',408,339,'produces a natural stone look and feel like the rugged Mega-Bergerac&reg; pavers.'),
      new Array('Recreate the feel...','11.jpg',422,332,'of natural stone using the rugged Mega-Bergerac&reg; pavers.'),
      new Array('Traditional and...','12.jpg',563,423,'Elegant is the best way to describe the rugged Mega-Bergerac&reg; pavers.'),
      new Array('Celtik Steps&reg;','13.jpg',254,258,'can be curved or straight to fit any style you can dream of.'),
      new Array('Belgard&reg;','14.jpg',306,307,'colors are designed to blend with Mother Nature.'),
      new Array('Dublin Cobble Combo&reg;','15.jpg',420,424,'pavers meander up to this Celtik Wall&reg; encompassed patio.'),
      new Array('Belgard&reg;','16.jpg',275,262,'provides different patterns and textures to allow for endless creativity.'),
      new Array('Celtik Cap&reg;','17.jpg',227,226,'is the perfect edge treatment! Here it creates a unique style of pool coping.'),
      new Array('Dublin Cobble Combo&reg;','18.jpg',257,256,'pavers are great way for making graceful curves a part of your design and creations.'),
      new Array('Create a special','19.jpg',305,305,'place in your yard. Recreate that cozy feeling traditional cobble with the Dublin Circle&reg;.'),
      new Array('Dublin Cobble Combo&reg;','20.jpg',421,336,'pavers are great for both pool coping and curved decking patterns.'),
      new Array('Dublin Cobble Combo&reg;','21.jpg',361,362,'winds into the Dublin Modular Combo&reg; pavers providing a smooth transition from this walkway to this patio.'),
      new Array('You don`t need','22.jpg',250,252,'a large area to create a breathtaking project.'),
      new Array('Providing...','23.jpg',417,293,'elegance and durability, Belgard&reg; will fulfill all of your hardscaping needs.'),
      new Array('Bridge the...','24.jpg',310,302,'drainage swale in your yard with ease using Celtik Wall&reg;.'),
      new Array('Belgard&reg;','25.jpg',343,433,'offers a paver style for any type of house, from stone to stucco The look of cobblestone adds elegance to any landscape project.'),
      new Array('Belgard&reg;','26.jpg',375,299,'provides different patterns and textures to allow for endless creativity. The natural ambience of cobblestone is what our product was designed to reproduce.'),
      new Array('Celtik Wall&reg;','27.jpg',444,354,'products will go as far as your imagination will allow. Maybe it\'s time for you to allow it.'),
      new Array('Create a Medallion','28.jpg',392,487,'in your driveway using a Dublin Circle&reg;.'),
      new Array('Belgard&reg;','29.jpg',355,376,'offers a paver style for any type of house, from stone to stucco The look of cobblestone adds elegance to any landscape project.'),
      new Array('Garden walls','30.jpg',221,231,'are made easily with an elegant touch when Celtik Wall&reg; products are utilized.'),
      new Array('Celtik Cap®','31.jpg',421,328,'creates a beautiful reveal and a smooth and handsome finish to this Celtik Wall®.'),
      new Array('Celtik Wall®','32.jpg',224,228,'will provide a great medium of transition, no matter how big or small it may be.'),
      new Array('Belgard®','33.jpg',379,376,'has taken pavers to another level with a feel and a look that simulates the real thing granite cobblestone.'),
      new Array('Bergerac Pavers®','34.jpg',423,424,'are dramatically interrupted by the Bergerac Circle® at this transitional fork in the pathway.'),
      new Array('Dublin Cobble Combo®','35.jpg',324,422,'pavers and Dublin Modular Combo® pavers work well together for this colonial style home.'),
      new Array('Are you only','36.jpg',252,259,'one step away from purchasing Belgard® products?'),
      new Array('Dublin Circles®','37.jpg',331,431,'do not need to be completely round.  Let your imagination run wild while designing your Belgard® dream.'),
      new Array('Shapes,','38.jpg',405,335,'Curves, Angles and Elegance!'),
      new Array('Dublin Cobble Combo®','39.jpg',295,300,'pavers hug the curve of this shapely pool and gives that perfect additional touch of elegance.'),
      new Array('This Jacuzzi,','40.jpg',420,330,'engulfed amidst Dublin Modular Combo® pavers is a warm addition to this multi-tiered Belgard® deck system.'),
      new Array('Cambridge Cobble®','41.jpg',329,426,'pavers for the contemporary effect.'),
      new Array('Dublin Modular Combo®','42.jpg',463,459,'and Square work well with this particular architectural motif.'),
      new Array('Dublin Cobble Combo®','43.jpg',412,331,'pavers and Dublin Modular Combo® pavers work well together for this colonial style home. Capture the traditional ambience of cobblestone paving.'),
      new Array('Granite cobble or Belgard®?','44.jpg',339,424,'Belgard® offers it`s own style of granite cobblestones with Bergerac® pavers at a fraction of the cost.'),
      new Array('Dublin Cobble Modular®,','45.jpg',419,341,'Dublin Cobble Combo® Dublin Circle® and Celtik Wall® help create this unique entry.'),
      new Array('Celtik Steps®','46.jpg',424,426,'can be curved or straight to fit any style you can dream of. Like the words from a song… you can build yourself a stairway from heaven.'),
      new Array('Granite cobble or Belgard®?','47.jpg',326,420,'Belgard® offers it`s own style of granite cobblestones with Bergerac® pavers at a fraction of the cost.'),
      new Array('Nothing else...','48.jpg',333,418,'produces a natural stone look and feel like the rugged Mega-Bergerac® pavers. Bring the timeless beauty of granite cobblestone into your landscaping designs.'),
      new Array('Dublin Modular Combo®','49.jpg',423,333,'pavers are used around this pool with the Dublin Modular Square ® paver as the pool coping.'),
      new Array('Celtik Cap®','50.jpg',227,222,'is the perfect edge treatment! Here it creates a unique style of pool coping but the possibilities are endless. All of our products are designed to give you the freedom to create anything.'),
      new Array('Beautiful Entryways','51.jpg',444,546,'can be created using Celtik Wall® and Belgard® pavers.'),
      new Array('This classic style…','52.jpg',417,423,'still draws a crowd. Use it on the next project and soon you’ll be using it on every project.'),
      new Array('','53.jpg',427,427,''),
      new Array('Bergerac® pavers,','54.jpg',361,444,'and Mega-Bergerac® pavers used together create a very traditional look using a simple Ashlar pattern.'),
      new Array('Dublin Modular Combo®','55.jpg',505,384,'pavers lead to this Celtik Wall® stoop for this private entry.'),
      new Array('Shapes,','56.jpg',541,436,'Curves, Angles and Elegance! You can have it all with our complete line of landscaping stones. We compliment and add elegance to any surface horizontal or vertical!')
    )
  )
)

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; 

function showImagePopup(scriptName,section,ind,width,height) {
  width = (width>750)?750:width;
  height = (height>500)?500:height;
  width+=130;
  height+=180;
  width = (width<350)?350:width;
  height = (height<200)?200:height;
  win = window.open('big_image2.htm?script='+scriptName+'&section='+section
	+'&ind='+ind,'_blank','width='+width+',height='
	+height+',left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no');
  win.focus();
}

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]);   
	showMessage('imagemediumname1',arImages[section][4][number][4]);
   }	
  else
   {
    showMessage('imagemediumname','Photo '+Number(Number(number)+1));
    showMessage('imagemediumname1','');
   }
}


function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
