
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('Bridal Show at Diamond Bar GC','Bridal Show at Diamond Bar GC.JPG',533,400,''),
		new Array('Cheese','Cheese.JPG',533,400,''),
		new Array('Hotel Maya','Hotel Maya.JPG',533,400,''),
		new Array('Los Verdes Country Club','Los Verdes Country Club.JPG',533,400,''),
		new Array('Mountain Gate CC','Mountain Gate CC.JPG',533,400,''),
		new Array('Portofino Hotel and Yacht Club','Portofino Hotel and Yacht Club.JPG',533,400,''),
		new Array('Working with The Taste Restaurant','Working with The Taste Restaurant.JPG',533,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('Double Fountain','Double Fountain.JPG',533,400,''),
		new Array('Fox Studios','Fox Studios.JPG',533,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('Bel Air Bay Club','Bel Air Bay Club.JPG',533,400,''),
		new Array('Beverly Hills Film Festival','Beverly Hills Film Festival.JPG',307,400,''),
		new Array('Beverly Hills','Beverly Hills.jpg',255,400,''),
		new Array('Congregation Ner Tamid','Congregation Ner Tamid.JPG',533,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('White Chocolate at SeaCliff CC','White Chocolate at SeaCliff CC.JPG',533,400,''),
		new Array('Blue and Purple and Brazilian Film Festival','color_Blue and Purple and Brazilian Film Festival.JPG',534,400,''),
		new Array('Brazilian Film Festival','color_Brazilian Film Festival.JPG',533,400,''),
		new Array('Cheese + Red Chocolate','color_Cheese + Red Chocolate.JPG',533,400,''),
		new Array('Light Pink at Fox Studios','color_Light Pink at Fox Studios.JPG',533,400,''),
		new Array('Pink Chocolate at Fox Studios','color_Pink Chocolate at Fox Studios.JPG',533,400,''),
		new Array('Purple Chocolate at SeaCliff CC','color_Purple Chocolate at SeaCliff CC.jpg',300,400,''),
		new Array('Red Chocolate','color_Red Chocolate.JPG',533,400,''),
		new Array('SeaCliff CC Huntington Beach','color_SeaCliff CC Huntington Beach.jpg',533,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('Bridal Show at SeaCliff CC','setup_Bridal Show at SeaCliff CC.JPG',533,400,''),
		new Array('Double Set Up','setup_Double Set Up.JPG',533,400,''),
		new Array('Easter Sunday at Mountain Gate CC','setup_Easter Sunday at Mountain Gate CC.jpg',296,400,''),
		new Array('Fox Studios','setup_Fox Studios.JPG',533,400,''),
		new Array('Hotel Maya Long Beach','setup_Hotel Maya Long Beach.JPG',533,400,''),
		new Array('Portofino Hotel and Yacht Club','setup_Portofino Hotel and Yacht Club.JPG',533,400,''),
		new Array('Set Up at SeaCliff CC','setup_Set Up at SeaCliff CC.JPG',533,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('Holiday Events','images/photos/small/','images/photos/medium/','images/photos/big/',
new Array( 
new Array('Easter at Portofino Hotel and Yacht Club','Easter at Portofino Hotel and Yacht Club.jpg',533,400,''),
new Array('Holiday Event at SeaCliff CC','Holiday Event at SeaCliff CC.JPG',533,400,''),
new Array('Holiday Party at Doubletree Hotel Torrance','Holiday Party at Doubletree Hotel Torrance.JPG',533,400,''),
new Array('Kringle Loves Chocolate','Kringle Loves Chocolate.JPG',533,400,''),
new Array('SeaCliff CC Huntington Beach','SeaCliff CC Huntington Beach.JPG',533,400,''),
new Array('Setting Up for a Holiday Event at Dave\'s Garage','Setting Up for a Holiday Event at Dave\'s Garage.JPG',533,400,'') 
)
),

new Array('Hollywood','images/photos/small/','images/photos/medium/','images/photos/big/',
new Array( 
new Array('Brazilian Film Festival','Brazilian Film Festival.JPG',194,400,''),
new Array('Fox Studios','Fox Studios.JPG',533,400,''),
new Array('Movie Premier at Fox Studios','Movie Premier at Fox Studios.JPG',533,400,''),
new Array('Pre-Grammy Event','Pre-Grammy Event.JPG',533,400,''),
new Array('Pre-Grammy Party - Beverly Hills','Pre-Grammy Party - Beverly Hills.JPG',533,400,''),
new Array('Pre-Grammy Party','Pre-Grammy Party.JPG',533,400,''),
new Array('The Upstairs Red Carpet','The Upstairs Red Carpet.JPG',533,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('Chocolate Lover Harrison Held and Guest','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,''),

		new Array('Beverly Hills Film Festival','guest_Beverly Hills Film Festival.jpg',550,351,''),
		new Array('Beverly Hills Party','guest_Beverly Hills Party.JPG',462,400,''),
		new Array('Beverly Hills','guest_Beverly Hills.JPG',533,400,''),
		new Array('Brazilian Film Festival','guest_Brazilian Film Festival.JPG',382,400,''),
		new Array('Dave\'s Garage Torrance','guest_Dave\'s Garage Torrance.JPG',533,400,''),
		new Array('Los Verdes County Club','guest_Los Verdes County Club.JPG',533,400,''),
		new Array('Mountain Gate CC','guest_Mountain Gate CC.JPG',533,400,''),
		new Array('Portofino Hotel and Yacht Club','guest_Portofino Hotel and Yacht Club.JPG',489,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]);
}


