/***************************************************************************
* Create a photo object                                                    *
***************************************************************************/
function photo(id, galleries_id, photo_ref, section_code, src, width, height, caption, thumbnail, thumbnail_width, thumbnail_height, home, gallery, description, takendate, photographer, location, item_price, purchase_instruction) {
	this.id = id;
	this.galleries_id = galleries_id;
	this.photo_ref = photo_ref;
	this.section_code = section_code;
	this.src = src;
	this.width = width;
	this.height = height;
	this.caption = caption;
	this.thumbnail = thumbnail;
	this.thumbnail_width = thumbnail_width;
	this.thumbnail_height = thumbnail_height;
	this.home = home;
	this.gallery = gallery;
	this.description = description;
	this.takendate = takendate;
	this.photographer = photographer;
	this.location = location;
	this.item_price = item_price;
	this.purchase_instruction = purchase_instruction;
}
/***************************************************************************
* Create a gallery object                                                  *
***************************************************************************/

function gallery(id,featured_images,title,section_code) {
	this.id = id;
	this.featured_images = featured_images;
	this.title = title;
	this.section_code = section_code;}

/***************************************************************************
* Select a random value from a comma separated list                        *
***************************************************************************/
function randomListVal(list) {
	arrayVals = list.split(',');
	pos = Math.round(Math.random() * (arrayVals.length - 1));
	debug('Returning ' + arrayVals[pos] + ' as random image');
	return arrayVals[pos];
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('3507445,3481069');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if (!basic) {
			img.src = photos[j].src;
			img.width = photos[j].width;
			img.height = photos[j].height;
			}
			else {
				newImage = new Image(photos[j].width,photos[j].height);
				newImage.src = photos[j].src;
				document.images[img.name] = newImage;
				debug(newImage.src);
			}
			break;
		}
	}
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline() {
	
	imageID = randomListVal('3507445,3481069');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !((0) || (0))) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'Decode Designs (London): ' + photos[nextImg].caption;
										/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
						if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
						if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.
        *
* Gallery_id = id of gallery to choose                                     *
* 
 img = reference to html image                                       *
* in which to show image                                                   *
***************************************************************************/
function showGalleryImage(gallery_id, img) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(2143326,'','','','http://admin2.clikpic.com/ddlondon/images/Vista for web 3.jpg',400,301,'','http://admin2.clikpic.com/ddlondon/images/Vista for web 3_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[1] = new photo(2143327,'','','','http://admin2.clikpic.com/ddlondon/images/Vista for web 2.jpg',400,301,'','http://admin2.clikpic.com/ddlondon/images/Vista for web 2_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[2] = new photo(2208749,'','','','http://admin2.clikpic.com/ddlondon/images/GD17.jpg',400,470,'','http://admin2.clikpic.com/ddlondon/images/GD17_thumb.jpg',130, 153,0, 0,'','','','','','');
photos[3] = new photo(2208751,'','','','http://admin2.clikpic.com/ddlondon/images/GD8.jpg',400,300,'','http://admin2.clikpic.com/ddlondon/images/GD8_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[4] = new photo(2208899,'','','','http://admin2.clikpic.com/ddlondon/images/GD171.jpg',400,470,'','http://admin2.clikpic.com/ddlondon/images/GD171_thumb.jpg',130, 153,0, 0,'Our floor lamps are made to order in various diameters and heights and in a large range of colourways.  Please contact us for more information.','','','','','');
photos[5] = new photo(2208901,'','','','http://admin2.clikpic.com/ddlondon/images/GD18.jpg',462,600,'','http://admin2.clikpic.com/ddlondon/images/GD18_thumb.jpg',130, 169,0, 0,'','','','','','');
photos[6] = new photo(3480746,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc1.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc1_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[7] = new photo(3480755,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc2.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc2_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[8] = new photo(3480837,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc4.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc4_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[9] = new photo(3480839,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc5.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc5_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[10] = new photo(3480842,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc61.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc61_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[11] = new photo(3480846,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Arc33.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Arc33_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[12] = new photo(3481103,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom21.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom21_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[13] = new photo(3481121,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom3a.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom3a_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[14] = new photo(3481122,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom4.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom4_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[15] = new photo(3481130,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom61.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom61_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[16] = new photo(3481234,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom52.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom52_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[17] = new photo(3481267,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom7.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom7_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[18] = new photo(3482541,'139804','','gallery','http://admin2.clikpic.com/ddlondon/images/Vista2.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Vista2_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[19] = new photo(3482542,'139804','','gallery','http://admin2.clikpic.com/ddlondon/images/Vista3.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Vista3_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[20] = new photo(3482550,'139804','','gallery','http://admin2.clikpic.com/ddlondon/images/Vista1.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Vista1_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[21] = new photo(3507550,'','','','http://admin2.clikpic.com/ddlondon/images/Stripe.jpg',400,267,'','http://admin2.clikpic.com/ddlondon/images/Stripe_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[22] = new photo(3513043,'139802','','gallery','http://admin2.clikpic.com/ddlondon/images/Bloom8.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Bloom8_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[23] = new photo(2143333,'','','','http://admin2.clikpic.com/ddlondon/images/Galaxy for web.jpg',400,600,'','http://admin2.clikpic.com/ddlondon/images/Galaxy for web_thumb.jpg',130, 195,0, 0,'Galaxy pendant in olive and brown.','','','','','');
photos[24] = new photo(2208816,'','','','http://admin2.clikpic.com/ddlondon/images/GD10.jpg',400,300,'','http://admin2.clikpic.com/ddlondon/images/GD10_thumb.jpg',130, 98,0, 0,'Linear pendant light with fixed diffuser to project light upwards and hide the light bulb.','','','','','');
photos[25] = new photo(3481069,'','','','http://admin2.clikpic.com/ddlondon/images/Bloom2_frontpage.jpg',600,336,'','http://admin2.clikpic.com/ddlondon/images/Bloom2_frontpage_thumb.jpg',130, 73,1, 0,'','','','','','');
photos[26] = new photo(3504184,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu2.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu2_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[27] = new photo(2143332,'','','','http://admin2.clikpic.com/ddlondon/images/galaxy for web 1.jpg',400,307,'','http://admin2.clikpic.com/ddlondon/images/galaxy for web 1_thumb.jpg',130, 100,0, 0,'Close-up of Galaxy pendant in olive and brown.','','','','','');
photos[28] = new photo(2208815,'','','','http://admin2.clikpic.com/ddlondon/images/GD10a.jpg',400,280,'','http://admin2.clikpic.com/ddlondon/images/GD10a_thumb.jpg',130, 91,0, 1,'Close up of Linear.','','','','','');
photos[29] = new photo(3504182,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu1.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[30] = new photo(3507445,'','','','http://admin2.clikpic.com/ddlondon/images/5784400x600.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/5784400x600_thumb.jpg',130, 87,1, 0,'','','','','','');
photos[31] = new photo(2208838,'','','','http://admin2.clikpic.com/ddlondon/images/GD7.jpg',355,600,'','http://admin2.clikpic.com/ddlondon/images/GD7_thumb.jpg',130, 220,0, 0,'Linear in pink and brown. Available to order in various sizes and colourways.  Please contact us for further information.','','','','','');
photos[32] = new photo(2208872,'','','','http://admin2.clikpic.com/ddlondon/images/GD4.jpg',400,300,'','http://admin2.clikpic.com/ddlondon/images/GD4_thumb.jpg',130, 98,0, 0,'Oversized Galaxy pendant with fixed diffuser shown hear in hues of brown and cream.  The diffuser projects subtle light upwards and hides the light bulb.  Made to order and available in various colours and sizes.  Please contact us for further information.','','','','','');
photos[33] = new photo(3504190,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu4.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu4_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[34] = new photo(2208839,'','','','http://admin2.clikpic.com/ddlondon/images/Untitled-1 copy4.jpg',400,365,'','http://admin2.clikpic.com/ddlondon/images/Untitled-1 copy4_thumb.jpg',130, 119,0, 0,'Close-up of Linear in pink and brown','','','','','');
photos[35] = new photo(3504205,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu6 copy.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu6 copy_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[36] = new photo(2143263,'','','','http://admin2.clikpic.com/ddlondon/images/Arc light for web1.jpg',400,345,'','http://admin2.clikpic.com/ddlondon/images/Arc light for web1_thumb.jpg',130, 112,0, 0,'Arc pendant made to order in various colours and sizes. Please contact us for further information.','','','','','');
photos[37] = new photo(3504187,'','','','http://admin2.clikpic.com/ddlondon/images/Insitu3.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu3_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[38] = new photo(3504208,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu.7.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu_thumb.7.jpg',130, 87,0, 0,'','','','','','');
photos[39] = new photo(3504212,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Insitu8.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Insitu8_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[40] = new photo(3512993,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Goldclose400x400.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Goldclose400x400_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[41] = new photo(3504290,'214393','','section263575','http://admin2.clikpic.com/ddlondon/images/Panel1 copy.jpg',600,200,'','http://admin2.clikpic.com/ddlondon/images/Panel1 copy_thumb.jpg',130, 43,0, 0,'','','','','','');
photos[42] = new photo(3512999,'139801','','gallery','http://admin2.clikpic.com/ddlondon/images/Gold2close400x400.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Gold2close400x400_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[43] = new photo(3483113,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant1.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant1_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[44] = new photo(3483114,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant2.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant2_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[45] = new photo(3483115,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant3.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant3_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[46] = new photo(3483116,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant4.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant4_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[47] = new photo(3483117,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant5.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant5_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[48] = new photo(3483118,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant6.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant6_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[49] = new photo(3483119,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant7.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant7_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[50] = new photo(3483120,'212709','','section261692','http://admin2.clikpic.com/ddlondon/images/Pendant8.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Pendant8_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[51] = new photo(3483146,'212712','','section261692','http://admin2.clikpic.com/ddlondon/images/Web11.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Web11_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[52] = new photo(3483147,'212712','','section261692','http://admin2.clikpic.com/ddlondon/images/Web21.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Web21_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[53] = new photo(3483148,'212712','','section261692','http://admin2.clikpic.com/ddlondon/images/Web3.jpg',400,400,'','http://admin2.clikpic.com/ddlondon/images/Web3_thumb.jpg',130, 130,0, 0,'','','','','','');
photos[54] = new photo(3507483,'212710','','section261692','http://admin2.clikpic.com/ddlondon/images/Gallerythumbnail400x6001.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Gallerythumbnail400x6001_thumb.jpg',130, 130,0, 1,'','','','','','');
photos[55] = new photo(3510848,'212710','','section261692','http://admin2.clikpic.com/ddlondon/images/NewArc copy.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/NewArc copy_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[56] = new photo(3507448,'212710','','section261692','http://admin2.clikpic.com/ddlondon/images/Bloompanel.jpg',600,400,'','http://admin2.clikpic.com/ddlondon/images/Bloompanel_thumb.jpg',130, 87,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(139801,'3512999,3512993,3480846,3480842,3480839,3480837,3480755,3480746','Arc','gallery');
galleries[1] = new gallery(139802,'3513043,3481267,3481234,3481130,3481122,3481121,3481103','Bloom','gallery');
galleries[2] = new gallery(214393,'3504290,3504212,3504208,3504205,3504190,3504184,3504182','Projects','section263575');
galleries[3] = new gallery(139804,'3482550,3482542,3482541','Vista','gallery');
galleries[4] = new gallery(212709,'3483120,3483119,3483118,3483117,3483116,3483115,3483114,3483113','Pendants','section261692');
galleries[5] = new gallery(212712,'3483148,3483147,3483146','Floor Lamps','section261692');
galleries[6] = new gallery(212710,'3507483','Wall Panels','section261692');


