/***************************************************************************
* 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('2606527');
	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('2606527');
	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 && !(1)) {
		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 + '" border="0">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
			document.title = 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(1519964,'','','','http://www1.clikpic.com/caradonovan/images/qualified.gif',265,111,'','http://www1.clikpic.com/caradonovan/images/qualified_thumb.gif',130, 54,0, 0,'','','','','','');
photos[1] = new photo(1519997,'','','','http://www1.clikpic.com/caradonovan/images/Cara unmounted web.jpg',200,270,'','http://www1.clikpic.com/caradonovan/images/Cara unmounted web_thumb.jpg',130, 176,0, 0,'','','','','','');
photos[2] = new photo(1519998,'','','','http://www1.clikpic.com/caradonovan/images/Me Camera Web Image.jpg',200,270,'','http://www1.clikpic.com/caradonovan/images/Me Camera Web Image_thumb.jpg',130, 176,0, 0,'','','','','','');
photos[3] = new photo(1520020,'','','','http://www1.clikpic.com/caradonovan/images/Double image.jpg',400,270,'','http://www1.clikpic.com/caradonovan/images/Double image_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[4] = new photo(1693913,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Linen Tote Bag.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Linen Tote Bag_thumb.jpg',130, 106,0, 0,'Linen Tote Bag','','','','','');
photos[5] = new photo(938234,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Flat Canvas Wrap.jpg',600,488,'Flat Canvas Wrap','http://www1.clikpic.com/caradonovan/images/Flat Canvas Wrap_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[6] = new photo(2606527,'','Old web','','http://www1.clikpic.com/caradonovan/images/Old web - new web copy1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Old web - new web copy1_thumb.jpg',130, 98,1, 0,'','','','','','');
photos[7] = new photo(940328,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Curved Canvas Wrap.jpg',600,488,'Curved Canvas Wrap','http://www1.clikpic.com/caradonovan/images/Curved Canvas Wrap_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[8] = new photo(940332,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Acrylic 3D Multi.jpg',600,488,'Photoblock 3D','http://www1.clikpic.com/caradonovan/images/Acrylic 3D Multi_thumb.jpg',130, 106,0, 1,'','','','','','');
photos[9] = new photo(940348,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Acrylic Photoblocks.jpg',600,488,'Photoblock','http://www1.clikpic.com/caradonovan/images/Acrylic Photoblocks_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[10] = new photo(943342,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Acrylic Photoblocks 2.jpg',600,488,'Photoblock Additional','http://www1.clikpic.com/caradonovan/images/Acrylic Photoblocks 2_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[11] = new photo(943379,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Acrylic Fotoslot.jpg',600,488,'Fotoslot','http://www1.clikpic.com/caradonovan/images/Acrylic Fotoslot_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[12] = new photo(941662,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Block Mounted Prints.jpg',600,488,'Block Mounted Prints','http://www1.clikpic.com/caradonovan/images/Block Mounted Prints_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[13] = new photo(941289,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Chunky Box Frames.jpg',600,488,'Box Frames','http://www1.clikpic.com/caradonovan/images/Chunky Box Frames_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[14] = new photo(1693418,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Shadow Box.jpg',600,488,'Shadow Box','http://www1.clikpic.com/caradonovan/images/Shadow Box_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[15] = new photo(940924,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Portrait Album.jpg',600,488,'Portrait Album','http://www1.clikpic.com/caradonovan/images/Portrait Album_thumb.jpg',130, 106,0, 1,'','','','','','');
photos[16] = new photo(941820,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Portrait Box.jpg',600,488,'Portrait Keepsake Boxes','http://www1.clikpic.com/caradonovan/images/Portrait Box_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[17] = new photo(941405,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Triple Winged Portfolio.jpg',600,488,'Triple Winged Portfolios','http://www1.clikpic.com/caradonovan/images/Triple Winged Portfolio_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[18] = new photo(940993,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Pocket book.jpg',600,488,'Pocket Book','http://www1.clikpic.com/caradonovan/images/Pocket book_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[19] = new photo(1693461,'113962','','section113229','http://www1.clikpic.com/caradonovan/images/Pick & Mix Print Prices.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Pick & Mix Print Prices_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[20] = new photo(1629446,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 b Chloe.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 1 b Chloe_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[21] = new photo(1629447,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 c Bromilow1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 1 c Bromilow1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[22] = new photo(1629671,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 h Annie2.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 1 h Annie2_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[23] = new photo(1629695,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 e Brignall2.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 e Brignall2_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[24] = new photo(1629697,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 f Ellis1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 f Ellis1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[25] = new photo(1629708,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 j Millie1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 j Millie1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[26] = new photo(1629711,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 i Newton 1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 1 i Newton 1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[27] = new photo(1629714,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 k Girls1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 k Girls1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[28] = new photo(1629716,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 m Mason1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 1 m Mason1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[29] = new photo(1629718,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 l Naim1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 l Naim1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[30] = new photo(1629719,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 m Sam1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 m Sam1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[31] = new photo(1629722,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 n Ranson1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 n Ranson1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[32] = new photo(1629726,'37451','','gallery','http://www1.clikpic.com/caradonovan/images/Web 1 d Ellie2.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 1 d Ellie2_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[33] = new photo(1629737,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 a Ella1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 a Ella1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[34] = new photo(1629755,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 d Violet1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 2 d Violet1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[35] = new photo(1629757,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 e Emma1.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 2 e Emma1_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[36] = new photo(1629764,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 h Ella Triple1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 h Ella Triple1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[37] = new photo(1629767,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 h Violet1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 h Violet1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[38] = new photo(1629772,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 i Theo1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 i Theo1_thumb.jpg',130, 98,0, 1,'','','','','','');
photos[39] = new photo(1629777,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 j Archie1.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 j Archie1_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[40] = new photo(1629779,'56218','','gallery','http://www1.clikpic.com/caradonovan/images/Web 2 k Archie.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 2 k Archie_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[41] = new photo(1629924,'59241','','gallery','http://www1.clikpic.com/caradonovan/images/Web 3 Lloyd 2.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 3 Lloyd 2_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[42] = new photo(1629928,'59241','','gallery','http://www1.clikpic.com/caradonovan/images/Web 3 Lloyd.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 3 Lloyd_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[43] = new photo(1629930,'59241','','gallery','http://www1.clikpic.com/caradonovan/images/Web 3 Ranson 2.jpg',600,450,'','http://www1.clikpic.com/caradonovan/images/Web 3 Ranson 2_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[44] = new photo(1629931,'59241','','gallery','http://www1.clikpic.com/caradonovan/images/Web 3 Ranson 3.jpg',450,600,'','http://www1.clikpic.com/caradonovan/images/Web 3 Ranson 3_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[45] = new photo(947158,'71667','','section87155','http://www1.clikpic.com/caradonovan/images/Keepsake 1.jpg',600,488,'Keepsake 1','http://www1.clikpic.com/caradonovan/images/Keepsake 1_thumb.jpg',130, 106,0, 1,'','','','','','');
photos[46] = new photo(947159,'71667','','section87155','http://www1.clikpic.com/caradonovan/images/Keepsake 2.jpg',600,488,'Keepsake 2','http://www1.clikpic.com/caradonovan/images/Keepsake 2_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[47] = new photo(947166,'71667','','section87155','http://www1.clikpic.com/caradonovan/images/Keepsake 3.jpg',600,488,'Keepsake 3','http://www1.clikpic.com/caradonovan/images/Keepsake 3_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[48] = new photo(947168,'71667','','section87155','http://www1.clikpic.com/caradonovan/images/Keepsake 4 copy.jpg',600,488,'Keepsake 4','http://www1.clikpic.com/caradonovan/images/Keepsake 4 copy_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[49] = new photo(772334,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 1.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Restoration 1_thumb.jpg',130, 106,0, 1,'','','','','','');
photos[50] = new photo(772340,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 2.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Restoration 2_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[51] = new photo(772335,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 3.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Restoration 3_thumb.jpg',130, 106,0, 0,'','','','','','');
photos[52] = new photo(772336,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 4.jpg',600,850,'','http://www1.clikpic.com/caradonovan/images/Restoration 4_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[53] = new photo(772337,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 5.jpg',600,850,'','http://www1.clikpic.com/caradonovan/images/Restoration 5_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[54] = new photo(778756,'59832','','section87047','http://www1.clikpic.com/caradonovan/images/Restoration 6.jpg',600,488,'','http://www1.clikpic.com/caradonovan/images/Restoration 6_thumb.jpg',130, 106,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(90464,'','Michelle & Mike Dean Wedding','section113229');
galleries[1] = new gallery(71997,'947158','Price list','section87155');
galleries[2] = new gallery(113962,'940924,940332','Product Information & Prices','section113229');
galleries[3] = new gallery(37451,'1629726,1629722,1629719,1629718,1629716,1629714,1629711,1629708,1629697,1629695','Children','gallery');
galleries[4] = new gallery(56218,'1629772','Baby','gallery');
galleries[5] = new gallery(59241,'1629931,1629930,1629928,1629924','Family','gallery');
galleries[6] = new gallery(37468,'','Pregnancy','gallery');
galleries[7] = new gallery(37453,'','Weddings','gallery');
galleries[8] = new gallery(37455,'','Pets','gallery');
galleries[9] = new gallery(71345,'','Wall Products','section87155');
galleries[10] = new gallery(59916,'','Portrait Products','section113229');
galleries[11] = new gallery(71667,'947158','Baby ','section87155');
galleries[12] = new gallery(113963,'','Boutique & Papiere','section113229');
galleries[13] = new gallery(59832,'772334','Restoration','section87047');

