
smallSizes = new Array(148,87);
mediumSizes = new Array(0,0);
pageName = 'showcase.htm';
scriptName = 'showcase.js';
countX = 3;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('','images/photos/small/','','images/photos/big/',
    new Array(
      new Array('OfficeMax','0.jpg',436,287,'OfficeMax'),
      new Array('McDonald&#8216s','1.jpg',436,288,'McDonald&#8216s'),
      new Array('Lowe&#8216s','2.jpg',441,289,'Lowe&#8216s'),
      new Array('Jacobs Field','3.jpg',432,203,'Jacobs Field'),
      new Array('Borders','4.jpg',439,290,'Borders'),
      new Array('Kohl&#8216s','5.jpg',439,252,'Kohl&#8216s'),
      new Array('Wal-Mart','6.jpg',439,290,'Wal-Mart'),
      new Array('Fashion Bug','7.jpg',439,290,'Fashion Bug'),
      new Array('Cinemark','8.jpg',442,285,'Cinemark')
    )
  )
)

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 preloadphotos() {
  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][4]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
