window.thumbnails = {};
															thumbnails[1381322] = clik.newPhoto({"id":1381322,"src":"Sultan wdg024 lr_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":24.0,"height":173});
															thumbnails[6816677] = clik.newPhoto({"id":6816677,"src":"Preview45_kf_bw_copy_lr_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Kev & Lavinia","height":174});
															thumbnails[6832663] = clik.newPhoto({"id":6832663,"src":"Preview62ma_lr_6828CAB6-1D09-001F-994C3BE966743186_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Kev & Lavinia1","height":195});
															thumbnails[8311757] = clik.newPhoto({"id":8311757,"src":"web01_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Nickie & Colin 1","height":130});
															thumbnails[8311758] = clik.newPhoto({"id":8311758,"src":"web02_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Nickie & Colin 2","height":98});
															thumbnails[8311760] = clik.newPhoto({"id":8311760,"src":"web04_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Nickie & Colin 4","height":195});
															thumbnails[8311761] = clik.newPhoto({"id":8311761,"src":"web05_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Eliza & Tom 1","height":162});
															thumbnails[6832664] = clik.newPhoto({"id":6832664,"src":"Preview64_ag_lr_6828CC8B-1D09-001F-9944D6CE63AC0629_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Kev & Lavinia2","height":195});
															thumbnails[8311759] = clik.newPhoto({"id":8311759,"src":"web03_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Nickie & Colin 3","height":195});
															thumbnails[1381323] = clik.newPhoto({"id":1381323,"src":"Sultan wdg028 lr_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":28.0,"height":130});
															thumbnails[1381333] = clik.newPhoto({"id":1381333,"src":"Sultan wdg121 lr_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":121.0,"height":98});
															thumbnails[6738561] = clik.newPhoto({"id":6738561,"src":"preview230web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"kaleidoscope","height":97});
															thumbnails[6816679] = clik.newPhoto({"id":6816679,"src":"Preview62m_thumb.ant lr","galleries_id":"","server_id":2,"link":"#","width":130,"caption":"Preview62m","height":195});
															thumbnails[1381341] = clik.newPhoto({"id":1381341,"src":"Sultan wdg_325 lr_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":325.0,"height":173});
															thumbnails[6816680] = clik.newPhoto({"id":6816680,"src":"Preview64_ag_thumb.vig lr","galleries_id":"","server_id":2,"link":"#","width":130,"caption":"Preview64 ag","height":195});
															thumbnails[6822014] = clik.newPhoto({"id":6822014,"src":"Preview62ma_lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6822014.html","width":130,"caption":"Kev & Lavinia","height":195});
															thumbnails[422517] = clik.newPhoto({"id":422517,"src":"IMG_0340 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422517.html","width":130,"caption":"wdg1","height":173});
															thumbnails[422519] = clik.newPhoto({"id":422519,"src":"IMG_0234 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422519.html","width":130,"caption":"wdg2","height":173});
															thumbnails[422525] = clik.newPhoto({"id":422525,"src":"IMG_0347 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422525.html","width":130,"caption":"wdg4","height":195});
															thumbnails[422529] = clik.newPhoto({"id":422529,"src":"IMG_0287 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422529.html","width":130,"caption":"","height":195});
															thumbnails[422533] = clik.newPhoto({"id":422533,"src":"IMG_0059 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422533.html","width":130,"caption":"wdg7","height":195});
															thumbnails[422535] = clik.newPhoto({"id":422535,"src":"IMG_0147 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422535.html","width":130,"caption":"wdg8","height":173});
															thumbnails[422536] = clik.newPhoto({"id":422536,"src":"IMG_0249 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422536.html","width":130,"caption":"wdg9","height":173});
															thumbnails[422538] = clik.newPhoto({"id":422538,"src":"Gard wdg0037 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422538.html","width":130,"caption":"wdg10","height":98});
															thumbnails[422539] = clik.newPhoto({"id":422539,"src":"Gard wdg0051 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422539.html","width":130,"caption":"wdg11","height":98});
															thumbnails[422540] = clik.newPhoto({"id":422540,"src":"Gard wdg0139 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422540.html","width":130,"caption":"wdg12","height":98});
															thumbnails[422542] = clik.newPhoto({"id":422542,"src":"Gard wdg0094 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422542.html","width":130,"caption":"wdg13","height":98});
															thumbnails[422545] = clik.newPhoto({"id":422545,"src":"Gard wdg0146 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422545.html","width":130,"caption":"wdg14","height":98});
															thumbnails[422547] = clik.newPhoto({"id":422547,"src":"Dean wdg 020 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422547.html","width":130,"caption":"wdg15","height":173});
															thumbnails[422550] = clik.newPhoto({"id":422550,"src":"Dean wdg 031lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422550.html","width":130,"caption":"wdg16","height":173});
															thumbnails[422551] = clik.newPhoto({"id":422551,"src":"Dean wdg 041 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422551.html","width":130,"caption":"wdg17","height":98});
															thumbnails[422552] = clik.newPhoto({"id":422552,"src":"Dean wdg 083 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422552.html","width":130,"caption":"wdg18","height":98});
															thumbnails[422555] = clik.newPhoto({"id":422555,"src":"Dean wdg 138 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422555.html","width":130,"caption":"wdg19","height":98});
															thumbnails[422557] = clik.newPhoto({"id":422557,"src":"Dean wdg 168 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422557.html","width":130,"caption":"wdg20","height":173});
															thumbnails[422558] = clik.newPhoto({"id":422558,"src":"Dean wdg 181 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422558.html","width":130,"caption":"wdg21","height":173});
															thumbnails[422568] = clik.newPhoto({"id":422568,"src":"Spooner wdg 6_thumb.040022 lr1.jpg","galleries_id":33753,"server_id":18,"link":"photo_422568.html","width":130,"caption":"wdg22","height":173});
															thumbnails[422571] = clik.newPhoto({"id":422571,"src":"Briggs beach 2 edge lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422571.html","width":130,"caption":"wdg23","height":163});
															thumbnails[422579] = clik.newPhoto({"id":422579,"src":"Briggs beach3 edge2_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422579.html","width":130,"caption":"wdg24","height":163});
															thumbnails[422580] = clik.newPhoto({"id":422580,"src":"Briggs_thumb.Matthews0024 lr.jpg","galleries_id":33753,"server_id":18,"link":"photo_422580.html","width":130,"caption":"wdg25","height":195});
															thumbnails[422583] = clik.newPhoto({"id":422583,"src":"IMG_0067_thumb.JPG","galleries_id":33753,"server_id":18,"link":"photo_422583.html","width":130,"caption":"wdg26","height":98});
															thumbnails[422585] = clik.newPhoto({"id":422585,"src":"Norris0088 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422585.html","width":130,"caption":"wdg27","height":173});
															thumbnails[422588] = clik.newPhoto({"id":422588,"src":"Norris0092 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422588.html","width":130,"caption":"wdg28","height":98});
															thumbnails[422589] = clik.newPhoto({"id":422589,"src":"Norris0103 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422589.html","width":130,"caption":"wdg29","height":173});
															thumbnails[422591] = clik.newPhoto({"id":422591,"src":"Norris0120 lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422591.html","width":130,"caption":"wdg30","height":98});
															thumbnails[422728] = clik.newPhoto({"id":422728,"src":"Ben McMeechan jpg 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422728.html","width":130,"caption":"tennis1","height":98});
															thumbnails[422730] = clik.newPhoto({"id":422730,"src":"Andrew Hold lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422730.html","width":130,"caption":"tennis2","height":98});
															thumbnails[422732] = clik.newPhoto({"id":422732,"src":"Elliott Short 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422732.html","width":130,"caption":"tennis3","height":173});
															thumbnails[422733] = clik.newPhoto({"id":422733,"src":"Ilf tourney 040024 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422733.html","width":130,"caption":"","height":98});
															thumbnails[422734] = clik.newPhoto({"id":422734,"src":"Tom Lake 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422734.html","width":130,"caption":"","height":173});
															thumbnails[422736] = clik.newPhoto({"id":422736,"src":"Danny Lobato lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422736.html","width":130,"caption":"","height":195});
															thumbnails[422738] = clik.newPhoto({"id":422738,"src":"Ben McMeechan trophy lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422738.html","width":130,"caption":"","height":173});
															thumbnails[422740] = clik.newPhoto({"id":422740,"src":"Cameron 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422740.html","width":130,"caption":"","height":98});
															thumbnails[422741] = clik.newPhoto({"id":422741,"src":"Danny L 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422741.html","width":130,"caption":"","height":98});
															thumbnails[422743] = clik.newPhoto({"id":422743,"src":"DannyL 3 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422743.html","width":130,"caption":"","height":98});
															thumbnails[422744] = clik.newPhoto({"id":422744,"src":"DannyL 4 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422744.html","width":130,"caption":"","height":174});
															thumbnails[422746] = clik.newPhoto({"id":422746,"src":"Helen 4 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422746.html","width":130,"caption":"","height":98});
															thumbnails[422747] = clik.newPhoto({"id":422747,"src":"Helen T lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422747.html","width":130,"caption":"","height":97});
															thumbnails[422748] = clik.newPhoto({"id":422748,"src":"Ilf T 050004 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422748.html","width":130,"caption":"","height":173});
															thumbnails[422749] = clik.newPhoto({"id":422749,"src":"Ilf T 050010 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422749.html","width":130,"caption":"","height":173});
															thumbnails[422750] = clik.newPhoto({"id":422750,"src":"Ilf T 050013 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422750.html","width":130,"caption":"","height":87});
															thumbnails[422751] = clik.newPhoto({"id":422751,"src":"Mark P 1 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422751.html","width":130,"caption":"","height":98});
															thumbnails[422757] = clik.newPhoto({"id":422757,"src":"Ollie 3 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422757.html","width":130,"caption":"","height":173});
															thumbnails[422760] = clik.newPhoto({"id":422760,"src":"Will 1 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422760.html","width":130,"caption":"","height":98});
															thumbnails[422791] = clik.newPhoto({"id":422791,"src":"IMG_0253 lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_422791.html","width":130,"caption":"","height":87});
															thumbnails[422852] = clik.newPhoto({"id":422852,"src":"C Feeney 4 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422852.html","width":130,"caption":"","height":173});
															thumbnails[422853] = clik.newPhoto({"id":422853,"src":"G Loosemore 1 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422853.html","width":130,"caption":"","height":98});
															thumbnails[422856] = clik.newPhoto({"id":422856,"src":"G Loosemore 2 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422856.html","width":130,"caption":"","height":98});
															thumbnails[422857] = clik.newPhoto({"id":422857,"src":"G Loosemore 3 lr_thumb.jpg","galleries_id":33765,"server_id":18,"link":"photo_422857.html","width":130,"caption":"","height":173});
															thumbnails[422860] = clik.newPhoto({"id":422860,"src":"chloeshades1 lr1_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_422860.html","width":130,"caption":"Chloe","height":186});
															thumbnails[428589] = clik.newPhoto({"id":428589,"src":"Adairposter copy web_thumb.jpg","galleries_id":33786,"server_id":18,"link":"photo_428589.html","width":130,"caption":"Ian","height":195});
															thumbnails[432477] = clik.newPhoto({"id":432477,"src":"Hannah 11 6x4 web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_432477.html","width":130,"caption":"Hannah","height":87});
															thumbnails[432480] = clik.newPhoto({"id":432480,"src":"Hannah smiling copy web_thumb.jpg","galleries_id":81052,"server_id":18,"link":"photo_432480.html","width":130,"caption":"Hannah","height":173});
															thumbnails[432490] = clik.newPhoto({"id":432490,"src":"Scott choc bar 3 web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_432490.html","width":130,"caption":"Scott","height":173});
															thumbnails[432503] = clik.newPhoto({"id":432503,"src":"Sophie looking round web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_432503.html","width":130,"caption":"Sophie","height":98});
															thumbnails[675105] = clik.newPhoto({"id":675105,"src":"191_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675105.html","width":130,"caption":191.0,"height":98});
															thumbnails[675107] = clik.newPhoto({"id":675107,"src":"IMG_0006_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675107.html","width":130,"caption":6.0,"height":173});
															thumbnails[675113] = clik.newPhoto({"id":675113,"src":"IMG_0032_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675113.html","width":130,"caption":32.0,"height":195});
															thumbnails[675120] = clik.newPhoto({"id":675120,"src":"IMG_0070_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675120.html","width":130,"caption":70.0,"height":173});
															thumbnails[675122] = clik.newPhoto({"id":675122,"src":"IMG_0091_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675122.html","width":130,"caption":91.0,"height":173});
															thumbnails[675123] = clik.newPhoto({"id":675123,"src":"IMG_0096_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675123.html","width":130,"caption":96.0,"height":98});
															thumbnails[675124] = clik.newPhoto({"id":675124,"src":"IMG_0128_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675124.html","width":130,"caption":128.0,"height":195});
															thumbnails[675126] = clik.newPhoto({"id":675126,"src":"IMG_0149_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675126.html","width":130,"caption":149.0,"height":173});
															thumbnails[675128] = clik.newPhoto({"id":675128,"src":"IMG_0157_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675128.html","width":130,"caption":157.0,"height":173});
															thumbnails[675131] = clik.newPhoto({"id":675131,"src":"IMG_0187_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675131.html","width":130,"caption":187.0,"height":87});
															thumbnails[675132] = clik.newPhoto({"id":675132,"src":"IMG_0303_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675132.html","width":130,"caption":303.0,"height":195});
															thumbnails[675134] = clik.newPhoto({"id":675134,"src":"IMG_0317_thumb.jpg","galleries_id":51402,"server_id":18,"link":"photo_675134.html","width":130,"caption":317.0,"height":98});
															thumbnails[847350] = clik.newPhoto({"id":847350,"src":"Horton wdg 0058 72dpihicopy_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_847350.html","width":130,"caption":58.0,"height":195});
															thumbnails[847362] = clik.newPhoto({"id":847362,"src":"Horton wdg 0098 72dpihi copy_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_847362.html","width":130,"caption":98.0,"height":195});
															thumbnails[847375] = clik.newPhoto({"id":847375,"src":"Horton wdg 0083 72dpihi copy_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_847375.html","width":130,"caption":83.0,"height":87});
															thumbnails[847377] = clik.newPhoto({"id":847377,"src":"Horton wdg 0073 72dpihi copy_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_847377.html","width":130,"caption":73.0,"height":87});
															thumbnails[847384] = clik.newPhoto({"id":847384,"src":"Horton wdg 20010 72dpihi copy_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_847384.html","width":130,"caption":72.0,"height":195});
															thumbnails[1294216] = clik.newPhoto({"id":1294216,"src":"Alex lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294216.html","width":130,"caption":"Alex & Daniel","height":87});
															thumbnails[1452110] = clik.newPhoto({"id":1452110,"src":"Megan studio jpg020 lr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1452110.html","width":130,"caption":"","height":195});
															thumbnails[1452119] = clik.newPhoto({"id":1452119,"src":"Megan studio jpg030 lr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1452119.html","width":130,"caption":"","height":173});
															thumbnails[1452155] = clik.newPhoto({"id":1452155,"src":"Megan 069lr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1452155.html","width":130,"caption":"","height":195});
															thumbnails[1452170] = clik.newPhoto({"id":1452170,"src":"Megan studio jpg077 lr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1452170.html","width":130,"caption":"","height":173});
															thumbnails[1452174] = clik.newPhoto({"id":1452174,"src":"Megan studio_054 bw lr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1452174.html","width":130,"caption":"","height":173});
															thumbnails[2769410] = clik.newPhoto({"id":2769410,"src":"Jane04_thumb.JPG","galleries_id":33764,"server_id":18,"link":"photo_2769410.html","width":130,"caption":"","height":163});
															thumbnails[2769417] = clik.newPhoto({"id":2769417,"src":"Jane44lotrelr_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_2769417.html","width":130,"caption":"","height":195});
															thumbnails[2769419] = clik.newPhoto({"id":2769419,"src":"Jane 58 mod ant_thumb.lr.jpg","galleries_id":33764,"server_id":18,"link":"photo_2769419.html","width":130,"caption":"Jane 3","height":195});
															thumbnails[2829583] = clik.newPhoto({"id":2829583,"src":"277 mod ant lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829583.html","width":130,"caption":"Melissa & Lee 2","height":87});
															thumbnails[2829584] = clik.newPhoto({"id":2829584,"src":"288 w border lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829584.html","width":130,"caption":"Melissa & Lee 3","height":195});
															thumbnails[2829597] = clik.newPhoto({"id":2829597,"src":"281 copy lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829597.html","width":130,"caption":"Melissa & Lee 7","height":195});
															thumbnails[2829725] = clik.newPhoto({"id":2829725,"src":"294 copy bw lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829725.html","width":130,"caption":"Melissa & Lee 6","height":195});
															thumbnails[2829773] = clik.newPhoto({"id":2829773,"src":"300 mod ant lr2_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829773.html","width":130,"caption":"Melissa & Lee 5","height":195});
															thumbnails[2829810] = clik.newPhoto({"id":2829810,"src":"preview079 lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829810.html","width":130,"caption":"Daisy & Dominic 1","height":87});
															thumbnails[2829859] = clik.newPhoto({"id":2829859,"src":"preview264 lr2_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2829859.html","width":130,"caption":"Daisy & Dominic 4","height":87});
															thumbnails[2830344] = clik.newPhoto({"id":2830344,"src":"preview232 copy lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2830344.html","width":130,"caption":"Daisy & Dominic 3","height":195});
															thumbnails[2837953] = clik.newPhoto({"id":2837953,"src":"preview242copy lr2_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2837953.html","width":130,"caption":"Daisy & Dominic 2","height":173});
															thumbnails[2838930] = clik.newPhoto({"id":2838930,"src":"preview221 bw edgey lr4_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2838930.html","width":130,"caption":"","height":195});
															thumbnails[2838949] = clik.newPhoto({"id":2838949,"src":"preview248 LOTR lr3_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2838949.html","width":130,"caption":"","height":195});
															thumbnails[6738274] = clik.newPhoto({"id":6738274,"src":"preview368web_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738274.html","width":130,"caption":"Lisa and girls","height":87});
															thumbnails[6738287] = clik.newPhoto({"id":6738287,"src":"preview007web_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738287.html","width":130,"caption":"Jester","height":195});
															thumbnails[6738301] = clik.newPhoto({"id":6738301,"src":"preview320web_thumb.jpg","galleries_id":367342,"server_id":18,"link":"photo_6738301.html","width":130,"caption":"First Dance","height":195});
															thumbnails[8311691] = clik.newPhoto({"id":8311691,"src":"Joy_267_thumb.JPG","galleries_id":33753,"server_id":18,"link":"photo_8311691.html","width":130,"caption":"Nickie & Colin","height":98});
															thumbnails[6955444] = clik.newPhoto({"id":6955444,"src":"Chloe13_ksf_web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_6955444.html","width":130,"caption":"Chloe","height":87});
															thumbnails[6832700] = clik.newPhoto({"id":6832700,"src":"Becca__Alex046_lr_thumb.jpg","galleries_id":371067,"server_id":18,"link":"photo_6832700.html","width":130,"caption":"Becca & Alex046 ","height":87});
															thumbnails[1292966] = clik.newPhoto({"id":1292966,"src":"meg007web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1292966.html","width":130,"caption":"meg7","height":98});
															thumbnails[1293190] = clik.newPhoto({"id":1293190,"src":"meg113web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1293190.html","width":130,"caption":"meg113","height":195});
															thumbnails[1294152] = clik.newPhoto({"id":1294152,"src":"prowsejpgs013lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294152.html","width":130,"caption":"Lorraine 13","height":98});
															thumbnails[1294279] = clik.newPhoto({"id":1294279,"src":"Tina 125_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294279.html","width":130,"caption":"Tina 125","height":173});
															thumbnails[1294317] = clik.newPhoto({"id":1294317,"src":"Tina 163_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294317.html","width":130,"caption":"Tina 163","height":195});
															thumbnails[1632172] = clik.newPhoto({"id":1632172,"src":"Allie's Party_025_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632172.html","width":130,"caption":"Sample 2","height":195});
															thumbnails[1632178] = clik.newPhoto({"id":1632178,"src":"Allie's Party_096_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632178.html","width":130,"caption":"Sample 1","height":182});
															thumbnails[2837615] = clik.newPhoto({"id":2837615,"src":"268 copy2 lr4_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_2837615.html","width":130,"caption":"Melissa & Lee 4","height":195});
															thumbnails[4304965] = clik.newPhoto({"id":4304965,"src":"Jon__Callum_web_thumb.jpg","galleries_id":81052,"server_id":18,"link":"photo_4304965.html","width":130,"caption":"Jon & Callum","height":174});
															thumbnails[5077642] = clik.newPhoto({"id":5077642,"src":"Preview128_lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_5077642.html","width":130,"caption":"Gina & Stephen","height":173});
															thumbnails[6738468] = clik.newPhoto({"id":6738468,"src":"preview036web_16131FCA-1D09-001F-9908A5301A661536_thumb.jpg","galleries_id":367342,"server_id":18,"link":"photo_6738468.html","width":130,"caption":"Lisa & Steve","height":130});
															thumbnails[6822017] = clik.newPhoto({"id":6822017,"src":"Preview64_ag_lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6822017.html","width":130,"caption":"Kev & Lavinia","height":195});
															thumbnails[8311774] = clik.newPhoto({"id":8311774,"src":"web06_thumb.JPG","galleries_id":33753,"server_id":18,"link":"photo_8311774.html","width":130,"caption":"Eliza & Tom 2","height":87});
															thumbnails[8940945] = clik.newPhoto({"id":8940945,"src":"Joy_blend_2_thumb_3078EAD8-24E8-5EC4-4F2DE65A1D2A89D8.jpg","galleries_id":33753,"server_id":18,"link":"photo_8940945.html","width":130,"caption":"sample composite 1","height":87});
															thumbnails[8940950] = clik.newPhoto({"id":8940950,"src":"Joy_blend_212_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_8940950.html","width":130,"caption":"Ruby","height":163});
															thumbnails[8941709] = clik.newPhoto({"id":8941709,"src":"Joy_blend_3_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_8941709.html","width":130,"caption":"sample composite 2","height":104});
															thumbnails[8944429] = clik.newPhoto({"id":8944429,"src":"305_LOTR_lr_645FAA9E-1EC9-DFB6-09F2A8445A000A02_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_8944429.html","width":130,"caption":"305 LOTR lr","height":65});
															thumbnails[8944430] = clik.newPhoto({"id":8944430,"src":"prev_fr081kevform_lr_645FDA06-1EC9-DFB6-09E1FB28693FD49E_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_8944430.html","width":130,"caption":"prev fr081kevform lr","height":174});
															thumbnails[6832701] = clik.newPhoto({"id":6832701,"src":"Becca__Alex066_lr_thumb.jpg","galleries_id":371067,"server_id":18,"link":"photo_6832701.html","width":130,"caption":"Becca & Alex066 ","height":87});
															thumbnails[1292967] = clik.newPhoto({"id":1292967,"src":"meg014web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1292967.html","width":130,"caption":"meg014","height":173});
															thumbnails[1293191] = clik.newPhoto({"id":1293191,"src":"meg118web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1293191.html","width":130,"caption":"meg118","height":195});
															thumbnails[1294153] = clik.newPhoto({"id":1294153,"src":"prowsejpgs148lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294153.html","width":130,"caption":"Lorraine 148","height":173});
															thumbnails[1294280] = clik.newPhoto({"id":1294280,"src":"Tina 139_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294280.html","width":130,"caption":"Tina 139","height":87});
															thumbnails[1294319] = clik.newPhoto({"id":1294319,"src":"Tina 173_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294319.html","width":130,"caption":"Tina 173","height":173});
															thumbnails[1632173] = clik.newPhoto({"id":1632173,"src":"Allie's Party_027_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632173.html","width":130,"caption":"Sample 4","height":182});
															thumbnails[1632179] = clik.newPhoto({"id":1632179,"src":"Allie's Party_106_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632179.html","width":130,"caption":"Sample 3","height":182});
															thumbnails[6738469] = clik.newPhoto({"id":6738469,"src":"preview038_web_1613218F-1D09-001F-9932FFB6A21585CA_thumb.jpg","galleries_id":367342,"server_id":18,"link":"photo_6738469.html","width":130,"caption":"Lisa","height":87});
															thumbnails[6955451] = clik.newPhoto({"id":6955451,"src":"Holly_08bw_web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_6955451.html","width":130,"caption":"Holly","height":174});
															thumbnails[7955780] = clik.newPhoto({"id":7955780,"src":"preview037_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955780.html","width":130,"caption":"preview037","height":173});
															thumbnails[8311775] = clik.newPhoto({"id":8311775,"src":"web07_thumb.JPG","galleries_id":33753,"server_id":18,"link":"photo_8311775.html","width":130,"caption":"Eliza & Tom 3","height":195});
															thumbnails[6832702] = clik.newPhoto({"id":6832702,"src":"Becca__Alex105_lr_thumb.jpg","galleries_id":371067,"server_id":18,"link":"photo_6832702.html","width":130,"caption":"Becca & Alex105 ","height":195});
															thumbnails[1292968] = clik.newPhoto({"id":1292968,"src":"meg046web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1292968.html","width":130,"caption":"meg046","height":87});
															thumbnails[1293192] = clik.newPhoto({"id":1293192,"src":"meg129web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1293192.html","width":130,"caption":"meg129","height":195});
															thumbnails[1294154] = clik.newPhoto({"id":1294154,"src":"prowsejpgs165lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294154.html","width":130,"caption":"Lorraine 165","height":195});
															thumbnails[1294281] = clik.newPhoto({"id":1294281,"src":"Tina 21_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294281.html","width":130,"caption":"Tina 21","height":98});
															thumbnails[1294320] = clik.newPhoto({"id":1294320,"src":"Tina 184_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294320.html","width":130,"caption":"Tina 184","height":195});
															thumbnails[1632174] = clik.newPhoto({"id":1632174,"src":"Allie's Party_044_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632174.html","width":130,"caption":"Sample 5","height":182});
															thumbnails[6738470] = clik.newPhoto({"id":6738470,"src":"preview206web_16132393-1D09-001F-99EA4F17ABD4A006_thumb.jpg","galleries_id":367342,"server_id":18,"link":"photo_6738470.html","width":130,"caption":"Lisa & Steve","height":98});
															thumbnails[7955781] = clik.newPhoto({"id":7955781,"src":"preview044_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955781.html","width":130,"caption":"preview044","height":173});
															thumbnails[8311776] = clik.newPhoto({"id":8311776,"src":"web08_thumb.JPG","galleries_id":33753,"server_id":18,"link":"photo_8311776.html","width":130,"caption":"Eliza & Tom 4","height":173});
															thumbnails[6832703] = clik.newPhoto({"id":6832703,"src":"Becca__Alex106_lr_thumb.jpg","galleries_id":371067,"server_id":18,"link":"photo_6832703.html","width":130,"caption":"Becca & Alex106 ","height":87});
															thumbnails[1292969] = clik.newPhoto({"id":1292969,"src":"meg084web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1292969.html","width":130,"caption":"meg084","height":195});
															thumbnails[1294155] = clik.newPhoto({"id":1294155,"src":"prowsejpgs177lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294155.html","width":130,"caption":"Lorraine 177","height":173});
															thumbnails[1294283] = clik.newPhoto({"id":1294283,"src":"Tina 56_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294283.html","width":130,"caption":"Tina 56","height":98});
															thumbnails[1294321] = clik.newPhoto({"id":1294321,"src":"Tina 189_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294321.html","width":130,"caption":"Tina 189","height":98});
															thumbnails[1632175] = clik.newPhoto({"id":1632175,"src":"Allie's Party_076_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632175.html","width":130,"caption":"Sample 6","height":182});
															thumbnails[6738471] = clik.newPhoto({"id":6738471,"src":"preview228_copylr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738471.html","width":130,"caption":"preview228 copylr","height":195});
															thumbnails[7955782] = clik.newPhoto({"id":7955782,"src":"preview068_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955782.html","width":130,"caption":"preview068","height":130});
															thumbnails[6832704] = clik.newPhoto({"id":6832704,"src":"Becca__Alex133copylr_thumb.jpg","galleries_id":371067,"server_id":18,"link":"photo_6832704.html","width":130,"caption":"Becca & Alex133","height":195});
															thumbnails[1292970] = clik.newPhoto({"id":1292970,"src":"meg108web_thumb.jpg","galleries_id":33764,"server_id":18,"link":"photo_1292970.html","width":130,"caption":"meg108web","height":195});
															thumbnails[1294157] = clik.newPhoto({"id":1294157,"src":"prowsejpgs198lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_1294157.html","width":130,"caption":"Lorraine 198","height":98});
															thumbnails[1294284] = clik.newPhoto({"id":1294284,"src":"Tina 68_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294284.html","width":130,"caption":"Tina 68","height":98});
															thumbnails[1294322] = clik.newPhoto({"id":1294322,"src":"Tina 192_thumb.jpg","galleries_id":91734,"server_id":18,"link":"photo_1294322.html","width":130,"caption":"Tina 192","height":173});
															thumbnails[1632176] = clik.newPhoto({"id":1632176,"src":"Allie's Party_091_thumb.jpg","galleries_id":110605,"server_id":18,"link":"photo_1632176.html","width":130,"caption":"Sample 7","height":93});
															thumbnails[6738472] = clik.newPhoto({"id":6738472,"src":"preview232_copy_lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738472.html","width":130,"caption":"preview232 copy lr","height":195});
															thumbnails[7955783] = clik.newPhoto({"id":7955783,"src":"preview072_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955783.html","width":130,"caption":"preview072","height":87});
															thumbnails[6738473] = clik.newPhoto({"id":6738473,"src":"preview248_LOTR_lr_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738473.html","width":130,"caption":"preview248 LOTR lr","height":195});
															thumbnails[7955785] = clik.newPhoto({"id":7955785,"src":"preview081_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955785.html","width":130,"caption":"preview081","height":195});
															thumbnails[6738475] = clik.newPhoto({"id":6738475,"src":"preview264_lr2_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738475.html","width":130,"caption":"preview264 lr2","height":87});
															thumbnails[7955786] = clik.newPhoto({"id":7955786,"src":"preview095_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955786.html","width":130,"caption":"preview095","height":87});
															thumbnails[7955787] = clik.newPhoto({"id":7955787,"src":"preview195_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955787.html","width":130,"caption":"preview195","height":130});
															thumbnails[6738477] = clik.newPhoto({"id":6738477,"src":"preview368web_16133074-1D09-001F-998F1020015BA5A7_thumb.jpg","galleries_id":367342,"server_id":18,"link":"photo_6738477.html","width":130,"caption":"Lisa & the girls","height":87});
															thumbnails[7955788] = clik.newPhoto({"id":7955788,"src":"preview217_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955788.html","width":130,"caption":"preview217","height":173});
															thumbnails[7955789] = clik.newPhoto({"id":7955789,"src":"preview224_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955789.html","width":130,"caption":"preview224","height":173});
															thumbnails[7955790] = clik.newPhoto({"id":7955790,"src":"preview322_thumb.JPG","galleries_id":428282,"server_id":18,"link":"photo_7955790.html","width":130,"caption":"preview322","height":98});
															thumbnails[6738562] = clik.newPhoto({"id":6738562,"src":"preview230web1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6738562.html","width":130,"caption":"preview230web1","height":97});
															thumbnails[6816678] = clik.newPhoto({"id":6816678,"src":"Preview45_kf_bw_copy_lr1_thumb.jpg","galleries_id":33753,"server_id":18,"link":"photo_6816678.html","width":130,"caption":"Preview45 kf bw copy lr1","height":174});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[33753] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Samples","link":"gallery_33753.html","maxRecords":0.0,"photoIDs":[6822014.0,422517.0,422519.0,422525.0,422529.0,422533.0,422535.0,422536.0,422538.0,422539.0,422540.0,422542.0,422545.0,422547.0,422550.0,422551.0,422552.0,422555.0,422557.0,422558.0,422568.0,422571.0,422579.0,422580.0,422583.0,422585.0,422588.0,422589.0,422591.0,422791.0,847350.0,847362.0,847375.0,847377.0,847384.0,1294216.0,2829583.0,2829584.0,2829597.0,2829725.0,2829773.0,2829810.0,2829859.0,2830344.0,2837953.0,2838930.0,2838949.0,6738274.0,6738287.0,8311691.0,1294152.0,2837615.0,5077642.0,6822017.0,8311774.0,8940945.0,8941709.0,8944429.0,8944430.0,1294153.0,8311775.0,1294154.0,8311776.0,1294155.0,6738471.0,1294157.0,6738472.0,6738473.0,6738475.0,6738562.0,6816678.0],"skipIndex":0,"section_code":"gallery","featured_images":"8944429,8941709,8940945,8311775,8311774,2837953,2830344,2829859,2829810,2829597,2829583","id":33753,"singleSection":false});				  						galleries[33764] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_33764.html","maxRecords":0.0,"photoIDs":[422860.0,432477.0,432490.0,432503.0,1452110.0,1452119.0,1452155.0,1452170.0,1452174.0,2769410.0,2769417.0,2769419.0,6955444.0,1292966.0,1293190.0,8940950.0,1292967.0,1293191.0,6955451.0,1292968.0,1293192.0,1292969.0,1292970.0],"skipIndex":0,"section_code":"gallery","featured_images":8940950.0,"id":33764,"singleSection":false});				  						galleries[110605] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Event Photography","link":"gallery_110605.html","maxRecords":0.0,"photoIDs":[1632172.0,1632178.0,1632173.0,1632179.0,1632174.0,1632175.0,1632176.0],"skipIndex":0,"section_code":"gallery","featured_images":"1632179,1632178,1632176,1632175,1632174,1632173,1632172","id":110605,"singleSection":false});				  						galleries[33765] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tennis action","link":"gallery_33765.html","maxRecords":0.0,"photoIDs":[422728.0,422730.0,422732.0,422733.0,422734.0,422736.0,422738.0,422740.0,422741.0,422743.0,422744.0,422746.0,422747.0,422748.0,422749.0,422750.0,422751.0,422757.0,422760.0,422852.0,422853.0,422856.0,422857.0],"skipIndex":0,"section_code":"gallery","featured_images":"422857,422856,422853,422852,422760,422757,422751,422750,422749,422748","id":33765,"singleSection":false});				  						galleries[81052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies","link":"gallery_81052.html","maxRecords":0.0,"photoIDs":[432480.0,4304965.0],"skipIndex":0,"section_code":"gallery","featured_images":"4304965,432480","id":81052,"singleSection":false});				  						galleries[428282] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mand & Drew","link":"gallery_428282.html","maxRecords":0.0,"photoIDs":[7955780.0,7955781.0,7955782.0,7955783.0,7955785.0,7955786.0,7955787.0,7955788.0,7955789.0,7955790.0],"skipIndex":0,"section_code":"gallery","featured_images":"7955790,7955789,7955788,7955787,7955786,7955785,7955783,7955782,7955781,7955780","id":428282,"singleSection":false});				  						galleries[51402] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fiona & Simon","link":"gallery_51402.html","maxRecords":0.0,"photoIDs":[675105.0,675107.0,675113.0,675120.0,675122.0,675123.0,675124.0,675126.0,675128.0,675131.0,675132.0,675134.0],"skipIndex":0,"section_code":"gallery","featured_images":"675134,675132,675131,675128,675126,675124,675123,675122,675120,675113","id":51402,"singleSection":false});				  						galleries[371067] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Becca & Alex","link":"gallery_371067.html","maxRecords":0.0,"photoIDs":[6832700.0,6832701.0,6832702.0,6832703.0,6832704.0],"skipIndex":0,"section_code":"gallery","featured_images":"6832704,6832703,6832702,6832701,6832700","id":371067,"singleSection":false});				  						galleries[367342] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lisa & Steve","link":"gallery_367342.html","maxRecords":0.0,"photoIDs":[6738301.0,6738468.0,6738469.0,6738470.0,6738477.0],"skipIndex":0,"section_code":"gallery","featured_images":"6738477,6738470,6738469,6738468,6738301","id":367342,"singleSection":false});				  						galleries[91734] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tina & Chris","link":"gallery_91734.html","maxRecords":0.0,"photoIDs":[1294279.0,1294317.0,1294280.0,1294319.0,1294281.0,1294320.0,1294283.0,1294321.0,1294284.0,1294322.0],"skipIndex":0,"section_code":"gallery","featured_images":"1294322,1294321,1294320,1294319,1294317,1294284,1294283,1294281,1294280,1294279","id":91734,"singleSection":false});				  						galleries[63987] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dryden","link":"gallery_63987.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":63987,"singleSection":false});				  						galleries[33786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General","link":"gallery_33786.html","maxRecords":0.0,"photoIDs":[428589.0],"skipIndex":0,"section_code":"gallery","featured_images":428589.0,"id":33786,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '422791,422517,8311691,8944429,8941709,8940945,8311774,8311761,8311760,8311758,8311757,2837615,8311775,8311776,8311759';
imageSets[2] = '2837953,2830344,2829859,2829810,2829597,2829583,8944429,8941709,8940950,8940945,8311774,8311761,8311757,8311775';
imageSets[3] = '8311760,8311758,8311776,8311759';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chrishold/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrishold/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrishold/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 = 'Chris Hold Photographic: ' + 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;
	}
}

			

