window.thumbnails = {};
															thumbnails[2799489] = clik.newPhoto({"id":2799489,"src":"CLarke wedding  2(178)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2799489.html","width":130,"caption":"","height":104});
															thumbnails[2795853] = clik.newPhoto({"id":2795853,"src":"Saiqa's WEDDING (88)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2795853.html","width":130,"caption":"","height":87});
															thumbnails[2799527] = clik.newPhoto({"id":2799527,"src":"Hinton (24) 8x10_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2799527.html","width":130,"caption":"","height":104});
															thumbnails[2824711] = clik.newPhoto({"id":2824711,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (137)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2824711.html","width":130,"caption":"","height":163});
															thumbnails[2799538] = clik.newPhoto({"id":2799538,"src":"Hinton (83) 8x10_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2799538.html","width":130,"caption":"","height":163});
															thumbnails[2799497] = clik.newPhoto({"id":2799497,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (140)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2799497.html","width":130,"caption":"","height":87});
															thumbnails[2824720] = clik.newPhoto({"id":2824720,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (118)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2824720.html","width":130,"caption":"","height":87});
															thumbnails[2824736] = clik.newPhoto({"id":2824736,"src":"Saiqa's WEDDING (64)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2824736.html","width":130,"caption":"","height":87});
															thumbnails[2824729] = clik.newPhoto({"id":2824729,"src":"Saiqa's WEDDING (32)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2824729.html","width":130,"caption":"","height":195});
															thumbnails[2824751] = clik.newPhoto({"id":2824751,"src":"Saiqa's WEDDING (25)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2824751.html","width":130,"caption":"","height":195});
															thumbnails[2824754] = clik.newPhoto({"id":2824754,"src":"Saiqa's WEDDING (54)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2824754.html","width":130,"caption":"","height":195});
															thumbnails[2824792] = clik.newPhoto({"id":2824792,"src":"Hinton (4) 8x10_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2824792.html","width":130,"caption":"","height":104});
															thumbnails[2825101] = clik.newPhoto({"id":2825101,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (116)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2825101.html","width":130,"caption":"","height":87});
															thumbnails[2825138] = clik.newPhoto({"id":2825138,"src":"Saiqa's WEDDING (83)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_2825138.html","width":130,"caption":"","height":87});
															thumbnails[2825148] = clik.newPhoto({"id":2825148,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (14)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2825148.html","width":130,"caption":"","height":87});
															thumbnails[5330017] = clik.newPhoto({"id":5330017,"src":"Jon_and_Gill_5_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330017.html","width":130,"caption":"","height":87});
															thumbnails[2825149] = clik.newPhoto({"id":2825149,"src":"Matthewswedding   SHANE   HAYES  PHOTOGRAPHY  COPYRIGHT (115)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_2825149.html","width":130,"caption":"","height":195});
															thumbnails[3319357] = clik.newPhoto({"id":3319357,"src":"CLarke wedding  colour and black 2(185)_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_3319357.html","width":130,"caption":"","height":163});
															thumbnails[3319361] = clik.newPhoto({"id":3319361,"src":"Saiqa's WEDDING (23)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3319361.html","width":130,"caption":"","height":195});
															thumbnails[3319365] = clik.newPhoto({"id":3319365,"src":"Saiqa's WEDDING (89)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3319365.html","width":130,"caption":"","height":87});
															thumbnails[3319367] = clik.newPhoto({"id":3319367,"src":"Wedd_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3319367.html","width":130,"caption":"","height":87});
															thumbnails[3319370] = clik.newPhoto({"id":3319370,"src":"IMG_1021_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_3319370.html","width":130,"caption":"","height":87});
															thumbnails[3513543] = clik.newPhoto({"id":3513543,"src":"Hopkins (5)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3513543.html","width":130,"caption":"","height":87});
															thumbnails[3513665] = clik.newPhoto({"id":3513665,"src":"Hopkins (134)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3513665.html","width":130,"caption":"","height":87});
															thumbnails[3513566] = clik.newPhoto({"id":3513566,"src":"Hopkins (4)_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_3513566.html","width":130,"caption":"","height":87});
															thumbnails[4824727] = clik.newPhoto({"id":4824727,"src":"Joscelyn__Rhys_82_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_4824727.html","width":130,"caption":"","height":87});
															thumbnails[4824736] = clik.newPhoto({"id":4824736,"src":"Joscelyn__Rhys_109_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_4824736.html","width":130,"caption":"","height":87});
															thumbnails[5330026] = clik.newPhoto({"id":5330026,"src":"Joscelyn__Rhys_177_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330026.html","width":130,"caption":"","height":87});
															thumbnails[4824752] = clik.newPhoto({"id":4824752,"src":"Joscelyn__Rhys_172_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_4824752.html","width":130,"caption":"","height":195});
															thumbnails[5330033] = clik.newPhoto({"id":5330033,"src":"Jon_and_Gill_57_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330033.html","width":130,"caption":"","height":195});
															thumbnails[4824761] = clik.newPhoto({"id":4824761,"src":"Joscelyn__Rhys_65_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_4824761.html","width":130,"caption":"","height":195});
															thumbnails[5330037] = clik.newPhoto({"id":5330037,"src":"Hopkins_123_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330037.html","width":130,"caption":"","height":87});
															thumbnails[5330044] = clik.newPhoto({"id":5330044,"src":"Jon_and_Gill_149_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330044.html","width":130,"caption":"","height":87});
															thumbnails[5330049] = clik.newPhoto({"id":5330049,"src":"Evening_thumb.jpg","galleries_id":52518,"server_id":1,"link":"photo_5330049.html","width":130,"caption":"","height":87});
															thumbnails[5330056] = clik.newPhoto({"id":5330056,"src":"Jon_and_Gill_32_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330056.html","width":130,"caption":"","height":87});
															thumbnails[5330062] = clik.newPhoto({"id":5330062,"src":"Joscelyn__Rhys_24_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330062.html","width":130,"caption":"","height":87});
															thumbnails[5330065] = clik.newPhoto({"id":5330065,"src":"Jon_and_Gill_53_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330065.html","width":130,"caption":"","height":87});
															thumbnails[5330071] = clik.newPhoto({"id":5330071,"src":"Jon_and_Gill_113_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330071.html","width":130,"caption":"","height":87});
															thumbnails[5330074] = clik.newPhoto({"id":5330074,"src":"Jon_and_Gill_14_thumb.JPG","galleries_id":52518,"server_id":1,"link":"photo_5330074.html","width":130,"caption":"","height":87});
															thumbnails[4329219] = clik.newPhoto({"id":4329219,"src":"ROSHNI_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_4329219.html","width":130,"caption":"","height":87});
															thumbnails[3481015] = clik.newPhoto({"id":3481015,"src":"steps soph7 de sat_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_3481015.html","width":130,"caption":"","height":87});
															thumbnails[3812741] = clik.newPhoto({"id":3812741,"src":"Rhoshni_P118_phot_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_3812741.html","width":130,"caption":"","height":104});
															thumbnails[5166399] = clik.newPhoto({"id":5166399,"src":"Fairy_Dust_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_5166399.html","width":130,"caption":"","height":100});
															thumbnails[1041094] = clik.newPhoto({"id":1041094,"src":"Bec port) (1)_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_1041094.html","width":130,"caption":"","height":87});
															thumbnails[1706698] = clik.newPhoto({"id":1706698,"src":"Photo_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_1706698.html","width":130,"caption":"","height":87});
															thumbnails[1429252] = clik.newPhoto({"id":1429252,"src":"acton_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_1429252.html","width":130,"caption":"","height":87});
															thumbnails[1429255] = clik.newPhoto({"id":1429255,"src":"acton (1)_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_1429255.html","width":130,"caption":"","height":87});
															thumbnails[1706699] = clik.newPhoto({"id":1706699,"src":"Jason n Ruth (27)_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_1706699.html","width":130,"caption":"","height":87});
															thumbnails[5058984] = clik.newPhoto({"id":5058984,"src":"4aef5e6e3bb91_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_5058984.html","width":130,"caption":"","height":87});
															thumbnails[3481009] = clik.newPhoto({"id":3481009,"src":"Elisha and Sophie_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_3481009.html","width":130,"caption":"","height":88});
															thumbnails[3319446] = clik.newPhoto({"id":3319446,"src":"MORGAN (46) - Copy_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_3319446.html","width":130,"caption":"","height":87});
															thumbnails[3812746] = clik.newPhoto({"id":3812746,"src":"Rhoshni_P245_2_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_3812746.html","width":130,"caption":"","height":195});
															thumbnails[3812753] = clik.newPhoto({"id":3812753,"src":"Rhoshni_P168_2_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_3812753.html","width":130,"caption":"","height":195});
															thumbnails[3319451] = clik.newPhoto({"id":3319451,"src":"Shanehayesphotography_thumb.co.uk (24).JPG","galleries_id":52641,"server_id":1,"link":"photo_3319451.html","width":130,"caption":"","height":195});
															thumbnails[688704] = clik.newPhoto({"id":688704,"src":"sarahBW_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_688704.html","width":130,"caption":"","height":104});
															thumbnails[3481016] = clik.newPhoto({"id":3481016,"src":"El sph4_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_3481016.html","width":130,"caption":"","height":87});
															thumbnails[3514025] = clik.newPhoto({"id":3514025,"src":"Binky snow (10) label_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_3514025.html","width":130,"caption":"","height":98});
															thumbnails[2819649] = clik.newPhoto({"id":2819649,"src":"SAl_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_2819649.html","width":130,"caption":"","height":87});
															thumbnails[3812773] = clik.newPhoto({"id":3812773,"src":"Rhoshni_P183_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_3812773.html","width":130,"caption":"","height":87});
															thumbnails[4131975] = clik.newPhoto({"id":4131975,"src":"Katie1_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_4131975.html","width":130,"caption":"","height":87});
															thumbnails[6761722] = clik.newPhoto({"id":6761722,"src":"MERMAID_Experiement_skinny_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_6761722.html","width":130,"caption":"","height":87});
															thumbnails[5703591] = clik.newPhoto({"id":5703591,"src":"Great_Escape_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_5703591.html","width":130,"caption":"","height":67});
															thumbnails[6762018] = clik.newPhoto({"id":6762018,"src":"PHOTO__4_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_6762018.html","width":130,"caption":"","height":87});
															thumbnails[4659706] = clik.newPhoto({"id":4659706,"src":"model_light_thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_4659706.html","width":130,"caption":"","height":195});
															thumbnails[8885649] = clik.newPhoto({"id":8885649,"src":"Rapunzel____thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_8885649.html","width":130,"caption":"Rapunzel 'time for a change'","height":195});
															thumbnails[8885638] = clik.newPhoto({"id":8885638,"src":"Siren__thumb.jpg","galleries_id":52641,"server_id":1,"link":"photo_8885638.html","width":130,"caption":"Siren","height":87});
															thumbnails[8983420] = clik.newPhoto({"id":8983420,"src":"photo_67AD0A02-1EC9-DFB6-09F550341205CF37_thumb.JPG","galleries_id":52641,"server_id":1,"link":"photo_8983420.html","width":130,"caption":"Goldilock Stock & 2 Smoking Barrels","height":130});
															thumbnails[4329158] = clik.newPhoto({"id":4329158,"src":"num_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_4329158.html","width":130,"caption":"","height":87});
															thumbnails[4329161] = clik.newPhoto({"id":4329161,"src":"num_2_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_4329161.html","width":130,"caption":"","height":87});
															thumbnails[4329164] = clik.newPhoto({"id":4329164,"src":"num_3_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_4329164.html","width":130,"caption":"","height":87});
															thumbnails[4329174] = clik.newPhoto({"id":4329174,"src":"num_4_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_4329174.html","width":130,"caption":"","height":87});
															thumbnails[4329175] = clik.newPhoto({"id":4329175,"src":"num_5_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_4329175.html","width":130,"caption":"","height":87});
															thumbnails[900195] = clik.newPhoto({"id":900195,"src":"Finch (1)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_900195.html","width":130,"caption":"","height":87});
															thumbnails[900198] = clik.newPhoto({"id":900198,"src":"Finch (7)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_900198.html","width":130,"caption":"","height":87});
															thumbnails[1041135] = clik.newPhoto({"id":1041135,"src":"EVE (2)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_1041135.html","width":130,"caption":"","height":87});
															thumbnails[3319381] = clik.newPhoto({"id":3319381,"src":"Photo_33_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_3319381.html","width":130,"caption":"","height":87});
															thumbnails[3319383] = clik.newPhoto({"id":3319383,"src":"Barton (31)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_3319383.html","width":130,"caption":"","height":87});
															thumbnails[3319394] = clik.newPhoto({"id":3319394,"src":"Barton (21)_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_3319394.html","width":130,"caption":"","height":87});
															thumbnails[3319433] = clik.newPhoto({"id":3319433,"src":"morgan21_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_3319433.html","width":130,"caption":"","height":87});
															thumbnails[3812787] = clik.newPhoto({"id":3812787,"src":"Saskia__Jessica_40_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_3812787.html","width":130,"caption":"","height":87});
															thumbnails[3812789] = clik.newPhoto({"id":3812789,"src":"Saskia__Jessica_71_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_3812789.html","width":130,"caption":"","height":87});
															thumbnails[1760369] = clik.newPhoto({"id":1760369,"src":"ALICE_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_1760369.html","width":130,"caption":"","height":87});
															thumbnails[2819768] = clik.newPhoto({"id":2819768,"src":"GUITAR A L  SHED9_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_2819768.html","width":130,"caption":"","height":87});
															thumbnails[790583] = clik.newPhoto({"id":790583,"src":"Moses (2)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_790583.html","width":130,"caption":"","height":104});
															thumbnails[6761995] = clik.newPhoto({"id":6761995,"src":"PHOTO__44_thumb.JPG","galleries_id":52651,"server_id":1,"link":"photo_6761995.html","width":130,"caption":"","height":87});
															thumbnails[1041120] = clik.newPhoto({"id":1041120,"src":"EVE (1)_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_1041120.html","width":130,"caption":"","height":163});
															thumbnails[2895937] = clik.newPhoto({"id":2895937,"src":"Barton (46)1_thumb.jpg","galleries_id":52651,"server_id":1,"link":"photo_2895937.html","width":130,"caption":"","height":162});
															thumbnails[2795811] = clik.newPhoto({"id":2795811,"src":"PIER 3_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_2795811.html","width":130,"caption":"","height":87});
															thumbnails[2795817] = clik.newPhoto({"id":2795817,"src":"Pier 2_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_2795817.html","width":130,"caption":"","height":86});
															thumbnails[3319454] = clik.newPhoto({"id":3319454,"src":"NASH (5)_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_3319454.html","width":130,"caption":"","height":87});
															thumbnails[2795827] = clik.newPhoto({"id":2795827,"src":"tables_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_2795827.html","width":130,"caption":"","height":195});
															thumbnails[2795842] = clik.newPhoto({"id":2795842,"src":"troy_ (2)_ (3)_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_2795842.html","width":130,"caption":"","height":195});
															thumbnails[2795830] = clik.newPhoto({"id":2795830,"src":"shutters_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_2795830.html","width":130,"caption":"","height":195});
															thumbnails[3319456] = clik.newPhoto({"id":3319456,"src":"NASH pref_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_3319456.html","width":130,"caption":"","height":87});
															thumbnails[3411443] = clik.newPhoto({"id":3411443,"src":"NASH BORD_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_3411443.html","width":130,"caption":"","height":99});
															thumbnails[5695889] = clik.newPhoto({"id":5695889,"src":"looe_1_BW_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_5695889.html","width":130,"caption":"","height":87});
															thumbnails[900287] = clik.newPhoto({"id":900287,"src":"Silhouette_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_900287.html","width":130,"caption":"","height":195});
															thumbnails[3319458] = clik.newPhoto({"id":3319458,"src":"NASH (7)_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_3319458.html","width":130,"caption":"","height":195});
															thumbnails[6762000] = clik.newPhoto({"id":6762000,"src":"annecy21_thumb.JPG","galleries_id":68927,"server_id":1,"link":"photo_6762000.html","width":130,"caption":"","height":195});
															thumbnails[6762003] = clik.newPhoto({"id":6762003,"src":"STORM_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_6762003.html","width":130,"caption":"","height":87});
															thumbnails[6762008] = clik.newPhoto({"id":6762008,"src":"westminster_5_thumb.jpg","galleries_id":68927,"server_id":1,"link":"photo_6762008.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[52651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies & Children","link":"section77713.html","maxRecords":0.0,"photoIDs":[4329158.0,4329161.0,4329164.0,4329174.0,4329175.0,900195.0,900198.0,1041135.0,3319381.0,3319383.0,3319394.0,3319433.0,3812787.0,3812789.0,1760369.0,2819768.0,790583.0,6761995.0,1041120.0,2895937.0],"skipIndex":0,"section_code":"section77713","featured_images":"6761995,4329175,4329174,4329164,4329161,4329158,3812789,3812787,3319433,3319394","id":52651,"singleSection":false});				  						galleries[52641] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section77693.html","maxRecords":0.0,"photoIDs":[4329219.0,3481015.0,3812741.0,5166399.0,1041094.0,1706698.0,1429252.0,1429255.0,1706699.0,5058984.0,3481009.0,3319446.0,3812746.0,3812753.0,3319451.0,688704.0,3481016.0,3514025.0,2819649.0,3812773.0,4131975.0,6761722.0,5703591.0,6762018.0,4659706.0,8885649.0,8885638.0,8983420.0],"skipIndex":0,"section_code":"section77693","featured_images":"8983420,8885649,8885638,6762018,6761722,5703591,5166399,5058984,4659706,4329219","id":52641,"singleSection":false});				  						galleries[52518] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery.html","maxRecords":0.0,"photoIDs":[2799489.0,2795853.0,2799527.0,2824711.0,2799538.0,2799497.0,2824720.0,2824736.0,2824729.0,2824751.0,2824754.0,2824792.0,2825101.0,2825138.0,2825148.0,5330017.0,2825149.0,3319357.0,3319361.0,3319365.0,3319367.0,3319370.0,3513543.0,3513665.0,3513566.0,4824727.0,4824736.0,5330026.0,4824752.0,5330033.0,4824761.0,5330037.0,5330044.0,5330049.0,5330056.0,5330062.0,5330065.0,5330071.0,5330074.0],"skipIndex":0,"section_code":"gallery","featured_images":"5330074,5330071,5330065,5330062,5330056,5330049,5330044,5330037,5330033,5330026","id":52518,"singleSection":false});				  						galleries[68927] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"section77712.html","maxRecords":0.0,"photoIDs":[2795811.0,2795817.0,3319454.0,2795827.0,2795842.0,2795830.0,3319456.0,3411443.0,5695889.0,900287.0,3319458.0,6762000.0,6762003.0,6762008.0],"skipIndex":0,"section_code":"section77712","featured_images":"6762008,6762003,6762000,5695889,3411443,3319458,3319456,3319454,2795842,2795830","id":68927,"singleSection":false});				  						galleries[174918] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Testimonials","link":"section218094.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section218094","featured_images":"","id":174918,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4329219,5166399,5058984,3812746,5703591,8885649,8885638,8983420';
imageSets[3] = '8983420,8885649,8885638,6762018,6762008,6762003,6762000,6761995,6761722,5703591,5695889,5330074,5330071,5330065,5330062,5330056,5330049,5330044,5330037,5330033,5330026,5330017,5166399,5058984,4824761,4824752,4824736,4824727,4659706,4329219,4329175,4329174,4329164,4329161,4329158,4131975,3812789,3812787,3812773,3812753,3812746,3812741,3514025,3513665,3513566,3513543,3481016,3481015,3481009,3411443';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ShaneHayesPhotographer/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ShaneHayesPhotographer/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 = 'Shane  Hayes  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;
	}
}

			

