window.thumbnails = {};
															thumbnails[2624566] = clik.newPhoto({"id":2624566,"src":"IMG_1393web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5401382] = clik.newPhoto({"id":5401382,"src":"swpp-black_thumb.gif","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":59});
															thumbnails[5401748] = clik.newPhoto({"id":5401748,"src":"sisep-black1_thumb.gif","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7350711] = clik.newPhoto({"id":7350711,"src":"nursery_leaflet_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7352337] = clik.newPhoto({"id":7352337,"src":"portrait_offer_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7648018] = clik.newPhoto({"id":7648018,"src":"mtaMadrid2001_thumb.gif","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7648024] = clik.newPhoto({"id":7648024,"src":"imgscale11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7648035] = clik.newPhoto({"id":7648035,"src":"imgscaleCAZ2BUR8_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":147});
															thumbnails[7648051] = clik.newPhoto({"id":7648051,"src":"8x10portraitw1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":131});
															thumbnails[2646619] = clik.newPhoto({"id":2646619,"src":"1699pack_thumb.gif","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[1805849] = clik.newPhoto({"id":1805849,"src":"Copy of Picture 039_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_1805849.html","width":130,"caption":"","height":185});
															thumbnails[1805852] = clik.newPhoto({"id":1805852,"src":"IMG_14161_thumb.JPG","galleries_id":102641,"server_id":18,"link":"photo_1805852.html","width":130,"caption":"","height":181});
															thumbnails[1805927] = clik.newPhoto({"id":1805927,"src":"IMG_8562_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805927.html","width":130,"caption":"","height":123});
															thumbnails[1805929] = clik.newPhoto({"id":1805929,"src":"IMG_8571_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805929.html","width":130,"caption":"","height":130});
															thumbnails[1805931] = clik.newPhoto({"id":1805931,"src":"IMG_8577_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805931.html","width":130,"caption":"","height":128});
															thumbnails[1805933] = clik.newPhoto({"id":1805933,"src":"IMG_8581_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805933.html","width":130,"caption":"","height":132});
															thumbnails[1805935] = clik.newPhoto({"id":1805935,"src":"IMG_8600_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805935.html","width":130,"caption":"","height":130});
															thumbnails[1805938] = clik.newPhoto({"id":1805938,"src":"IMG_8591_thumb.JPG","galleries_id":120097,"server_id":18,"link":"photo_1805938.html","width":130,"caption":"","height":130});
															thumbnails[1831354] = clik.newPhoto({"id":1831354,"src":"13p31_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_1831354.html","width":130,"caption":"","height":173});
															thumbnails[1831355] = clik.newPhoto({"id":1831355,"src":"13p91_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_1831355.html","width":130,"caption":"","height":173});
															thumbnails[1831356] = clik.newPhoto({"id":1831356,"src":"13p105_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_1831356.html","width":130,"caption":"","height":173});
															thumbnails[1831357] = clik.newPhoto({"id":1831357,"src":"13p181_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_1831357.html","width":130,"caption":"","height":173});
															thumbnails[1874978] = clik.newPhoto({"id":1874978,"src":"CRW_6570_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874978.html","width":130,"caption":"","height":93});
															thumbnails[1874980] = clik.newPhoto({"id":1874980,"src":"IMG_1370_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874980.html","width":130,"caption":"","height":87});
															thumbnails[1874981] = clik.newPhoto({"id":1874981,"src":"IMG_1366_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874981.html","width":130,"caption":"","height":87});
															thumbnails[1874984] = clik.newPhoto({"id":1874984,"src":"IMG_1677_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874984.html","width":130,"caption":"","height":93});
															thumbnails[1874986] = clik.newPhoto({"id":1874986,"src":"CRW_6625 PANORAMIC_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874986.html","width":130,"caption":"","height":77});
															thumbnails[1874987] = clik.newPhoto({"id":1874987,"src":"IMG_6689_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874987.html","width":130,"caption":"","height":100});
															thumbnails[1874988] = clik.newPhoto({"id":1874988,"src":"mumbels lighthouse _thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874988.html","width":130,"caption":"","height":57});
															thumbnails[1874989] = clik.newPhoto({"id":1874989,"src":"IMG_8551_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874989.html","width":130,"caption":"","height":167});
															thumbnails[1874990] = clik.newPhoto({"id":1874990,"src":"IMG_8539_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874990.html","width":130,"caption":"","height":167});
															thumbnails[1874992] = clik.newPhoto({"id":1874992,"src":"IMG_73541_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874992.html","width":130,"caption":"","height":72});
															thumbnails[1874993] = clik.newPhoto({"id":1874993,"src":"IMG_84531_thumb.jpg","galleries_id":126050,"server_id":18,"link":"photo_1874993.html","width":130,"caption":"","height":79});
															thumbnails[2174729] = clik.newPhoto({"id":2174729,"src":"IMG_26071_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_2174729.html","width":130,"caption":"","height":163});
															thumbnails[2174731] = clik.newPhoto({"id":2174731,"src":"IMG_26171_thumb.jpg","galleries_id":120096,"server_id":18,"link":"photo_2174731.html","width":130,"caption":"","height":163});
															thumbnails[7070434] = clik.newPhoto({"id":7070434,"src":"__0047_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070434.html","width":130,"caption":"","height":95});
															thumbnails[7070435] = clik.newPhoto({"id":7070435,"src":"IMG_0615_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070435.html","width":130,"caption":"","height":95});
															thumbnails[7070436] = clik.newPhoto({"id":7070436,"src":"IMG_0626_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070436.html","width":130,"caption":"","height":178});
															thumbnails[7070437] = clik.newPhoto({"id":7070437,"src":"IMG_0669_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070437.html","width":130,"caption":"","height":177});
															thumbnails[7070438] = clik.newPhoto({"id":7070438,"src":"IMG_1947_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070438.html","width":130,"caption":"","height":95});
															thumbnails[7070439] = clik.newPhoto({"id":7070439,"src":"IMG_1951_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_7070439.html","width":130,"caption":"","height":95});
															thumbnails[7714053] = clik.newPhoto({"id":7714053,"src":"PW-elf-snow-forest_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714053.html","width":130,"caption":"","height":173});
															thumbnails[7714055] = clik.newPhoto({"id":7714055,"src":"PW-fairies-P-snow-bridge_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714055.html","width":130,"caption":"","height":173});
															thumbnails[7714056] = clik.newPhoto({"id":7714056,"src":"PW-Fairyphotos-Cloudfairy-Poster-no-price_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714056.html","width":130,"caption":"","height":183});
															thumbnails[7714060] = clik.newPhoto({"id":7714060,"src":"PW-Fairyphotos-Mushroomfairy-Poster-no-price_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714060.html","width":130,"caption":"","height":183});
															thumbnails[7714062] = clik.newPhoto({"id":7714062,"src":"PW-Fairyphotos-Pinkflyingfairy-Poster-no-price_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714062.html","width":130,"caption":"","height":181});
															thumbnails[7714063] = clik.newPhoto({"id":7714063,"src":"1_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714063.html","width":130,"caption":"","height":163});
															thumbnails[7714066] = clik.newPhoto({"id":7714066,"src":"3_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714066.html","width":130,"caption":"","height":163});
															thumbnails[7714068] = clik.newPhoto({"id":7714068,"src":"4_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714068.html","width":130,"caption":"","height":163});
															thumbnails[7714070] = clik.newPhoto({"id":7714070,"src":"5_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714070.html","width":130,"caption":"","height":163});
															thumbnails[7714071] = clik.newPhoto({"id":7714071,"src":"2_thumb.jpg","galleries_id":417474,"server_id":18,"link":"photo_7714071.html","width":130,"caption":"","height":92});
															thumbnails[3027712] = clik.newPhoto({"id":3027712,"src":"DPP_0003_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_3027712.html","width":130,"caption":"","height":195});
															thumbnails[8993668] = clik.newPhoto({"id":8993668,"src":"IMG_8610_CEBE62C1-1EC9-D45B-1C0DB732379BDF42_thumb.JPG","galleries_id":120095,"server_id":18,"link":"photo_8993668.html","width":130,"caption":"","height":188});
															thumbnails[3027713] = clik.newPhoto({"id":3027713,"src":"DPP_0004 (1)_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_3027713.html","width":130,"caption":"","height":195});
															thumbnails[8993669] = clik.newPhoto({"id":8993669,"src":"IMG_8613_CEBED216-1EC9-D45B-1C643B411A6B8064_thumb.JPG","galleries_id":120095,"server_id":18,"link":"photo_8993669.html","width":130,"caption":"","height":188});
															thumbnails[3027714] = clik.newPhoto({"id":3027714,"src":"DPP_0006 (1)_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_3027714.html","width":130,"caption":"","height":195});
															thumbnails[8993670] = clik.newPhoto({"id":8993670,"src":"IMG_8625_CEBF90C5-1EC9-D45B-1C94E3376DBBA754_thumb.JPG","galleries_id":120095,"server_id":18,"link":"photo_8993670.html","width":130,"caption":"","height":188});
															thumbnails[2514648] = clik.newPhoto({"id":2514648,"src":"DPP_0019_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514648.html","width":130,"caption":"","height":195});
															thumbnails[8993671] = clik.newPhoto({"id":8993671,"src":"IMG_8631_CEC047F6-1EC9-D45B-1CEEB5D55D2A06C6_thumb.JPG","galleries_id":120095,"server_id":18,"link":"photo_8993671.html","width":130,"caption":"","height":188});
															thumbnails[3027716] = clik.newPhoto({"id":3027716,"src":"DPP_0012 (1)_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_3027716.html","width":130,"caption":"","height":195});
															thumbnails[8993672] = clik.newPhoto({"id":8993672,"src":"RA_AndyElin-195_CEC0EABC-1EC9-D45B-1CD8BE248E37BCF8_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993672.html","width":130,"caption":"","height":188});
															thumbnails[2514650] = clik.newPhoto({"id":2514650,"src":"DPP_0022_resize1_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514650.html","width":130,"caption":"","height":195});
															thumbnails[8993673] = clik.newPhoto({"id":8993673,"src":"RA_AndyElin-207_CEC19126-1EC9-D45B-1CBF9198786B4B75_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993673.html","width":130,"caption":"","height":188});
															thumbnails[2514651] = clik.newPhoto({"id":2514651,"src":"DPP_0025_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514651.html","width":130,"caption":"","height":195});
															thumbnails[8993674] = clik.newPhoto({"id":8993674,"src":"RA_AndyElin-220_CEC1FAC4-1EC9-D45B-1C7E7823CC4E2B58_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993674.html","width":130,"caption":"","height":188});
															thumbnails[8993675] = clik.newPhoto({"id":8993675,"src":"RA_AndyElin-314_CEC2987B-1EC9-D45B-1C9B8721F39C9B2D_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993675.html","width":130,"caption":"","height":188});
															thumbnails[2514653] = clik.newPhoto({"id":2514653,"src":"DPP_0042_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514653.html","width":130,"caption":"","height":195});
															thumbnails[8993676] = clik.newPhoto({"id":8993676,"src":"RA_DavidRebecca-212_CEC365B3-1EC9-D45B-1C12C6BF8FC7A986_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993676.html","width":130,"caption":"","height":188});
															thumbnails[1805795] = clik.newPhoto({"id":1805795,"src":"Copy of CRW_7407 copy_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_1805795.html","width":130,"caption":"","height":144});
															thumbnails[8993677] = clik.newPhoto({"id":8993677,"src":"RA_DavidRebecca-329_CEC40615-1EC9-D45B-1C11439E88DC0C06_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993677.html","width":130,"caption":"","height":183});
															thumbnails[1805798] = clik.newPhoto({"id":1805798,"src":"Copy of CRW_7461 glow copy_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_1805798.html","width":130,"caption":"","height":137});
															thumbnails[2514645] = clik.newPhoto({"id":2514645,"src":"DPP_0002_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514645.html","width":130,"caption":"","height":87});
															thumbnails[2514646] = clik.newPhoto({"id":2514646,"src":"DPP_0005_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514646.html","width":130,"caption":"","height":87});
															thumbnails[2514647] = clik.newPhoto({"id":2514647,"src":"DPP_0009_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514647.html","width":130,"caption":"","height":87});
															thumbnails[2514652] = clik.newPhoto({"id":2514652,"src":"DPP_0034_resize_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_2514652.html","width":130,"caption":"","height":87});
															thumbnails[3027715] = clik.newPhoto({"id":3027715,"src":"DPP_0009 (1)_thumb.jpg","galleries_id":102641,"server_id":18,"link":"photo_3027715.html","width":130,"caption":"","height":87});
															thumbnails[8993678] = clik.newPhoto({"id":8993678,"src":"RA_StaceyStephen-111_CEC4C371-1EC9-D45B-1C3943D3128C6FFF_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993678.html","width":130,"caption":"","height":188});
															thumbnails[8993679] = clik.newPhoto({"id":8993679,"src":"RA_StaceyStephen-113_CEC52A54-1EC9-D45B-1C3D00324943CEC1_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993679.html","width":130,"caption":"","height":188});
															thumbnails[8993680] = clik.newPhoto({"id":8993680,"src":"RA_StaceyStephen-161_CEC5C588-1EC9-D45B-1C94C32C92D875AF_thumb.jpg","galleries_id":120095,"server_id":18,"link":"photo_8993680.html","width":130,"caption":"","height":188});
															thumbnails[8993144] = clik.newPhoto({"id":8993144,"src":"RA_AndyElin-184_CA68698F-24E8-5EC4-4F19E3FB6F747EBE_thumb.jpg","galleries_id":238561,"server_id":18,"link":"photo_8993144.html","width":130,"caption":"","height":90});
															thumbnails[8993145] = clik.newPhoto({"id":8993145,"src":"RA_DavidRebecca-195_CA68A537-24E8-5EC4-4FC917B26C5BF4E2_thumb.jpg","galleries_id":238561,"server_id":18,"link":"photo_8993145.html","width":130,"caption":"","height":90});
															thumbnails[8993146] = clik.newPhoto({"id":8993146,"src":"RA_DavidRebecca-335_CA68EBF5-24E8-5EC4-4F67BDB9C4A161EE_thumb.jpg","galleries_id":238561,"server_id":18,"link":"photo_8993146.html","width":130,"caption":"","height":93});
															thumbnails[8993147] = clik.newPhoto({"id":8993147,"src":"RA_StaceyStephen-167_CA692D08-24E8-5EC4-4FE7CFD1A96C9884_thumb.jpg","galleries_id":238561,"server_id":18,"link":"photo_8993147.html","width":130,"caption":"","height":90});
															thumbnails[8993148] = clik.newPhoto({"id":8993148,"src":"RA_StaceyStephen-170_copy_CA696DE3-24E8-5EC4-4F20FD63A46196C8_thumb.jpg","galleries_id":238561,"server_id":18,"link":"photo_8993148.html","width":130,"caption":"","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[120097] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_120097.html","maxRecords":0.0,"photoIDs":[1805927.0,1805929.0,1805931.0,1805933.0,1805935.0,1805938.0],"skipIndex":0,"section_code":"gallery","featured_images":"1805938,1805935,1805933,1805931,1805929,1805927","id":120097,"singleSection":false});				  						galleries[120096] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_120096.html","maxRecords":0.0,"photoIDs":[1831354.0,1831355.0,1831356.0,1831357.0,2174729.0,2174731.0],"skipIndex":0,"section_code":"gallery","featured_images":"2174731,2174729,1831357,1831356,1831355,1831354","id":120096,"singleSection":false});				  						galleries[417474] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fairy Portraits & Baby Poems","link":"gallery_417474.html","maxRecords":0.0,"photoIDs":[7714053.0,7714055.0,7714056.0,7714060.0,7714062.0,7714063.0,7714066.0,7714068.0,7714070.0,7714071.0],"skipIndex":0,"section_code":"gallery","featured_images":"7714071,7714070,7714068,7714066,7714063,7714062,7714060,7714056,7714055,7714053","id":417474,"singleSection":false});				  						galleries[126050] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_126050.html","maxRecords":0.0,"photoIDs":[1874978.0,1874980.0,1874981.0,1874984.0,1874986.0,1874987.0,1874988.0,1874989.0,1874990.0,1874992.0,1874993.0],"skipIndex":0,"section_code":"gallery","featured_images":"1874993,1874992,1874990,1874989,1874988,1874987,1874986,1874984,1874981,1874980","id":126050,"singleSection":false});				  						galleries[120095] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings 1","link":"gallery_120095.html","maxRecords":0.0,"photoIDs":[8993668.0,8993669.0,8993670.0,8993671.0,8993672.0,8993673.0,8993674.0,8993675.0,8993676.0,8993677.0,8993678.0,8993679.0,8993680.0],"skipIndex":0,"section_code":"gallery","featured_images":"8993680,8993679,8993678,8993677,8993676,8993675,8993674,8993673,8993672,8993671","id":120095,"singleSection":false});				  						galleries[238561] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings 2","link":"gallery_238561.html","maxRecords":0.0,"photoIDs":[8993144.0,8993145.0,8993146.0,8993147.0,8993148.0],"skipIndex":0,"section_code":"gallery","featured_images":"8993148,8993147,8993146,8993145,8993144","id":238561,"singleSection":false});				  						galleries[102641] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_102641.html","maxRecords":0.0,"photoIDs":[1805849.0,1805852.0,7070434.0,7070435.0,7070436.0,7070437.0,7070438.0,7070439.0,3027712.0,3027713.0,3027714.0,2514648.0,3027716.0,2514650.0,2514651.0,2514653.0,1805795.0,1805798.0,2514645.0,2514646.0,2514647.0,2514652.0,3027715.0],"skipIndex":0,"section_code":"gallery","featured_images":"7070439,7070438,7070437,7070436,7070435,7070434,3027716,3027715,3027714,3027713","id":102641,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8993680,8993679,8993678,8993677,8993676,8993675,8993674,8993673,8993672,8993671,8993670,8993669,8993668,8993148,8993147,8993146,8993145,8993144,7714071,7714070,7714068,7714066,7714063,7714062,7714060,7714056,7714055,7714053,7648051,7648035,7648024,7648018,7352337,7350711,7070439,7070438,7070437,7070436,7070435,7070434,5401748,5401382,3027716,3027715,3027714,3027713,3027712,2646619,2624566,2514653';
imageSets[3] = '8993680,8993679,8993678,8993677,8993676,8993675,8993674,8993673,8993672,8993671,8993670,8993669,8993668,8993148,8993147,8993146,8993145,8993144,7714071,7714070,7714068,7714066,7714063,7714062,7714060,7714056,7714055,7714053,7648051,7648035,7648024,7648018,7352337,7350711,7070439,7070438,7070437,7070436,7070435,7070434,5401748,5401382,3027716,3027715,3027714,3027713,3027712,2646619,2624566,2514653';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/raulphotog/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/raulphotog/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 = 'www.raphotography.org.uk: ' + 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.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="raulphotog@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="raulphotog@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

