
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'veneer-other-manufacturers.htm';
scriptName = 'veneer-other-manufacturers-photos.js';
countX = 7;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
   var arImages = new Array(  
   new Array('Other Manufacturers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Begique Gray','Begique Gray.jpg',491,400),
      new Array('Birch River Castlerock','Birch River Castlerock.jpg',479,400),
      new Array('Brookfield Straight Edge','Brookfield Straight Edge.jpg',484,400),
      new Array('Chilton Machine Cut','Chilton Machine Cut.jpg',428,401),
      new Array('Chilton Tailored Blend','Chilton Tailored Blend.jpg',414,400),
      new Array('Creek Brick Drystalck','Creek Brick Drystalck.jpg',457,400),
      new Array('Eden Windsor','Eden Windsor.jpg',475,400),
      new Array('Elk Falls Rustic','Elk Falls Rustic.jpg',483,400),
      new Array('Fond Du Lac Tumbled Dimensional','Fond Du Lac Tumbled Dimensional.jpg',474,400),
      new Array('Hickory Star Snapped Rects & Squares','Hickory Star Snapped Rects & Squares.jpg',452,400),
      new Array('Livingston Tumbled','Livingston Tumbled.jpg',463,400),
      //new Array('Lunar Blue Snapped Dimensional','Lunar Blue Snapped Dimensional.jpg',442,400),
      //new Array('Lunar Blue Tumbled Natural Bed','Lunar Blue Tumbled Natural Bed.jpg',383,400),
      new Array('Mayor Blend','Mayor Blend.jpg',488,400),
      new Array('Moss Brick Drystack','Moss Brick Drystack.jpg',460,400),
      new Array('Royal Greystone','Royal Greystone.jpg',434,400),
      //new Array('Saginaw Blend','Saginaw Blend.jpg',390,400),
      new Array('Sequoia Tumbled Rect & Squares','Sequoia Tumbled Rect & Squares.jpg',440,400),
      new Array('Shawnee Snapped 1-5','Shawnee Snapped 1-5.jpg',455,400),
      new Array('Split Weathered Fieldstone Weathered Edge','Split Weathered Fieldstone Weathered Edge.jpg',484,400),
      new Array('Split Weathered Fieldstone','Split Weathered Fieldstone.jpg',450,400),
      new Array('Swan Hills White','Swan Hills White.jpg',461,401),
      //new Array('Tacoma Quartz 1-5 inch','Tacoma Quartz 1-5 inch.jpg',464,400),
      //new Array('Tacoma Quartz Natural Ledge','Tacoma Quartz Natural Ledge.jpg',413,400),
      //new Array('Tacoma Quartz Rects & Squares','Tacoma Quartz Rects & Squares.jpg',433,400),
      //new Array('Tacoma Quartz Webwall','Tacoma Quartz Webwall.jpg',447,400),
      new Array('Waukeshaw White Tumbled','Waukeshaw White Tumbled.jpg',396,401),
      new Array('Weathered Fieldstone Rects & Squares','Weathered Fieldstone Rects & Squares.jpg',434,400),
      new Array('Weathered Fieldstone Webwall','Weathered Fieldstone Webwall.jpg',461,400),
      //new Array('Wheat Ridge','Wheat Ridge.jpg',393,400),
      new Array('Wild Horse Natural Ledge','Wild Horse Natural Ledge.jpg',425,400),
      new Array('Wild Horse Rects & Squares','Wild Horse Rects & Squares.jpg',425,400),
      new Array('Wild Horse Snapped with Jumpers','Wild Horse Snapped.jpg',428,400),
      new Array('Willow Brook Brown Rects & Squares','Willow Brook Brown Rects & Squares.jpg',480,400)
    )
  )
)


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 showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}

