
smallSizes = new Array(150,100);
mediumSizes = new Array();
pageName = 'mold.htm';
scriptName = 'mold.js';
countX = 1;
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('6" Hollow','images/mold/','','images/mold/',
    new Array(
      new Array('1','115%20n_dim%20.GIF',200,196),
      new Array('2','pg%206-6_%20Hollow.GIF',200,182)	  
    )
  ),
  
  new Array('8" Hollow','images/mold/','','images/mold/',
    new Array(
      new Array('1','123%20n_dim%20.GIF',200,146),
      new Array('2','New%20125%20no%20dim.GIF',200,184)	  
    )
  ),

  new Array('10" Hollow','images/mold/','','images/mold/',
    new Array(
      new Array('1','138%20n_dim%20.GIF',200,182),
      new Array('2','pg%206-10_%20Hollow.GIF',200,182)	  
    )
  ),  
  
  new Array('12" Hollow','images/mold/','','images/mold/',
    new Array(
      new Array('1','143%20n_dim%20.GIF',200,153),
      new Array('2','New%20180%20no%20dim.GIF',200,154)	  
    )
  ), 

  new Array('8W','images/mold/','','images/mold/',
    new Array(
      new Array('1','182%20n_dim%20.GIF',200,90)
    )
  ), 

  new Array('12W','images/mold/','','images/mold/',
    new Array(
      new Array('1','192%20n_dim%20.GIF',200,99),
      new Array('2','198%20n_dim%20.GIF',200,102)	  
    )
  ), 

  new Array('8R','images/mold/','','images/mold/',
    new Array(
      new Array('1','200%20n_dim%20.GIF',200,178),
      new Array('2','254%20n_dim%20.ep.GIF',200,155)	  
    )
  ), 

  new Array('12R','images/mold/','','images/mold/',
    new Array(
      new Array('1','206%20n_dim%20.GIF',200,168),
      new Array('2','268%20n_dim%20.GIF',200,161)	  
    )
  ), 

  new Array('8RSM (1S2F)','images/mold/','','images/mold/',
    new Array(
      new Array('1','234%20n_dim%20.GIF',200,178),
      new Array('2','8RSM%20no%20dim.GIF',200,178)	  
    )
  ), 

  new Array('12RSM','images/mold/','','images/mold/',
    new Array(
      new Array('1','143%20n_dim%20.GIF',200,153)
    )
  ), 
  
  new Array('8WSM','images/mold/','','images/mold/',
    new Array(
      new Array('1','248%20n_dim%20.GIF',200,143),
      new Array('2','249%20n_dim%20.GIF',200,140)	  
    )
  ), 
  
  new Array('12WSM','images/mold/','','images/mold/',
    new Array(
      new Array('1','251%20n_dim%20.GIF',133,133),
      new Array('2','252%20n_dim%20.GIF',200,100)	  
    )
  ),       

  new Array('8RC','images/mold/','','images/mold/',
    new Array(
      new Array('1','202%20n_dim%20.GIF',200,157),
      new Array('2','pg%206-8%20RC.GIF',200,293)	  
    )
  ),
    
  new Array('16RUH','images/mold/','','images/mold/',
    new Array(
      new Array('1','209%20n_dim%20.GIF',200,204),
      new Array('2','pg%206-16%20RUH.GIF',200,133)	  
    )
  )
)

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][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
