// JavaScript Document

smallSizes = new Array(113,113);
mediumSizes = new Array(113,113);
pageName = 'productsR.php';
scriptName = 'portfolio.js';
countX = 3;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height

var stuff  = '<div>Marquee Dark<br /><br /><ul><li><span class="attributeTitle">Color:</span> Blended 2-Tone (Sod Green/Park Green) 2/3 Park Green, 1/3 Sod Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 58 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/marquee_light_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul></div>';

var arImages = new Array(
						 
  new Array('Our Products','images/','images/','images/',
    new Array(
		new Array(stuff,'product_marquee_dark.jpg',113,113,'Marquee Dark'), 
		
		new Array('Marquee Pro<br /><br /><ul><li><span class="attributeTitle">Color:</span> Blended 2-Tone (Sod Green/Park Green)</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 74 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/marquee_pro_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_signature_peturf.jpg',113,113,'Marquee Pro'),
		
		new Array('Marquee Light<br><br><ul><li><span class="attributeTitle">Color:</span> Blended 2-Tone (Sod Green/Park Green) 2/3 Park Green, 1/3 Sod Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 58 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/marquee_light_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_marquee_light.jpg',113,113,'Marquee Light'), 
		new Array('Natures Blend<br><br><ul><li><span class="attributeTitle">Color:</span> Tri-Color</li><li><span class="attributeTitle">Yarn Type:</span> Slit Film/Monofilament/Polyethylene with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 67 oz.</li><li><span class="attributeTitle">Pile Height:</span> 2.0 in.</li><li class="specSheet"><a href="pdf/spec_sheets/natures_blend.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_natures_blend.jpg',113,113,'Natures Blend'), 
		
		
		new Array('Happy Boarders<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green</li><li><span class="attributeTitle">Yarn Type:</span> Texturized Nylon</li><li><span class="attributeTitle">Face Weight:</span> 40 oz.</li><li><span class="attributeTitle">Pile Height:</span> 0.5 in.</li><li class="specSheet"><a href="pdf/spec_sheets/nylon_putt.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_nylon_putt.jpg',113,113,'Happy Boarders'), 
		
		new Array('Poly Putt<br><br><ul><li><span class="attributeTitle">Color:</span> Park Green</li><li><span class="attributeTitle">Yarn Type:</span> Texturized Nylon</li><li><span class="attributeTitle">Face Weight:</span> 28 oz.</li><li><span class="attributeTitle">Pile Height:</span> 0.5 in.</li><li class="specSheet"><a href="pdf/spec_sheets/poly_putt.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_poly_putt.jpg',113,113,'Poly Putt'), 
		
		new Array('Tru Putt<br><br><ul><li><span class="attributeTitle">Color:</span> Park Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Slit Film</li><li><span class="attributeTitle">Face Weight:</span> 34 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.0 in.</li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_tru_putt.jpg',113,113,'Tru Putt'), 
		
		new Array('Royal<br><br><ul><li><span class="attributeTitle">Color:</span> Sod Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 65 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/royal_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_royal.jpg',113,113,'Royal'), 
		
		new Array('Majestic<br><br><ul><li><span class="attributeTitle">Color:</span> Park Green 2-Tone</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Nylon Thatch</li><li><span class="attributeTitle">Face Weight:</span> 65 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/majestic_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_majestic.jpg',113,113,'Majestic'),
		
		new Array('Premier 1 Tone<br><br><ul><li><span class="attributeTitle">Color:</span> Sod Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament</li><li><span class="attributeTitle">Face Weight:</span> 42 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/premier_1_tone_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_premier_1_tone.jpg',113,113,'Premier 1 Tone'),
		
		new Array('Premier 2 Tone<br><br><ul><li><span class="attributeTitle">Color:</span> 50% Sod Green, 50% Park Green</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament</li><li><span class="attributeTitle">Face Weight:</span> 42 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/premier_2_tone_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_premier_2_tone.jpg',113,113,'Premier 2 Tone'),
		
		new Array('Elite<br><br><ul><li><span class="attributeTitle">Color:</span> Park Green</li><li><span class="attributeTitle">Yarn Type:</span> XP Pro Slit Film (LSR)</li><li><span class="attributeTitle">Face Weight:</span> 40 oz.</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in.</li><li class="specSheet"><a href="pdf/spec_sheets/elite_turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_elite.jpg',113,113,'Elite'), 
		new Array('Diamond<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green, Olive Green</li><li><span class="attributeTitle">Yarn Type:</span> Monofilament</li><li><span class="attributeTitle">Face Weight:</span> 48 oz</li><li><span class="attributeTitle">Pile Height:</span> 1 7/8 in</li><li class="specSheet"><a href="pdf/spec_sheets/diamond-turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_dimond_big.jpg',113,113,'Diamond'), 
		new Array('Sierra<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green/Lime Green/ Brown Thatch</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Thatch</li><li><span class="attributeTitle">Face Weight:</span> 60 oz</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in</li><!--<li class="specSheet"><a href="pdf/spec_sheets/" target="_blank"> Download Spec Sheet</a></li>--></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_sierra_big.jpg',113,113,'Sierra'), 
		new Array('Sierra Pro<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green/Lime Green/ Brown Thatch</li><li><span class="attributeTitle">Yarn Type:</span> Polyethylene Monofilament with Thatch</li><li><span class="attributeTitle">Face Weight:</span> 80 oz</li><li><span class="attributeTitle">Pile Height:</span> 1.875 in</li><!--<li class="specSheet"><a href="pdf/spec_sheets/" target="_blank"> Download Spec Sheet</a></li>--></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_sierra_big.jpg',113,113,'Sierra Pro'), 
		new Array('Emerald<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green, Lime Green</li><li><span class="attributeTitle">Yarn Type:</span> Monofilament</li><li><span class="attributeTitle">Face Weight:</span> 48 oz</li><li><span class="attributeTitle">Pile Height:</span> 1.75 in</li><li class="specSheet"><a href="pdf/spec_sheets/emerald-turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_emerald_big.jpg',113,113,'Emerald'), 
		new Array('Emerald Pro<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green, Lime Green</li><li><span class="attributeTitle">Yarn Type:</span> Monofilament</li><li><span class="attributeTitle">Face Weight:</span> 68 oz</li><li><span class="attributeTitle">Pile Height:</span> 3/8 in</li><li class="specSheet"><a href="pdf/spec_sheets/emerald-prof-turf.pdf" target="_blank"> Download Spec Sheet</a></li></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_emerald_pro_big.jpg',113,113,'Emerald Pro'), 
		new Array('Pet Turf<br><br><ul><li><span class="attributeTitle">Color:</span> Field Green</li><li><span class="attributeTitle">Yarn Type:</span> Slit Film, Polyethylene Monofilament with Thatch</li><li><span class="attributeTitle">Face Weight:</span> 74 oz</li><li><span class="attributeTitle">Pile Height:</span> 1.25 in</li><!--<li class="specSheet"><a href="pdf/spec_sheets/" target="_blank"> Download Spec Sheet</a></li>--></ul><ul class="icons"><li><img src="images/icon_environment_friendly.gif" alt="[ Icon ] Environment Friendly" /></li><li><img src="images/icon_mother_approved.gif" alt="[ Icon ] Mother Approved" /></li><li><img src="images/icon_perfect_for_pets.gif" alt="[ Icon ] Perfect For Pets" /></li><li><img src="images/icon_hypoallergen_safe.gif" alt="[ Icon ] Hypoallergen Safe" /></li></ul>','product_petturf_big.jpg',113,113,'Pet Turf')
		
	),0
  )
  
  /*
  ,
  new Array('Permeable Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Permeable_Pavers_001.jpg',275,400,''), 
		new Array('','Permeable_Pavers_002.jpg',303,400,''), 
		new Array('','Permeable_Pavers_003.jpg',271,400,''), 
		new Array('','Permeable_Pavers_004.jpg',323,400,''), 
		new Array('','Permeable_Pavers_005.jpg',528,400,'') 
    ),0
  ),
  new Array('Walls & Pilasters','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Walls_Pilasters_001.jpg',700,384,''), 
		new Array('','Walls_Pilasters_003.jpg',270,400,''), 
		new Array('','Walls_Pilasters_004.jpg',401,400,''), 
		new Array('','Walls_Pilasters_005.jpg',397,400,''), 
		new Array('','Walls_Pilasters_006.jpg',345,400,''), 
		new Array('','Walls_Pilasters_007.jpg',500,400,'') 
    ),0
  )
  */
)

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">');
  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]);
}