
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gshrub.htm';
scriptName = 'gshrub.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('Shrubs','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Abelia Confetti','Abelia-Confetti.jpg',275,206),
      new Array('Abelia `Sherwoodii` 3 Gallon','Abelia-Sherwoodii-3-Gallon.jpg',246,275),
      new Array('Anise Florida 3 Gallon','AniseFlorida-3-Gallon.jpg',206,275),
      new Array('Banana Shrub `Skinneriana`','Banana-ShrubSkinneriana-.jpg',275,260),
      new Array('`Little John` Bottlebrush 3 gallon','Bottlebrush-Little-John3g.jpg',275,235),
      new Array('Splendens Bottlebrush','Bottlebrush-Splendens.jpg',206,275),
      new Array('Japanese Boxwood Full gallon','BoxwoodJapanese-Full-Gallo.jpg',206,275),
      new Array('`Winter Gem` Boxwood Full gallon','BoxwoodWinter-Gem-FG.jpg',275,229),
      new Array('Duranta','DurantaWhite.jpg',206,275),
      new Array('Elaeagnus rotundifolia 7 gallon','ELAEAGNUS-ROTUNDIFOLIA-7G.jpg',275,206),
      new Array('Elaegnus Russian Olive 3 gallon','Elaegnus-Russian-Olive3g.jpg',206,275),
      new Array('Daisy Gardenia 3 gallon','GARDENIA-DAISY-3-GALLON.jpg',275,269),
	  new Array('`Michael` Gardenia 3 gallon','GARDENIA-MICHAEL-3-GALLON.jpg',243,275),
      new Array('`Clara` Hawthorn 3 gallon','Hawthorn-Clara-3GBlock.jpg',206,275),
      new Array('`Eleanor Tabor` Hawthorn','Hawthorn-Eleanor-Tabor.jpg',275,249),
      new Array('`Improved White` Hawthorn','Hawthorn-ImpWht.jpg',206,275),
      new Array('`Snow White` Hawthorn Full gallon','HAWTHORN-SNOW-WHITE-FG.jpg',275,256),
      new Array('`Burford` Holly 6-7 ft','Holly-Burford-6-7.jpg',206,275),
      new Array('`Carissa` Holly 3 gallon','Holly-Carissa3-Gallon.jpg',275,206),
      new Array('`Dwarf Burford` Holly Full gallon','Holly-Dwarf-Burford-FFG.jpg',274,275),
	  new Array('`Greenleaf` Holly 3 gallon','HOLLY-GREENLEAF3-G.jpg',260,275),
      new Array('`Green Luster` Holly','Holly-Green-Luster.jpg',275,218),	  
      new Array('Needlepoint Holly Full gallon','HOLLY-NEEDLEPOINT-FG.jpg',256,275),
      new Array('Oakleaf Holly 3 gallon','Holly-Oakleaf-3-Gallon.jpg',214,275),
      new Array('`Soft Touch` Holly 3 gallon','HOLLY-SOFT-TOUCH-FG.jpg',275,250),
	  new Array('Dwarf Yaupon 3 gallon','HollyDwfyaupon3G.jpg',275,206),
      new Array('`Stokes` Dwarf Yaupon','HOLLY-STOKES-DWF-YAUPON.jpg',206,275),
	  new Array('Hydrangea macrophylla','HYDRANGEA-MAC.jpg',206,275),
      new Array('`Blue Point` Juniper` 3 gallon','Juniper-Blue-Point-3-Gallon.jpg',206,275),
      new Array('`Emerald Sea` Juniper Full gallon','JuniperEmerald-Sea-FG.jpg',275,206),
	  new Array('`Spartan` Juniper 3 gallon','Juniper-Spartan-3--Gallon.jpg',275,243),
      new Array('Waxleaf Ligustrum 3 gallon','Ligustrum-Wax-Leaf-3-g.jpg',275,256),
      new Array('Loropetalum rubrum 7 gallon','Loropetalum-Rubrum-7gallon.jpg',275,250),
      new Array('Chinese mahonia 3 gallon','Mahonia-Chinese3g.jpg',206,275),
	  new Array('Leatherleaf mahonia 3 gallon','Mahonia-Leatherleaf-3-Gallo.jpg',233,275),
	   new Array('`Compacta` Nandina 3 gallon','NANDINA-COMPACTA3g.jpg',275,230),
      new Array('`Harbour Dwarf` Nandina Full gallon','NandinaHarbour-Dwarf-fg.jpg',275,247),
      new Array('Pink Oleander 3 gallon','Oleander-Pink-3-Gallon.jpg',275,242),
      new Array('Sweet Olive 3 gallon','Osmanthus-Sweet-Olive-3-g.jpg',234,275),
	  new Array('Pittosporum variegata','PittosporumVariegated.jpg',275,206),
      new Array('`Wheeler`s Dwarf` Pittosporum','PittosporumWheelers-Dwarf.jpg',275,243),
      new Array('`Imperial Blue` Plumbago 3 gallon','PlumbagoImperial-Blue-3g.jpg',206,275),
      new Array('Variegated Privet Full Gallon','PrivetVariegated-Full-Gall.jpg',270,275),
      new Array('`Knock-Out` Rose (On Shipping Dock)','RoseKnock-out-on-dock.jpg',206,275),
      new Array('`Anthony  Waterer` Spiraea','Spiraea-Anthony-Waterer.jpg',275,272),
      new Array('Bridal Wreath Spiraea 3 gallon','SPIRAEA-BRIDAL-WREATH3G.jpg',275,247),
      new Array('Sweet Viburnum 3 gallon','Viburnum-Sweet-3-gallon.jpg',275,221),
      new Array('Wax Myrtle 3 gallon','Wax-MyrtleSouthern-3-G.jpg',206,275),
      new Array('Yesterday, Today & Tomorrow','Yesterday,-Today,-Tomorrow-.jpg',234,275),
      new Array('`Exima` Yesterday, Today & Tomorrow','YesterdayTodayTomorrowExima.jpg',206,275)
 
    )
  )
)


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]);
}
