
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'photos.htm';
scriptName = 'photos.js';
countX = 4;
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('27" Fountain','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('27\' Fountain','27.jpg',400,400,''),
		new Array('Autumn','Autumn.jpg',400,350,''),
		new Array('Bar Mitzvah','Bar Mitzvah.jpg',550,400,''),
//		new Array('Bloomingdale\'s Winter Wonderland White Chocolate','Bloomingdale\'s Winter Wonderland White Chocolate.jpg',550,400,''),
		new Array('Client With Green Color Scheme','Client with Green Color Scheme.jpg',550,400,''),
		new Array('Dark Chocolate','Dark Chocolate.jpg',300,448,''),
		new Array('Fountain And Surround','Fountain and Surround.jpg',400,350,''),
		new Array('Holiday Party','Holiday Party.jpg',550,400,''),
		//new Array('Milk Chocolate','Milk Chocolate.jpg',300,448,''),
		new Array('White Chocolate','White Chocolate.jpg',550,400,'')
		)
	),  
  new Array('34" Fountain','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('34\' Fountain','34.jpg',400,400,''),
		new Array('Bloomingdale\'s Winter Wonderland','Bloomingdale\'s Winter Wonderland.jpg',550,400,''),
		new Array('Milk Chocolate 2','Milk Chocolate 2.jpg',550,400,''),
		new Array('White Chocolate 2','White Chocolate 2.jpg',550,400,'')
		)
	),  
  new Array('44" Fountain','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('44\' Fountain','44.jpg',400,400,''),
		new Array('Dark Chocolate2','Dark Chocolate2.jpg',300,448,''),
		new Array('Dark Chocolate And Bendetto Protein Marshmallows','Dark Chocolate and Bendetto Protein Marshmallows.jpg',300,448,''),
		new Array('Dark Chocolate With Rose Topper','Dark Chocolate with Rose Topper.jpg',300,448,''),
		new Array('Milk Chocolate','Milk Chocolate.jpg',300,448,''),
		new Array('Picture By Sara Jordan Photograhy','Picture by Sara Jordan Photograhy.jpg',550,400,''),
		new Array('SeaCliff CC Bridal Show','SeaCliff CC Bridal Show.jpg',550,400,'')
		)
	),  

  new Array('Color Chocolate','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('California Scleroderma Foundation - Turquoise Fountain','California Scleroderma Foundation - Turquoise Fountain.jpg',550,400,''),
		new Array('Orange Chocolate For Halloween','Orange Chocolate for Halloween.jpg',300,448,''),
		new Array('Pink Bridal Shower','Pink Bridal Shower.jpg',550,400,''),
		new Array('Pink Chocolate With Topper','Pink Chocolate with Topper.jpg',550,400,''),
		new Array('Pink Chocolate','Pink Chocolate.jpg',550,400,'')
		)
	),  
  
  
  
  new Array('Toppers','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('Balloons','Balloons.jpg',550,400,''),
		new Array('Bobblehead','Bobblehead.jpg',300,448,''),
		new Array('Bride And Groom','Bride and Groom.jpg',400,350,''),
		new Array('Pink Rose','Pink Rose.jpg',550,400,''),
		new Array('Pumpkin','Pumpkin.jpg',550,400,''),
		new Array('Roses','Roses.jpg',550,400,'')
		)
	),  

  new Array('Dipping Items','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('Bananas','Bananas.jpg',300,448,''),
		new Array('Bar Mitzvah','Bar Mitzvah.jpg',550,400,''),
		new Array('Courtesy Of Alessandra Caprice Photography','Courtesy of Alessandra Caprice Photography.jpg',550,400,''),
		new Array('Courtesy Of Broccardo Photography','Courtesy of Broccardo Photography.jpg',550,400,''),
		new Array('Courtesy Of Caught In The Moment Photograhy','Courtesy of Caught in The Moment Photograhy.jpg',300,448,''),
		new Array('Graham Crackers And Cookies','Graham Crackers and Cookies.jpg',300,448,''),
		new Array('Pineapple And Nutter Butters','Pineapple and Nutter Butters.jpg',550,400,''),
		new Array('Rice Krispies Treats Courtesy Of Luminaire Images','Rice Krispies Treats Courtesy of Luminaire Images.jpg',550,400,''),
		new Array('Strawberries And Cream Puffs','Strawberries and Cream Puffs.jpg',550,400,''),
		new Array('Strawberries And Dark Chocolate','Strawberries and Dark Chocolate.jpg',400,350,''),
		new Array('Strawberries And Pink Chocolate','Strawberries and Pink Chocolate.jpg',400,350,''),
		new Array('Strawberries And White Chocolate','Strawberries and White Chocolate.jpg',300,448,'')
		)
	),
  
    new Array('Set Ups','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('Corner Work Space','Corner Work Space.jpg',550,400,''),
		new Array('Fountain At The End Of The Tables','Fountain at the End of the Tables.jpg',550,400,''),
		new Array('Fountain In Middle Of The Tables','Fountain in Middle of the Tables.jpg',550,400,''),
		new Array('Multiple Fountains','Multiple Fountains.jpg',550,400,''),
		new Array('Smaller Events','Smaller Events.jpg',550,400,'')

		)
	),
	
	  new Array('Candy Stations','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('Holiday Candy Station','Holiday Candy Station.jpg',550,400,''),
		new Array('Pink And White Up Close','Pink and White Up Close.jpg',550,400,''),
		new Array('Pink And White','Pink and White.jpg',550,400,''),
		new Array('Turquoise And Green','Turquoise and Green.jpg',550,400,'')	
	)
	),

  new Array('Guests Enjoying the Fountains','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('Academy Awards After Party','Academy Awards After Party.jpg',550,400,''),
		new Array('Acamedy Awards Party','Acamedy Awards Party.jpg',400,350,''),
		new Array('Chocolate Faces - #2','Chocolate Faces2.jpg',400,350,''),
		new Array('Chocolate Faces','Chocolate Faces.jpg',550,400,''),
		new Array('Chocolate On A Plate','Chocolate on a Plate.jpg',550,400,''),
		new Array('Cookies','Cookies.jpg',400,350,''),
		new Array('Corporate Event','Corporate Event.jpg',550,400,''),
		new Array('Holiday Event','Holiday Event.jpg',550,400,''),
		new Array('Marshmallows','Marshmallows.jpg',550,400,''),
		new Array('Milk Chocolate 3','Milk Chocolate 3.jpg',550,400,''),
		new Array('Open House','Open House.jpg',550,400,''),
		new Array('The Bride And Groom','The Bride and Groom.jpg',550,400,'')
	)
  )
)


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

