
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gtropical.htm';
scriptName = 'gtropical.js';
countX = 2;
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('Tropicals','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array( 
	  //new Array('`Frosty Pink` Angel Trumpet','Frosty-Pink-Angel-Trumpet.jpg',206,275),
	  new Array('3 Gallon Variegated Dianella','3 Gallon Variegated Dianella.jpg',300,400),
	  new Array('3 Gallon Petite Salmon Oleander','3 Gallon Petite Salmon Oleander.jpg',534,400),
	  new Array('Aspidistra 1 gallon','ASPIDISTRA1G.jpg',275,240),
      new Array('`Maurellii` Banana 7 gallon','BANANA-MAURELII-7-G.jpg',206,275),
	  new Array('`Dwarf Cavendish` Banana 7 gallon','Banana-DwfCavendish7g.jpg',243,275),
      new Array('`Bloodleaf Banana 7 gallon','BananaBloodleaf-7-G.jpg',206,275),
      new Array('Bird of Paradise 3 gallon','BIRD-OF-PARADISE-3-G.jpg',206,275),
      new Array('Bird of Paradise (White) FG','Bird-Of-ParadiseWhite--FG.jpg',206,275),
      new Array('Blue Duranta 3 gallon','Duranta-Blue-3G.jpg',275,237),
      new Array('Hibiscus Crop','Hibiscus-Crop.jpg',275,206),
      new Array('Hibiscus 1 gallon','HIBISCUS-TROPICAL-1-G.jpg',275,236),
      new Array('Green Shell Ginger','GingerAlpinia-zerGreen-Shel.jpg',206,275),
	  new Array('Dwarf Green Spice Ginger 3 gallon','GingerDwfGreenSpice3G.jpg',275,206),
	  new Array('`Kahili` Ginger','GingerHedychium-Kahili.jpg',275,244),	
      new Array('`Scarlet Fever` Hidden Ginger','Ginger-hiddenscarlet-fever.jpg',206,275),
      new Array('Variegated Crape Ginger 3 gallon','GINGER-VARICRAPE3G.jpg',275,206),
      new Array('Variegated Shell Ginger 3 gallon','GingerVariegated--Shell3-G.jpg',275,206),
	  new Array('Midnight Ginger','GingerMidnight.jpg',275,262),
      new Array('`Big Charlie` Nun`s Orchid','Nuns-Orchid--Big-Charlie1g.jpg',375,295),
      new Array('Split-leaf Philodendron 3 gallon','Philodendron-Split-Leaf-3g.jpg',206,275),
      new Array('`Xanadu` Split-leaf Philodendron ','Philodendron-XanaduFG.jpg',275,243)
  
    )
  )
)


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]);
}
