
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gallery.htm';
scriptName = 'gallery.js';
countX = 3;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Residential (multi-family)','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('','ozuma_and_westwood_palazzo_079.jpg',266,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''), 
		new Array('','ozuma_and_westwood_palazzo_086.jpg',600,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''), 
		new Array('','ozuma_and_westwood_palazzo_092.jpg',600,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''),
		new Array('','merlexmultifamilyprojects_011.jpg',600,400,'Renaissance at Uptown Orange - Orange, CA','Renaissance at Uptown Orange - Orange, CA',''),
		new Array('','merlexjobinpismo.jpg',533,400,'Pismo Beach, CA','Pismo Beach, CA',''), 	
		new Array('','94.jpg',640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//1
		new Array('','100.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//2
//		new Array('','101.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//3
//		new Array('','102.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//4
		new Array('','103.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//5
//		new Array('','106.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//6
		new Array('','110.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//7
		new Array('','114.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//8
		new Array('','9.jpg', 640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253'),	//9	
//		new Array('','14.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA',''),	//10	
		new Array('','19.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253'),	//11	
//		new Array('','20.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','11/4P-1481'),	//12	
		new Array('','21.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253'),	//13
		new Array('','23.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-1336-2'),	//14
		new Array('','24.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253 & 11/4P-1481'),	//15
		new Array('','28.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253'),	//16										
		new Array('','29.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253 & 11/4P-1481'),	//17
		new Array('','30.jpg',	640,480,'Playa Vista-Marina Del Rey, CA','Playa Vista-Marina Del Rey, CA','P-3253 &      P-1336-2'),	//18
		new Array('','116.jpg',	381,480,'Hamilton Cove - Catalina Island, CA','Hamilton Cove - Catalina Island, CA','P-100'),	//19	
		new Array('','149.jpg',	450,338,'Vista Del Sol-Santa Barbara, CA','Vista Del Sol-Santa Barbara, CA','P-100'),	//20
		new Array('','IMG_5040.jpg', 640, 480,'Dolphin Bay Resort - Pismo Beach, CA','Dolphin Bay Resort- Pismo Beach, CA',''),	//21
		new Array('','IMG_6162.jpg', 640, 480,'Cabrillo Apartments Cal Poly San Luis Obispo, CA','Cabrillo Apartments Cal Poly San Luis Obispo, CA',''),
		new Array('','Luxe-Villas.jpg', 360, 480,'Luxe Villas - Brentwood, CA','Luxe Villas - Brentwood, CA',''),
		new Array('','Vizcaya.jpg', 500, 375,'Vizcaya - Brentwood, CA','Vizcaya - Brentwood, CA','3/4P-4526-1'),
		new Array('','schollcanyonestates.jpg',533,400,'Scholl Canyon Estates - Eagle Rock, CA','Scholl Canyon Estates - Eagle Rock, CA',''),
		new Array('','monarchestates.jpg',533,400,'Monarch Estates - Encino, CA','Monarch Estates - Encino, CA',''),
		new Array('','5228.jpg',300,400,'Pacific Beacon - San Diego, CA','Pacific Beacon - San Diego, CA','P-873-1, P-4442, 1 3/4P-2244')
    ),0
  ),
  new Array('Commercial Gallery','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('','ozuma_and_westwood_palazzo_079.jpg',266,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''), 
		new Array('','ozuma_and_westwood_palazzo_086.jpg',600,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''), 
		new Array('','ozuma_and_westwood_palazzo_092.jpg',600,400,'Palazzo at Westwood Village - Los Angeles, CA','Palazzo at Westwood Village - Los Angeles, CA',''),	
		new Array('','villacateringmerlexjob_002.jpg',600,400,'The Villa - Orange, CA','The Villa - Orange, CA',''),
		new Array('','eaglerock1.jpg',533,400,'Colorado Terrace - Eagle Rock, CA','Colorado Terrace - Eagle Rock, CA',''), 
		new Array('','merlexmultifamilyprojects_004.jpg',600,400,'Kaiser Permanente Hospital - Anaheim, CA','Kaiser Permanente Hospital - Anaheim, CA',''), 	
	    new Array('','0.jpg',500,450,'Merlex proudly presents the St. Regis Hotel in Monarch Beach, CA. We provided the color coat 20/30 sand finish exterior stucco, as well as bonded and coated the architectural details with our PolyPrep. Water features were sealed with our Super Blockade cementitious coating. The resort exhibits beauty and quality, technologically as well as aesthetically.', 'St. Regis Hotel-Monarch Beach, CA','P-100'),	//1
	    new Array('','4.jpg', 300,268,'Universal Studios City Walk in Los Angeles was an exciting project for Merlex Stucco. We worked closely with the design team to accomplish the colors they desired. Santa Barbara Finish was used along with a custom color to achieve the terracotta color that was chosen.','Universal City Walk-Los Angeles, CA',''),	//2
	    new Array('','5.jpg', 298,222,'Photo 1','Universal City Walk-Los Angeles, CA',''),	//3
	    new Array('','6.jpg', 300,295,'The famous Hollywood Bowl underwent a remodel in 1998. Merlex Stucco’s Float Finish was used on the surrounding buildings to accomplish the desired texture. A variety of textures can be achieved with cementitious stucco depending on the size of aggregates used, application method and use of a float or trowel.','Hollywood Bowl-Hollywood, CA','3/4P-996-2'),	//4
	    new Array('','8.jpg', 300,205,'The design team at Steve Erlich & Associates, Architects, Santa Monica, CA and the principles of Dream Works SKG wanted to create the authentic stucco finish of an Italian villa on the new Dream Works Animation Studio complex in Glendale, CA.','DreamWorks Studios-Burbank, CA',''),	//5								
	    new Array('','115.jpg', 621,480,'Hyatt Regency - Huntington Beach, CA', 'Hyatt Regency-Huntington Beach, CA','P-100',''), //6
	    new Array('','140.jpg', 450,338,'Kaiser Permanente Hospital- Irvine, CA', 'Kaiser Permanente Hospital- Irvine, CA','P-1013 & P-1682'), //9		
	    new Array('','141.jpg',	450,338,'Richard Nixon Library & Birthplace - Yorba Linda, CA', 'Richard Nixon Library & Birthplace- Yorba Linda, CA','P-2913'), //10
	    new Array('','142.jpg',	450,338,'Richard Nixon Library & Birthplace - Yorba Linda, CA', 'Richard Nixon Library & Birthplace- Yorba Linda, CA',''), //11
	    new Array('','143.jpg',	450,338,'Richard Nixon Library & Birthplace - Yorba Linda, CA', 'Richard Nixon Library & Birthplace- Yorba Linda, CA',''),  //12
	    new Array('','164.jpg',	450,338,'Radio Active - Rancho Mirage, CA', 'Radio Active- Rancho Mirage, CA','P-899 & P-873 & P-146'),  //13
	    new Array('','166.jpg',	450,323,'Hoag Hospital - Newport Beach, CA', 'Hoag Hospital- Newport Beach, CA','P-105'),  //13
	    new Array('','167.jpg',	450,338,'Vanguard University - Costa Mesa, CA', 'Vanguard University- Costa Mesa, CA','P-850 & P-850-1'), 
	    new Array('','IMG_4341.jpg', 640,480,'Town Square - Rancho Cucamonga, CA', 'Town Square-Rancho Cucamonga, CA',''),
		new Array('','IMG_4409.jpg', 640,480,'Northridge, CA', 'Northridge, CA',''),
		new Array('','IMG_4413.jpg', 640,480,'Northridge, CA', 'Northridge, CA',''),
		new Array('','DSC00915.jpg', 500,375,'Victoria Gardens Cultural Center - Rancho Cucamonga, CA', 'Victoria Gardens Cultural Center - Rancho Cucamonga, CA',''),
		new Array('','DSC00918.jpg', 500,375,'Victoria Gardens Cultural Center - Rancho Cucamonga, CA', 'Victoria Gardens Cultural Center - Rancho Cucamonga, CA',''),
		new Array('','DSC01268.jpg', 450,338,'Stadium Lofts - Anaheim, CA', 'Stadium Lofts - Anaheim, CA',''),
		new Array('','080123105838.jpg', 640,480,'AMC Theater - Riverside, CA', 'AMC Theater - Riverside, CA','3/4P-155-3 and P-100'),
		new Array('','commercial.jpg', 543,391,'', '',''),
		new Array('','img_5412.jpg',533,400,'Mother\'s Market & Kitchen: Santa Ana, CA','Mother\'s Market & Kitchen: Santa Ana, CA','P-100, P-170-3, P-5004-2, P-3684-3'),
		new Array('','petco.jpg',533,400,'Inglewood, CA','Inglewood, CA',''),
		new Array('','cvs.jpg',300,400,'Inglewood, CA','Inglewood, CA',''), 
		new Array('','marshalls.jpg',533,400,'Inglewood, CA','Inglewood, CA',''),
		new Array('','firestation1.jpg',533,400,'Manhattan Beach, CA','Manhattan Beach, CA',''), 
		new Array('','firestation.jpg',533,400,'Manhattan Beach, CA','Manhattan Beach, CA',''), 
		new Array('','sushi.jpg',533,400,'Sashi Sushi: Mahanttan Beach, CA','Sashi Sushi: Mahanttan Beach, CA',''), 		
		new Array('','shoppingmall1.jpg',533,400,'Trilogy Spa: Manhattan Beach, CA','Trilogy Spa: Manhattan Beach, CA',''), 
		new Array('','shoppingmall.jpg',533,400,'Petros: Manhattan Beach, CA','Petros: Manhattan Beach, CA',''), 
		new Array('','boutiquehotel.jpg',533,400,'Shade Boutique Hotel: Manhattan Beach, CA','Shade Boutique Hotel: Manhattan Beach, CA','')
    ),1
  ),
  new Array('Residential (single family)','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
		new Array('','pelican_crest_and_crystal_cove_houses_030.jpg',266,400,'Pelican Crest, CA','Pelican Crest, CA',''), 
	    new Array('','1.jpg', 350,303,'Merlex works with a variety of projects, providing home builders with all of their stucco needs. This beautiful tract home project is located in Yorba Linda, California within the Black Gold Golf Course Community.', 'Ladera Ranch-South Orange County','P-941-1'),	//1
	    new Array('','2.jpg', 350,283,'Merlex customers include top home builders such as Shea Homes, John Laing Homes, Standard Pacific, Toll Brothers, and many more.', 'Ladera Ranch-South Orange County','P-706-1'),	//2
	    new Array('','3.jpg', 350,283,'Yet another beautiful tract home with custom color coat stucco finishing.', 'Ladera Ranch-South Orange County','P-2289'), //3
	    new Array('','7.jpg', 300,429,'This dramatic photo demonstrates wonderful contrast between the stucco ceiling and marble flooring. The ceiling of this residential hallway is clad with Merlex Santa Barbara Finish Color Coat Stucco. This beautiful private residence is located in Newport Coast, California.','Newport Coast, CA','PP-655'),	//4	
//	    new Array('','117.jpg',	640,480,'Rosecrest-Yorba Linda, CA','Rosecrest-Yorba Linda, CA','P-2850'),	//5		
	    new Array('','118.jpg',	640, 480,'Rosecrest-Yorba Linda, CA','Rosecrest-Yorba Linda, CA','P-328'),	//6		
//	    new Array('','119.jpg',	640, 480,'Rosecrest-Yorba Linda, CA','Rosecrest-Yorba Linda, CA','P-5228-2'),	//7		
	    new Array('','120.jpg',	640, 480,'The Fairways-Yorba Linda, CA','The Fairways-Yorba Linda, CA','P-20'), //8			
	    new Array('','121.jpg',	640, 480,'The Fairways-Yorba Linda, CA','The Fairways-Yorba Linda, CA','P-2435-3'), //9		
	    new Array('','122.jpg',	640, 480,'The Fairways-Yorba Linda, CA','The Fairways-Yorba Linda, CA','P-2435-3'), //10				
	    new Array('','123.jpg',	343, 308,'Long Beach, CA','Long Beach, CA','P-2900'), //11
	    new Array('','127.jpg',	448, 336,'La Quinta, CA','La Quinta, CA','PPP-450'), //12	
	    new Array('','132.jpg',	448, 336,'Big Horn-Palm Desert, CA','Big Horn-Palm Desert, CA','3/4P-1265-2'), //13
	    new Array('','130.jpg',	448, 336,'Big Horn-Palm Desert, CA','Big Horn-Palm Desert, CA','3/4P-1265-2'), //14
	    new Array('','135.jpg',	448, 336,'Big Horn-Palm Desert, CA','Big Horn-Palm Desert, CA','3/4P-1265-2,  P-1192-3'), //15
	    new Array('','136.jpg',	448, 336,'Big Horn-Palm Desert, CA','Big Horn-Palm Desert, CA','P-1866-2'), //16
	    new Array('','129.jpg',	448, 336,'Big Horn-Palm Desert, CA','Big Horn-Palm Desert, CA','P-2256-2'), //17
	    new Array('','128.jpg',	448, 336,'The Quarry-Palm Desert, CA','The Quarry-Palm Desert, CA','P-1782-3'), //18
	    new Array('','133.jpg',	448, 336,'The Quarry-Palm Desert, CA','The Quarry-Palm Desert, CA','P-1782-3'), //19
	    new Array('','137.jpg',	448, 336,'The Quarry-Palm Desert, CA','The Quarry-Palm Desert, CA','P-1782-3'), //20	
	    new Array('','144.jpg',	400, 300,'Lake Sherwood- Westlake, CA','Lake Sherwood- Westlake, CA',''), //21
	    new Array('','145.jpg',	400, 300,'Lake Sherwood- Westlake, CA','Lake Sherwood- Westlake, CA','P-1112'), //22
//	    new Array('','146.jpg',	400, 300,'Lake Sherwood- Westlake, CA','Lake Sherwood- Westlake, CA','1-1/4P-891'), //23
	    new Array('','1530.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA','11/2P-27'), //24			
	    new Array('','1532.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA',''), //25
	    new Array('','1536.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA','11/2P-27'), //26
//	    new Array('','1540.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA','P-972'), //27
	    new Array('','1546.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA','P-972'), //28
	    new Array('','1553.jpg', 400, 300,'Vicara at Quail Hill- Irvine, CA','Vicara at Quail Hill- Irvine, CA','3/4P-635-1'), //29
	    new Array('','1562.jpg', 400, 300,'Sienna at Quail Hill- Irvine, CA','Sienna at Quail Hill- Irvine, CA','P-75'), //30
	    new Array('','1570.jpg', 400, 300,'Sienna at Quail Hill- Irvine, CA','Sienna at Quail Hill- Irvine, CA',''), //31
	    new Array('','1572.jpg', 400, 300,'Sienna at Quail Hill- Irvine, CA','Sienna at Quail Hill- Irvine, CA','1-1/2P-2162'),  //32
	    new Array('','147.jpg',	450, 358,'Sienna at Quail Hill- Irvine, CA','Covenant Hills- Ladera Ranch, CA','1-1/4P-1664'),  //33
	    new Array('','148.jpg',	450, 358,'Sienna at Quail Hill- Irvine, CA','Covenant Hills- Ladera Ranch, CA','1-1/4P-1644'),  //34
	    new Array('','150.jpg',	338, 451,'Spyglass Ridge-Villas Antiqua-Pismo Beach, CA','Spyglass Ridge-Villas Antiqua-Pismo Beach, CA','11/4P-5139'),  //35
	    new Array('','151.jpg',	338, 451,'Autumn Glen-Santa Maria, CA','Autumn Glen-Santa Maria, CA','P-2400'),  //36
//	    new Array('','152.jpg',	338, 451,'Autumn Glen-Santa Maria, CA','Autumn Glen-Santa Maria, CA',''),  //37
//	    new Array('','153.jpg',	450, 338,'Autumn Glen-Santa Maria, CA','Autumn Glen-Santa Maria, CA','P-17'),  //38
	    new Array('','154.jpg',	450, 338,'Traditions At Bradley Square-Santa Maria, CA','Traditions At Bradley Square-Santa Maria, CA',''),  //39
	    new Array('','155.jpg',	450, 338,'Traditions At Bradley Square-Santa Maria, CA','Traditions At Bradley Square-Santa Maria, CA','1 1/4P-1644'),  //40
	    new Array('','156.jpg',	450, 338,'Traditions At Bradley Square-Santa Maria, CA','Traditions At Bradley Square-Santa Maria, CA','P-872'),  //41
	    new Array('','157.jpg',	450, 338,'Traditions At Bradley Square-Santa Maria, CA','Traditions At Bradley Square-Santa Maria, CA',''),  //42
	    new Array('','158.jpg',	450, 338,'Traditions At Bradley Square-Santa Maria, CA','Traditions At Bradley Square-Santa Maria, CA','1/2P-1905-1'),  //43
	    new Array('','159.jpg',	338, 451,'Lane&#8216;s End-Lompoc, CA','Lane&#8216;s End-Lompoc, CA','P-2606'),  //44	
	    new Array('','160.jpg',	450, 338,'Lane&#8216;s End-Lompoc, CA','Lane&#8216;s End-Lompoc, CA','P-170'),  //45
	    new Array('','161.jpg',	450, 338,'Ballard Canyon-Buellton, CA','Ballard Canyon-Buellton, CA','P-1677'),  //46
	    new Array('','162.jpg',	450, 338,'Ballard Canyon-Buellton, CA','Ballard Canyon-Buellton, CA','P-505'),  //47
	    new Array('','163.jpg',	450, 338,'Shadowlakes- Indio, CA','Shadowlakes- Indio, CA','P-278'),  //48
	    new Array('','165.jpg',	450, 338,'Corona Del Mar, CA','Corona Del Mar, CA','P-2400'),  //49
	    new Array('','168.jpg',	640, 480,'Yorba Linda, CA','Yorba Linda, CA','P-1805-3'),  //50
//	    new Array('','169.jpg',	450, 338,'Pismo Beach, CA','Pismo Beach, CA',''),  //51
	    new Array('','170.jpg',	450, 338,'Pismo Beach, CA','Pismo Beach, CA',''),  //52
	    new Array('','Vero-product-pics-005.jpg', 360, 480,'Philharmonic Home-Ladera Ranch, CA','Philharmonic Home-Ladera Ranch, CA','1 1/2P-107'),  //53	
	    new Array('','MerlexNewportBalboahousehum.jpg',	640, 480,'Balboa, CA','Balboa, CA','P-505'),  //54
	    new Array('','manhattan_beach_001.jpg', 640, 480,'Manhattan Beach, CA','Manhattan Beach, CA','PP-5113'),  //55
	    new Array('','IMG_5750.jpg', 640, 480,'Andalusia - Indio, CA','Andalusia - Indio, CA', ''),  //56
	    new Array('','IMG_5751.jpg', 640, 480,'Andalusia - Indio, CA','Andalusia - Indio, CA', ''),  //57
//	    new Array('','IMG_5757.jpg', 640, 480,'Andalusia - Indio, CA','Andalusia - Indio, CA', ''),  //58
	    new Array('','IMG_5766.jpg', 640, 480,'Andalusia - Indio, CA','Andalusia - Indio, CA', ''),  //59
	    new Array('','IMG_5773.jpg', 360, 480,'Andalusia - Indio, CA','Andalusia - Indio, CA', 'P-92'),   //60
	    new Array('','IMG_5222.jpg', 360, 480,'Shady Canyon, CA','Shady Canyon, CA', 'P-686'),   //61
//	    new Array('','DSC00450.jpg', 338, 450,'Tesoro Villas-Sylmar, CA','Tesoro Villas-Sylmar, CA', ''),   //62
	    new Array('','DSC00454.jpg', 450, 338,'Roxford Glen - Sylmar, CA','Roxford Glen - Sylmar, CA', 'PP-589'),   //63
	    new Array('','DSC00456.jpg', 450, 338,'Roxford Glen-Sylmar, CA','Roxford Glen - Sylmar, CA', ''),   //64
	    new Array('','DSC00463.jpg', 450, 338,'Roxford Glen- Sylmar,CA','Roxford Glen - Sylmar, CA', ''),   //65
	    new Array('','DSC03017.jpg', 500, 375,'The Tides: Newport Coast, CA','The Tides: Newport Coast, CA', ''),   //66
	    new Array('','080213093938.jpg', 533, 400,'Shady Canyon, CA','Shady Canyon, CA', '11/4P-141'), //68
	    new Array('','IMG_6937.jpg', 500, 375,'Shady Canyon, CA','Shady Canyon, CA', '3/4P869-2'), //68
	    new Array('','IMG_6914.jpg', 500, 375,'Shady Canyon, CA','Shady Canyon, CA', ''), //68
		new Array('','img_6925_2.jpg', 450, 338,'','', ''),
		new Array('','cabotripwithalbertojobs_206.jpg',533,400,'San Jose del Cabo, Mexico','San Jose del Cabo, Mexico',''), 
		new Array('','cabotripwithalbertojobs_208.jpg',533,400,'San Jose del Cabo, Mexico','San Jose del Cabo, Mexico',''), 
		new Array('','cabotripwithalbertojobs_256.jpg',263,350,'Espiritu Del Mar: San Jose del Cabo, Mexico','Espiritu Del Mar: San Jose del Cabo, Mexico',''),
		new Array('','merlexpismobeach.jpg',533,400,'Spyglass Pointe: Pismo Beach, CA','Spyglass Pointe: Pismo Beach, CA',''), 
		new Array('','merlexshadycanyon.jpg',533,400,'Il Colore: Shady Canyon, CA','Il Colore: Shady Canyon, CA',''),
		new Array('','stevehrehasbf.jpg',533,400,'Laguna Beach, CA','Laguna Beach, CA','')
    )
  )  
)

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;">');
  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][5]!='')
   showMessage('imagemediumname',arImages[section][4][number][5]);   
  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]);
}
