window.thumbnails = {};
															thumbnails[2787135] = clik.newPhoto({"id":2787135,"src":"studio1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":134});
															thumbnails[2698516] = clik.newPhoto({"id":2698516,"src":"louie_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_2698516.html","width":130,"caption":"","height":156});
															thumbnails[2710125] = clik.newPhoto({"id":2710125,"src":"louis_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_2710125.html","width":130,"caption":"","height":135});
															thumbnails[2753491] = clik.newPhoto({"id":2753491,"src":"Lucy 0262_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_2753491.html","width":130,"caption":"","height":157});
															thumbnails[2753493] = clik.newPhoto({"id":2753493,"src":"lucy 0172_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_2753493.html","width":130,"caption":"","height":198});
															thumbnails[2753517] = clik.newPhoto({"id":2753517,"src":"Jill and lucy 02_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_2753517.html","width":130,"caption":"","height":86});
															thumbnails[2787220] = clik.newPhoto({"id":2787220,"src":"ON YOUR MARKS REFLECTIONblack n white_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_2787220.html","width":130,"caption":"","height":164});
															thumbnails[2928750] = clik.newPhoto({"id":2928750,"src":"louis n truck_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_2928750.html","width":130,"caption":"","height":217});
															thumbnails[3161738] = clik.newPhoto({"id":3161738,"src":"monks lads_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3161738.html","width":130,"caption":"","height":192});
															thumbnails[3221306] = clik.newPhoto({"id":3221306,"src":"EVIE 1_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_3221306.html","width":130,"caption":"","height":95});
															thumbnails[3221307] = clik.newPhoto({"id":3221307,"src":"EVIE AND DAD _thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3221307.html","width":130,"caption":"","height":88});
															thumbnails[3221959] = clik.newPhoto({"id":3221959,"src":"evie2_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_3221959.html","width":130,"caption":"","height":127});
															thumbnails[3378565] = clik.newPhoto({"id":3378565,"src":"EVIE SELECTIVE1_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_3378565.html","width":130,"caption":"","height":87});
															thumbnails[3378579] = clik.newPhoto({"id":3378579,"src":"071OOOO_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_3378579.html","width":130,"caption":"","height":185});
															thumbnails[3519429] = clik.newPhoto({"id":3519429,"src":"elaynes parents_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3519429.html","width":130,"caption":"","height":164});
															thumbnails[3576507] = clik.newPhoto({"id":3576507,"src":"lisa_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3576507.html","width":130,"caption":"","height":162});
															thumbnails[3576510] = clik.newPhoto({"id":3576510,"src":"Lisa_and_leah_5_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3576510.html","width":130,"caption":"","height":169});
															thumbnails[3576514] = clik.newPhoto({"id":3576514,"src":"Lisa_and_leah_6_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_3576514.html","width":130,"caption":"","height":163});
															thumbnails[3576547] = clik.newPhoto({"id":3576547,"src":"leah2a_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_3576547.html","width":130,"caption":"","height":120});
															thumbnails[3581032] = clik.newPhoto({"id":3581032,"src":"Leah_61_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_3581032.html","width":130,"caption":"","height":155});
															thumbnails[3581037] = clik.newPhoto({"id":3581037,"src":"leah_bw_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_3581037.html","width":130,"caption":"","height":96});
															thumbnails[3614178] = clik.newPhoto({"id":3614178,"src":"fancy_dress__ball__02_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3614178.html","width":130,"caption":"","height":189});
															thumbnails[3614180] = clik.newPhoto({"id":3614180,"src":"fancy_dress__ball__03_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3614180.html","width":130,"caption":"","height":139});
															thumbnails[3614187] = clik.newPhoto({"id":3614187,"src":"fancy_dress__ball__05_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3614187.html","width":130,"caption":"","height":188});
															thumbnails[3614230] = clik.newPhoto({"id":3614230,"src":"fancy_dress__ball__10_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3614230.html","width":130,"caption":"","height":85});
															thumbnails[3614232] = clik.newPhoto({"id":3614232,"src":"fancy_dress__ball__11_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3614232.html","width":130,"caption":"","height":86});
															thumbnails[3618900] = clik.newPhoto({"id":3618900,"src":"DSC_0019_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3618900.html","width":130,"caption":"","height":190});
															thumbnails[3618921] = clik.newPhoto({"id":3618921,"src":"DSC_0020_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3618921.html","width":130,"caption":"","height":98});
															thumbnails[3618948] = clik.newPhoto({"id":3618948,"src":"dance_troope_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3618948.html","width":130,"caption":"","height":88});
															thumbnails[3618986] = clik.newPhoto({"id":3618986,"src":"lion_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3618986.html","width":130,"caption":"","height":189});
															thumbnails[3619011] = clik.newPhoto({"id":3619011,"src":"tickets_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3619011.html","width":130,"caption":"","height":140});
															thumbnails[3619028] = clik.newPhoto({"id":3619028,"src":"3_girls_thumb.jpg","galleries_id":221021,"server_id":5,"link":"photo_3619028.html","width":130,"caption":"","height":96});
															thumbnails[4080879] = clik.newPhoto({"id":4080879,"src":"Cherrybrook_thumb.jpg","galleries_id":245299,"server_id":5,"link":"photo_4080879.html","width":130,"caption":"","height":195});
															thumbnails[4105119] = clik.newPhoto({"id":4105119,"src":"cherrybrook_082_thumb.jpg","galleries_id":245299,"server_id":5,"link":"photo_4105119.html","width":130,"caption":"","height":186});
															thumbnails[4105146] = clik.newPhoto({"id":4105146,"src":"cherrybrook_099_thumb.jpg","galleries_id":245299,"server_id":5,"link":"photo_4105146.html","width":130,"caption":"","height":195});
															thumbnails[4517988] = clik.newPhoto({"id":4517988,"src":"The_Girls_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_4517988.html","width":130,"caption":"","height":93});
															thumbnails[4517993] = clik.newPhoto({"id":4517993,"src":"Georgia_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_4517993.html","width":130,"caption":"","height":161});
															thumbnails[4792698] = clik.newPhoto({"id":4792698,"src":"02a_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792698.html","width":130,"caption":"THE ADJUSTERS","height":121});
															thumbnails[4792700] = clik.newPhoto({"id":4792700,"src":"04b_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792700.html","width":130,"caption":"THE ADJUSTERS","height":128});
															thumbnails[4792702] = clik.newPhoto({"id":4792702,"src":"05a_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792702.html","width":130,"caption":"THE ADJUSTERS","height":94});
															thumbnails[4792704] = clik.newPhoto({"id":4792704,"src":"07b_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792704.html","width":130,"caption":"THE ADJUSTERS","height":102});
															thumbnails[4792745] = clik.newPhoto({"id":4792745,"src":"3794440109_926197b10e_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792745.html","width":130,"caption":"WILD FAITH","height":92});
															thumbnails[4792747] = clik.newPhoto({"id":4792747,"src":"3794449267_97629e2e9d_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792747.html","width":130,"caption":"","height":48});
															thumbnails[4792749] = clik.newPhoto({"id":4792749,"src":"3794458991_c48c357488_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792749.html","width":130,"caption":"WILD FAITH","height":195});
															thumbnails[4792750] = clik.newPhoto({"id":4792750,"src":"3794473021_a4a30668c9_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792750.html","width":130,"caption":"WILD FAITH","height":195});
															thumbnails[4792753] = clik.newPhoto({"id":4792753,"src":"3794495377_6456bf20b6_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792753.html","width":130,"caption":"WILD FAITH","height":195});
															thumbnails[4792755] = clik.newPhoto({"id":4792755,"src":"3795260000_d05d4725e7_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792755.html","width":130,"caption":"WILD FAITH","height":195});
															thumbnails[4792756] = clik.newPhoto({"id":4792756,"src":"3795277870_5e0c474b35_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792756.html","width":130,"caption":"WILD FAITH","height":195});
															thumbnails[4792758] = clik.newPhoto({"id":4792758,"src":"3795294868_e5a891e3df_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792758.html","width":130,"caption":"WILD FAITH","height":88});
															thumbnails[4792760] = clik.newPhoto({"id":4792760,"src":"3795317846_35cde6ace9_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792760.html","width":130,"caption":"WILD FAITH","height":182});
															thumbnails[4792767] = clik.newPhoto({"id":4792767,"src":"3794495127_91d6357ec7_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_4792767.html","width":130,"caption":"WILD FAITH","height":190});
															thumbnails[5253925] = clik.newPhoto({"id":5253925,"src":"02_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253925.html","width":130,"caption":"","height":99});
															thumbnails[5253930] = clik.newPhoto({"id":5253930,"src":"07_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253930.html","width":130,"caption":"","height":152});
															thumbnails[5253931] = clik.newPhoto({"id":5253931,"src":"07c_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_5253931.html","width":130,"caption":"","height":86});
															thumbnails[5253933] = clik.newPhoto({"id":5253933,"src":"09_whiter_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253933.html","width":130,"caption":"","height":93});
															thumbnails[5253934] = clik.newPhoto({"id":5253934,"src":"22_thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_5253934.html","width":130,"caption":"","height":163});
															thumbnails[5253935] = clik.newPhoto({"id":5253935,"src":"31a_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_5253935.html","width":130,"caption":"","height":77});
															thumbnails[5253936] = clik.newPhoto({"id":5253936,"src":"family_more_contrast_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_5253936.html","width":130,"caption":"","height":105});
															thumbnails[5253940] = clik.newPhoto({"id":5253940,"src":"jacob_06a_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_5253940.html","width":130,"caption":"","height":82});
															thumbnails[5253942] = clik.newPhoto({"id":5253942,"src":"Joe_2a_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253942.html","width":130,"caption":"","height":163});
															thumbnails[5253944] = clik.newPhoto({"id":5253944,"src":"lisa_and_hubby_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_5253944.html","width":130,"caption":"","height":154});
															thumbnails[5253952] = clik.newPhoto({"id":5253952,"src":"montage_2_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253952.html","width":130,"caption":"","height":87});
															thumbnails[5253953] = clik.newPhoto({"id":5253953,"src":"number_23_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253953.html","width":130,"caption":"","height":148});
															thumbnails[5253957] = clik.newPhoto({"id":5253957,"src":"Number_19_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_5253957.html","width":130,"caption":"","height":163});
															thumbnails[5757540] = clik.newPhoto({"id":5757540,"src":"original1for_site12_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5757540.html","width":130,"caption":"","height":178});
															thumbnails[5757554] = clik.newPhoto({"id":5757554,"src":"restored1for_site_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5757554.html","width":130,"caption":"","height":178});
															thumbnails[5757557] = clik.newPhoto({"id":5757557,"src":"original_2_for_site_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5757557.html","width":130,"caption":"","height":181});
															thumbnails[5757558] = clik.newPhoto({"id":5757558,"src":"restored__2for_site_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5757558.html","width":130,"caption":"","height":190});
															thumbnails[5773921] = clik.newPhoto({"id":5773921,"src":"Warren_1968_for_web_site_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5773921.html","width":130,"caption":"","height":168});
															thumbnails[5773924] = clik.newPhoto({"id":5773924,"src":"Warren_1968_restored_web_site_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5773924.html","width":130,"caption":"","height":167});
															thumbnails[5774007] = clik.newPhoto({"id":5774007,"src":"wedding_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5774007.html","width":130,"caption":"","height":98});
															thumbnails[5774009] = clik.newPhoto({"id":5774009,"src":"wedding_coloured_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_5774009.html","width":130,"caption":"","height":101});
															thumbnails[6301073] = clik.newPhoto({"id":6301073,"src":"01_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301073.html","width":130,"caption":"","height":87});
															thumbnails[6301075] = clik.newPhoto({"id":6301075,"src":"02_AD71BF0D-24E8-5EC4-4F7889C7CC188DC7_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301075.html","width":130,"caption":"","height":195});
															thumbnails[6301076] = clik.newPhoto({"id":6301076,"src":"03_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301076.html","width":130,"caption":"","height":74});
															thumbnails[6301078] = clik.newPhoto({"id":6301078,"src":"04_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301078.html","width":130,"caption":"","height":70});
															thumbnails[6301082] = clik.newPhoto({"id":6301082,"src":"05_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301082.html","width":130,"caption":"","height":87});
															thumbnails[6301083] = clik.newPhoto({"id":6301083,"src":"06_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301083.html","width":130,"caption":"","height":195});
															thumbnails[6301085] = clik.newPhoto({"id":6301085,"src":"07_AD746327-24E8-5EC4-4F602C78041C98C9_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301085.html","width":130,"caption":"","height":174});
															thumbnails[6301088] = clik.newPhoto({"id":6301088,"src":"08_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301088.html","width":130,"caption":"","height":163});
															thumbnails[6301090] = clik.newPhoto({"id":6301090,"src":"09_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301090.html","width":130,"caption":"","height":195});
															thumbnails[6301091] = clik.newPhoto({"id":6301091,"src":"10_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301091.html","width":130,"caption":"","height":193});
															thumbnails[6301092] = clik.newPhoto({"id":6301092,"src":"11_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301092.html","width":130,"caption":"","height":195});
															thumbnails[6301093] = clik.newPhoto({"id":6301093,"src":"12_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301093.html","width":130,"caption":"","height":193});
															thumbnails[6301094] = clik.newPhoto({"id":6301094,"src":"13_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301094.html","width":130,"caption":"","height":193});
															thumbnails[6301095] = clik.newPhoto({"id":6301095,"src":"14_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301095.html","width":130,"caption":"","height":67});
															thumbnails[6301096] = clik.newPhoto({"id":6301096,"src":"15_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301096.html","width":130,"caption":"","height":75});
															thumbnails[6301122] = clik.newPhoto({"id":6301122,"src":"16_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301122.html","width":130,"caption":"","height":82});
															thumbnails[6301165] = clik.newPhoto({"id":6301165,"src":"17_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301165.html","width":130,"caption":"","height":94});
															thumbnails[6301225] = clik.newPhoto({"id":6301225,"src":"18_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301225.html","width":130,"caption":"","height":188});
															thumbnails[6301227] = clik.newPhoto({"id":6301227,"src":"19_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301227.html","width":125,"caption":"","height":200});
															thumbnails[6301228] = clik.newPhoto({"id":6301228,"src":"20_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301228.html","width":130,"caption":"","height":179});
															thumbnails[6301229] = clik.newPhoto({"id":6301229,"src":"21_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301229.html","width":130,"caption":"","height":107});
															thumbnails[6301230] = clik.newPhoto({"id":6301230,"src":"22_AD78CF12-24E8-5EC4-4FCC79C0ED354D2B_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301230.html","width":130,"caption":"","height":163});
															thumbnails[6301232] = clik.newPhoto({"id":6301232,"src":"23_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301232.html","width":130,"caption":"","height":172});
															thumbnails[6301233] = clik.newPhoto({"id":6301233,"src":"24_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301233.html","width":130,"caption":"","height":79});
															thumbnails[6301236] = clik.newPhoto({"id":6301236,"src":"26_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301236.html","width":130,"caption":"","height":98});
															thumbnails[6301237] = clik.newPhoto({"id":6301237,"src":"27_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301237.html","width":127,"caption":"","height":200});
															thumbnails[6301238] = clik.newPhoto({"id":6301238,"src":"28_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301238.html","width":130,"caption":"","height":189});
															thumbnails[6301240] = clik.newPhoto({"id":6301240,"src":"30_thumb.jpg","galleries_id":349538,"server_id":5,"link":"photo_6301240.html","width":130,"caption":"","height":68});
															thumbnails[6367350] = clik.newPhoto({"id":6367350,"src":"Deb_website_03_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367350.html","width":130,"caption":"","height":172});
															thumbnails[6367352] = clik.newPhoto({"id":6367352,"src":"Deb_website_01_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367352.html","width":130,"caption":"","height":165});
															thumbnails[6367354] = clik.newPhoto({"id":6367354,"src":"Deb_website_02_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367354.html","width":130,"caption":"","height":170});
															thumbnails[6367357] = clik.newPhoto({"id":6367357,"src":"Deb_website_04_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367357.html","width":130,"caption":"","height":79});
															thumbnails[6367358] = clik.newPhoto({"id":6367358,"src":"Deb_website_05_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367358.html","width":130,"caption":"","height":182});
															thumbnails[6367360] = clik.newPhoto({"id":6367360,"src":"Deb_website_06_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367360.html","width":130,"caption":"","height":188});
															thumbnails[6367363] = clik.newPhoto({"id":6367363,"src":"deb_website_07_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367363.html","width":130,"caption":"","height":98});
															thumbnails[6367366] = clik.newPhoto({"id":6367366,"src":"deb_website_08_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367366.html","width":130,"caption":"","height":191});
															thumbnails[6367367] = clik.newPhoto({"id":6367367,"src":"deb_website_08a_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367367.html","width":130,"caption":"","height":192});
															thumbnails[6367369] = clik.newPhoto({"id":6367369,"src":"deb_website_09_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367369.html","width":130,"caption":"","height":173});
															thumbnails[6367371] = clik.newPhoto({"id":6367371,"src":"Deb_website_10_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367371.html","width":130,"caption":"","height":168});
															thumbnails[6367374] = clik.newPhoto({"id":6367374,"src":"Deb_website_11_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367374.html","width":130,"caption":"","height":184});
															thumbnails[6367377] = clik.newPhoto({"id":6367377,"src":"Deb_website_12_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367377.html","width":130,"caption":"","height":168});
															thumbnails[6367378] = clik.newPhoto({"id":6367378,"src":"Deb_website_13_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367378.html","width":130,"caption":"","height":195});
															thumbnails[6367381] = clik.newPhoto({"id":6367381,"src":"Deb_website_14_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367381.html","width":130,"caption":"","height":91});
															thumbnails[6367400] = clik.newPhoto({"id":6367400,"src":"Deb_website_15_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367400.html","width":130,"caption":"","height":87});
															thumbnails[6367421] = clik.newPhoto({"id":6367421,"src":"Deb_website_18_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367421.html","width":130,"caption":"","height":164});
															thumbnails[6367462] = clik.newPhoto({"id":6367462,"src":"Deb_website_19_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6367462.html","width":130,"caption":"","height":95});
															thumbnails[6693871] = clik.newPhoto({"id":6693871,"src":"donna_and_neil_01_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6693871.html","width":130,"caption":"","height":182});
															thumbnails[6693976] = clik.newPhoto({"id":6693976,"src":"donna_and_neil_02_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6693976.html","width":130,"caption":"","height":192});
															thumbnails[6693977] = clik.newPhoto({"id":6693977,"src":"donna_and_neil_03_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6693977.html","width":130,"caption":"","height":163});
															thumbnails[6781637] = clik.newPhoto({"id":6781637,"src":"donna_and_neil_04_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781637.html","width":130,"caption":"","height":182});
															thumbnails[6781663] = clik.newPhoto({"id":6781663,"src":"donna_and_neil_05_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781663.html","width":130,"caption":"","height":182});
															thumbnails[6781667] = clik.newPhoto({"id":6781667,"src":"donna_and_neil_06_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781667.html","width":130,"caption":"","height":182});
															thumbnails[6781670] = clik.newPhoto({"id":6781670,"src":"donna_and_neil_07_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781670.html","width":130,"caption":"","height":196});
															thumbnails[6781673] = clik.newPhoto({"id":6781673,"src":"donna_and_neil_08_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781673.html","width":130,"caption":"","height":94});
															thumbnails[6781676] = clik.newPhoto({"id":6781676,"src":"donna_and_neil_09_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781676.html","width":130,"caption":"","height":83});
															thumbnails[6781679] = clik.newPhoto({"id":6781679,"src":"donna_and_neil_10_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781679.html","width":130,"caption":"","height":98});
															thumbnails[6781726] = clik.newPhoto({"id":6781726,"src":"donna_and_neil_11_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781726.html","width":130,"caption":"","height":182});
															thumbnails[6781730] = clik.newPhoto({"id":6781730,"src":"donna_and_neil_12_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781730.html","width":130,"caption":"","height":164});
															thumbnails[6781777] = clik.newPhoto({"id":6781777,"src":"donna_and_neil_13_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781777.html","width":101,"caption":"","height":200});
															thumbnails[6781798] = clik.newPhoto({"id":6781798,"src":"donna_and_neil_14_thumb.jpg","galleries_id":365535,"server_id":5,"link":"photo_6781798.html","width":130,"caption":"","height":88});
															thumbnails[6783554] = clik.newPhoto({"id":6783554,"src":"Deb_website_20_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6783554.html","width":130,"caption":"","height":95});
															thumbnails[6786282] = clik.newPhoto({"id":6786282,"src":"deb_wed_thumb.jpg","galleries_id":352502,"server_id":5,"link":"photo_6786282.html","width":130,"caption":"","height":180});
															thumbnails[6863142] = clik.newPhoto({"id":6863142,"src":"iesha2_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_6863142.html","width":130,"caption":"","height":179});
															thumbnails[7286233] = clik.newPhoto({"id":7286233,"src":"Caseyweb_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7286233.html","width":130,"caption":"","height":173});
															thumbnails[7286245] = clik.newPhoto({"id":7286245,"src":"003_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7286245.html","width":130,"caption":"","height":87});
															thumbnails[7286255] = clik.newPhoto({"id":7286255,"src":"006_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7286255.html","width":130,"caption":"","height":86});
															thumbnails[7286259] = clik.newPhoto({"id":7286259,"src":"008_thumb.jpg","galleries_id":171075,"server_id":5,"link":"photo_7286259.html","width":130,"caption":"","height":163});
															thumbnails[7286263] = clik.newPhoto({"id":7286263,"src":"009_thumb.jpg","galleries_id":170167,"server_id":5,"link":"photo_7286263.html","width":130,"caption":"","height":87});
															thumbnails[7286268] = clik.newPhoto({"id":7286268,"src":"ruby_1a_thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_7286268.html","width":130,"caption":"","height":195});
															thumbnails[7286271] = clik.newPhoto({"id":7286271,"src":"wilson_thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_7286271.html","width":130,"caption":"","height":195});
															thumbnails[7286278] = clik.newPhoto({"id":7286278,"src":"Shandy_sn__thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_7286278.html","width":130,"caption":"","height":177});
															thumbnails[7286284] = clik.newPhoto({"id":7286284,"src":"001a_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7286284.html","width":130,"caption":"","height":87});
															thumbnails[7286287] = clik.newPhoto({"id":7286287,"src":"002_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7286287.html","width":130,"caption":"","height":173});
															thumbnails[7286374] = clik.newPhoto({"id":7286374,"src":"Jordan_01_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286374.html","width":130,"caption":"Jordan Madani","height":86});
															thumbnails[7286381] = clik.newPhoto({"id":7286381,"src":"Jordan_02_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286381.html","width":130,"caption":"Jordan Madani","height":86});
															thumbnails[7286382] = clik.newPhoto({"id":7286382,"src":"Jordan03_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286382.html","width":130,"caption":"Jordan Madani","height":198});
															thumbnails[7286386] = clik.newPhoto({"id":7286386,"src":"Jordan_04_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286386.html","width":130,"caption":"Jordan Madani","height":182});
															thumbnails[7286389] = clik.newPhoto({"id":7286389,"src":"Jordan_05_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286389.html","width":130,"caption":"Jordan Madani","height":86});
															thumbnails[7286392] = clik.newPhoto({"id":7286392,"src":"Jordan_06jpg_thumb.jpg","galleries_id":170834,"server_id":5,"link":"photo_7286392.html","width":130,"caption":"Jordan Madani","height":196});
															thumbnails[7476461] = clik.newPhoto({"id":7476461,"src":"boxerweb__thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_7476461.html","width":130,"caption":"","height":176});
															thumbnails[7476466] = clik.newPhoto({"id":7476466,"src":"Bugsyweb_thumb.jpg","galleries_id":171297,"server_id":5,"link":"photo_7476466.html","width":130,"caption":"","height":168});
															thumbnails[7596771] = clik.newPhoto({"id":7596771,"src":"Ella_03clik_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7596771.html","width":130,"caption":"","height":101});
															thumbnails[7596779] = clik.newPhoto({"id":7596779,"src":"Ella_01clik_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7596779.html","width":130,"caption":"","height":169});
															thumbnails[7596781] = clik.newPhoto({"id":7596781,"src":"Ella_04clik_thumb.jpg","galleries_id":170166,"server_id":5,"link":"photo_7596781.html","width":130,"caption":"","height":169});
															thumbnails[7597005] = clik.newPhoto({"id":7597005,"src":"vanessa_hat_01web_thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597005.html","width":130,"caption":"","height":103});
															thumbnails[7597007] = clik.newPhoto({"id":7597007,"src":"vanessa_web_thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597007.html","width":130,"caption":"","height":87});
															thumbnails[7597013] = clik.newPhoto({"id":7597013,"src":"vanessa_04web_thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597013.html","width":130,"caption":"","height":188});
															thumbnails[7597015] = clik.newPhoto({"id":7597015,"src":"Vanessa__thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597015.html","width":130,"caption":"","height":195});
															thumbnails[7597024] = clik.newPhoto({"id":7597024,"src":"beckiegarden_thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597024.html","width":130,"caption":"","height":110});
															thumbnails[7597025] = clik.newPhoto({"id":7597025,"src":"becky_black_web_thumb.jpg","galleries_id":412021,"server_id":5,"link":"photo_7597025.html","width":130,"caption":"","height":111});
															thumbnails[8437528] = clik.newPhoto({"id":8437528,"src":"claireandmartin01_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437528.html","width":130,"caption":"","height":173});
															thumbnails[8437529] = clik.newPhoto({"id":8437529,"src":"claireandmartin02_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437529.html","width":130,"caption":"","height":86});
															thumbnails[8437531] = clik.newPhoto({"id":8437531,"src":"claireandmartin03_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437531.html","width":130,"caption":"","height":173});
															thumbnails[8437533] = clik.newPhoto({"id":8437533,"src":"claireandmartin04_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437533.html","width":130,"caption":"","height":87});
															thumbnails[8437543] = clik.newPhoto({"id":8437543,"src":"claireandmartin051_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437543.html","width":130,"caption":"","height":56});
															thumbnails[8437546] = clik.newPhoto({"id":8437546,"src":"claireandmartin06_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437546.html","width":130,"caption":"","height":64});
															thumbnails[8437550] = clik.newPhoto({"id":8437550,"src":"claireandmartin07_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437550.html","width":130,"caption":"","height":173});
															thumbnails[8437551] = clik.newPhoto({"id":8437551,"src":"claireandmartin08_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437551.html","width":130,"caption":"","height":173});
															thumbnails[8437553] = clik.newPhoto({"id":8437553,"src":"claireandmartin09_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437553.html","width":130,"caption":"","height":59});
															thumbnails[8437556] = clik.newPhoto({"id":8437556,"src":"claireandmartin10_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437556.html","width":130,"caption":"","height":122});
															thumbnails[8437557] = clik.newPhoto({"id":8437557,"src":"claireandmartin11_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437557.html","width":130,"caption":"","height":93});
															thumbnails[8437558] = clik.newPhoto({"id":8437558,"src":"claireandmartin13_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437558.html","width":130,"caption":"","height":83});
															thumbnails[8437586] = clik.newPhoto({"id":8437586,"src":"claireandmartin14_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437586.html","width":130,"caption":"","height":98});
															thumbnails[8437587] = clik.newPhoto({"id":8437587,"src":"claireandmartin15_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437587.html","width":95,"caption":"","height":200});
															thumbnails[8437590] = clik.newPhoto({"id":8437590,"src":"claireandmartin16_thumb.jpg","galleries_id":446706,"server_id":5,"link":"photo_8437590.html","width":130,"caption":"","height":86});
															thumbnails[8437666] = clik.newPhoto({"id":8437666,"src":"Wedding_Picture_1original_web_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_8437666.html","width":130,"caption":"","height":74});
															thumbnails[8437683] = clik.newPhoto({"id":8437683,"src":"full_Wedding_Picture__web_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_8437683.html","width":130,"caption":"","height":79});
															thumbnails[8437691] = clik.newPhoto({"id":8437691,"src":"restore_01_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_8437691.html","width":130,"caption":"","height":96});
															thumbnails[8437693] = clik.newPhoto({"id":8437693,"src":"restored_02_thumb.jpg","galleries_id":326218,"server_id":5,"link":"photo_8437693.html","width":130,"caption":"","height":182});
															thumbnails[9094139] = clik.newPhoto({"id":9094139,"src":"23_1_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094139.html","width":130,"caption":"","height":111});
															thumbnails[9094144] = clik.newPhoto({"id":9094144,"src":"19web_1_thumb.jpg","galleries_id":170166,"server_id":35,"link":"photo_9094144.html","width":130,"caption":"","height":105});
															thumbnails[9094149] = clik.newPhoto({"id":9094149,"src":"13_1_thumb.jpg","galleries_id":170167,"server_id":35,"link":"photo_9094149.html","width":130,"caption":"","height":93});
															thumbnails[9094161] = clik.newPhoto({"id":9094161,"src":"family_14_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094161.html","width":130,"caption":"","height":173});
															thumbnails[9094167] = clik.newPhoto({"id":9094167,"src":"family_13_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094167.html","width":130,"caption":"","height":98});
															thumbnails[9094184] = clik.newPhoto({"id":9094184,"src":"Missy_3_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094184.html","width":130,"caption":"","height":98});
															thumbnails[9094191] = clik.newPhoto({"id":9094191,"src":"laura_and_ruby_18_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094191.html","width":130,"caption":"","height":98});
															thumbnails[9094194] = clik.newPhoto({"id":9094194,"src":"laura_and_ruby_22_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094194.html","width":130,"caption":"","height":196});
															thumbnails[9094198] = clik.newPhoto({"id":9094198,"src":"laura_1_thumb.jpg","galleries_id":171075,"server_id":35,"link":"photo_9094198.html","width":130,"caption":"","height":98});
															thumbnails[9094254] = clik.newPhoto({"id":9094254,"src":"On_the_Beach_web2_1_thumb.jpg","galleries_id":479892,"server_id":35,"link":"photo_9094254.html","width":130,"caption":"ON THE BEACH","height":105});
															thumbnails[9094396] = clik.newPhoto({"id":9094396,"src":"Ferry_across_the_mersey_at_dusk_web_1_thumb.jpg","galleries_id":479892,"server_id":35,"link":"photo_9094396.html","width":130,"caption":"","height":83});
															thumbnails[9094175] = clik.newPhoto({"id":9094175,"src":"evie_09web_1_thumb.jpg","galleries_id":170166,"server_id":35,"link":"photo_9094175.html","width":130,"caption":"","height":99});
															thumbnails[9094171] = clik.newPhoto({"id":9094171,"src":"evie_8_thumb.jpg","galleries_id":170166,"server_id":35,"link":"photo_9094171.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[221021] = clik.newGallery({"parentGallery":221020,"usePopups":true,"title":"CHARITY BALL AT THE BELLINGHAM HOTEL WIGAN ","link":"gallery_221021.html","maxRecords":0.0,"photoIDs":[3614178.0,3614180.0,3614187.0,3614230.0,3614232.0,3618900.0,3618921.0,3618948.0,3618986.0,3619011.0,3619028.0],"skipIndex":0,"section_code":"gallery","featured_images":"3619028,3619011,3618986,3618948,3618921,3618900,3614232,3614230,3614187,3614180","id":221021,"singleSection":false});				  						galleries[245299] = clik.newGallery({"parentGallery":221020,"usePopups":true,"title":"CHERRYBROOK FOOTBALL PRESENTATION DAY","link":"gallery_245299.html","maxRecords":0.0,"photoIDs":[4080879.0,4105119.0,4105146.0],"skipIndex":0,"section_code":"gallery","featured_images":"4105146,4105119,4080879","id":245299,"singleSection":false});				  						galleries[446706] = clik.newGallery({"parentGallery":349537,"usePopups":true,"title":"CLAIRE AND MARTINS WEDDING","link":"gallery_446706.html","maxRecords":0.0,"photoIDs":[8437528.0,8437529.0,8437531.0,8437533.0,8437543.0,8437546.0,8437550.0,8437551.0,8437553.0,8437556.0,8437557.0,8437558.0,8437586.0,8437587.0,8437590.0],"skipIndex":0,"section_code":"gallery","featured_images":"8437590,8437587,8437586,8437558,8437557,8437556,8437553,8437551,8437550,8437546","id":446706,"singleSection":false});				  						galleries[352502] = clik.newGallery({"parentGallery":349537,"usePopups":true,"title":"DEBBIE AND JOHNS WEDDING","link":"gallery_352502.html","maxRecords":0.0,"photoIDs":[6367350.0,6367352.0,6367354.0,6367357.0,6367358.0,6367360.0,6367363.0,6367366.0,6367367.0,6367369.0,6367371.0,6367374.0,6367377.0,6367378.0,6367381.0,6367400.0,6367421.0,6367462.0,6783554.0,6786282.0],"skipIndex":0,"section_code":"gallery","featured_images":6367350.0,"id":352502,"singleSection":false});				  						galleries[365535] = clik.newGallery({"parentGallery":349537,"usePopups":true,"title":"DONNA AND NEIL'S WEDDING","link":"gallery_365535.html","maxRecords":0.0,"photoIDs":[6693871.0,6693976.0,6693977.0,6781637.0,6781663.0,6781667.0,6781670.0,6781673.0,6781676.0,6781679.0,6781726.0,6781730.0,6781777.0,6781798.0],"skipIndex":0,"section_code":"gallery","featured_images":6693871.0,"id":365535,"singleSection":false});				  						galleries[479892] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Images for sale ( currently being updated )","link":"gallery_479892.html","maxRecords":0.0,"photoIDs":[9094254.0,9094396.0],"skipIndex":0,"section_code":"gallery","featured_images":"9094396,9094254","id":479892,"singleSection":false});				  						galleries[349538] = clik.newGallery({"parentGallery":349537,"usePopups":true,"title":"KRIS AND GILLIANS WEDDING","link":"gallery_349538.html","maxRecords":0.0,"photoIDs":[6301073.0,6301075.0,6301076.0,6301078.0,6301082.0,6301083.0,6301085.0,6301088.0,6301090.0,6301091.0,6301092.0,6301093.0,6301094.0,6301095.0,6301096.0,6301122.0,6301165.0,6301225.0,6301227.0,6301228.0,6301229.0,6301230.0,6301232.0,6301233.0,6301236.0,6301237.0,6301238.0,6301240.0],"skipIndex":0,"section_code":"gallery","featured_images":6301240.0,"id":349538,"singleSection":false});				  						galleries[412021] = clik.newGallery({"parentGallery":171054,"usePopups":true,"title":"PHOTO SHOOTS","link":"gallery_412021.html","maxRecords":0.0,"photoIDs":[7597005.0,7597007.0,7597013.0,7597015.0,7597024.0,7597025.0],"skipIndex":0,"section_code":"gallery","featured_images":"7597025,7597024,7597005","id":412021,"singleSection":false});				  						galleries[170166] = clik.newGallery({"parentGallery":171054,"usePopups":true,"title":"CHILDREN","link":"gallery_170166.html","maxRecords":0.0,"photoIDs":[2698516.0,2710125.0,2928750.0,3221306.0,3221959.0,3378565.0,5253935.0,5253940.0,6863142.0,7286233.0,7286245.0,7286255.0,7286284.0,7286287.0,7596771.0,7596779.0,7596781.0,9094144.0,9094175.0,9094171.0],"skipIndex":0,"section_code":"gallery","featured_images":"7596779,7596771","id":170166,"singleSection":false});				  						galleries[170167] = clik.newGallery({"parentGallery":171054,"usePopups":true,"title":"YOUNG PEOPLE","link":"gallery_170167.html","maxRecords":0.0,"photoIDs":[2753491.0,2753493.0,2787220.0,3378579.0,3576547.0,3581032.0,3581037.0,4517988.0,4517993.0,5253925.0,5253930.0,5253933.0,5253942.0,5253952.0,5253953.0,5253957.0,7286263.0,9094149.0],"skipIndex":0,"section_code":"gallery","featured_images":"9094149,7286263,5253957,5253953,5253952,5253942,5253933,5253930,5253925,4517993","id":170167,"singleSection":false});				  						galleries[171075] = clik.newGallery({"parentGallery":171054,"usePopups":true,"title":"FAMILIES","link":"gallery_171075.html","maxRecords":0.0,"photoIDs":[2753517.0,3161738.0,3221307.0,3519429.0,3576507.0,3576510.0,3576514.0,5253931.0,5253936.0,5253944.0,7286259.0,9094139.0,9094161.0,9094167.0,9094184.0,9094191.0,9094194.0,9094198.0],"skipIndex":0,"section_code":"gallery","featured_images":"9094198,9094194,9094191,9094184,9094167,9094161,9094139,7286259,5253944,5253936","id":171075,"singleSection":false});				  						galleries[171297] = clik.newGallery({"parentGallery":171054,"usePopups":true,"title":"PETS","link":"gallery_171297.html","maxRecords":0.0,"photoIDs":[5253934.0,7286268.0,7286271.0,7286278.0,7476461.0,7476466.0],"skipIndex":0,"section_code":"gallery","featured_images":"7476466,7476461,7286278,7286271,7286268,5253934","id":171297,"singleSection":false});				  						galleries[171054] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"PORTRAITS","link":"gallery_171054.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7597025,7597024,7597005,7596779,7596771","id":171054,"singleSection":false});				  						galleries[349537] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"WEDDINGS","link":"gallery_349537.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6693871,6367350,6301240","id":349537,"singleSection":false});				  						galleries[221020] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"EVENTS ...","link":"gallery_221020.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4105146,4105119,4080879,3619028,3619011,3618986,3618948,3618921,3618900,3614232","id":221020,"singleSection":false});				  						galleries[170834] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"BAND PROMOTION","link":"gallery_170834.html","maxRecords":0.0,"photoIDs":[4792698.0,4792700.0,4792702.0,4792704.0,4792745.0,4792747.0,4792749.0,4792750.0,4792753.0,4792755.0,4792756.0,4792758.0,4792760.0,4792767.0,7286374.0,7286381.0,7286382.0,7286386.0,7286389.0,7286392.0],"skipIndex":0,"section_code":"gallery","featured_images":"7286392,7286389,7286386,7286382,7286381,7286374,4792767,4792760,4792758,4792756","id":170834,"singleSection":false});				  						galleries[326218] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"PHOTO RESTORATION","link":"gallery_326218.html","maxRecords":0.0,"photoIDs":[5757540.0,5757554.0,5757557.0,5757558.0,5773921.0,5773924.0,5774007.0,5774009.0,8437666.0,8437683.0,8437691.0,8437693.0],"skipIndex":0,"section_code":"gallery","featured_images":"8437693,8437691,8437683,8437666,5774009,5774007,5773924,5773921,5757558,5757557","id":326218,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7597025,7597007,7597005,7596771,7286268,5253942,5253940,4792747,4517993,4080879,3378565,2710125,2698516';
imageSets[2] = '7597025,7597024,7597005,7596779,7596771,6693871,6367350,6301240';
imageSets[3] = '9094396,9094254,9094198,9094194,9094191,9094184,9094175,9094171,9094167,9094161,9094149,9094144,9094139,8437693,8437691,8437683,8437666,8437590,8437587,8437586,8437558,8437557,8437556,8437553,8437551,8437550,8437546,8437543,8437533,8437531,8437529,8437528,7597025,7597024,7597015,7597013,7597007,7597005,7596781,7596779,7596771,7476466,7476461,7286392,7286389,7286386,7286382,7286381,7286374,7286287';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/PAULSHERRIFF/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/PAULSHERRIFF/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 = 'RUBY 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="paulsherriff@blueyonder.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="paulsherriff@blueyonder.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

