
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'regular_chop_espanol.html';
scriptName = 'regular_chop_espanol.js';
countX = 4;
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('Autumn Blend','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Autumn Blend','Autumn Blend2.jpg',1001,750),
      new Array('Autumn Blend','Autumn Blend  .jpg',1001,750),
      new Array('Castle Rock with 10 Coins','Castle Rock with 10 Coins 2.jpg',1001,563),
      new Array('Castle Rock With 10 Coins','Castle Rock With 10 Coins.jpg',1001,750),
      new Array('Chocolate','Chocolate2.jpg',1001,563),
      new Array('Chocolate','Chocolate  .jpg',1001,563),
      new Array('El Dorado','El Dorado  .jpg',927,801),
      new Array('El Dorado','El Dorado2.jpg',1000,581),
      new Array('Rattlesnake','Rattlesnake  .jpg',1001,750),
      new Array('Rattlesnake','Rattlesnake2.jpg',1000,707),
      new Array('Reno Blend','Reno Blend2.jpg',1001,750),
      new Array('Reno Blend','Reno Blend  .jpg',1001,750),
      new Array('Sierra Blend','Sierra Blend2.jpg',1000,728),
      new Array('Sierra Blend','Sierra Blend  .jpg',1001,750),
      new Array('Texas Verde','Texas Verde  .jpg',1001,750),
      new Array('Texas Verde','Texas Verde2.jpg',1000,565),
      new Array('Tuscany Squares','Tuscany Squares2.jpg',1001,505),
      new Array('Tuscany Squares','Tuscany Squares  .jpg',1001,596),
      new Array('West TX Bon','West TX Bone .jpg',1000,750),
      new Array('WestTX Bone','WestTX Bone.jpg',1001,563),
      new Array('White','White  .jpg',1001,750),
      new Array('White','White2.jpg',1000,750),
      new Array('Yellow','Yellow  .jpg',1001,750),
      new Array('Yellow','Yellow2.jpg',1001,750),
      new Array('Santa Fe Chop','Santa Fe Chop.jpg',505,800)	  
	  
	)
  )
)

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]);
}

