
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'products.htm';
scriptName = 'products.js';
countX = 5;
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('Boulders','images/new_products/medium/','','images/new_products/big/',
    new Array(
		new Array('Extra small','boulders_image002.jpg',395,296,''), 
		new Array('Medium','boulders_image004.jpg',397,298,''), 
		new Array('Jumbo','boulders_image006.jpg',397,298,'') 
    ),'','Various sizes, shapes, colors, and textures, these boulders may be loose or crated. <br>A one-ton boulder is approximately 3\'x3\'x2\'',200,170
  ),
  new Array('Building Stone','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Blonde Hawk Ridge','bs_Blonde_Hawk_Ridge.jpg',458,400,''), 
		new Array('Hawk Ridge','bs_Hawk_Ridge.jpg',700,359,''), 
		new Array('Shenandoah Valley','bs_Shenandoah_Valley.jpg',516,400,''), 
		new Array('Sienna','bs_Sienna.jpg',454,400,''), 
		new Array('Split Weatherface','bs_Split_Weatherface.jpg',327,400,''), 
		new Array('Tennessee Strip','bs_Tennessee_Strip.jpg',522,400,''),
		new Array('Blue Ridge','btb_Blue_Ridge.jpg',521,400,''), 
		new Array('Catawba','btb_Catawba.jpg',545,400,''), 
		new Array('Cherry Log','btb_Cherry_Log.jpg',332,400,''), 
		new Array('Chocolate Gray','btb_Chocolate_Gray.jpg',537,400,''), 
		new Array('Dove Gray','btb_Dove_Gray.jpg',523,400,''), 
		new Array('Heather Gray','btb_Heather_Gray.jpg',532,400,''), 
		new Array('MD Blend','btb_Maryland_Blend.jpg',700,395,''), 
		new Array('PA Fieldstone','btb_PA_Fieldstone.jpg',537,400,''), 
		new Array('Sterling Rustic','btb_Sterling_Rustic.jpg',503,400,''), 
		new Array('Weatherface','btb_Weatherface.jpg',335,400,'')
    ),'','Stones range from 3-6 inches thick and come in a variety of colors and size. Pallets weigh 2000-3000 pounds.<br> One ton covers approximately 30-40 square feet, but will vary according to masonry technique.'
  ),
  new Array('Bulk Aggregates','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('3/4" River Jack','aggr_3_4_River_Jack.jpg',323,215,''), 
		new Array('1"-3" River Jack','aggr_1_3_River_Jack.jpg',323,215,''), 
		new Array('3"-5" River Jack','aggr_3_5_River_Jack.jpg',322,215,''), 
		new Array('5"-8" River Jack','aggr_5_8_River_Jack.jpg',322,215,''), 
		new Array('Pea Gravel','aggr_Pea_Gravel.jpg',323,215,''), 
		new Array('#57 River Wash','aggr_57_River_Wash.jpg',306,215,''), 
		new Array('1"-2" River Wash','aggr_1_2_River_Wash.jpg',613,480,''), 
		new Array('6"-12" River Wash','aggr_6_12_River_Wash.jpg',720,480,''), 
		new Array('Dixie Pink','aggr_Dixie_Pink.jpg',341,228,''), 
		new Array('Crystal White','aggr_Crystal_White.jpg',340,227,''), 
		new Array('Sedona Red','aggr_Sedona_Red.jpg',339,226,''), 
		new Array('Crusher Run (21A)','aggr_Crusher_Run_21A.jpg',340,227,''), 
		new Array('Stone Dust','aggr_Stone_Dust.jpg',333,222,''), 
		new Array('3/4" Bluestone','aggr_3_4_Bluestone.jpg',335,223,''), 
		new Array('#8 Bluestone','aggr_8_Bluestone.jpg',250,188,''), 
		new Array('Concrete Sand','aggr_Concrete_Sand.jpg',330,262,''), 
		new Array('VA Masonry Sand','aggr_VA_Masonry_Sand.jpg',345,262,''), 
		new Array('White Masonry Sand','aggr_White_Masonry_Sand.jpg',332,262,''), 
		new Array('Natural Hardwood Mulch','aggr_Natural_Hardwood_Mulch.jpg',335,246,''), 
		new Array('Dyed Black Mulch','aggr_Dyed_Black_Mulch.jpg',231,153,''), 
		new Array('Premium Topsoil','aggr_Premium_Topsoil.jpg',335,246,'') 
    ),'','Includes mulch, topsoil, stone, gravel and river rock in several different shapes, colors and sizes. One ton of material 2 inches deep will cover approximately 100 square feet. 1 cubic yard will cover 100 square feet at 2 inches deep. Please ask for details.'
  ),
  new Array('Dimensional Cut Stone','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Blue Ice','dcs_Blue_Ice.jpg',700,364,''), 
		new Array('Chestnut Brown','dcs_Chestnut_Brown.jpg',596,400,''), 
		new Array('Mojave','dcs_Mojave.jpg',633,400,''), 
		new Array('Oyster Blue','dcs_Oyster_Blue.jpg',556,400,''), 
		new Array('PA Plumstone','dim_PA_Plumstone.jpg',545,400,''), 
		new Array('PA Premium Bluestone','dim_PA_Premium_Bluestone.jpg',507,400,''), 
		new Array('PA Thermal Select Blue','dcs_PA_Thermal_Select_Blue.jpg',646,400,''), 
		new Array('PA Variegated','dim_PA_Variegated.jpg',567,400,''), 
		new Array('Rainbow','dcs_Rainbow.jpg',588,400,''), 
		new Array('Redstone','dim_Redstone.jpg',552,400,''), 
		new Array('Sahara','dcs_Sahara.jpg',626,400,''), 
		new Array('Teakwood','dcs_Teakwood.jpg',584,400,''),		
		new Array('TN Variegated','dim_TN_Variegated.jpg',615,400,'')
    ),'','Pennsylvania premium bluestone that is 1-2 inches thick, and has been cut to specified lengths, width and thickness. These stones can be used as treads coping, sills and cap stones.'
  ),
  new Array('Granite Cobblestones','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('3 Pieces: Jumbo, Regular, Cube','cobble_11.jpg',379,318,''), 
		new Array('Jumbo: 11x8x4','cobble_12.jpg',242,187,''), 
		new Array('Regular: 4x4x9','cobble_13.jpg',242,187,''), 
		new Array('Cube: 4x4x4','cobble_14.jpg',171,184,''), 
		new Array('3 Pieces: Tan, Gray, Pink','cobble_21.jpg',383,293,''), 
		new Array('Tan','cobble_22.jpg',226,298,''), 
		new Array('Gray','cobble_23.jpg',226,298,''), 
		new Array('Pink','cobble_24.jpg',215,293,'') 
    ),'','Granite is one of the hardest and longest lasting natural stone materials and, is ideal for curbing and landscaping.  These stones can be used around planting beds, as driveway aprons, to transition changes in grade or to add a border on walkways. We carry three sizes and, three shapes. We encourage you to view the stones in person as natural materials can vary in coloration.<br><br>Click on the thumbs below to view larger size.'
  ),
  new Array('Flagstone & Stepping Stone','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Chocolate Gray Stepping Stone','ss_Chocolate_Gray_Stepping_Stone.jpg',546,400,''), 
		new Array('Dove Gray Stepping Stone','ss_Dove_Gray_Stepping_Stone.jpg',600,400,''), 
		new Array('Weatherface Stepping Stone','ss_Weatherface_Stepping_Stone.jpg',573,400,''),
		new Array('Irregular Country Rose','fs_Country_Rose_Irregular.jpg',600,400,''), 
		new Array('Irregular Chocolate Gray','fs_Chocolate_Gray_Irregular.jpg',599,400,''), 
		new Array('Irregular Oak Ridge','irr_Oak_Ridge.jpg',648,400,''), 
//		new Array('Irregular PA Lilac','fs_PA_Lilac_Irregular.jpg',599,400,''), 
		new Array('Irregular PA Plumstone','irr_PA_Plumstone.jpg',519,400,''), 
		new Array('Irregular PA Premium Bluestone','irr_PA_Premium_Bluestone.jpg',456,400,''), 
		new Array('Irregular PA Variegated ','fs_PA_Variegated_Irregular.jpg',266,400,''), 
		new Array('Irregular TN Blue Gray','fs_TN_Blue_Gray_Irregular.jpg',689,400,''), 
		new Array('Irregular TN Variegated','fs_TN_Variegated_Irregular.jpg',618,400,''), 
		new Array('Irregular Western Dark Orchard ','fs_Western_Dark_Orchard_Irregular.jpg',599,400,''), 		
		new Array('PA Variegated Natural Finish','fs_PA_Variegated_Natural_Finish.jpg',584,400,'') 
    ),'','Flagstone and stepping stones come in various colors, shapes and sizes and are 1-3 inches thick. One ton will cover approximately 100-120 square feet, according to masonry technique. '
  ),
  new Array('Landscape Wallstone','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Colonial Full Color','wall_Colonial_Full_Color.jpg',453,400,''), 
		new Array('Laurel Hill','wall_Laurel_Hill.jpg',600,400,''), 
		new Array('PA Fieldstone','wall_PA_Fieldstone.jpg',625,400,''), 
		new Array('Red Fieldstone','wall_Red_Fieldstone.jpg',600,400,''), 
		new Array('Tumbled Bluestone','wall_Tumbled_Bluestone.jpg',528,400,''), 
		new Array('Tumbled Plumstone','wall_Tumbled_Plumstone.jpg',644,400,''), 
		new Array('White Laurel Hill','wall_White_Laurel_Hill.jpg',600,400,'')
    ),'','These flat stones are 1-4 inches thick, and come in various sizes and colors. One ton will construct a wall that is one foot wide, one foot tall, and 16-18 feet in length. Pallets weigh 2500 to 3000 pounds.'
  ),
  new Array('Thin Building Stone','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Autumn Brown','ts_Autumn_Brown.jpg',451,400,''), 
		new Array('Blue Frost','ts_Blue_Frost.jpg',328,400,''), 
		new Array('Silver Brown','ts_Silver_Brown.jpg',494,400,''), 
		new Array('Tumbled Bluestone','ts_Tumbled_Bluestone.jpg',549,400,''),
		new Array('Blue Ridge','btb_Blue_Ridge.jpg',521,400,''), 
		new Array('Catawba','btb_Catawba.jpg',545,400,''), 
		new Array('Cherry Log','btb_Cherry_Log.jpg',332,400,''), 
		new Array('Chocolate Gray','btb_Chocolate_Gray.jpg',537,400,''), 
		new Array('Dove Gray','btb_Dove_Gray.jpg',523,400,''), 
		new Array('Heather Gray','btb_Heather_Gray.jpg',532,400,''), 
		new Array('MD Blend','btb_Maryland_Blend.jpg',700,395,''), 
		new Array('PA Fieldstone','btb_PA_Fieldstone.jpg',537,400,''), 
		new Array('Sterling Rustic','btb_Sterling_Rustic.jpg',503,400,''), 
		new Array('Weatherface','btb_Weatherface.jpg',335,400,'')
    ),'','These stones are 1-3 inches thick and come in various sizes and colors. Used as a veneer, one ton will cover a 100 to 120 square foot area, according to masonry technique. Pallets weigh 2000 to 3000 pounds.'
  ),
  new Array('Concrete Interlocking Pavers & Retaining Walls','images/products/','','',
    new Array(
    ),'interlocking_pavers_and_retaining_walls.htm',''
  ),
  new Array('Precast Stone','images/products/','','',
    new Array(
    ),'precast_stone.htm',''
  ),
  new Array('Edging','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Granite Cobblestone Gray','edg_Granite_Cobblestone_Gray.jpg',569,400,''), 
		new Array('Granite Cobblestone Pink','edg_Granite_Cobblestone_Pink.jpg',629,400,'')
    ),'','Click on the images to view a larger display of our elegant colors, shapes and patterns.'
  ),
  new Array('Travertine','images/new_products/small/','images/new_products/medium/','images/new_products/big/',
    new Array(
		new Array('Mezzo Travertine','trv_Mezzo_Travertine.jpg',602,400,''), 
		new Array('Noce Travertine','trv_Noce_Travertine.jpg',615,400,''), 
		new Array('Scabos Travertine','trv_Scabos_Travertine.jpg',599,400,'') 
    ),'','Click on the images to view a larger display of our elegant colors, shapes and patterns.'
  )
)

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 menu_portfolio() {
  var jp;
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td>Choose a category:&nbsp;<select name="cat" class="select1" onChange="if (this.value.length!=0) window.location=this.value" style="font-size:9px;">');
  for (jp=0;jp<arImages.length;jp++) {
    document.write('<option value="'+pageName+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');
  }  
  document.write('</select></td></tr>')
  document.write('</table>');
} 
  
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]);
}

