
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portphotos.htm';
scriptName = 'portfolio.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('Best Landscape Company','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('AFLAC Tower','lan_aflactower_back.jpg',500,333,''), 
		new Array('Bridge, River, WaterFall','lan_bridgewaterfall.jpg',500,333,''), 
		new Array('Large Tree Planted','lan_landscape_bigjob.jpg',500,333,''), 
		new Array('Work in Progress','lan_landscape_bigjob2.jpg',500,333,''), 
		new Array('No Job (or Tree) Too Big','lan_landscape_bigtree.jpg',500,333,''), 
		new Array('Columbus Medical Center','lan_landscape_cmc.jpg',700,303,''), 
		new Array('Pond','lan_landscape_pond.jpg',500,333,'') 
    ),0,'0','Best Landscape Company provides planting designs and installations as well as planting design builds for commercial and residential installations.'
  ),
  new Array('Best Nursery and Gifts','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Spring Color','nur_nursery_colorful.jpg',500,333,''), 
		new Array('Best Nursery','nur_nursery_fullshot.jpg',500,333,''), 
		new Array('Best Nursery','nur_nursery_landscape.jpg',700,342,''), 
		new Array('Pond','nur_nursery_pond.jpg',500,333,''), 
		new Array('Best Nursery','nur_nursery_redflowers.jpg',500,443,''), 
		new Array('Waterfall/River','nur_nursery_waterfall.jpg',500,333,''), 
		new Array('School House','nur_school_house.jpg',500,333,'')  
    ),0,'1','Best Nursery and Gifts, located on 12 acres, is the largest nursery in the area. We feature a unique gift shop, Diana&rsquo;s Best, which is located inside the former Fortson Road Public School, which was established in 1898. '
  ),
  new Array('Best Irrigation Company','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','irr_irrigation_flowers.jpg',500,333,''), 
		new Array('','irr_irrigation_median.jpg',500,333,''), 
		new Array('','irr_irrigation_sprinklers.jpg',500,333,'') 
    ),0,'2','Best Irrigation Company provides all facets of irrigation; design, installation, and design build for commercial and residential needs. '
  ),
  new Array('Best Landscape Maintenance Company','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('AFLAC Administration Services Facility - August 2001','maintenance_aflac.jpg',700,194,''), 
		new Array('Columbus Regional Medical Center Campus','maintenance_flowers.jpg',500,333,''), 
		new Array('AFLAC Tower','maintenance_plants.jpg',500,333,''), 
		new Array('AFLAC Tower','maintenance_professional.jpg',222,333,'') 
    ),0,'3','Best Landscape Maintenance Company is tailored specifically for commercial application. We provide commercial maintenance services to many local businesses, entities, and organizations throughout the Columbus, Georgia, and Phenix City, Alabama, areas. '
  )    
)

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 menu_portfolio() {
  var jp;
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td>Choose a category:&nbsp;<select name="cat" class="select1" onChange="if (this.value.length!=0) window.location=this.value" style="font-size:9px;">');
  document.write('<option value="portfolio.htm">Categories Menu</option>');
  for (jp=0;jp<arImages.length;jp++) {
    document.write('<option value="'+pageName+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');
  }  
  document.write('</select></td></tr>')
  document.write('</table>');
}  
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  if (arImages[section][4][number][0]!='')
   showMessage('imagemediumname',arImages[section][4][number][0]);   
  else
   showMessage('imagemediumname','Photo '+Number(Number(number)+1));
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
