/***************************************************************************
* 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('2065103');
	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('2065103');
	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 = 'paris-pix.com: ' + 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(2065103,'','','','http://admin2.clikpic.com/daniel66/images/hand400.jpg',400,278,'','http://admin2.clikpic.com/daniel66/images/hand400_thumb.jpg',130, 90,1, 0,'Detail from monument to writer Marcel Ayme, who wrote a story about a man who could pass through walls. A local man informed me that the hand was modelled on the hand of Jean Cocteau.','','','','','');
photos[1] = new photo(2096612,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0536.jpg',332,500,'','http://admin2.clikpic.com/daniel66/images/GLH0536_thumb.jpg',130, 196,0, 0,'An elderly lady casts a long shadow in the Rue Royale Paris France','','','','','');
photos[2] = new photo(2097513,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0348.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0348_thumb.jpg',130, 195,0, 0,'Bollards in early morning light at Chatelet Paris France','','','','','');
photos[3] = new photo(2097647,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0048.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0048_thumb.jpg',130, 195,0, 1,'Artist painting at the Place du Tertre Montmartre Paris','','','','','');
photos[4] = new photo(2097654,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0050.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0050_thumb.jpg',130, 195,0, 0,'Bill and payment for two breakfasts at Les Deux Magots Cafe Saint Germain des Prés Paris','','','','','');
photos[5] = new photo(2097655,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0097.jpg',327,500,'','http://admin2.clikpic.com/daniel66/images/GLH0097_thumb.jpg',130, 199,0, 0,'Pavement reflection after a spell of rain in the Marais region of Paris','','','','','');
photos[6] = new photo(2097656,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0101.jpg',317,500,'','http://admin2.clikpic.com/daniel66/images/GLH0101_thumb.jpg',130, 205,0, 0,'Architectural reflection on the back of a car in the Marais region of Paris','','','','','');
photos[7] = new photo(2097672,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0331.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0331_thumb.jpg',130, 195,0, 0,'The Listener by Henri de Miller near St Eustache Church Paris','','','','','');
photos[8] = new photo(2097680,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0655.jpg',327,500,'','http://admin2.clikpic.com/daniel66/images/GLH0655_thumb.jpg',130, 199,0, 0,'WW1 stained glass window at Montparnasse Cemetery Paris','','','','','');
photos[9] = new photo(2097686,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0112.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0112_thumb.jpg',130, 87,0, 0,'Echire butter served with bread at a Parisian Cafe','','','','','');
photos[10] = new photo(2097691,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0103.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0103_thumb.jpg',130, 87,0, 0,'Art Nouveau metro sign in Paris','','','','','');
photos[11] = new photo(2097694,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0594.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0594_thumb.jpg',130, 87,0, 0,'Old and new street signs in 6th arrondissement Paris','','','','','');
photos[12] = new photo(2097695,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0143.jpg',500,330,'','http://admin2.clikpic.com/daniel66/images/GLH0143_thumb.jpg',130, 86,0, 0,'An 18th century metre measurement in Paris','','','','','');
photos[13] = new photo(2097697,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0241.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0241_thumb.jpg',130, 87,0, 0,'Place Vendome reflected in the window of a Chanel Boutique Paris France','','','','','');
photos[14] = new photo(2097703,'139744','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0389.jpg',500,329,'','http://admin2.clikpic.com/daniel66/images/GLH0389_thumb.jpg',130, 86,0, 0,'Wine bottle corks stacked up in a Parisian cafe window','','','','','');
photos[15] = new photo(2097742,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0370.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0370_thumb.jpg',130, 195,0, 1,'','','','','','');
photos[16] = new photo(2097743,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0102.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0102_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[17] = new photo(2097744,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0460.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0460_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[18] = new photo(2097745,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0071.jpg',500,348,'','http://admin2.clikpic.com/daniel66/images/GLH0071_thumb.jpg',130, 90,0, 0,'','','','','','');
photos[19] = new photo(2097747,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0110.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0110_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[20] = new photo(2097749,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0198.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0198_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[21] = new photo(2097750,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0202.jpg',500,349,'','http://admin2.clikpic.com/daniel66/images/GLH0202_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[22] = new photo(2097752,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0231.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0231_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[23] = new photo(2097755,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0066.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0066_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[24] = new photo(2097757,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0313.jpg',500,360,'','http://admin2.clikpic.com/daniel66/images/GLH0313_thumb.jpg',130, 94,0, 0,'','','','','','');
photos[25] = new photo(2097758,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0529.jpg',500,338,'','http://admin2.clikpic.com/daniel66/images/GLH0529_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[26] = new photo(2097760,'139755','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0342.jpg',500,349,'','http://admin2.clikpic.com/daniel66/images/GLH0342_thumb.jpg',130, 91,0, 0,'','','','','','');
photos[27] = new photo(2094936,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0028.jpg',333,500,'','http://admin2.clikpic.com/daniel66/images/GLH0028_thumb.jpg',130, 195,0, 1,'Sacre Coeur Paris France','','','','','');
photos[28] = new photo(2095145,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0435.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0435_thumb.jpg',130, 195,0, 1,'Statue and steps in grounds of Musee Galliera Paris France','','','','','');
photos[29] = new photo(2094937,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0273.jpg',323,500,'','http://admin2.clikpic.com/daniel66/images/GLH0273_thumb.jpg',130, 201,0, 0,'Dome Church Invalides Paris France','','','','','');
photos[30] = new photo(2095162,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0144.jpg',332,500,'','http://admin2.clikpic.com/daniel66/images/GLH0144_thumb.jpg',130, 196,0, 0,'Statue in Jardin du Luxembourg Paris France','','','','','');
photos[31] = new photo(2095067,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0381.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0381_thumb.jpg',130, 195,0, 0,'Pantheon Paris','','','','','');
photos[32] = new photo(2095173,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0142.jpg',329,500,'','http://admin2.clikpic.com/daniel66/images/GLH0142_thumb.jpg',130, 198,0, 0,'A young woman walks under arches whilst talking on mobile phone at Rue Vaugirard Paris France','','','','','');
photos[33] = new photo(2095080,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0533.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0533_thumb.jpg',130, 195,0, 0,'Eglise de la Sainte-Trinite Paris','','','','','');
photos[34] = new photo(2095155,'139676','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0577.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0577_thumb.jpg',130, 87,0, 0,'A man in unusual repose on a cold morning in the Jardin des Tuileries','','','','','');
photos[35] = new photo(2095087,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0033.jpg',325,500,'','http://admin2.clikpic.com/daniel66/images/GLH0033_thumb.jpg',130, 200,0, 0,'Montparnasse Tower Paris','','','','','');
photos[36] = new photo(2096836,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0158.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0158_thumb.jpg',130, 195,0, 0,'Institut de France and the Pont des Arts seen from the Cour Carree at the Louvre Museum Paris France','','','','','');
photos[37] = new photo(2097111,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0197.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0197_thumb.jpg',130, 195,0, 0,'Mosquee de Paris','','','','','');
photos[38] = new photo(2097491,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0647.jpg',333,500,'','http://admin2.clikpic.com/daniel66/images/GLH0647_thumb.jpg',130, 195,0, 0,'Passage d Enfer Montparnasse Paris','','','','','');
photos[39] = new photo(2097538,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0526.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0526_thumb.jpg',130, 195,0, 0,'Louvre Palace Paris','','','','','');
photos[40] = new photo(2097500,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0278.jpg',500,353,'','http://admin2.clikpic.com/daniel66/images/GLH0278_thumb.jpg',130, 92,0, 0,'Office windows at La Defense Paris','','','','','');
photos[41] = new photo(2097502,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0182.jpg',500,334,'','http://admin2.clikpic.com/daniel66/images/GLH0182_thumb.jpg',130, 87,0, 0,'Lycee Henri IV Paris','','','','','');
photos[42] = new photo(2097505,'139673','','gallery','http://admin2.clikpic.com/daniel66/images/arab.jpg',500,333,'','http://admin2.clikpic.com/daniel66/images/arab_thumb.jpg',130, 87,0, 0,'Institut du Monde Arabe Paris','','','','','');
photos[43] = new photo(2094851,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0643.jpg',333,500,'','http://admin2.clikpic.com/daniel66/images/GLH0643_thumb.jpg',130, 195,0, 1,'Detail from the Dantan family tomb with sculpture by Antoine Laurent Dantan (1798 - 1878) Pere Lachaise Cemetery Paris France','','','','','');
photos[44] = new photo(2094856,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0591.jpg',325,500,'','http://admin2.clikpic.com/daniel66/images/GLH0591_thumb.jpg',130, 200,0, 0,'Bust of 17th century French painter Nicolas Poussin at the Ecole des Beaux Arts Paris','','','','','');
photos[45] = new photo(2094863,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0614.jpg',333,500,'','http://admin2.clikpic.com/daniel66/images/GLH0614_thumb.jpg',130, 195,0, 0,'Statue of La Fayette on horseback Paris France','','','','','');
photos[46] = new photo(2094879,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0332.jpg',329,500,'','http://admin2.clikpic.com/daniel66/images/GLH0332_thumb.jpg',130, 198,0, 0,'Detail from monument to Waldeck Rousseau in Tuileries Gardens Paris','','','','','');
photos[47] = new photo(2094885,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0337.jpg',345,500,'','http://admin2.clikpic.com/daniel66/images/GLH0337_thumb.jpg',130, 188,0, 0,'Bronze statue in Jardin des Tuileries Paris','','','','','');
photos[48] = new photo(2094889,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0041.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0041_thumb.jpg',130, 195,0, 0,'Detail from \'Resistance\' Sculpture by Etex on the Arc de Triomphe of a soldier defending his family Paris','','','','','');
photos[49] = new photo(2094891,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0018.jpg',333,500,'','http://admin2.clikpic.com/daniel66/images/GLH0018_thumb.jpg',130, 195,0, 0,'Bust of Victor Hugo by Auguste Rodin (1840-1917) at the Rodin Museum Paris.','','','','','');
photos[50] = new photo(2094927,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0113.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0113_thumb.jpg',130, 195,0, 0,'Statue of Christ in St Eustache Church Paris','','','','','');
photos[51] = new photo(2094931,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0134.jpg',339,500,'','http://admin2.clikpic.com/daniel66/images/GLH0134_thumb.jpg',130, 192,0, 0,'Statue of the beheaded St Denis on Notre Dame Cathedral Paris','','','','','');
photos[52] = new photo(2095091,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0294.jpg',329,500,'','http://admin2.clikpic.com/daniel66/images/GLH0294_thumb.jpg',130, 198,0, 0,'Statue by Paul Richer (1849-1933) at Natural History Museum Paris France. Dr Paul Richer was a famous teacher of artistic anatomy.','','','','','');
photos[53] = new photo(2095132,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0359.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0359_thumb.jpg',130, 195,0, 0,'Sculpture by Emmanuel Fremiet (1824-1910) at Fontaine de l\'Observatoire Paris','','','','','');
photos[54] = new photo(2095136,'137398','','gallery','http://admin2.clikpic.com/daniel66/images/GLH0452.jpg',334,500,'','http://admin2.clikpic.com/daniel66/images/GLH0452_thumb.jpg',130, 195,0, 0,'Bust of Egyptian born singer Dalida (1933-1987) at Montmartre Paris France','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(139673,'2094936','Architecture','gallery');
galleries[1] = new gallery(139744,'2097647','Details','gallery');
galleries[2] = new gallery(139676,'2095145','Monochromes','gallery');
galleries[3] = new gallery(139755,'2097742','Paris life','gallery');
galleries[4] = new gallery(137398,'2094851','Sculpture','gallery');

