
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'products.htm';
scriptName = 'products.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('Boulders','images/products/','','',
    new Array(
		new Array('River Jack','river-jack-boulders.jpg',125,83,''),
		new Array('Shenandoah Valley','shenandoah-valley-boulder.jpg',125,84,'')
    ),'','Various sizes, shapes, colors, and textures, these boulders may be loose or crated. <br>A one-ton boulder is approximately 3\'x3\'x2\'',125,83
  ),
  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('1-2 Pocono Valley','agg_1-2_Pocono_Valley.jpg',600,400,''), 
		new Array('1-3 River Jack','agg_1-3_River_Jack.jpg',600,400,''), 
		new Array('1-3 River Run','agg_1-3_River_Run.jpg',600,400,''), 
		new Array('3-5 River Jack','agg_3-5_River_Jack.jpg',600,400,''), 
		new Array('4-6 River Run','agg_4-6_River_Run.jpg',600,400,''), 
		new Array('5-8 River Jack','agg_5-8_River_Jack.jpg',600,400,''), 
		new Array('57\'s','agg_57s.jpg',600,400,''), 
		new Array('Concrete Sand','agg_Concrete_Sand.jpg',504,400,''), 
		new Array('Crusher Run (21A)','agg_Crusher_Run_21A.jpg',600,400,''), 
		new Array('Crystal White 57\'s','agg_Crystal_White_57s.jpg',600,400,''), 
		new Array('Dixie Pink 57\'s','agg_Dixie_Pink_57s.jpg',600,400,''), 
		new Array('Double Shredded Hardwood Mulch','agg_DSHardwood_Mulch.jpg',543,400,''), 
		new Array('MD Masonry Sand','agg_Maryland_Masonry_Sand.jpg',550,400,''), 
		new Array('Pea Gravel','agg_Pea_Gravel.jpg',600,400,''), 
		new Array('Premium Screened Topsoil','agg_Premium_Screened_Topsoil.jpg',600,400,''), 
		new Array('Sedona Red 57\'s','agg_Sedona_Red_57s.jpg',600,400,''), 
		new Array('Stone Dust','agg_Stone_Dust.jpg',600,400,''), 
		new Array('VA Masonry Sand','agg_VA_Masonry_Sand.jpg',600,400,''), 
		new Array('White Masonry Sand','agg_White_Masonry_Sand.jpg',474,400,'')
    ),'','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/products/','','',
    new Array(
		new Array('Gray','e_Granite_Cobblestone_Gray.jpg',125,83,''), 
		new Array('Pink','e_Granite_Cobbleston_Pink.jpg',125,83,''), 	
		new Array('Grey Cubed','gc-gray-cube.jpg',125,84,''),
		new Array('Grey Jumbo','gc-gray-jumbo.jpg',125,84,''),
		new Array('Grey Regular','gc-gray-regular.jpg',125,84,''),
		new Array('Pink Cube','pink-cube-cobblestone.jpg',125,84,''), 
		new Array('Pink Jumbo','pink-jumbo-cobble.jpg',125,83,''), 
		new Array('Pink Regular','pink-regular-cobblestone.jpg',125,83,'')
    ),'','Granite cobblestone is most frequently used for edging. These stones are square or rectangular with consistent size, shapes and colors, making them easy to match.',125,83
  ),
  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]);
}
