window.thumbnails = {};
															thumbnails[2214302] = clik.newPhoto({"id":2214302,"src":"abbou5_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":173});
															thumbnails[4720398] = clik.newPhoto({"id":4720398,"src":"DSC00558_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":173});
															thumbnails[5903245] = clik.newPhoto({"id":5903245,"src":"carine_CSM_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":92});
															thumbnails[6808554] = clik.newPhoto({"id":6808554,"src":"dvd66m1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6763140] = clik.newPhoto({"id":6763140,"src":"IMG_0055_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6763150] = clik.newPhoto({"id":6763150,"src":"IMG_6178_magazine_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3597232] = clik.newPhoto({"id":3597232,"src":"marbrescafelr_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2155917] = clik.newPhoto({"id":2155917,"src":"alexis11_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2154359] = clik.newPhoto({"id":2154359,"src":"violette_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_2154359.html","width":130,"caption":"","height":87});
															thumbnails[2337303] = clik.newPhoto({"id":2337303,"src":"IMG_0069-web_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_2337303.html","width":130,"caption":"","height":195});
															thumbnails[2337306] = clik.newPhoto({"id":2337306,"src":"limor_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_2337306.html","width":130,"caption":"","height":195});
															thumbnails[7684669] = clik.newPhoto({"id":7684669,"src":"IMG_1244_thumb.JPG","galleries_id":416204,"server_id":32,"link":"photo_7684669.html","width":130,"caption":"Shuk Hakarmel, Tel Aviv","height":98});
															thumbnails[7684720] = clik.newPhoto({"id":7684720,"src":"IMG_2135_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_7684720.html","width":130,"caption":"","height":195});
															thumbnails[7684722] = clik.newPhoto({"id":7684722,"src":"IMG_2154bw_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_7684722.html","width":130,"caption":"","height":87});
															thumbnails[2152553] = clik.newPhoto({"id":2152553,"src":"IMG_0014_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2152553.html","width":130,"caption":"","height":87});
															thumbnails[2214295] = clik.newPhoto({"id":2214295,"src":"abbou_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_2214295.html","width":130,"caption":"","height":87});
															thumbnails[2152569] = clik.newPhoto({"id":2152569,"src":"IMG_8283_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2152569.html","width":130,"caption":"","height":87});
															thumbnails[2214298] = clik.newPhoto({"id":2214298,"src":"IMG_4944_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_2214298.html","width":130,"caption":"","height":89});
															thumbnails[6766670] = clik.newPhoto({"id":6766670,"src":"IMG_0815_12x12_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_6766670.html","width":130,"caption":"","height":130});
															thumbnails[7684671] = clik.newPhoto({"id":7684671,"src":"IMG_1230_thumb.JPG","galleries_id":416204,"server_id":32,"link":"photo_7684671.html","width":130,"caption":"Shuk Hakarmel, Tel Aviv","height":98});
															thumbnails[2152571] = clik.newPhoto({"id":2152571,"src":"IMG_5049_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2152571.html","width":130,"caption":"","height":89});
															thumbnails[4791017] = clik.newPhoto({"id":4791017,"src":"amie1_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_4791017.html","width":130,"caption":"","height":200});
															thumbnails[7684672] = clik.newPhoto({"id":7684672,"src":"IMG_1269_thumb.JPG","galleries_id":416204,"server_id":32,"link":"photo_7684672.html","width":130,"caption":"Tel Aviv","height":98});
															thumbnails[4791021] = clik.newPhoto({"id":4791021,"src":"amie2_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_4791021.html","width":130,"caption":"","height":195});
															thumbnails[7024695] = clik.newPhoto({"id":7024695,"src":"IMG_1588_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_7024695.html","width":130,"caption":"","height":87});
															thumbnails[7684674] = clik.newPhoto({"id":7684674,"src":"soleil-singapour_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684674.html","width":130,"caption":"Singapore sunset","height":87});
															thumbnails[2214300] = clik.newPhoto({"id":2214300,"src":"IMG_5729_style_thumb.JPG","galleries_id":142841,"server_id":32,"link":"photo_2214300.html","width":130,"caption":"","height":195});
															thumbnails[2214325] = clik.newPhoto({"id":2214325,"src":"IMG_0167_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_2214325.html","width":130,"caption":"","height":195});
															thumbnails[4791024] = clik.newPhoto({"id":4791024,"src":"amie3_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_4791024.html","width":130,"caption":"","height":193});
															thumbnails[6089774] = clik.newPhoto({"id":6089774,"src":"_MG_4311bw_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6089774.html","width":130,"caption":"","height":87});
															thumbnails[7684676] = clik.newPhoto({"id":7684676,"src":"Photo141-1_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684676.html","width":130,"caption":"Eggs in Paris","height":83});
															thumbnails[6089775] = clik.newPhoto({"id":6089775,"src":"IMG_2272bw_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6089775.html","width":130,"caption":"","height":87});
															thumbnails[6113832] = clik.newPhoto({"id":6113832,"src":"_MG_4610_thumb.jpg","galleries_id":152351,"server_id":32,"link":"photo_6113832.html","width":130,"caption":"","height":195});
															thumbnails[7684678] = clik.newPhoto({"id":7684678,"src":"Photo140_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684678.html","width":130,"caption":"Yummy lettuces, Paris","height":98});
															thumbnails[7782818] = clik.newPhoto({"id":7782818,"src":"IMG_2538_thumb.JPG","galleries_id":146218,"server_id":32,"link":"photo_7782818.html","width":130,"caption":"","height":195});
															thumbnails[7924004] = clik.newPhoto({"id":7924004,"src":"IMG_1604_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7924004.html","width":130,"caption":"Baywatch made in Normandy","height":98});
															thumbnails[4032800] = clik.newPhoto({"id":4032800,"src":"IMG_3228bw_thumb.JPG","galleries_id":152351,"server_id":32,"link":"photo_4032800.html","width":130,"caption":"","height":195});
															thumbnails[7024713] = clik.newPhoto({"id":7024713,"src":"IMG_15681_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_7024713.html","width":130,"caption":"","height":87});
															thumbnails[7782823] = clik.newPhoto({"id":7782823,"src":"IMG_2581_thumb.JPG","galleries_id":146218,"server_id":32,"link":"photo_7782823.html","width":130,"caption":"","height":195});
															thumbnails[3102972] = clik.newPhoto({"id":3102972,"src":"IMG_1692_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_3102972.html","width":130,"caption":"","height":195});
															thumbnails[3920853] = clik.newPhoto({"id":3920853,"src":"_MG_2767_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_3920853.html","width":130,"caption":"","height":87});
															thumbnails[2155916] = clik.newPhoto({"id":2155916,"src":"alexis1_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2155916.html","width":130,"caption":"","height":194});
															thumbnails[4432964] = clik.newPhoto({"id":4432964,"src":"Erichsen_MG_3948nb_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_4432964.html","width":130,"caption":"","height":195});
															thumbnails[6906286] = clik.newPhoto({"id":6906286,"src":"IMG_3211_thumb.JPG","galleries_id":152351,"server_id":32,"link":"photo_6906286.html","width":130,"caption":"","height":195});
															thumbnails[7684683] = clik.newPhoto({"id":7684683,"src":"IMG_9626_thumb.JPG","galleries_id":416204,"server_id":32,"link":"photo_7684683.html","width":130,"caption":"The Tea Ceremony, Kyoto, Japan","height":93});
															thumbnails[4432965] = clik.newPhoto({"id":4432965,"src":"IMG_2894_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_4432965.html","width":130,"caption":"","height":195});
															thumbnails[7190683] = clik.newPhoto({"id":7190683,"src":"violette2_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_7190683.html","width":130,"caption":"","height":195});
															thumbnails[7684691] = clik.newPhoto({"id":7684691,"src":"IMG_5671_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684691.html","width":130,"caption":"Brixton market","height":87});
															thumbnails[2155918] = clik.newPhoto({"id":2155918,"src":"alexis3_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2155918.html","width":130,"caption":"","height":195});
															thumbnails[4433004] = clik.newPhoto({"id":4433004,"src":"IMG_0137_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_4433004.html","width":130,"caption":"","height":195});
															thumbnails[7684704] = clik.newPhoto({"id":7684704,"src":"IMG_9472_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684704.html","width":130,"caption":"Zen garden, Kyoto, Japan","height":93});
															thumbnails[2155919] = clik.newPhoto({"id":2155919,"src":"alexis4_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_2155919.html","width":130,"caption":"","height":195});
															thumbnails[4433014] = clik.newPhoto({"id":4433014,"src":"IMG_4835_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_4433014.html","width":130,"caption":"","height":195});
															thumbnails[4791141] = clik.newPhoto({"id":4791141,"src":"IMG_4017_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_4791141.html","width":130,"caption":"","height":177});
															thumbnails[7684705] = clik.newPhoto({"id":7684705,"src":"IMG_9901_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684705.html","width":130,"caption":"Fushimi Inari, Kyoto, Japan","height":87});
															thumbnails[2214307] = clik.newPhoto({"id":2214307,"src":"abbou8_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2214307.html","width":130,"caption":"","height":195});
															thumbnails[7024702] = clik.newPhoto({"id":7024702,"src":"IMG_1389bw_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_7024702.html","width":130,"caption":"","height":195});
															thumbnails[7684707] = clik.newPhoto({"id":7684707,"src":"IMG_9393_thumb.JPG","galleries_id":416204,"server_id":32,"link":"photo_7684707.html","width":130,"caption":"Tokyo building","height":195});
															thumbnails[6700216] = clik.newPhoto({"id":6700216,"src":"IMG_5795_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6700216.html","width":130,"caption":"","height":195});
															thumbnails[7684681] = clik.newPhoto({"id":7684681,"src":"ny4_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684681.html","width":130,"caption":"The NYSE, New York City","height":195});
															thumbnails[2214305] = clik.newPhoto({"id":2214305,"src":"abbou3_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2214305.html","width":130,"caption":"","height":195});
															thumbnails[5290643] = clik.newPhoto({"id":5290643,"src":"_MG_1590bw_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_5290643.html","width":130,"caption":"","height":195});
															thumbnails[7684682] = clik.newPhoto({"id":7684682,"src":"ny3_thumb.jpg","galleries_id":416204,"server_id":32,"link":"photo_7684682.html","width":130,"caption":"The Brooklyn Bridge, New York City","height":195});
															thumbnails[3920847] = clik.newPhoto({"id":3920847,"src":"peignoir_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_3920847.html","width":130,"caption":"","height":195});
															thumbnails[5290660] = clik.newPhoto({"id":5290660,"src":"_MG_1484bw_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_5290660.html","width":130,"caption":"","height":195});
															thumbnails[6763156] = clik.newPhoto({"id":6763156,"src":"IMG_0098_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_6763156.html","width":130,"caption":"","height":195});
															thumbnails[2159111] = clik.newPhoto({"id":2159111,"src":"meimei_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_2159111.html","width":130,"caption":"","height":87});
															thumbnails[6763157] = clik.newPhoto({"id":6763157,"src":"IMG_5929_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_6763157.html","width":130,"caption":"","height":195});
															thumbnails[7782825] = clik.newPhoto({"id":7782825,"src":"IMG_25361_thumb.JPG","galleries_id":146218,"server_id":32,"link":"photo_7782825.html","width":130,"caption":"","height":195});
															thumbnails[2967509] = clik.newPhoto({"id":2967509,"src":"IMG_5727_bw_thumb_D98DB471-1EC9-DFB6-09B989EBDC0BDB28.JPG","galleries_id":142841,"server_id":32,"link":"photo_2967509.html","width":130,"caption":"","height":130});
															thumbnails[7782826] = clik.newPhoto({"id":7782826,"src":"IMG_2491_thumb.JPG","galleries_id":146218,"server_id":32,"link":"photo_7782826.html","width":130,"caption":"","height":195});
															thumbnails[6089783] = clik.newPhoto({"id":6089783,"src":"IMG_2355_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6089783.html","width":130,"caption":"","height":87});
															thumbnails[6907739] = clik.newPhoto({"id":6907739,"src":"IMG_0756bw_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_6907739.html","width":130,"caption":"","height":195});
															thumbnails[5146388] = clik.newPhoto({"id":5146388,"src":"IMG_3513_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_5146388.html","width":130,"caption":"","height":195});
															thumbnails[7581305] = clik.newPhoto({"id":7581305,"src":"IMG_1320_thumb.JPG","galleries_id":146218,"server_id":32,"link":"photo_7581305.html","width":130,"caption":"","height":87});
															thumbnails[3102992] = clik.newPhoto({"id":3102992,"src":"IMG_2883bw_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_3102992.html","width":130,"caption":"","height":195});
															thumbnails[7924086] = clik.newPhoto({"id":7924086,"src":"IMG_2971_thumb.jpg","galleries_id":146218,"server_id":32,"link":"photo_7924086.html","width":130,"caption":"","height":87});
															thumbnails[3482838] = clik.newPhoto({"id":3482838,"src":"IMG_0160_thumb.JPG","galleries_id":142841,"server_id":32,"link":"photo_3482838.html","width":130,"caption":"","height":195});
															thumbnails[3482839] = clik.newPhoto({"id":3482839,"src":"IMG_2404_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_3482839.html","width":130,"caption":"","height":195});
															thumbnails[4433041] = clik.newPhoto({"id":4433041,"src":"110920117861_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_4433041.html","width":130,"caption":"","height":73});
															thumbnails[4433044] = clik.newPhoto({"id":4433044,"src":"_MG_5199_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_4433044.html","width":130,"caption":"","height":87});
															thumbnails[4433047] = clik.newPhoto({"id":4433047,"src":"IMG_5780_thumb_D995706A-1EC9-DFB6-0940B8BE6D5B0874.JPG","galleries_id":142841,"server_id":32,"link":"photo_4433047.html","width":130,"caption":"","height":87});
															thumbnails[5146380] = clik.newPhoto({"id":5146380,"src":"IMG_3835_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_5146380.html","width":130,"caption":"","height":195});
															thumbnails[5146404] = clik.newPhoto({"id":5146404,"src":"IMG_1481_thumb.JPG","galleries_id":142841,"server_id":32,"link":"photo_5146404.html","width":130,"caption":"","height":195});
															thumbnails[5146417] = clik.newPhoto({"id":5146417,"src":"IMG_3922bw_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_5146417.html","width":130,"caption":"","height":195});
															thumbnails[5290640] = clik.newPhoto({"id":5290640,"src":"_MG_3909_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_5290640.html","width":130,"caption":"","height":195});
															thumbnails[6906697] = clik.newPhoto({"id":6906697,"src":"IMG_0655_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6906697.html","width":130,"caption":"","height":195});
															thumbnails[6906698] = clik.newPhoto({"id":6906698,"src":"IMG_4806_copy_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6906698.html","width":130,"caption":"","height":190});
															thumbnails[6906703] = clik.newPhoto({"id":6906703,"src":"IMG_5051_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6906703.html","width":130,"caption":"","height":191});
															thumbnails[6906755] = clik.newPhoto({"id":6906755,"src":"IMG_4738_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6906755.html","width":130,"caption":"","height":190});
															thumbnails[6907742] = clik.newPhoto({"id":6907742,"src":"IMG_0872_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6907742.html","width":130,"caption":"","height":195});
															thumbnails[6907743] = clik.newPhoto({"id":6907743,"src":"pigeons_thumb.jpg","galleries_id":142841,"server_id":32,"link":"photo_6907743.html","width":130,"caption":"","height":65});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[142841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"&#10122 Children","link":"gallery_142841.html","maxRecords":0.0,"photoIDs":[2152553.0,2152569.0,2152571.0,2214300.0,6089774.0,6089775.0,7024713.0,3920853.0,2155916.0,7190683.0,2155918.0,4791141.0,2214307.0,6700216.0,2214305.0,3920847.0,2159111.0,2967509.0,6089783.0,5146388.0,3102992.0,3482838.0,3482839.0,4433041.0,4433044.0,4433047.0,5146380.0,5146404.0,5146417.0,5290640.0,6906697.0,6906698.0,6906703.0,6906755.0,6907742.0,6907743.0],"skipIndex":0,"section_code":"gallery","featured_images":5146388,"id":142841,"singleSection":false});				  						galleries[146218] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"&#10123 Families","link":"gallery_146218.html","maxRecords":0.0,"photoIDs":[2154359.0,2214295.0,2214298.0,6766670.0,7024695.0,2214325.0,7782818.0,7782823.0,3102972.0,4432964.0,4432965.0,4433004.0,2155919.0,4433014.0,7024702.0,5290643.0,5290660.0,6763156.0,6763157.0,7782825.0,7782826.0,6907739.0,7581305.0,7924086.0],"skipIndex":0,"section_code":"gallery","featured_images":4433014.0,"id":146218,"singleSection":false});				  						galleries[152351] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"&#10124 Future Mums","link":"gallery_152351.html","maxRecords":0.0,"photoIDs":[2337303.0,2337306.0,7684720.0,7684722.0,4791017.0,4791021.0,4791024.0,6113832.0,4032800.0,6906286.0],"skipIndex":0,"section_code":"gallery","featured_images":4032800.0,"id":152351,"singleSection":false});				  						galleries[416204] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"&#10125 Places","link":"gallery_416204.html","maxRecords":0.0,"photoIDs":[7684669.0,7684671.0,7684672.0,7684674.0,7684676.0,7684678.0,7924004.0,7684683.0,7684691.0,7684704.0,7684705.0,7684707.0,7684681.0,7684682.0],"skipIndex":0,"section_code":"gallery","featured_images":7684707.0,"id":416204,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7684722,2154359,6763140,2214295,2152553,6766670,6763150,2214298,2152569,4791017,2152571,7024695,6089774,6089775,7024713,3920853,3597232,2159111,2967509,7581305,5146388,7924086,4433044,4433047,6907743';
imageSets[2] = '6089775,4032800,4433014,7684707,6089783,5290640';
imageSets[3] = '2214302,2214295,2152553,2152569,6089774,6089775,3597232,4432965,4433004,4433014,2155919,5290643,2214305,2967509,5146388,4433041,4433044,5146380,5290640';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lamaline/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lamaline/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lamaline/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Portrait, Baby, Children Photography London: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* 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, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

