window.thumbnails = {};
															thumbnails[4704128] = clik.newPhoto({"id":4704128,"src":"album_003_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"ACYRLIC DIGITAL ALBUMS ALLOW FREEDOM OF DESIGN AND A GREATER NUMBER OF IMAGES.","height":95});
															thumbnails[6648673] = clik.newPhoto({"id":6648673,"src":"markandkatie_254_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6648674] = clik.newPhoto({"id":6648674,"src":"markandkatie_406a_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4704131] = clik.newPhoto({"id":4704131,"src":"album_006_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"INTERNAL VIEW OF A DIGITAL ALBUM IN GLOSSY OR MATT FINISH.","height":86});
															thumbnails[6591593] = clik.newPhoto({"id":6591593,"src":"markandkatie_300bjpg_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8400807] = clik.newPhoto({"id":8400807,"src":"sarahdavid_079_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8400808] = clik.newPhoto({"id":8400808,"src":"sarahdavid_469_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4445793] = clik.newPhoto({"id":4445793,"src":"adamclaire_1026_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8266806] = clik.newPhoto({"id":8266806,"src":"sarahdavid_797_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":196});
															thumbnails[7917833] = clik.newPhoto({"id":7917833,"src":"beach_219_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[1084400] = clik.newPhoto({"id":1084400,"src":"claire&paul 179_thumb.jpg","galleries_id":80044,"server_id":1,"link":"photo_1084400.html","width":130,"caption":"","height":87});
															thumbnails[1297609] = clik.newPhoto({"id":1297609,"src":"adele1_thumb.jpg","galleries_id":54492,"server_id":1,"link":"photo_1297609.html","width":130,"caption":"","height":165});
															thumbnails[5776547] = clik.newPhoto({"id":5776547,"src":"evie_051_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_5776547.html","width":130,"caption":"","height":196});
															thumbnails[5776549] = clik.newPhoto({"id":5776549,"src":"evie_067_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_5776549.html","width":130,"caption":"","height":196});
															thumbnails[5776551] = clik.newPhoto({"id":5776551,"src":"evie_131_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_5776551.html","width":130,"caption":"","height":196});
															thumbnails[754045] = clik.newPhoto({"id":754045,"src":"diane_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_754045.html","width":130,"caption":"","height":182});
															thumbnails[6464808] = clik.newPhoto({"id":6464808,"src":"mattandlouise_008_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464808.html","width":130,"caption":"","height":196});
															thumbnails[6648682] = clik.newPhoto({"id":6648682,"src":"markandkatie_077a_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648682.html","width":130,"caption":"","height":196});
															thumbnails[8095846] = clik.newPhoto({"id":8095846,"src":"Laura__Mark2_105_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8095846.html","width":130,"caption":"","height":86});
															thumbnails[8100265] = clik.newPhoto({"id":8100265,"src":"JessDave_131_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8100265.html","width":130,"caption":"","height":196});
															thumbnails[8402363] = clik.newPhoto({"id":8402363,"src":"Richard_Stacey_107_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402363.html","width":130,"caption":"","height":86});
															thumbnails[8628191] = clik.newPhoto({"id":8628191,"src":"CeliaLee_061_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628191.html","width":130,"caption":"","height":86});
															thumbnails[8649959] = clik.newPhoto({"id":8649959,"src":"stuartandimogen2_036_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649959.html","width":130,"caption":"","height":194});
															thumbnails[8788906] = clik.newPhoto({"id":8788906,"src":"RachelKevin_031_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788906.html","width":130,"caption":"","height":196});
															thumbnails[8789172] = clik.newPhoto({"id":8789172,"src":"JemmaPete_014_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789172.html","width":130,"caption":"","height":196});
															thumbnails[1941930] = clik.newPhoto({"id":1941930,"src":"bb_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_1941930.html","width":130,"caption":"","height":194});
															thumbnails[1993210] = clik.newPhoto({"id":1993210,"src":"abew3_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_1993210.html","width":130,"caption":"","height":184});
															thumbnails[1993211] = clik.newPhoto({"id":1993211,"src":"aweb1_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_1993211.html","width":130,"caption":"","height":220});
															thumbnails[6464810] = clik.newPhoto({"id":6464810,"src":"mattandlouise_029_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464810.html","width":130,"caption":"","height":196});
															thumbnails[6648683] = clik.newPhoto({"id":6648683,"src":"markandkatie_129_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648683.html","width":130,"caption":"","height":195});
															thumbnails[8100271] = clik.newPhoto({"id":8100271,"src":"JessDave_1215_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8100271.html","width":130,"caption":"","height":194});
															thumbnails[8402365] = clik.newPhoto({"id":8402365,"src":"Richard_Stacey_114_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402365.html","width":130,"caption":"","height":86});
															thumbnails[8628231] = clik.newPhoto({"id":8628231,"src":"CeliaLee_205_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628231.html","width":130,"caption":"","height":86});
															thumbnails[8649965] = clik.newPhoto({"id":8649965,"src":"stuartandimogen_056_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649965.html","width":130,"caption":"","height":196});
															thumbnails[8788907] = clik.newPhoto({"id":8788907,"src":"RachelKevin_045_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788907.html","width":130,"caption":"","height":196});
															thumbnails[8789173] = clik.newPhoto({"id":8789173,"src":"JemmaPete_042_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789173.html","width":130,"caption":"","height":196});
															thumbnails[705338] = clik.newPhoto({"id":705338,"src":"debs2_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_705338.html","width":130,"caption":"","height":182});
															thumbnails[1258255] = clik.newPhoto({"id":1258255,"src":"amanda4_thumb.jpg","galleries_id":54492,"server_id":1,"link":"photo_1258255.html","width":130,"caption":"","height":163});
															thumbnails[1993212] = clik.newPhoto({"id":1993212,"src":"aweb4_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_1993212.html","width":130,"caption":"","height":195});
															thumbnails[6464812] = clik.newPhoto({"id":6464812,"src":"mattandlouise_089_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464812.html","width":130,"caption":"","height":196});
															thumbnails[6648686] = clik.newPhoto({"id":6648686,"src":"markandkatie_157_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648686.html","width":130,"caption":"","height":196});
															thumbnails[8103434] = clik.newPhoto({"id":8103434,"src":"Laura__Mark2_288_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103434.html","width":130,"caption":"","height":86});
															thumbnails[8402369] = clik.newPhoto({"id":8402369,"src":"Richard_Stacey_101_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402369.html","width":130,"caption":"","height":86});
															thumbnails[8628233] = clik.newPhoto({"id":8628233,"src":"CeliaLee_557a_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628233.html","width":130,"caption":"","height":87});
															thumbnails[8649969] = clik.newPhoto({"id":8649969,"src":"stuartandimogen_082a_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649969.html","width":130,"caption":"","height":196});
															thumbnails[8788909] = clik.newPhoto({"id":8788909,"src":"RachelKevin_110a_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788909.html","width":130,"caption":"","height":196});
															thumbnails[8789175] = clik.newPhoto({"id":8789175,"src":"JemmaPete_102_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789175.html","width":130,"caption":"","height":195});
															thumbnails[754046] = clik.newPhoto({"id":754046,"src":"lorraine_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_754046.html","width":130,"caption":"","height":97});
															thumbnails[6464813] = clik.newPhoto({"id":6464813,"src":"mattandlouise_106_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464813.html","width":130,"caption":"","height":196});
															thumbnails[6648687] = clik.newPhoto({"id":6648687,"src":"markandkatie_168_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648687.html","width":130,"caption":"","height":86});
															thumbnails[8100277] = clik.newPhoto({"id":8100277,"src":"JessDave_362_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8100277.html","width":130,"caption":"","height":196});
															thumbnails[8103443] = clik.newPhoto({"id":8103443,"src":"Laura__Mark2_346_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103443.html","width":130,"caption":"","height":86});
															thumbnails[8402374] = clik.newPhoto({"id":8402374,"src":"Richard_Stacey_119_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402374.html","width":130,"caption":"","height":196});
															thumbnails[8628237] = clik.newPhoto({"id":8628237,"src":"CeliaLee_085_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628237.html","width":130,"caption":"","height":196});
															thumbnails[8649974] = clik.newPhoto({"id":8649974,"src":"stuartandimogen_198_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649974.html","width":130,"caption":"","height":86});
															thumbnails[8788911] = clik.newPhoto({"id":8788911,"src":"RachelKevin_575_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788911.html","width":130,"caption":"","height":87});
															thumbnails[8789181] = clik.newPhoto({"id":8789181,"src":"JemmaPete_107_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789181.html","width":130,"caption":"","height":196});
															thumbnails[705335] = clik.newPhoto({"id":705335,"src":"apennyb_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_705335.html","width":130,"caption":"","height":165});
															thumbnails[6464820] = clik.newPhoto({"id":6464820,"src":"mattandlouise_433a_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464820.html","width":130,"caption":"","height":194});
															thumbnails[6648689] = clik.newPhoto({"id":6648689,"src":"markandkatie_240_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648689.html","width":130,"caption":"","height":86});
															thumbnails[8095830] = clik.newPhoto({"id":8095830,"src":"Laura__Mark1_123_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8095830.html","width":130,"caption":"","height":194});
															thumbnails[8402383] = clik.newPhoto({"id":8402383,"src":"Richard_Stacey_123_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402383.html","width":130,"caption":"","height":196});
															thumbnails[8628247] = clik.newPhoto({"id":8628247,"src":"CeliaLee_139_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628247.html","width":130,"caption":"","height":196});
															thumbnails[8649985] = clik.newPhoto({"id":8649985,"src":"stuartandimogen_313_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649985.html","width":130,"caption":"","height":86});
															thumbnails[8788913] = clik.newPhoto({"id":8788913,"src":"RachelKevin_632_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788913.html","width":130,"caption":"","height":87});
															thumbnails[8789182] = clik.newPhoto({"id":8789182,"src":"JemmaPete_112_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789182.html","width":130,"caption":"","height":196});
															thumbnails[4574050] = clik.newPhoto({"id":4574050,"src":"271_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_4574050.html","width":130,"caption":"","height":192});
															thumbnails[6464815] = clik.newPhoto({"id":6464815,"src":"mattandlouise_512_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464815.html","width":130,"caption":"","height":163});
															thumbnails[6648690] = clik.newPhoto({"id":6648690,"src":"markandkatie_274a_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648690.html","width":130,"caption":"","height":86});
															thumbnails[8103355] = clik.newPhoto({"id":8103355,"src":"JessDave_749_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103355.html","width":130,"caption":"","height":196});
															thumbnails[8103416] = clik.newPhoto({"id":8103416,"src":"JessDave_290_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103416.html","width":130,"caption":"","height":196});
															thumbnails[8402387] = clik.newPhoto({"id":8402387,"src":"Richard_Stacey_386_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402387.html","width":130,"caption":"","height":195});
															thumbnails[8628250] = clik.newPhoto({"id":8628250,"src":"leeandcelia2_043_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628250.html","width":130,"caption":"","height":194});
															thumbnails[8649988] = clik.newPhoto({"id":8649988,"src":"stuartandimogen_416_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649988.html","width":130,"caption":"","height":87});
															thumbnails[8788915] = clik.newPhoto({"id":8788915,"src":"RachelKevin_568_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788915.html","width":130,"caption":"","height":87});
															thumbnails[8789186] = clik.newPhoto({"id":8789186,"src":"JemmaPete_214_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789186.html","width":130,"caption":"","height":196});
															thumbnails[8103339] = clik.newPhoto({"id":8103339,"src":"JessDave_285_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103339.html","width":130,"caption":"","height":196});
															thumbnails[8103453] = clik.newPhoto({"id":8103453,"src":"Laura__Mark2_445_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103453.html","width":130,"caption":"","height":196});
															thumbnails[8402393] = clik.newPhoto({"id":8402393,"src":"paul_027_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402393.html","width":130,"caption":"","height":195});
															thumbnails[8628253] = clik.newPhoto({"id":8628253,"src":"CeliaLee_155_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628253.html","width":130,"caption":"","height":195});
															thumbnails[8649993] = clik.newPhoto({"id":8649993,"src":"stuartandimogen_323QA_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649993.html","width":130,"caption":"","height":195});
															thumbnails[8789187] = clik.newPhoto({"id":8789187,"src":"JemmaPete_257_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789187.html","width":130,"caption":"","height":86});
															thumbnails[714606] = clik.newPhoto({"id":714606,"src":"ali&paul 183_thumb.jpg","galleries_id":54492,"server_id":1,"link":"photo_714606.html","width":130,"caption":"","height":194});
															thumbnails[6648692] = clik.newPhoto({"id":6648692,"src":"markandkatie_277_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648692.html","width":130,"caption":"","height":196});
															thumbnails[8103340] = clik.newPhoto({"id":8103340,"src":"JessDave_1190_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103340.html","width":130,"caption":"","height":87});
															thumbnails[8103455] = clik.newPhoto({"id":8103455,"src":"Laura__Mark2_487_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103455.html","width":130,"caption":"","height":195});
															thumbnails[8402404] = clik.newPhoto({"id":8402404,"src":"Richard_Stacey_226_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402404.html","width":130,"caption":"","height":196});
															thumbnails[8402490] = clik.newPhoto({"id":8402490,"src":"Richard_Stacey_254_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402490.html","width":130,"caption":"","height":196});
															thumbnails[8628273] = clik.newPhoto({"id":8628273,"src":"CeliaLee_199_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628273.html","width":130,"caption":"","height":195});
															thumbnails[8649995] = clik.newPhoto({"id":8649995,"src":"stuartandimogen_348_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649995.html","width":130,"caption":"","height":196});
															thumbnails[8788918] = clik.newPhoto({"id":8788918,"src":"RachelKevin_155_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788918.html","width":130,"caption":"","height":196});
															thumbnails[8789189] = clik.newPhoto({"id":8789189,"src":"JemmaPete_264_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789189.html","width":130,"caption":"","height":86});
															thumbnails[705341] = clik.newPhoto({"id":705341,"src":"diane2_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_705341.html","width":130,"caption":"","height":93});
															thumbnails[710246] = clik.newPhoto({"id":710246,"src":"serena3 copy_thumb.jpg","galleries_id":54492,"server_id":1,"link":"photo_710246.html","width":130,"caption":"","height":163});
															thumbnails[6648693] = clik.newPhoto({"id":6648693,"src":"markandkatie_384_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648693.html","width":130,"caption":"","height":196});
															thumbnails[8103343] = clik.newPhoto({"id":8103343,"src":"JessDave_904_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103343.html","width":130,"caption":"","height":87});
															thumbnails[8103439] = clik.newPhoto({"id":8103439,"src":"Laura__Mark2_235_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103439.html","width":130,"caption":"","height":196});
															thumbnails[8103457] = clik.newPhoto({"id":8103457,"src":"Laura__Mark2_566_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103457.html","width":130,"caption":"","height":196});
															thumbnails[8628356] = clik.newPhoto({"id":8628356,"src":"CeliaLee_269_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628356.html","width":130,"caption":"","height":195});
															thumbnails[8649996] = clik.newPhoto({"id":8649996,"src":"stuartandimogen_359_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8649996.html","width":130,"caption":"","height":195});
															thumbnails[8788922] = clik.newPhoto({"id":8788922,"src":"RachelKevin_311_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788922.html","width":130,"caption":"","height":196});
															thumbnails[8789192] = clik.newPhoto({"id":8789192,"src":"JemmaPete_285_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789192.html","width":130,"caption":"","height":86});
															thumbnails[710267] = clik.newPhoto({"id":710267,"src":"debs3_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_710267.html","width":130,"caption":"","height":152});
															thumbnails[726427] = clik.newPhoto({"id":726427,"src":"sue&neil100_thumb.jpg","galleries_id":80044,"server_id":1,"link":"photo_726427.html","width":130,"caption":"","height":87});
															thumbnails[6648695] = clik.newPhoto({"id":6648695,"src":"markandkatie_290_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648695.html","width":130,"caption":"","height":196});
															thumbnails[8103346] = clik.newPhoto({"id":8103346,"src":"JessDave_387a_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103346.html","width":130,"caption":"","height":86});
															thumbnails[8103459] = clik.newPhoto({"id":8103459,"src":"Laura__Mark2_629a_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103459.html","width":130,"caption":"","height":195});
															thumbnails[8402406] = clik.newPhoto({"id":8402406,"src":"Richard_Stacey_234_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402406.html","width":130,"caption":"","height":86});
															thumbnails[8628358] = clik.newPhoto({"id":8628358,"src":"CeliaLee_273_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628358.html","width":130,"caption":"","height":196});
															thumbnails[8650000] = clik.newPhoto({"id":8650000,"src":"stuartandimogen_470_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650000.html","width":130,"caption":"","height":86});
															thumbnails[8788923] = clik.newPhoto({"id":8788923,"src":"RachelKevin_414_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788923.html","width":130,"caption":"","height":196});
															thumbnails[8789193] = clik.newPhoto({"id":8789193,"src":"JemmaPete_281_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789193.html","width":130,"caption":"","height":196});
															thumbnails[6648696] = clik.newPhoto({"id":6648696,"src":"markandkatie_306_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648696.html","width":130,"caption":"","height":195});
															thumbnails[6648697] = clik.newPhoto({"id":6648697,"src":"markandkatie_824_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648697.html","width":130,"caption":"","height":195});
															thumbnails[8103347] = clik.newPhoto({"id":8103347,"src":"JessDave_280_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103347.html","width":130,"caption":"","height":86});
															thumbnails[8103461] = clik.newPhoto({"id":8103461,"src":"Laura__Mark2_682_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103461.html","width":130,"caption":"","height":196});
															thumbnails[8402412] = clik.newPhoto({"id":8402412,"src":"Richard_Stacey_299_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402412.html","width":130,"caption":"","height":86});
															thumbnails[8628361] = clik.newPhoto({"id":8628361,"src":"CeliaLee_353_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628361.html","width":130,"caption":"","height":196});
															thumbnails[8650002] = clik.newPhoto({"id":8650002,"src":"stuartandimogen_489_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650002.html","width":130,"caption":"","height":86});
															thumbnails[8788925] = clik.newPhoto({"id":8788925,"src":"RachelKevin_415_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788925.html","width":130,"caption":"","height":196});
															thumbnails[8789194] = clik.newPhoto({"id":8789194,"src":"JemmaPete_321_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789194.html","width":130,"caption":"","height":196});
															thumbnails[8103348] = clik.newPhoto({"id":8103348,"src":"JessDave_399_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103348.html","width":130,"caption":"","height":86});
															thumbnails[8103423] = clik.newPhoto({"id":8103423,"src":"JessDave_684_thumb.jpg","galleries_id":433330,"server_id":1,"link":"photo_8103423.html","width":130,"caption":"","height":87});
															thumbnails[8103482] = clik.newPhoto({"id":8103482,"src":"Laura__Mark1_212_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103482.html","width":130,"caption":"","height":163});
															thumbnails[8402421] = clik.newPhoto({"id":8402421,"src":"Richard_Stacey_338_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402421.html","width":130,"caption":"","height":86});
															thumbnails[8628363] = clik.newPhoto({"id":8628363,"src":"CeliaLee_364_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628363.html","width":130,"caption":"","height":196});
															thumbnails[8634013] = clik.newPhoto({"id":8634013,"src":"a_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8634013.html","width":130,"caption":"","height":194});
															thumbnails[8650009] = clik.newPhoto({"id":8650009,"src":"stuartandimogen_547_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650009.html","width":130,"caption":"","height":87});
															thumbnails[8788926] = clik.newPhoto({"id":8788926,"src":"RachelKevin_410_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788926.html","width":130,"caption":"","height":196});
															thumbnails[8789059] = clik.newPhoto({"id":8789059,"src":"RachelKevin_814_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8789059.html","width":130,"caption":"","height":195});
															thumbnails[8789197] = clik.newPhoto({"id":8789197,"src":"JemmaPete_332_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789197.html","width":130,"caption":"","height":196});
															thumbnails[6648702] = clik.newPhoto({"id":6648702,"src":"markandkatie_011_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648702.html","width":130,"caption":"","height":86});
															thumbnails[8103446] = clik.newPhoto({"id":8103446,"src":"Laura__Mark2_718_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103446.html","width":130,"caption":"","height":87});
															thumbnails[8103450] = clik.newPhoto({"id":8103450,"src":"Laura__Mark2_732_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8103450.html","width":130,"caption":"","height":86});
															thumbnails[8402539] = clik.newPhoto({"id":8402539,"src":"Richard_Stacey_365_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402539.html","width":130,"caption":"","height":196});
															thumbnails[8628366] = clik.newPhoto({"id":8628366,"src":"CeliaLee_373_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628366.html","width":130,"caption":"","height":196});
															thumbnails[8650012] = clik.newPhoto({"id":8650012,"src":"stuartandimogen_095_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650012.html","width":130,"caption":"","height":196});
															thumbnails[8788927] = clik.newPhoto({"id":8788927,"src":"RachelKevin_374_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788927.html","width":130,"caption":"","height":86});
															thumbnails[8789199] = clik.newPhoto({"id":8789199,"src":"JemmaPete_455_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789199.html","width":130,"caption":"","height":195});
															thumbnails[2763095] = clik.newPhoto({"id":2763095,"src":"brettandpippa2 242_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_2763095.html","width":130,"caption":"","height":194});
															thumbnails[6648703] = clik.newPhoto({"id":6648703,"src":"markandkatie_851_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648703.html","width":130,"caption":"","height":87});
															thumbnails[8402433] = clik.newPhoto({"id":8402433,"src":"paul2_173_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402433.html","width":130,"caption":"","height":195});
															thumbnails[8628367] = clik.newPhoto({"id":8628367,"src":"CeliaLee_431_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628367.html","width":130,"caption":"","height":196});
															thumbnails[8650015] = clik.newPhoto({"id":8650015,"src":"stuartandimogen_583_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650015.html","width":130,"caption":"","height":195});
															thumbnails[8788928] = clik.newPhoto({"id":8788928,"src":"RachelKevin_774_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788928.html","width":130,"caption":"","height":87});
															thumbnails[8789200] = clik.newPhoto({"id":8789200,"src":"JemmaPete_475_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789200.html","width":130,"caption":"","height":196});
															thumbnails[5603453] = clik.newPhoto({"id":5603453,"src":"nathanemma_542_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_5603453.html","width":130,"caption":"","height":185});
															thumbnails[6648705] = clik.newPhoto({"id":6648705,"src":"markandkatie_1037a_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648705.html","width":130,"caption":"","height":87});
															thumbnails[8402430] = clik.newPhoto({"id":8402430,"src":"Richard_Stacey_541_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402430.html","width":130,"caption":"","height":196});
															thumbnails[8628370] = clik.newPhoto({"id":8628370,"src":"CeliaLee_502a_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628370.html","width":130,"caption":"","height":195});
															thumbnails[8634096] = clik.newPhoto({"id":8634096,"src":"b_thumb.jpg","galleries_id":433328,"server_id":1,"link":"photo_8634096.html","width":130,"caption":"","height":86});
															thumbnails[8650024] = clik.newPhoto({"id":8650024,"src":"a_26F62AAC-1EC9-D45B-1CC83B846B2D68E0_thumb.jpg","galleries_id":456839,"server_id":1,"link":"photo_8650024.html","width":130,"caption":"","height":195});
															thumbnails[8788930] = clik.newPhoto({"id":8788930,"src":"RachelKevin_780_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788930.html","width":130,"caption":"","height":87});
															thumbnails[8789201] = clik.newPhoto({"id":8789201,"src":"JemmaPete_511_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789201.html","width":130,"caption":"","height":196});
															thumbnails[2908684] = clik.newPhoto({"id":2908684,"src":"becs & john4 387_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_2908684.html","width":130,"caption":"","height":190});
															thumbnails[6464895] = clik.newPhoto({"id":6464895,"src":"mattandlouise_413_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464895.html","width":130,"caption":"","height":196});
															thumbnails[6648710] = clik.newPhoto({"id":6648710,"src":"markandkatie_302a_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648710.html","width":130,"caption":"","height":86});
															thumbnails[8402437] = clik.newPhoto({"id":8402437,"src":"paul_153_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402437.html","width":130,"caption":"","height":87});
															thumbnails[8628388] = clik.newPhoto({"id":8628388,"src":"CeliaLee_621_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628388.html","width":130,"caption":"","height":196});
															thumbnails[8788933] = clik.newPhoto({"id":8788933,"src":"RachelKevin_480_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788933.html","width":130,"caption":"","height":196});
															thumbnails[754041] = clik.newPhoto({"id":754041,"src":"kate 068_thumb.jpg","galleries_id":39724,"server_id":1,"link":"photo_754041.html","width":130,"caption":"","height":194});
															thumbnails[6464898] = clik.newPhoto({"id":6464898,"src":"mattandlouise_421a_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6464898.html","width":130,"caption":"","height":196});
															thumbnails[6648715] = clik.newPhoto({"id":6648715,"src":"markandkatie_294a_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648715.html","width":130,"caption":"","height":86});
															thumbnails[8402453] = clik.newPhoto({"id":8402453,"src":"Richard_Stacey_420_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402453.html","width":130,"caption":"","height":86});
															thumbnails[8628702] = clik.newPhoto({"id":8628702,"src":"CeliaLee_675_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628702.html","width":130,"caption":"","height":196});
															thumbnails[8788935] = clik.newPhoto({"id":8788935,"src":"RachelKevin_505_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788935.html","width":130,"caption":"","height":196});
															thumbnails[8789203] = clik.newPhoto({"id":8789203,"src":"JemmaPete_531_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789203.html","width":130,"caption":"","height":196});
															thumbnails[6465336] = clik.newPhoto({"id":6465336,"src":"mattandlouise_782_thumb.jpg","galleries_id":356391,"server_id":1,"link":"photo_6465336.html","width":130,"caption":"","height":196});
															thumbnails[6648717] = clik.newPhoto({"id":6648717,"src":"markandkatie_914_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648717.html","width":130,"caption":"","height":86});
															thumbnails[8402446] = clik.newPhoto({"id":8402446,"src":"RichStaceySteves_489_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402446.html","width":130,"caption":"","height":87});
															thumbnails[8628712] = clik.newPhoto({"id":8628712,"src":"leeandcelia2_430_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628712.html","width":130,"caption":"","height":195});
															thumbnails[8788937] = clik.newPhoto({"id":8788937,"src":"RachelKevin_523_thumb.jpg","galleries_id":462747,"server_id":1,"link":"photo_8788937.html","width":130,"caption":"","height":196});
															thumbnails[8789204] = clik.newPhoto({"id":8789204,"src":"JemmaPete_548_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789204.html","width":130,"caption":"","height":196});
															thumbnails[6648720] = clik.newPhoto({"id":6648720,"src":"markandkatie_397_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648720.html","width":130,"caption":"","height":195});
															thumbnails[8402492] = clik.newPhoto({"id":8402492,"src":"evening_041_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402492.html","width":130,"caption":"","height":195});
															thumbnails[8628395] = clik.newPhoto({"id":8628395,"src":"CeliaLee_581_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628395.html","width":130,"caption":"","height":86});
															thumbnails[8789216] = clik.newPhoto({"id":8789216,"src":"JemmaPete_453_thumb.jpg","galleries_id":462749,"server_id":1,"link":"photo_8789216.html","width":130,"caption":"","height":196});
															thumbnails[6648723] = clik.newPhoto({"id":6648723,"src":"markandkatie_869_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648723.html","width":130,"caption":"","height":196});
															thumbnails[8402494] = clik.newPhoto({"id":8402494,"src":"evening_207_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402494.html","width":130,"caption":"","height":195});
															thumbnails[6648725] = clik.newPhoto({"id":6648725,"src":"markandkatie_959_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648725.html","width":130,"caption":"","height":196});
															thumbnails[8402496] = clik.newPhoto({"id":8402496,"src":"Richard_Stacey_354_thumb.jpg","galleries_id":445192,"server_id":1,"link":"photo_8402496.html","width":130,"caption":"","height":196});
															thumbnails[8628790] = clik.newPhoto({"id":8628790,"src":"CeliaLee_653_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628790.html","width":130,"caption":"","height":87});
															thumbnails[8628809] = clik.newPhoto({"id":8628809,"src":"leeandcelia2_271a_thumb.jpg","galleries_id":455884,"server_id":1,"link":"photo_8628809.html","width":130,"caption":"","height":87});
															thumbnails[789497] = clik.newPhoto({"id":789497,"src":"a1_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_789497.html","width":130,"caption":"","height":183});
															thumbnails[6648727] = clik.newPhoto({"id":6648727,"src":"markandkatie_344_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648727.html","width":130,"caption":"","height":195});
															thumbnails[5604266] = clik.newPhoto({"id":5604266,"src":"Adrian___Sarah_247_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_5604266.html","width":130,"caption":"","height":202});
															thumbnails[6648699] = clik.newPhoto({"id":6648699,"src":"markandkatie_616_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648699.html","width":130,"caption":"","height":194});
															thumbnails[6648737] = clik.newPhoto({"id":6648737,"src":"markandkatie_757A_thumb.jpg","galleries_id":363689,"server_id":1,"link":"photo_6648737.html","width":130,"caption":"","height":195});
															thumbnails[2649346] = clik.newPhoto({"id":2649346,"src":"andy&gemma4 043_thumb.jpg","galleries_id":53836,"server_id":1,"link":"photo_2649346.html","width":130,"caption":"","height":194});
															thumbnails[1297729] = clik.newPhoto({"id":1297729,"src":"amanda7a_thumb.jpg","galleries_id":54492,"server_id":1,"link":"photo_1297729.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[433328] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Laura & Marc","link":"gallery_433328.html","maxRecords":0.0,"photoIDs":[8095846.0,8103434.0,8103443.0,8095830.0,8103453.0,8103455.0,8103439.0,8103457.0,8103459.0,8103461.0,8103482.0,8634013.0,8103446.0,8103450.0,8634096.0],"skipIndex":0,"section_code":"gallery","featured_images":8103457.0,"id":433328,"singleSection":false});				  						galleries[462747] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Rachel&Kevin","link":"gallery_462747.html","maxRecords":0.0,"photoIDs":[8788906.0,8788907.0,8788909.0,8788911.0,8788913.0,8788915.0,8788918.0,8788922.0,8788923.0,8788925.0,8788926.0,8789059.0,8788927.0,8788928.0,8788930.0,8788933.0,8788935.0,8788937.0],"skipIndex":0,"section_code":"gallery","featured_images":8788923.0,"id":462747,"singleSection":false});				  						galleries[53836] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"weddings","link":"gallery_53836.html","maxRecords":0.0,"photoIDs":[1941930.0,4574050.0,2763095.0,5603453.0,2908684.0,789497.0,5604266.0,2649346.0],"skipIndex":0,"section_code":"gallery","featured_images":"5604266,5603453,4574050,2908684,2763095,2649346,1941930,789497","id":53836,"singleSection":false});				  						galleries[462749] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Jemma & Pete","link":"gallery_462749.html","maxRecords":0.0,"photoIDs":[8789172.0,8789173.0,8789175.0,8789181.0,8789182.0,8789186.0,8789187.0,8789189.0,8789192.0,8789193.0,8789194.0,8789197.0,8789199.0,8789200.0,8789201.0,8789203.0,8789204.0,8789216.0],"skipIndex":0,"section_code":"gallery","featured_images":8789186.0,"id":462749,"singleSection":false});				  						galleries[456839] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Stuart & Imogen","link":"gallery_456839.html","maxRecords":0.0,"photoIDs":[8649959.0,8649965.0,8649969.0,8649974.0,8649985.0,8649988.0,8649993.0,8649995.0,8649996.0,8650000.0,8650002.0,8650009.0,8650012.0,8650015.0,8650024.0],"skipIndex":0,"section_code":"gallery","featured_images":8650024.0,"id":456839,"singleSection":false});				  						galleries[54492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wedding prices","link":"gallery_54492.html","maxRecords":0.0,"photoIDs":[1297609.0,1258255.0,714606.0,710246.0,1297729.0],"skipIndex":0,"section_code":"gallery","featured_images":1297729.0,"id":54492,"singleSection":false});				  						galleries[259912] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"recent weddings","link":"gallery_259912.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8789186,8788923,8650024,8628361,8402539,8103457,8103339,8100277,6648725,6648695","id":259912,"singleSection":false});				  						galleries[39724] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"portraits","link":"gallery_39724.html","maxRecords":0.0,"photoIDs":[5776547.0,5776549.0,5776551.0,754045.0,1993210.0,1993211.0,705338.0,1993212.0,754046.0,705335.0,705341.0,710267.0,754041.0],"skipIndex":0,"section_code":"gallery","featured_images":"5776547,1993211,705335","id":39724,"singleSection":false});				  						galleries[445192] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Richard & Stacy","link":"gallery_445192.html","maxRecords":0.0,"photoIDs":[8402363.0,8402365.0,8402369.0,8402374.0,8402383.0,8402387.0,8402393.0,8402404.0,8402490.0,8402406.0,8402412.0,8402421.0,8402539.0,8402433.0,8402430.0,8402437.0,8402453.0,8402446.0,8402492.0,8402494.0,8402496.0],"skipIndex":0,"section_code":"gallery","featured_images":8402539.0,"id":445192,"singleSection":false});				  						galleries[455884] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Celia & Lee","link":"gallery_455884.html","maxRecords":0.0,"photoIDs":[8628191.0,8628231.0,8628233.0,8628237.0,8628247.0,8628250.0,8628253.0,8628273.0,8628356.0,8628358.0,8628361.0,8628363.0,8628366.0,8628367.0,8628370.0,8628388.0,8628702.0,8628712.0,8628395.0,8628790.0,8628809.0],"skipIndex":0,"section_code":"gallery","featured_images":8628361.0,"id":455884,"singleSection":false});				  						galleries[356391] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Matt & Laura","link":"gallery_356391.html","maxRecords":0.0,"photoIDs":[6464808.0,6464810.0,6464812.0,6464813.0,6464820.0,6464815.0,6464895.0,6464898.0,6465336.0],"skipIndex":0,"section_code":"gallery","featured_images":"6465336,6464898,6464895,6464820,6464815,6464813,6464812,6464810,6464808","id":356391,"singleSection":false});				  						galleries[363689] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Mark & Katie","link":"gallery_363689.html","maxRecords":0.0,"photoIDs":[6648682.0,6648683.0,6648686.0,6648687.0,6648689.0,6648690.0,6648692.0,6648693.0,6648695.0,6648696.0,6648697.0,6648702.0,6648703.0,6648705.0,6648710.0,6648715.0,6648717.0,6648720.0,6648723.0,6648725.0,6648727.0,6648699.0,6648737.0],"skipIndex":0,"section_code":"gallery","featured_images":"6648725,6648695","id":363689,"singleSection":false});				  						galleries[433330] = clik.newGallery({"parentGallery":259912,"usePopups":false,"title":"Jess & Dave","link":"gallery_433330.html","maxRecords":0.0,"photoIDs":[8100265.0,8100271.0,8100277.0,8103355.0,8103416.0,8103339.0,8103340.0,8103343.0,8103346.0,8103347.0,8103348.0,8103423.0],"skipIndex":0,"section_code":"gallery","featured_images":"8103339,8100277","id":433330,"singleSection":false});				  						galleries[80044] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"client's comments","link":"gallery_80044.html","maxRecords":0.0,"photoIDs":[1084400.0,726427.0],"skipIndex":0,"section_code":"gallery","featured_images":"1084400,726427","id":80044,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6648674,6648673,6591593,8103346,8103423,8103348,7917833';
imageSets[2] = '5776547,4704131,1993211,8100277,705335,8789186,8103339,8103457,8788923,6648695,8628361,8402539,8650024,4445793,6648725,1297729';
imageSets[3] = '8789216,8789204,8789203,8789201,8789200,8789199,8789197,8789194,8789193,8789192,8789189,8789187,8789186,8789182,8789181,8789175,8789173,8789172,8789059,8788937,8788935,8788933,8788930,8788928,8788927,8788926,8788925,8788923,8788922,8788918,8788915,8788913,8788911,8788909,8788907,8788906,8650024,8650015,8650012,8650009,8650002,8650000,8649996,8649995,8649993,8649988,8649985,8649974,8649969,8649965';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/maryking/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/maryking/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/maryking/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/maryking/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/maryking/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/maryking/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/maryking/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 && backgrounds[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 = 'Mary King 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 !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

