var arDistributors = new Array(
  new Array('New York',
    new Array(
	  
	  new Array('Albany',
	    new Array(
			new Array('Troy\'s Landscape Supply','1266 Loudon Road','Cohoes, NY 12047','518-785-1526',''), 
//			new Array('Allied Building Supply','24 Railroad Avenue','Albany, NY 12205','518-489-0147',''), 
			new Array('Cranesville Block','774 State Highway 5S','Amsterdam, NY 12010','518-887-5560',''),
			new Array('Landscape Depot','4708 State Highway 30','Amsterdam, NY 12010','518-842-3500','')
	    )
	  ),
	  
	  new Array('Auburn',
	    new Array(
			new Array('Auburn Cement','22-24 Perrine Street','Auburn, NY 13021','315-253-3261','') 
	    )
	  ),
	  
	  new Array('Binghamton',
	    new Array(
//			new Array('Southern Tier Block and Supply','33 Chenango Bridge Road','Binghamton, NY 13901','607-723-7351',''), 
			new Array('Broome County Building Supplies','233 North Jensen Road','Vestel, NY 13850','607-729-6233',''),
			new Array('John Deere Landscapes','101 Lester Avenue','Johnson City NY 13790','(607) 763-1745','')
	    )
	  ),
	  new Array('Buffalo',
	    new Array(
			new Array('Scranton\'s Thruway Builders Supply','3360 Walden Avenue','Depew, NY 14043','716-684-5600',''),
			new Array('Felicetti Concrete','4129 Hyde Park Boulevard','Niagara Falls, NY 14305','716-284-5740',''),
			new Array('L.M. Stone','11190 Walden Avenue','Alden, NY 14004','716-683-1098',''),
//			new Array('Reboy Supply','1280 Maple Road','Elma, NY 14059','716-652-4321',''),
			new Array('John Deere Landscapes','385 Cross Point Pkwy Suite 100','Amherst NY 14068','(716) 568-1440',''),
			new Array('John Deere Landscapes','4140 S Taylor Rd','Orchard Park NY 14127','(716) 662-1818',''),
			new Array('John Deere Landscapes','2483 Walden Ave','Cheektowaga NY 14225','716-683-0297','')
	    )
	  ),
	  
	  new Array('Cobleskill',
	    new Array(
			new Array('Agway Cobleskill','P.O. Box 37','Cobleskill, NY 12043','518-234-2332','')
	    )
	  ),	  

	  new Array('Frankfort',
	    new Array(
			new Array('Ferdula Landscape Supply','430 Railroad Street','Frankfort, NY 13340','Ph: 315-894-4143','')
	    )
	  ),	  
	  
	  new Array('Geneva',
	    new Array(
			new Array('Sensenig\'s Landscape Supply','1516 Route 5&20','Geneva, NY 14456','800-732-4888','http://www.sensenigslandscapesupply.com/')
	    )
	  ),
	  
	  new Array('Ithaca',
	    new Array(
			new Array('Agway-Ithaca','213 South Fulton Street','Ithaca, NY 14850','607-272-1848','')
	    )
	  ),
	  
	  new Array('Lake Placid',
	    new Array(
			new Array('Earth Roots Landscape Supply','118 Patch Lane','Lake Placid, NY 12946','518-946-7759','')
	    )
	  ),	  
	  
	  new Array('Johnstown',
	    new Array(
			new Array('Cranesville Block','252 North Comrie Avenue','Johnstown, NY 12095','518-762-3318','')
	    )
	  ),
	  
	  new Array('Mayfield',
	    new Array(
			new Array('Stephen Miller Concrete','301 Riceville Road','Mayfield, NY 12117','800-721-5601','')
	    )
	  ),
	  
	  new Array('Oneida',
	    new Array(
			new Array('Blocks and Rocks','1060 Cobb Street','Oneida, NY 13421','315-363-3814','')
	    )
	  ),
	  
	  new Array('Pleasant Valley',
	    new Array(
			new Array('Pleasant Valley Stone','1370 Route 44','Pleasant Valley, New York 12569','845-635-4007','http://www.pleasantvalleystone.com/')
	    )
	  ),
	  	  
	  new Array('Potsdam',
	    new Array(
			new Array('Woodruff Block Company','495 W. Parishville Road','Potsdam, NY 13676','315-265-6200','')
	    )
	  ),
/*	  
	  new Array('Poughkeepsie',
	    new Array(
			new Array('Dutchess Landscape Supply','30 Airport Drive','Wappinger Falls, NY 12590','845-462-0914','http://www.dutchesslandscapesupply.com')
	    )
	  ),
*/
	  new Array('Rochester',
	    new Array(
			new Array('Miller Brick','734 Ridgeway Avenue','Rochester, NY 14615','585-458-7745','http://www.millerbrick.com'),
			new Array('Northern Stone & Design Center','7516 Pittsford Palmyra Road','Fairport, NY 14450','Ph: 585-223-1780',''),
			new Array('John Deere Landscapes','100 Lincoln Parkway','East Rochester, NY 14445','585-381-3310',''),
			new Array('John Deere Landscapes','51 Goodway Drive South','Rochester NY 14623','(585) 427-2070',''),
			new Array('John Deere Landscapes','700 Mile Crossing Suite 100','Rochester NY 14624','585-247-8160','')
	    )
	  ),
	  
	  new Array('Saratoga Springs',
	    new Array(
			new Array('Saratoga Masonry Supply','437 Maple Ave., Route 9','Saratoga Springs, NY 12866','518-580-9276','')
	    )
	  ),
	  
	  new Array('Schenectady',
	    new Array(
			new Array('Northern Nurseries (Wholesale Only)','115 Cordell Road','Schenectady, NY 12304','518-382-1600','')
	    )
	  ),

//	  new Array('Slingerlands',
//	    new Array(
//			new Array('New Scotland Sales & Rentals','209 New Scotland South Rd','Slingerlands, NY 12159','518-439-0600','')
//	    )
//	  ),
	  
	  new Array('Southern Tier',
	    new Array(
			new Array('Rogers & Tenbrook, Inc.','106 shults Street','Wayland, NY 14572','585-728-5270',''),
			new Array('Rogers & Tenbrook, Inc.','43 West Avenue','Dansville, NY 14437','585-335-2256',''),
			new Array('Elitsac Lumber','103 South Main Street','Castile, NY 14427','585-493-2628',''),
			new Array('Southern Tier Concrete Products','911 State Route 244','Alfred Station, NY 14803','607-587-9292',''),
			new Array('Chemung County Building Supplies','3269 South Main Street','Horseheads, NY 14845','607-796-5588','')
	    )
	  ),

	  new Array('Syracuse',
	    new Array(
			new Array('Paragon Supply','1300 W. Fayette Street','Syracuse, NY 13204','315-475-5115','http://www.paragonsupply.com'),
			new Array('Northern Nurseries (Wholesale Only)','8633 US Route 11','Cicero, NY 13039','315-699-3999',''),
//			new Array('Barnes & Cone, Inc.','5894 Court Street Rd.','Syracuse, NY 13206','315-437-0305',''),
			new Array('John Deere Landscapes','6030 Drott Dr','East Syracuse, NY 13057','(315) 437-3423','')
//			new Array('John Deere Landscapes','6030 Drott Drive','East Syracuse, New York 13057','607-763-1745','')			
	    )
	  ),
	  
//	  new Array('Utica',
//	    new Array(
//			new Array('Madden Concrete & Masonry Supply','35 Campion Road','New Hartford, NY 13413','315.724.8111','http://www.MaddenConcrete.com')
//	    )
//	  ),
	  new Array('Watertown',
	    new Array(
			new Array('Taylor Concrete Products','20475 Old Rome State Road, Watertown','New York 13601','Phone: 315-788-2191<br>Fax: 315-788-1591','http://www.taylorconcrete.com')
	    )
	  ),
	  new Array('West Coxsackie',
	    new Array(
			new Array('Halsted\'s Outdoor Supplies','11779 Rt 9W','West Coxsackie, NY 12192','518-731-3900','')
	    )
	  )
    )
  ),

  new Array('Pennsylvania',
    new Array(
	  
	  new Array('Erie',
	    new Array(
			new Array('John Deere Landscapes','2043 West 12Th St','Erie, PA 16505','(814) 455-7850','')
	    )
	  ),

	  new Array('Scranton',
	    new Array(
			new Array('Tri-County Building Supplies','800 Sanderson Street','Throop, PA 18512','570-307-1001','')
	    )
	  )
    )
  )
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arDistributors.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arDistributors[section][1].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]);
}
