window.thumbnails = {};
															thumbnails[3504828] = clik.newPhoto({"id":3504828,"src":"Paco 01D_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"PACO (F)","height":88});
															thumbnails[8281984] = clik.newPhoto({"id":8281984,"src":"IMG_1406D_WEB_B5D53FC1-1EC9-D45B-1C0819D798C3D428_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Wedding (F)","height":87});
															thumbnails[8439489] = clik.newPhoto({"id":8439489,"src":"Denon_03_WEB_4BAB42ED-1E4F-37DC-71604F034C21AA6D_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Denon (F)","height":87});
															thumbnails[3512425] = clik.newPhoto({"id":3512425,"src":"Wine Glass 1 (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512425.html","width":130,"caption":"Product shot 4","height":195});
															thumbnails[5733806] = clik.newPhoto({"id":5733806,"src":"IMG_0687C_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733806.html","width":130,"caption":"Sherrelle 3","height":87});
															thumbnails[5889397] = clik.newPhoto({"id":5889397,"src":"IMG__6059B_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5889397.html","width":130,"caption":"Gymnast 1","height":195});
															thumbnails[6182087] = clik.newPhoto({"id":6182087,"src":"IMG_1406D_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6182087.html","width":130,"caption":"Wedding 01","height":87});
															thumbnails[5889380] = clik.newPhoto({"id":5889380,"src":"IMG__5962_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5889380.html","width":130,"caption":"Gymnast 2","height":195});
															thumbnails[5889369] = clik.newPhoto({"id":5889369,"src":"IMG_5310A_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5889369.html","width":130,"caption":"Gymnast 3","height":195});
															thumbnails[5915869] = clik.newPhoto({"id":5915869,"src":"IMG_5898BW_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5915869.html","width":130,"caption":"Gymnast 4","height":195});
															thumbnails[3506636] = clik.newPhoto({"id":3506636,"src":"Strawberry 7486A (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506636.html","width":130,"caption":"Product shot 3","height":195});
															thumbnails[3655904] = clik.newPhoto({"id":3655904,"src":"Gymnast_035_web_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3655904.html","width":130,"caption":"Gymnast 5","height":207});
															thumbnails[5629153] = clik.newPhoto({"id":5629153,"src":"IMG_2737B_WEB1_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5629153.html","width":130,"caption":"Georgina 1","height":87});
															thumbnails[6061244] = clik.newPhoto({"id":6061244,"src":"IMG_1464A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6061244.html","width":130,"caption":"Wedding 02","height":87});
															thumbnails[3655926] = clik.newPhoto({"id":3655926,"src":"Gymnast_038__web11_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3655926.html","width":130,"caption":"Gymnast 6","height":206});
															thumbnails[3512451] = clik.newPhoto({"id":3512451,"src":"Tina 02 (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512451.html","width":130,"caption":"Tina 1","height":205});
															thumbnails[3692543] = clik.newPhoto({"id":3692543,"src":"IMG_3817D_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_3692543.html","width":130,"caption":"Shantelle 1","height":195});
															thumbnails[5889393] = clik.newPhoto({"id":5889393,"src":"IMG__6145A_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5889393.html","width":130,"caption":"Gymnast 7","height":195});
															thumbnails[6182075] = clik.newPhoto({"id":6182075,"src":"IMG_1166A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6182075.html","width":130,"caption":"Wedding 03","height":87});
															thumbnails[3655897] = clik.newPhoto({"id":3655897,"src":"Gymnast_015_web_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3655897.html","width":130,"caption":"Gymnast 8","height":90});
															thumbnails[3534057] = clik.newPhoto({"id":3534057,"src":"Chaka_Khan_001_web1_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3534057.html","width":130,"caption":"Chaka 1","height":82});
															thumbnails[5733862] = clik.newPhoto({"id":5733862,"src":"IMG_4791A_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733862.html","width":130,"caption":"Georgina 2","height":195});
															thumbnails[6182080] = clik.newPhoto({"id":6182080,"src":"IMG_1119A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6182080.html","width":130,"caption":"Wedding 04","height":87});
															thumbnails[6982597] = clik.newPhoto({"id":6982597,"src":"IMG_1681A_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_6982597.html","width":130,"caption":"Soccer 2","height":195});
															thumbnails[6982880] = clik.newPhoto({"id":6982880,"src":"IMG_0332C_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_6982880.html","width":130,"caption":"Emma 2","height":195});
															thumbnails[7008655] = clik.newPhoto({"id":7008655,"src":"NewsPicture_01_S_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_7008655.html","width":130,"caption":"Soccer 3","height":198});
															thumbnails[3506713] = clik.newPhoto({"id":3506713,"src":"Paco 01D1_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506713.html","width":130,"caption":"Product shot 2","height":88});
															thumbnails[4931889] = clik.newPhoto({"id":4931889,"src":"IMG_1989B_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_4931889.html","width":130,"caption":"Soccer 4","height":87});
															thumbnails[6263248] = clik.newPhoto({"id":6263248,"src":"IMG_1480B_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6263248.html","width":130,"caption":"Wedding 06","height":87});
															thumbnails[6923404] = clik.newPhoto({"id":6923404,"src":"DENON_03_WEB_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_6923404.html","width":130,"caption":"Product shot 1","height":87});
															thumbnails[7546020] = clik.newPhoto({"id":7546020,"src":"IMG_4101C_WEB_7932D15D-1EC9-DFB6-09A7CD30D62F3D07_thumb_7934A665-1EC9-DFB6-09347EA6B75A890A.jpg","galleries_id":214195,"server_id":15,"link":"photo_7546020.html","width":130,"caption":"Julia 3","height":195});
															thumbnails[6924629] = clik.newPhoto({"id":6924629,"src":"IMG_1477_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_6924629.html","width":130,"caption":"Soccer 5","height":87});
															thumbnails[3509499] = clik.newPhoto({"id":3509499,"src":"American Football_001 (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3509499.html","width":130,"caption":"American Football 02","height":87});
															thumbnails[5890153] = clik.newPhoto({"id":5890153,"src":"IMG_9991_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5890153.html","width":130,"caption":"Soccer 6","height":87});
															thumbnails[4931738] = clik.newPhoto({"id":4931738,"src":"IMG_2780_WEB_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_4931738.html","width":130,"caption":"Soccer 7","height":87});
															thumbnails[3510031] = clik.newPhoto({"id":3510031,"src":"IMG_0557 (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3510031.html","width":130,"caption":"Soccer 8","height":87});
															thumbnails[3512370] = clik.newPhoto({"id":3512370,"src":"Canary Wharf 002 (web)2_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512370.html","width":130,"caption":"Canary Wharf","height":83});
															thumbnails[4080633] = clik.newPhoto({"id":4080633,"src":"IMG_9819A_web_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_4080633.html","width":130,"caption":"Emma 5","height":87});
															thumbnails[6208326] = clik.newPhoto({"id":6208326,"src":"IMG_6624A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6208326.html","width":130,"caption":"Wedding 07","height":195});
															thumbnails[3512374] = clik.newPhoto({"id":3512374,"src":"Jesuit Church (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512374.html","width":130,"caption":"Jesuit Church","height":87});
															thumbnails[5757430] = clik.newPhoto({"id":5757430,"src":"IMG_3771A_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5757430.html","width":130,"caption":"Shantelle 3","height":87});
															thumbnails[6263252] = clik.newPhoto({"id":6263252,"src":"IMG_6599C_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6263252.html","width":130,"caption":"Wedding 08","height":87});
															thumbnails[3644182] = clik.newPhoto({"id":3644182,"src":"Walkabout_012_Master_web1_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3644182.html","width":130,"caption":"Offices","height":195});
															thumbnails[5733843] = clik.newPhoto({"id":5733843,"src":"IMG_9329C_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733843.html","width":130,"caption":"Emma 3","height":195});
															thumbnails[5889484] = clik.newPhoto({"id":5889484,"src":"The_Chase_web_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_5889484.html","width":130,"caption":"American Football 06","height":37});
															thumbnails[6263282] = clik.newPhoto({"id":6263282,"src":"IMG_1438C_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6263282.html","width":130,"caption":"Wedding 09","height":87});
															thumbnails[3509621] = clik.newPhoto({"id":3509621,"src":"American Football_013 (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3509621.html","width":130,"caption":"American Football 08","height":88});
															thumbnails[4498008] = clik.newPhoto({"id":4498008,"src":"Howden_0361C_WEB_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_4498008.html","width":130,"caption":"Howden","height":87});
															thumbnails[5733804] = clik.newPhoto({"id":5733804,"src":"IMG_4391A_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733804.html","width":130,"caption":"Georgina 3","height":195});
															thumbnails[6263253] = clik.newPhoto({"id":6263253,"src":"IMG_1423C_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6263253.html","width":130,"caption":"Wedding 10","height":87});
															thumbnails[3506966] = clik.newPhoto({"id":3506966,"src":"Tra04 B+W 2 (web)1_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_3506966.html","width":130,"caption":"Tra 2","height":87});
															thumbnails[3655970] = clik.newPhoto({"id":3655970,"src":"Judo_038_web_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3655970.html","width":130,"caption":"Judo 01","height":87});
															thumbnails[4498016] = clik.newPhoto({"id":4498016,"src":"Yellow_Field_web_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_4498016.html","width":130,"caption":"Yellow Fields","height":87});
															thumbnails[6208331] = clik.newPhoto({"id":6208331,"src":"IMG_1269A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6208331.html","width":130,"caption":"Wedding 11","height":87});
															thumbnails[3644031] = clik.newPhoto({"id":3644031,"src":"Karate_013_web1_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3644031.html","width":130,"caption":"Karate 04","height":87});
															thumbnails[4498024] = clik.newPhoto({"id":4498024,"src":"Zurich_4266_WEB_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_4498024.html","width":130,"caption":"Swiss Town","height":87});
															thumbnails[6208337] = clik.newPhoto({"id":6208337,"src":"IMG_1416B_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6208337.html","width":130,"caption":"Wedding 12","height":87});
															thumbnails[3509052] = clik.newPhoto({"id":3509052,"src":"Athletics_000 Combo (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3509052.html","width":130,"caption":"Athletics Multi-Image","height":72});
															thumbnails[3512442] = clik.newPhoto({"id":3512442,"src":"IMG_3377A_WEB_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512442.html","width":130,"caption":"Fancy Dress 1","height":87});
															thumbnails[5733846] = clik.newPhoto({"id":5733846,"src":"IMG_0430C_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733846.html","width":130,"caption":"Emma 6","height":87});
															thumbnails[6494244] = clik.newPhoto({"id":6494244,"src":"IMG_0721A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6494244.html","width":130,"caption":"Wedding 13","height":195});
															thumbnails[3509689] = clik.newPhoto({"id":3509689,"src":"IMG_5703 (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3509689.html","width":130,"caption":"Track 1","height":87});
															thumbnails[3510196] = clik.newPhoto({"id":3510196,"src":"IMG_5781B (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3510196.html","width":130,"caption":"Track 2","height":93});
															thumbnails[3510001] = clik.newPhoto({"id":3510001,"src":"IMG_5772B (web)1_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3510001.html","width":130,"caption":"Track 3","height":200});
															thumbnails[3512440] = clik.newPhoto({"id":3512440,"src":"Posh 02 (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512440.html","width":130,"caption":"Party Piece","height":85});
															thumbnails[6494191] = clik.newPhoto({"id":6494191,"src":"IMG_0777A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6494191.html","width":130,"caption":"Wedding 14","height":87});
															thumbnails[3512438] = clik.newPhoto({"id":3512438,"src":"Posh 06B (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3512438.html","width":130,"caption":"Waitresses","height":87});
															thumbnails[3540452] = clik.newPhoto({"id":3540452,"src":"Athletics_007_web1_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3540452.html","width":130,"caption":"Pole Vault 1","height":224});
															thumbnails[6494236] = clik.newPhoto({"id":6494236,"src":"IMG_0828A_WEB1_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6494236.html","width":130,"caption":"Wedding 15","height":87});
															thumbnails[7982085] = clik.newPhoto({"id":7982085,"src":"IMG_0881A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_7982085.html","width":130,"caption":"Wedding 16","height":87});
															thumbnails[6492114] = clik.newPhoto({"id":6492114,"src":"IMG_0885A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6492114.html","width":130,"caption":"Wedding 17","height":87});
															thumbnails[3509661] = clik.newPhoto({"id":3509661,"src":"IMG_5728 (web)_thumb.jpg","galleries_id":214194,"server_id":15,"link":"photo_3509661.html","width":130,"caption":"Pole Vault 2","height":92});
															thumbnails[6492117] = clik.newPhoto({"id":6492117,"src":"IMG_1285A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6492117.html","width":130,"caption":"Wedding 18","height":87});
															thumbnails[7556676] = clik.newPhoto({"id":7556676,"src":"IMG_8991D_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_7556676.html","width":130,"caption":"Sarah 2","height":87});
															thumbnails[7734738] = clik.newPhoto({"id":7734738,"src":"IMG_3400A_WEB_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_7734738.html","width":130,"caption":"Fancy Dress 2","height":87});
															thumbnails[3506868] = clik.newPhoto({"id":3506868,"src":"Blue Tit_03 (web)2_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506868.html","width":130,"caption":"Blue Tit","height":81});
															thumbnails[5735468] = clik.newPhoto({"id":5735468,"src":"IMG_9542C_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5735468.html","width":130,"caption":"Emma 9","height":87});
															thumbnails[6492116] = clik.newPhoto({"id":6492116,"src":"IMG_1003_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6492116.html","width":130,"caption":"Wedding 19","height":87});
															thumbnails[3506879] = clik.newPhoto({"id":3506879,"src":"Robin_004 (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506879.html","width":130,"caption":"Robin","height":83});
															thumbnails[6492115] = clik.newPhoto({"id":6492115,"src":"IMG_0923A_WEB_thumb.jpg","galleries_id":214698,"server_id":15,"link":"photo_6492115.html","width":130,"caption":"Wedding 20","height":87});
															thumbnails[8466442] = clik.newPhoto({"id":8466442,"src":"IMG_4665E_WEB_7DE94F9B-24E8-5EC4-4F555F88F2249D7D_thumb_7DEB32EF-24E8-5EC4-4F3309F315BD35CA.jpg","galleries_id":214195,"server_id":15,"link":"photo_8466442.html","width":130,"caption":"Georgina 4","height":195});
															thumbnails[3506964] = clik.newPhoto({"id":3506964,"src":"IMG_8710_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_3506964.html","width":130,"caption":"Laura 3","height":195});
															thumbnails[3559498] = clik.newPhoto({"id":3559498,"src":"Green_Woodpecker_web_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3559498.html","width":130,"caption":"Green Woodpecker ","height":87});
															thumbnails[3506889] = clik.newPhoto({"id":3506889,"src":"Tufted Duck (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506889.html","width":130,"caption":"Tufted Duck","height":83});
															thumbnails[3506807] = clik.newPhoto({"id":3506807,"src":"Grey Squirrel (web)_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3506807.html","width":130,"caption":"Grey Squirrel","height":87});
															thumbnails[4451141] = clik.newPhoto({"id":4451141,"src":"IMG_0048D_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_4451141.html","width":130,"caption":"Kate 3","height":195});
															thumbnails[5735420] = clik.newPhoto({"id":5735420,"src":"IMG_3765B_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5735420.html","width":130,"caption":"Shantelle 2","height":195});
															thumbnails[3559510] = clik.newPhoto({"id":3559510,"src":"IMG_6000B_Magpie_web_thumb.jpg","galleries_id":214477,"server_id":15,"link":"photo_3559510.html","width":130,"caption":"Magpie ","height":87});
															thumbnails[6478186] = clik.newPhoto({"id":6478186,"src":"IMG_2491A_WEB12_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_6478186.html","width":130,"caption":"Georgina 5","height":195});
															thumbnails[4381106] = clik.newPhoto({"id":4381106,"src":"IMG_3956A_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_4381106.html","width":130,"caption":"Julia 5","height":87});
															thumbnails[8471479] = clik.newPhoto({"id":8471479,"src":"IMG_4482B_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_8471479.html","width":130,"caption":"Georgina 6","height":195});
															thumbnails[4762827] = clik.newPhoto({"id":4762827,"src":"IMG_0225B_WEB_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_4762827.html","width":130,"caption":"Kate 4","height":195});
															thumbnails[5733792] = clik.newPhoto({"id":5733792,"src":"IMG_0299D_WEB_BA5D278D-1D09-001F-99049E45E44ACE80_thumb.jpg","galleries_id":214195,"server_id":15,"link":"photo_5733792.html","width":130,"caption":"Emma 11","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[214194] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sports","link":"gallery_214194.html","maxRecords":0.0,"photoIDs":[5889397.0,5889380.0,5889369.0,5915869.0,3655904.0,3655926.0,5889393.0,3655897.0,6982597.0,7008655.0,4931889.0,6924629.0,3509499.0,5890153.0,4931738.0,3510031.0,5889484.0,3509621.0,3655970.0,3644031.0,3509052.0,3509689.0,3510196.0,3510001.0,3540452.0,3509661.0],"skipIndex":0,"section_code":"gallery","featured_images":3655897.0,"id":214194,"singleSection":false});				  						galleries[214698] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_214698.html","maxRecords":0.0,"photoIDs":[6182087.0,6061244.0,6182075.0,6182080.0,6263248.0,6208326.0,6263252.0,6263282.0,6263253.0,6208331.0,6208337.0,6494244.0,6494191.0,6494236.0,7982085.0,6492114.0,6492117.0,6492116.0,6492115.0],"skipIndex":0,"section_code":"gallery","featured_images":6061244.0,"id":214698,"singleSection":false});				  						galleries[214477] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Various","link":"gallery_214477.html","maxRecords":0.0,"photoIDs":[3512425.0,3506636.0,3512451.0,3534057.0,3506713.0,6923404.0,3512370.0,3512374.0,3644182.0,4498008.0,4498016.0,4498024.0,3512442.0,3512440.0,3512438.0,7734738.0,3506868.0,3506879.0,3559498.0,3506889.0,3506807.0,3559510.0],"skipIndex":0,"section_code":"gallery","featured_images":3506713.0,"id":214477,"singleSection":false});				  						galleries[214195] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraiture","link":"gallery_214195.html","maxRecords":0.0,"photoIDs":[5733806.0,5629153.0,3692543.0,5733862.0,6982880.0,7546020.0,4080633.0,5757430.0,5733843.0,5733804.0,3506966.0,5733846.0,7556676.0,5735468.0,8466442.0,3506964.0,4451141.0,5735420.0,6478186.0,4381106.0,8471479.0,4762827.0,5733792.0],"skipIndex":0,"section_code":"gallery","featured_images":4381106.0,"id":214195,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8439489';
imageSets[2] = '6061244,3655897,3506713,4381106';
imageSets[3] = '8471479,8466442,8439489,8281984,7982085,7734738,7556676,7546020,7008655,6982880,6982597,6924629,6923404,6494244,6494236,6494191,6492117,6492116,6492115,6492114,6478186,6263282,6263253,6263252,6263248,6208337,6208331,6208326,6182087,6182080,6182075,6061244,5915869,5890153,5889484,5889397,5889393,5889380,5889369,5757430,5735468,5735420,5733862,5733846,5733843,5733806,5733804,5733792,5629153,4931889';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/supremekey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/supremekey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/supremekey/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 = 'David Lawrence Photography: ' + 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>';
	}
				
				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;
	}
}

			

