window.thumbnails = {};
															thumbnails[2092371] = clik.newPhoto({"id":2092371,"src":"bourton_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2092371.html","width":130,"caption":"A Winter Morning at Bourton in the Water","height":86});
															thumbnails[2092500] = clik.newPhoto({"id":2092500,"src":"snow_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2092500.html","width":130,"caption":"Snow by the River Windrush","height":87});
															thumbnails[2093706] = clik.newPhoto({"id":2093706,"src":"bridge_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2093706.html","width":130,"caption":"Winter Bridge","height":87});
															thumbnails[2098192] = clik.newPhoto({"id":2098192,"src":"beach in the evening_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2098192.html","width":130,"caption":"Beach in the evening","height":93});
															thumbnails[2098221] = clik.newPhoto({"id":2098221,"src":"breakwater_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2098221.html","width":130,"caption":"Breakwater","height":81});
															thumbnails[2098222] = clik.newPhoto({"id":2098222,"src":"buckets on the beach_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2098222.html","width":130,"caption":"Buckets on the Beach","height":93});
															thumbnails[2098223] = clik.newPhoto({"id":2098223,"src":"florac_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2098223.html","width":130,"caption":"Florac","height":83});
															thumbnails[2099605] = clik.newPhoto({"id":2099605,"src":"swan_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_2099605.html","width":87,"caption":"Mute Swan","height":130});
															thumbnails[2099606] = clik.newPhoto({"id":2099606,"src":"robin_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_2099606.html","width":130,"caption":"Robin","height":93});
															thumbnails[2099611] = clik.newPhoto({"id":2099611,"src":"alligator1_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_2099611.html","width":130,"caption":"American Alligator","height":98});
															thumbnails[2101519] = clik.newPhoto({"id":2101519,"src":"lake_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2101519.html","width":130,"caption":"Kedleston Lake","height":87});
															thumbnails[2101527] = clik.newPhoto({"id":2101527,"src":"oldjohn_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2101527.html","width":99,"caption":"Old John","height":130});
															thumbnails[2102023] = clik.newPhoto({"id":2102023,"src":"ring_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_2102023.html","width":130,"caption":"","height":87});
															thumbnails[2185026] = clik.newPhoto({"id":2185026,"src":"2490484110_c58937f5fa_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_2185026.html","width":130,"caption":"Turnstone","height":95});
															thumbnails[2408024] = clik.newPhoto({"id":2408024,"src":"resized_Kiss For Tommy on VE 18x12Day1_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_2408024.html","width":130,"caption":"","height":87});
															thumbnails[2570260] = clik.newPhoto({"id":2570260,"src":"2732419213_8deb5785e9_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_2570260.html","width":87,"caption":"","height":130});
															thumbnails[3517784] = clik.newPhoto({"id":3517784,"src":"3316575814_f54facd99b_b_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_3517784.html","width":130,"caption":"","height":120});
															thumbnails[3645614] = clik.newPhoto({"id":3645614,"src":"kate1_thumb.jpg","galleries_id":222891,"server_id":32,"link":"photo_3645614.html","width":130,"caption":"","height":95});
															thumbnails[3645649] = clik.newPhoto({"id":3645649,"src":"kate2_thumb.jpg","galleries_id":222891,"server_id":32,"link":"photo_3645649.html","width":78,"caption":"","height":130});
															thumbnails[3645674] = clik.newPhoto({"id":3645674,"src":"kate7_thumb.jpg","galleries_id":222891,"server_id":32,"link":"photo_3645674.html","width":87,"caption":"","height":130});
															thumbnails[3645815] = clik.newPhoto({"id":3645815,"src":"kate11_thumb.jpg","galleries_id":222891,"server_id":32,"link":"photo_3645815.html","width":97,"caption":"","height":130});
															thumbnails[3828051] = clik.newPhoto({"id":3828051,"src":"3494747586_d63959e540_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_3828051.html","width":130,"caption":"","height":88});
															thumbnails[3945245] = clik.newPhoto({"id":3945245,"src":"DSC_8601_Large_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3945245.html","width":97,"caption":"","height":130});
															thumbnails[4095364] = clik.newPhoto({"id":4095364,"src":"3614144465_0b89026f20_thumb.jpg","galleries_id":245725,"server_id":32,"link":"photo_4095364.html","width":130,"caption":"","height":173});
															thumbnails[4424194] = clik.newPhoto({"id":4424194,"src":"girlfilm_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_4424194.html","width":130,"caption":"","height":87});
															thumbnails[4424250] = clik.newPhoto({"id":4424250,"src":"Girl_on_Film_2_Medium1_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4424250.html","width":130,"caption":"","height":91});
															thumbnails[4424256] = clik.newPhoto({"id":4424256,"src":"Girl_on_Film_8_Medium_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4424256.html","width":130,"caption":"","height":106});
															thumbnails[4424316] = clik.newPhoto({"id":4424316,"src":"top_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4424316.html","width":130,"caption":"","height":115});
															thumbnails[4793271] = clik.newPhoto({"id":4793271,"src":"Fallow_deer_Medium_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_4793271.html","width":130,"caption":"Fallow Deer","height":186});
															thumbnails[4793276] = clik.newPhoto({"id":4793276,"src":"All_aboard_the_Dream_Express_Medium_thumb.jpg","galleries_id":245725,"server_id":32,"link":"photo_4793276.html","width":130,"caption":"","height":194});
															thumbnails[4793277] = clik.newPhoto({"id":4793277,"src":"DSC_0668pp_Medium_thumb.jpg","galleries_id":245725,"server_id":32,"link":"photo_4793277.html","width":130,"caption":"","height":90});
															thumbnails[4793280] = clik.newPhoto({"id":4793280,"src":"Lauren_on_location_at_Ruddington-fd0009_Medium_thumb.jpg","galleries_id":245725,"server_id":32,"link":"photo_4793280.html","width":130,"caption":"","height":83});
															thumbnails[4915787] = clik.newPhoto({"id":4915787,"src":"DSC_0104_Medium_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4915787.html","width":130,"caption":"","height":114});
															thumbnails[4917212] = clik.newPhoto({"id":4917212,"src":"DSC_0176_Medium_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4917212.html","width":130,"caption":"","height":175});
															thumbnails[4917280] = clik.newPhoto({"id":4917280,"src":"DSC_0193_Medium1_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_4917280.html","width":130,"caption":"","height":92});
															thumbnails[4928118] = clik.newPhoto({"id":4928118,"src":"DSC_1927_Medium_2_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_4928118.html","width":130,"caption":"","height":92});
															thumbnails[5127352] = clik.newPhoto({"id":5127352,"src":"_DSC1671_Medium_thumb.jpg","galleries_id":289809,"server_id":32,"link":"photo_5127352.html","width":130,"caption":"","height":96});
															thumbnails[5127364] = clik.newPhoto({"id":5127364,"src":"_DSC1719_ppoverlay_Medium_thumb.jpg","galleries_id":289809,"server_id":32,"link":"photo_5127364.html","width":130,"caption":"","height":129});
															thumbnails[5127366] = clik.newPhoto({"id":5127366,"src":"_DSC1715_Medium_thumb.jpg","galleries_id":289809,"server_id":32,"link":"photo_5127366.html","width":130,"caption":"","height":86});
															thumbnails[5127367] = clik.newPhoto({"id":5127367,"src":"the_call_pp_Medium_thumb.jpg","galleries_id":289809,"server_id":32,"link":"photo_5127367.html","width":130,"caption":"","height":89});
															thumbnails[5180026] = clik.newPhoto({"id":5180026,"src":"Grandad_Medium_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_5180026.html","width":130,"caption":"","height":112});
															thumbnails[5180127] = clik.newPhoto({"id":5180127,"src":"_DSC1995_Medium_thumb.jpg","galleries_id":292547,"server_id":32,"link":"photo_5180127.html","width":130,"caption":"","height":171});
															thumbnails[5180148] = clik.newPhoto({"id":5180148,"src":"_DSC2125_pp_Medium_thumb.jpg","galleries_id":292551,"server_id":32,"link":"photo_5180148.html","width":130,"caption":"","height":85});
															thumbnails[5180219] = clik.newPhoto({"id":5180219,"src":"_DSC2011_Medium_thumb.jpg","galleries_id":292547,"server_id":32,"link":"photo_5180219.html","width":130,"caption":"","height":86});
															thumbnails[5180231] = clik.newPhoto({"id":5180231,"src":"_DSC2009_Medium_thumb.jpg","galleries_id":292547,"server_id":32,"link":"photo_5180231.html","width":130,"caption":"","height":183});
															thumbnails[5180253] = clik.newPhoto({"id":5180253,"src":"_DSC2122_Medium_thumb.jpg","galleries_id":292551,"server_id":32,"link":"photo_5180253.html","width":130,"caption":"","height":180});
															thumbnails[5180264] = clik.newPhoto({"id":5180264,"src":"_DSC2127_Medium_thumb.jpg","galleries_id":292551,"server_id":32,"link":"photo_5180264.html","width":130,"caption":"","height":189});
															thumbnails[5180324] = clik.newPhoto({"id":5180324,"src":"_DSC2143MIXA_Medium_thumb.jpg","galleries_id":292551,"server_id":32,"link":"photo_5180324.html","width":130,"caption":"","height":89});
															thumbnails[5180329] = clik.newPhoto({"id":5180329,"src":"_DSC2148MIXACLOSE_Medium_thumb.jpg","galleries_id":292551,"server_id":32,"link":"photo_5180329.html","width":130,"caption":"","height":102});
															thumbnails[5191438] = clik.newPhoto({"id":5191438,"src":"Urban_Attitude-fd0009_Medium_thumb.jpg","galleries_id":238456,"server_id":32,"link":"photo_5191438.html","width":130,"caption":"","height":180});
															thumbnails[5218278] = clik.newPhoto({"id":5218278,"src":"_DSC0952_Medium_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_5218278.html","width":130,"caption":"A Norfolk Evening","height":179});
															thumbnails[5218280] = clik.newPhoto({"id":5218280,"src":"_DSC0934_Medium_thumb.jpg","galleries_id":139595,"server_id":32,"link":"photo_5218280.html","width":130,"caption":"Grey Seal","height":68});
															thumbnails[5218284] = clik.newPhoto({"id":5218284,"src":"clumberbridgetonemapped_Medium_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_5218284.html","width":130,"caption":"Clumber Bridge","height":88});
															thumbnails[5259051] = clik.newPhoto({"id":5259051,"src":"_DSC2783_pp_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5259051.html","width":130,"caption":"","height":86});
															thumbnails[5259053] = clik.newPhoto({"id":5259053,"src":"_DSC2738_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5259053.html","width":130,"caption":"","height":86});
															thumbnails[5259054] = clik.newPhoto({"id":5259054,"src":"_DSC2687a_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5259054.html","width":130,"caption":"","height":77});
															thumbnails[5259055] = clik.newPhoto({"id":5259055,"src":"_DSC2753_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5259055.html","width":130,"caption":"","height":86});
															thumbnails[5259057] = clik.newPhoto({"id":5259057,"src":"_DSC2813_pp_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5259057.html","width":130,"caption":"","height":97});
															thumbnails[5259069] = clik.newPhoto({"id":5259069,"src":"_DSC2517_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259069.html","width":130,"caption":"","height":196});
															thumbnails[5259071] = clik.newPhoto({"id":5259071,"src":"_DSC2537_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259071.html","width":130,"caption":"","height":153});
															thumbnails[5259072] = clik.newPhoto({"id":5259072,"src":"_DSC2622_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259072.html","width":130,"caption":"","height":91});
															thumbnails[5259073] = clik.newPhoto({"id":5259073,"src":"_DSC2615a_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259073.html","width":130,"caption":"","height":127});
															thumbnails[5259074] = clik.newPhoto({"id":5259074,"src":"_DSC2595_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259074.html","width":130,"caption":"","height":141});
															thumbnails[5259075] = clik.newPhoto({"id":5259075,"src":"_DSC2561_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259075.html","width":130,"caption":"","height":107});
															thumbnails[5259114] = clik.newPhoto({"id":5259114,"src":"_DSC2554_pp_Medium_thumb.jpg","galleries_id":296105,"server_id":32,"link":"photo_5259114.html","width":130,"caption":"","height":100});
															thumbnails[5275427] = clik.newPhoto({"id":5275427,"src":"_DSC2663_Medium_thumb.jpg","galleries_id":296106,"server_id":32,"link":"photo_5275427.html","width":130,"caption":"","height":123});
															thumbnails[5275451] = clik.newPhoto({"id":5275451,"src":"_DSC2198_Medium_thumb.jpg","galleries_id":258041,"server_id":32,"link":"photo_5275451.html","width":130,"caption":"","height":170});
															thumbnails[5433357] = clik.newPhoto({"id":5433357,"src":"lowres_1_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433357.html","width":130,"caption":"","height":99});
															thumbnails[5433360] = clik.newPhoto({"id":5433360,"src":"lowres_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433360.html","width":130,"caption":"","height":167});
															thumbnails[5433361] = clik.newPhoto({"id":5433361,"src":"lowres_7_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433361.html","width":130,"caption":"","height":196});
															thumbnails[5433372] = clik.newPhoto({"id":5433372,"src":"lowres_8_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433372.html","width":130,"caption":"","height":85});
															thumbnails[5433374] = clik.newPhoto({"id":5433374,"src":"lowres_9_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433374.html","width":130,"caption":"","height":207});
															thumbnails[5433378] = clik.newPhoto({"id":5433378,"src":"lowres_10_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433378.html","width":130,"caption":"","height":226});
															thumbnails[5433380] = clik.newPhoto({"id":5433380,"src":"lowres_11_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433380.html","width":130,"caption":"","height":196});
															thumbnails[5433382] = clik.newPhoto({"id":5433382,"src":"lowres_13_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433382.html","width":130,"caption":"","height":119});
															thumbnails[5433383] = clik.newPhoto({"id":5433383,"src":"lowres_14_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5433383.html","width":130,"caption":"","height":173});
															thumbnails[5433391] = clik.newPhoto({"id":5433391,"src":"lowres_2_thumb.jpg","galleries_id":307083,"server_id":32,"link":"photo_5433391.html","width":130,"caption":"","height":163});
															thumbnails[5433395] = clik.newPhoto({"id":5433395,"src":"lowres_5_thumb.jpg","galleries_id":307083,"server_id":32,"link":"photo_5433395.html","width":130,"caption":"","height":101});
															thumbnails[5433400] = clik.newPhoto({"id":5433400,"src":"lowres_91_thumb.jpg","galleries_id":307083,"server_id":32,"link":"photo_5433400.html","width":130,"caption":"","height":157});
															thumbnails[5433403] = clik.newPhoto({"id":5433403,"src":"lowres_101_thumb.jpg","galleries_id":307083,"server_id":32,"link":"photo_5433403.html","width":130,"caption":"","height":94});
															thumbnails[5433407] = clik.newPhoto({"id":5433407,"src":"lowres_111_thumb.jpg","galleries_id":307083,"server_id":32,"link":"photo_5433407.html","width":130,"caption":"","height":107});
															thumbnails[5520324] = clik.newPhoto({"id":5520324,"src":"_DSC4172_pp_Large_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5520324.html","width":130,"caption":"","height":137});
															thumbnails[5520326] = clik.newPhoto({"id":5520326,"src":"_DSC4145_Large_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5520326.html","width":130,"caption":"","height":94});
															thumbnails[5520334] = clik.newPhoto({"id":5520334,"src":"_DSC4052_pp_Large_thumb.jpg","galleries_id":307082,"server_id":32,"link":"photo_5520334.html","width":130,"caption":"","height":177});
															thumbnails[5520344] = clik.newPhoto({"id":5520344,"src":"_DSC3733_pp_Large_thumb.jpg","galleries_id":312680,"server_id":32,"link":"photo_5520344.html","width":130,"caption":"","height":108});
															thumbnails[5520348] = clik.newPhoto({"id":5520348,"src":"_DSC3710_pp_Large_thumb.jpg","galleries_id":312680,"server_id":32,"link":"photo_5520348.html","width":130,"caption":"","height":177});
															thumbnails[5520350] = clik.newPhoto({"id":5520350,"src":"_DSC3736_pp_Large_thumb.jpg","galleries_id":312680,"server_id":32,"link":"photo_5520350.html","width":130,"caption":"","height":173});
															thumbnails[5520357] = clik.newPhoto({"id":5520357,"src":"_DSC3898_pp_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520357.html","width":130,"caption":"","height":190});
															thumbnails[5520360] = clik.newPhoto({"id":5520360,"src":"_DSC3905_pp_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520360.html","width":130,"caption":"","height":173});
															thumbnails[5520363] = clik.newPhoto({"id":5520363,"src":"_DSC3907_pptiff_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520363.html","width":130,"caption":"","height":89});
															thumbnails[5520365] = clik.newPhoto({"id":5520365,"src":"_DSC3908_pp_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520365.html","width":130,"caption":"","height":87});
															thumbnails[5520368] = clik.newPhoto({"id":5520368,"src":"_DSC3922_pp_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520368.html","width":130,"caption":"","height":90});
															thumbnails[5520370] = clik.newPhoto({"id":5520370,"src":"_DSC3938_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520370.html","width":130,"caption":"","height":217});
															thumbnails[5520371] = clik.newPhoto({"id":5520371,"src":"_DSC3976_pp_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520371.html","width":130,"caption":"","height":205});
															thumbnails[5520372] = clik.newPhoto({"id":5520372,"src":"_DSC4000_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520372.html","width":130,"caption":"","height":216});
															thumbnails[5520374] = clik.newPhoto({"id":5520374,"src":"_DSC4007_ppgreenfilter_Large_thumb.jpg","galleries_id":312681,"server_id":32,"link":"photo_5520374.html","width":130,"caption":"","height":144});
															thumbnails[5674893] = clik.newPhoto({"id":5674893,"src":"_DSC4937_Large_thumb.jpg","galleries_id":321532,"server_id":32,"link":"photo_5674893.html","width":130,"caption":"","height":200});
															thumbnails[5674894] = clik.newPhoto({"id":5674894,"src":"_DSC4939_Large_thumb.jpg","galleries_id":321532,"server_id":32,"link":"photo_5674894.html","width":130,"caption":"","height":148});
															thumbnails[5674895] = clik.newPhoto({"id":5674895,"src":"_DSC4958_Large_thumb.jpg","galleries_id":321532,"server_id":32,"link":"photo_5674895.html","width":130,"caption":"","height":86});
															thumbnails[5674904] = clik.newPhoto({"id":5674904,"src":"_DSC4899_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674904.html","width":130,"caption":"","height":189});
															thumbnails[5674908] = clik.newPhoto({"id":5674908,"src":"_DSC4918_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674908.html","width":130,"caption":"","height":86});
															thumbnails[5674910] = clik.newPhoto({"id":5674910,"src":"_DSC4743_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674910.html","width":130,"caption":"","height":167});
															thumbnails[5674912] = clik.newPhoto({"id":5674912,"src":"_DSC4752_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674912.html","width":130,"caption":"","height":133});
															thumbnails[5674915] = clik.newPhoto({"id":5674915,"src":"_DSC4592_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674915.html","width":130,"caption":"","height":117});
															thumbnails[5674916] = clik.newPhoto({"id":5674916,"src":"_DSC4535_Large_thumb.jpg","galleries_id":321533,"server_id":32,"link":"photo_5674916.html","width":130,"caption":"","height":196});
															thumbnails[5674996] = clik.newPhoto({"id":5674996,"src":"_DSC5070_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5674996.html","width":130,"caption":"","height":169});
															thumbnails[5675018] = clik.newPhoto({"id":5675018,"src":"_DSC5096_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675018.html","width":130,"caption":"","height":91});
															thumbnails[5675021] = clik.newPhoto({"id":5675021,"src":"_DSC5116_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675021.html","width":130,"caption":"","height":128});
															thumbnails[5675024] = clik.newPhoto({"id":5675024,"src":"_DSC5129_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675024.html","width":130,"caption":"","height":180});
															thumbnails[5675026] = clik.newPhoto({"id":5675026,"src":"_DSC5144_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675026.html","width":130,"caption":"","height":97});
															thumbnails[5675027] = clik.newPhoto({"id":5675027,"src":"_DSC5227_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675027.html","width":130,"caption":"","height":167});
															thumbnails[5675028] = clik.newPhoto({"id":5675028,"src":"_DSC5232_Large_thumb.jpg","galleries_id":321543,"server_id":32,"link":"photo_5675028.html","width":130,"caption":"","height":72});
															thumbnails[6754048] = clik.newPhoto({"id":6754048,"src":"_DSC9508overlay_thumb.jpg","galleries_id":367883,"server_id":32,"link":"photo_6754048.html","width":130,"caption":"","height":105});
															thumbnails[6754054] = clik.newPhoto({"id":6754054,"src":"_DSC9478_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_6754054.html","width":130,"caption":"","height":176});
															thumbnails[6754056] = clik.newPhoto({"id":6754056,"src":"_DSC9468_thumb.jpg","galleries_id":367883,"server_id":32,"link":"photo_6754056.html","width":130,"caption":"","height":106});
															thumbnails[6754057] = clik.newPhoto({"id":6754057,"src":"_DSC9470_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_6754057.html","width":130,"caption":"","height":105});
															thumbnails[6754085] = clik.newPhoto({"id":6754085,"src":"4650994188_f09511da25_b_thumb.jpg","galleries_id":367878,"server_id":32,"link":"photo_6754085.html","width":130,"caption":"","height":127});
															thumbnails[6754089] = clik.newPhoto({"id":6754089,"src":"4650389315_4d2a1c2564_b_thumb.jpg","galleries_id":367878,"server_id":32,"link":"photo_6754089.html","width":130,"caption":"","height":205});
															thumbnails[6754093] = clik.newPhoto({"id":6754093,"src":"4650395767_c61fba2a7a_b_thumb.jpg","galleries_id":367878,"server_id":32,"link":"photo_6754093.html","width":130,"caption":"","height":105});
															thumbnails[6754150] = clik.newPhoto({"id":6754150,"src":"_DSC9278_thumb.jpg","galleries_id":367881,"server_id":32,"link":"photo_6754150.html","width":130,"caption":"","height":196});
															thumbnails[6754152] = clik.newPhoto({"id":6754152,"src":"_DSC9268_thumb.jpg","galleries_id":367881,"server_id":32,"link":"photo_6754152.html","width":130,"caption":"","height":174});
															thumbnails[6754157] = clik.newPhoto({"id":6754157,"src":"_DSC9227_thumb.jpg","galleries_id":367881,"server_id":32,"link":"photo_6754157.html","width":130,"caption":"","height":168});
															thumbnails[6754159] = clik.newPhoto({"id":6754159,"src":"_DSC9230_thumb.jpg","galleries_id":367881,"server_id":32,"link":"photo_6754159.html","width":130,"caption":"","height":196});
															thumbnails[6754205] = clik.newPhoto({"id":6754205,"src":"4866503763_8efa4c661a_b_thumb.jpg","galleries_id":367884,"server_id":32,"link":"photo_6754205.html","width":130,"caption":"","height":104});
															thumbnails[6754208] = clik.newPhoto({"id":6754208,"src":"4885749612_e0ee7fe18f_b_thumb.jpg","galleries_id":367884,"server_id":32,"link":"photo_6754208.html","width":130,"caption":"","height":246});
															thumbnails[6754210] = clik.newPhoto({"id":6754210,"src":"4945742365_6750442ca0_b_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_6754210.html","width":130,"caption":"","height":173});
															thumbnails[6754240] = clik.newPhoto({"id":6754240,"src":"4790659023_ba5ffedab9_b_thumb.jpg","galleries_id":367882,"server_id":32,"link":"photo_6754240.html","width":130,"caption":"","height":109});
															thumbnails[6754250] = clik.newPhoto({"id":6754250,"src":"4945749951_68dd2aee2b_b_thumb.jpg","galleries_id":367877,"server_id":32,"link":"photo_6754250.html","width":130,"caption":"","height":196});
															thumbnails[6754254] = clik.newPhoto({"id":6754254,"src":"4945775331_68a3537669_b_thumb.jpg","galleries_id":367877,"server_id":32,"link":"photo_6754254.html","width":130,"caption":"","height":177});
															thumbnails[7154645] = clik.newPhoto({"id":7154645,"src":"12_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154645.html","width":130,"caption":"","height":86});
															thumbnails[7154649] = clik.newPhoto({"id":7154649,"src":"as_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154649.html","width":130,"caption":"","height":165});
															thumbnails[7154654] = clik.newPhoto({"id":7154654,"src":"_DSC3537_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154654.html","width":130,"caption":"","height":158});
															thumbnails[7154656] = clik.newPhoto({"id":7154656,"src":"sd_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154656.html","width":130,"caption":"","height":118});
															thumbnails[7154673] = clik.newPhoto({"id":7154673,"src":"xc_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_7154673.html","width":130,"caption":"","height":106});
															thumbnails[7154674] = clik.newPhoto({"id":7154674,"src":"vb_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_7154674.html","width":130,"caption":"","height":96});
															thumbnails[7154675] = clik.newPhoto({"id":7154675,"src":"mn_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_7154675.html","width":130,"caption":"","height":182});
															thumbnails[7154676] = clik.newPhoto({"id":7154676,"src":"kl_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_7154676.html","width":130,"caption":"","height":87});
															thumbnails[7154678] = clik.newPhoto({"id":7154678,"src":"bn_thumb.jpg","galleries_id":386747,"server_id":32,"link":"photo_7154678.html","width":130,"caption":"","height":91});
															thumbnails[7154679] = clik.newPhoto({"id":7154679,"src":"cv_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154679.html","width":130,"caption":"","height":98});
															thumbnails[7154680] = clik.newPhoto({"id":7154680,"src":"aq_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154680.html","width":130,"caption":"","height":108});
															thumbnails[7154683] = clik.newPhoto({"id":7154683,"src":"jk_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7154683.html","width":130,"caption":"","height":214});
															thumbnails[7156220] = clik.newPhoto({"id":7156220,"src":"yu_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_7156220.html","width":130,"caption":"","height":150});
															thumbnails[7821637] = clik.newPhoto({"id":7821637,"src":"5423180924_0e4e6e0f8b_thumb.jpg","galleries_id":422186,"server_id":32,"link":"photo_7821637.html","width":130,"caption":"","height":179});
															thumbnails[7821644] = clik.newPhoto({"id":7821644,"src":"5422563431_17e8532987_thumb.jpg","galleries_id":422186,"server_id":32,"link":"photo_7821644.html","width":130,"caption":"","height":159});
															thumbnails[7821656] = clik.newPhoto({"id":7821656,"src":"5422670671_6387106f1d_thumb.jpg","galleries_id":422186,"server_id":32,"link":"photo_7821656.html","width":130,"caption":"","height":210});
															thumbnails[7821660] = clik.newPhoto({"id":7821660,"src":"5420120870_3cd1658df2_z_thumb.jpg","galleries_id":422186,"server_id":32,"link":"photo_7821660.html","width":130,"caption":"","height":177});
															thumbnails[7821672] = clik.newPhoto({"id":7821672,"src":"5435346851_33310a7b4c_z_thumb.jpg","galleries_id":422187,"server_id":32,"link":"photo_7821672.html","width":130,"caption":"","height":160});
															thumbnails[7821674] = clik.newPhoto({"id":7821674,"src":"5435308457_4689e5c42e_z_thumb.jpg","galleries_id":422187,"server_id":32,"link":"photo_7821674.html","width":130,"caption":"","height":101});
															thumbnails[7821675] = clik.newPhoto({"id":7821675,"src":"5435319593_94ac786d32_z_thumb.jpg","galleries_id":422187,"server_id":32,"link":"photo_7821675.html","width":130,"caption":"","height":162});
															thumbnails[7821678] = clik.newPhoto({"id":7821678,"src":"5435950288_3d2e965d70_z_thumb.jpg","galleries_id":422187,"server_id":32,"link":"photo_7821678.html","width":130,"caption":"","height":177});
															thumbnails[7821679] = clik.newPhoto({"id":7821679,"src":"5435979242_81788d48b3_z_thumb.jpg","galleries_id":422187,"server_id":32,"link":"photo_7821679.html","width":130,"caption":"","height":140});
															thumbnails[7825256] = clik.newPhoto({"id":7825256,"src":"5733365262_feae8759b8_z_thumb.jpg","galleries_id":422184,"server_id":32,"link":"photo_7825256.html","width":130,"caption":"","height":191});
															thumbnails[7825275] = clik.newPhoto({"id":7825275,"src":"5732839085_1869c97200_z_thumb.jpg","galleries_id":422184,"server_id":32,"link":"photo_7825275.html","width":130,"caption":"","height":164});
															thumbnails[7825277] = clik.newPhoto({"id":7825277,"src":"5733375828_a1bbb45a5f_z_thumb.jpg","galleries_id":422184,"server_id":32,"link":"photo_7825277.html","width":130,"caption":"","height":140});
															thumbnails[7825281] = clik.newPhoto({"id":7825281,"src":"5733396720_42a4ac3e77_z_thumb.jpg","galleries_id":422184,"server_id":32,"link":"photo_7825281.html","width":130,"caption":"","height":196});
															thumbnails[7825331] = clik.newPhoto({"id":7825331,"src":"5732668127_f99c8093e1_z_thumb.jpg","galleries_id":422183,"server_id":32,"link":"photo_7825331.html","width":130,"caption":"","height":161});
															thumbnails[7825334] = clik.newPhoto({"id":7825334,"src":"5732744191_5685dab75c_z_thumb.jpg","galleries_id":422183,"server_id":32,"link":"photo_7825334.html","width":130,"caption":"","height":101});
															thumbnails[7825336] = clik.newPhoto({"id":7825336,"src":"5733266732_17306b1f5b_z_thumb.jpg","galleries_id":422183,"server_id":32,"link":"photo_7825336.html","width":130,"caption":"","height":196});
															thumbnails[7825340] = clik.newPhoto({"id":7825340,"src":"5733297268_2100114693_z_thumb.jpg","galleries_id":422183,"server_id":32,"link":"photo_7825340.html","width":130,"caption":"","height":182});
															thumbnails[7825378] = clik.newPhoto({"id":7825378,"src":"5332378833_9666b7d1a6_z_thumb.jpg","galleries_id":422188,"server_id":32,"link":"photo_7825378.html","width":130,"caption":"","height":169});
															thumbnails[7825381] = clik.newPhoto({"id":7825381,"src":"5600360604_8eb218ab89_z_thumb.jpg","galleries_id":422188,"server_id":32,"link":"photo_7825381.html","width":130,"caption":"","height":180});
															thumbnails[7825385] = clik.newPhoto({"id":7825385,"src":"4712209915_3e39d4547a_z_thumb.jpg","galleries_id":422188,"server_id":32,"link":"photo_7825385.html","width":130,"caption":"","height":104});
															thumbnails[7825826] = clik.newPhoto({"id":7825826,"src":"5735069762_1c36126457_z_thumb.jpg","galleries_id":422182,"server_id":32,"link":"photo_7825826.html","width":130,"caption":"","height":106});
															thumbnails[7825828] = clik.newPhoto({"id":7825828,"src":"5735078952_4ed7b2134f_z_thumb.jpg","galleries_id":422182,"server_id":32,"link":"photo_7825828.html","width":130,"caption":"","height":187});
															thumbnails[7825831] = clik.newPhoto({"id":7825831,"src":"5735089936_bd2882780c_z_thumb.jpg","galleries_id":422182,"server_id":32,"link":"photo_7825831.html","width":130,"caption":"","height":159});
															thumbnails[7825849] = clik.newPhoto({"id":7825849,"src":"5105305149_86a6e0b24b_z_thumb.jpg","galleries_id":367883,"server_id":32,"link":"photo_7825849.html","width":130,"caption":"","height":157});
															thumbnails[8589774] = clik.newPhoto({"id":8589774,"src":"6030619784_69cabb7bda_thumb.jpg","galleries_id":454257,"server_id":19,"link":"photo_8589774.html","width":130,"caption":"","height":196});
															thumbnails[8589776] = clik.newPhoto({"id":8589776,"src":"6120711102_5af2bcc160_thumb.jpg","galleries_id":454257,"server_id":19,"link":"photo_8589776.html","width":130,"caption":"","height":72});
															thumbnails[8589777] = clik.newPhoto({"id":8589777,"src":"6143139763_b4131ac8ef_thumb.jpg","galleries_id":454257,"server_id":19,"link":"photo_8589777.html","width":130,"caption":"","height":157});
															thumbnails[8589783] = clik.newPhoto({"id":8589783,"src":"6143684102_1781d9b40b_thumb.jpg","galleries_id":454257,"server_id":19,"link":"photo_8589783.html","width":130,"caption":"","height":170});
															thumbnails[8589785] = clik.newPhoto({"id":8589785,"src":"6143687358_2605b11373_thumb.jpg","galleries_id":454257,"server_id":19,"link":"photo_8589785.html","width":130,"caption":"","height":192});
															thumbnails[8589819] = clik.newPhoto({"id":8589819,"src":"296447_10150288439381161_252494146160_8275795_7433790_n_thumb.jpg","galleries_id":454258,"server_id":19,"link":"photo_8589819.html","width":130,"caption":"","height":167});
															thumbnails[8589842] = clik.newPhoto({"id":8589842,"src":"310135_10150289101996161_252494146160_8281279_6365792_n_thumb.jpg","galleries_id":454258,"server_id":19,"link":"photo_8589842.html","width":130,"caption":"","height":160});
															thumbnails[8589876] = clik.newPhoto({"id":8589876,"src":"311211_10150296395911161_252494146160_8329815_847603786_n_thumb.jpg","galleries_id":454258,"server_id":19,"link":"photo_8589876.html","width":130,"caption":"","height":165});
															thumbnails[8589903] = clik.newPhoto({"id":8589903,"src":"6030597802_997520d31f_thumb.jpg","galleries_id":454256,"server_id":19,"link":"photo_8589903.html","width":130,"caption":"","height":98});
															thumbnails[8589909] = clik.newPhoto({"id":8589909,"src":"6030626044_47c4a5bba1_thumb.jpg","galleries_id":454256,"server_id":19,"link":"photo_8589909.html","width":130,"caption":"","height":196});
															thumbnails[8589913] = clik.newPhoto({"id":8589913,"src":"299754_10150450502862646_769792645_10934968_1064440879_n_thumb.jpg","galleries_id":454256,"server_id":19,"link":"photo_8589913.html","width":130,"caption":"","height":88});
															thumbnails[8589916] = clik.newPhoto({"id":8589916,"src":"6189617862_15e48999f2_thumb.jpg","galleries_id":454256,"server_id":19,"link":"photo_8589916.html","width":130,"caption":"","height":191});
															thumbnails[8589964] = clik.newPhoto({"id":8589964,"src":"6143127369_0d3899fc43_thumb.jpg","galleries_id":454277,"server_id":19,"link":"photo_8589964.html","width":130,"caption":"","height":174});
															thumbnails[8589970] = clik.newPhoto({"id":8589970,"src":"6143128689_6e57d2d491_thumb.jpg","galleries_id":454277,"server_id":19,"link":"photo_8589970.html","width":130,"caption":"","height":204});
															thumbnails[8589973] = clik.newPhoto({"id":8589973,"src":"6143672856_b33ba57bf2_thumb.jpg","galleries_id":454277,"server_id":19,"link":"photo_8589973.html","width":130,"caption":"","height":196});
															thumbnails[8589980] = clik.newPhoto({"id":8589980,"src":"6143129679_5a2bb65101_thumb.jpg","galleries_id":454277,"server_id":19,"link":"photo_8589980.html","width":130,"caption":"","height":148});
															thumbnails[2119102] = clik.newPhoto({"id":2119102,"src":"1 (85)_thumb.JPG","galleries_id":140967,"server_id":32,"link":"photo_2119102.html","width":130,"caption":"","height":99});
															thumbnails[2842331] = clik.newPhoto({"id":2842331,"src":"2814855539_cea39ff14c_thumb.jpg","galleries_id":139559,"server_id":32,"link":"photo_2842331.html","width":87,"caption":"Beached tree","height":130});
															thumbnails[4109679] = clik.newPhoto({"id":4109679,"src":"3631960469_f64e20fd162_thumb.jpg","galleries_id":245725,"server_id":32,"link":"photo_4109679.html","width":130,"caption":"","height":147});
															thumbnails[4099888] = clik.newPhoto({"id":4099888,"src":"1_142_Medium_thumb.JPG","galleries_id":140967,"server_id":32,"link":"photo_4099888.html","width":130,"caption":"","height":194});
															thumbnails[3931582] = clik.newPhoto({"id":3931582,"src":"008_Large_thumb.jpg","galleries_id":238456,"server_id":32,"link":"photo_3931582.html","width":99,"caption":"","height":130});
															thumbnails[3938668] = clik.newPhoto({"id":3938668,"src":"DSC_8633_Large_thumb.JPG","galleries_id":238456,"server_id":32,"link":"photo_3938668.html","width":99,"caption":"","height":130});
															thumbnails[3938663] = clik.newPhoto({"id":3938663,"src":"DSC_8643_Large_thumb.JPG","galleries_id":238456,"server_id":32,"link":"photo_3938663.html","width":85,"caption":"","height":130});
															thumbnails[3938674] = clik.newPhoto({"id":3938674,"src":"DSC_8636_Large_thumb.JPG","galleries_id":238456,"server_id":32,"link":"photo_3938674.html","width":92,"caption":"","height":130});
															thumbnails[3938675] = clik.newPhoto({"id":3938675,"src":"DSC_8640_Large_thumb.JPG","galleries_id":238456,"server_id":32,"link":"photo_3938675.html","width":112,"caption":"","height":130});
															thumbnails[3891847] = clik.newPhoto({"id":3891847,"src":"3524227607_cdf611aedc_b_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3891847.html","width":130,"caption":"","height":92});
															thumbnails[3891860] = clik.newPhoto({"id":3891860,"src":"3524343549_bf35381850_b_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3891860.html","width":130,"caption":"","height":111});
															thumbnails[2099909] = clik.newPhoto({"id":2099909,"src":"hammock_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_2099909.html","width":130,"caption":"","height":104});
															thumbnails[3891881] = clik.newPhoto({"id":3891881,"src":"3525103662_e9c0d7db09_b_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3891881.html","width":75,"caption":"","height":130});
															thumbnails[2095896] = clik.newPhoto({"id":2095896,"src":"mollys_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_2095896.html","width":130,"caption":"","height":87});
															thumbnails[2099907] = clik.newPhoto({"id":2099907,"src":"laurenwindow_thumb.jpg","galleries_id":386729,"server_id":32,"link":"photo_2099907.html","width":83,"caption":"","height":130});
															thumbnails[2101601] = clik.newPhoto({"id":2101601,"src":"water_thumb.jpg","galleries_id":139699,"server_id":32,"link":"photo_2101601.html","width":100,"caption":"","height":130});
															thumbnails[3891893] = clik.newPhoto({"id":3891893,"src":"3525192940_cb64ab059a_b_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3891893.html","width":104,"caption":"","height":130});
															thumbnails[3891897] = clik.newPhoto({"id":3891897,"src":"3524377803_a1d3ef5cba_b_thumb.jpg","galleries_id":236356,"server_id":32,"link":"photo_3891897.html","width":80,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[454258] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Aaron Lane","link":"gallery_454258.html","maxRecords":0.0,"photoIDs":[8589819.0,8589842.0,8589876.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589876,8589842,8589819","id":454258,"singleSection":false});				  						galleries[367878] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Charlotte \"Electrotrash\" Barnes","link":"gallery_367878.html","maxRecords":0.0,"photoIDs":[6754085.0,6754089.0,6754093.0],"skipIndex":0,"section_code":"gallery","featured_images":"6754093,6754089,6754085","id":367878,"singleSection":false});				  						galleries[312680] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Daniel Kitchen","link":"gallery_312680.html","maxRecords":0.0,"photoIDs":[5520344.0,5520348.0,5520350.0],"skipIndex":0,"section_code":"gallery","featured_images":"5520350,5520348,5520344","id":312680,"singleSection":false});				  						galleries[367883] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Eleanor Rae Jones","link":"gallery_367883.html","maxRecords":0.0,"photoIDs":[6754048.0,6754056.0,7825849.0],"skipIndex":0,"section_code":"gallery","featured_images":"7825849,6754056,6754048","id":367883,"singleSection":false});				  						galleries[321543] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Elizabeth Rose Garton","link":"gallery_321543.html","maxRecords":0.0,"photoIDs":[5674996.0,5675018.0,5675021.0,5675024.0,5675026.0,5675027.0,5675028.0],"skipIndex":0,"section_code":"gallery","featured_images":"5675028,5675027,5675026,5675024,5675021,5675018,5674996","id":321543,"singleSection":false});				  						galleries[238456] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Emma Louise Harrison","link":"gallery_238456.html","maxRecords":0.0,"photoIDs":[5191438.0,3931582.0,3938668.0,3938663.0,3938674.0,3938675.0],"skipIndex":0,"section_code":"gallery","featured_images":5191438.0,"id":238456,"singleSection":false});				  						galleries[238214] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion and Modelling","link":"gallery_238214.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8589980,8589973,8589970,8589964,8589916,8589913,8589909,8589903,8589876,8589842,8589819,8589785,8589783,8589777,8589776,8589774,7825849,7825831,7825828,7825826,7825385,7825381,7825378,7825340,7825336,7825334,7825331,7825281,7825277,7825275,7825256,7821679,7821678,7821674,7821672,7821660,7821656,7821644,7821637,6754254,6754250,6754240,6754208,6754205,6754159,6754157,6754152,6754150,6754093,6754089,6754085,6754056,6754048,5675028,5675027,5675026,5675024,5675021,5675018,5674996,5674916,5674915,5674912,5674910,5674908,5674904,5674895,5674894,5674893,5520374,5520372,5520371,5520370,5520368,5520365,5520363,5520360,5520357,5520350,5520348,5520344,5520334,5520326,5520324,5433407,5433403,5433400,5433395,5433391,5433383,5433382,5433380,5433378,5433374,5433372,5433361,5433360,5433357,5275451,5275427,5259114,5259075,5259074,5259073,5259072,5259071,5259069,5259057,5259055,5259054,5259053,5259051,5191438,5180329,5180324,5180264,5180253,5180231,5180219,5180148,5180127,5127367,5127366,5127364,5127352,4917280,4917212,4915787,4793280,4793277,4793276,4424316,4424256,4424250,4109679,4095364,3891847","id":238214,"singleSection":false});				  						galleries[292547] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Halo Haynes","link":"gallery_292547.html","maxRecords":0.0,"photoIDs":[5180127.0,5180219.0,5180231.0],"skipIndex":0,"section_code":"gallery","featured_images":"5180231,5180219,5180127","id":292547,"singleSection":false});				  						galleries[422188] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Ian & Caroline Petrie","link":"gallery_422188.html","maxRecords":0.0,"photoIDs":[7825378.0,7825381.0,7825385.0],"skipIndex":0,"section_code":"gallery","featured_images":"7825385,7825381,7825378","id":422188,"singleSection":false});				  						galleries[296106] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"JD Rose","link":"gallery_296106.html","maxRecords":0.0,"photoIDs":[5259051.0,5259053.0,5259054.0,5259055.0,5259057.0,5275427.0],"skipIndex":0,"section_code":"gallery","featured_images":"5275427,5259057,5259055,5259054,5259053,5259051","id":296106,"singleSection":false});				  						galleries[222891] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Kate James","link":"gallery_222891.html","maxRecords":0.0,"photoIDs":[3645614.0,3645649.0,3645674.0,3645815.0],"skipIndex":0,"section_code":"gallery","featured_images":"3645815,3645674,3645649,3645614","id":222891,"singleSection":false});				  						galleries[422182] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Kelly Marrir","link":"gallery_422182.html","maxRecords":0.0,"photoIDs":[7825826.0,7825828.0,7825831.0],"skipIndex":0,"section_code":"gallery","featured_images":"7825831,7825828,7825826","id":422182,"singleSection":false});				  						galleries[422186] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Kim Beresford","link":"gallery_422186.html","maxRecords":0.0,"photoIDs":[7821637.0,7821644.0,7821656.0,7821660.0],"skipIndex":0,"section_code":"gallery","featured_images":"7821660,7821656,7821644,7821637","id":422186,"singleSection":false});				  						galleries[422184] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Kimberley Palin","link":"gallery_422184.html","maxRecords":0.0,"photoIDs":[7825256.0,7825275.0,7825277.0,7825281.0],"skipIndex":0,"section_code":"gallery","featured_images":"7825281,7825277,7825275,7825256","id":422184,"singleSection":false});				  						galleries[321532] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Laura Shipman","link":"gallery_321532.html","maxRecords":0.0,"photoIDs":[5674893.0,5674894.0,5674895.0],"skipIndex":0,"section_code":"gallery","featured_images":"5674895,5674894,5674893","id":321532,"singleSection":false});				  						galleries[245725] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Lauren","link":"gallery_245725.html","maxRecords":0.0,"photoIDs":[4095364.0,4793276.0,4793277.0,4793280.0,4109679.0],"skipIndex":0,"section_code":"gallery","featured_images":"4793280,4793277,4793276,4109679,4095364","id":245725,"singleSection":false});				  						galleries[422183] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Lucy McAllister","link":"gallery_422183.html","maxRecords":0.0,"photoIDs":[7825331.0,7825334.0,7825336.0,7825340.0],"skipIndex":0,"section_code":"gallery","featured_images":"7825340,7825336,7825334,7825331","id":422183,"singleSection":false});				  						galleries[140967] = clik.newGallery({"parentGallery":140956,"usePopups":false,"title":"Minature Schnauzers","link":"gallery_140967.html","maxRecords":0.0,"photoIDs":[2119102.0,4099888.0],"skipIndex":0,"section_code":"gallery","featured_images":"4099888,2119102","id":140967,"singleSection":false});				  						galleries[289809] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Nikita Pemberton","link":"gallery_289809.html","maxRecords":0.0,"photoIDs":[5127352.0,5127364.0,5127366.0,5127367.0],"skipIndex":0,"section_code":"gallery","featured_images":"5127367,5127366,5127364,5127352","id":289809,"singleSection":false});				  						galleries[386729] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait Photography","link":"gallery_386729.html","maxRecords":0.0,"photoIDs":[2102023.0,2408024.0,2570260.0,3828051.0,2099909.0,2099907.0],"skipIndex":0,"section_code":"gallery","featured_images":"3828051,2570260,2408024,2102023,2099909,2099907","id":386729,"singleSection":false});				  						galleries[454257] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Rach Butler","link":"gallery_454257.html","maxRecords":0.0,"photoIDs":[8589774.0,8589776.0,8589777.0,8589783.0,8589785.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589785,8589783,8589777,8589776,8589774","id":454257,"singleSection":false});				  						galleries[367881] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Rik de Raynor","link":"gallery_367881.html","maxRecords":0.0,"photoIDs":[6754150.0,6754152.0,6754157.0,6754159.0],"skipIndex":0,"section_code":"gallery","featured_images":"6754159,6754157,6754152,6754150","id":367881,"singleSection":false});				  						galleries[296105] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Rio Aisha","link":"gallery_296105.html","maxRecords":0.0,"photoIDs":[5259069.0,5259071.0,5259072.0,5259073.0,5259074.0,5259075.0,5259114.0],"skipIndex":0,"section_code":"gallery","featured_images":"5259114,5259075,5259074,5259073,5259072,5259071,5259069","id":296105,"singleSection":false});				  						galleries[292551] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Roxie H","link":"gallery_292551.html","maxRecords":0.0,"photoIDs":[5180148.0,5180253.0,5180264.0,5180324.0,5180329.0],"skipIndex":0,"section_code":"gallery","featured_images":"5180329,5180324,5180264,5180253,5180148","id":292551,"singleSection":false});				  						galleries[367877] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Rozzie Williams","link":"gallery_367877.html","maxRecords":0.0,"photoIDs":[6754250.0,6754254.0],"skipIndex":0,"section_code":"gallery","featured_images":"6754254,6754250","id":367877,"singleSection":false});				  						galleries[454277] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Sammy-Jo Burton","link":"gallery_454277.html","maxRecords":0.0,"photoIDs":[8589964.0,8589970.0,8589973.0,8589980.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589980,8589973,8589970,8589964","id":454277,"singleSection":false});				  						galleries[307082] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Sarah Jane York","link":"gallery_307082.html","maxRecords":0.0,"photoIDs":[5433357.0,5433360.0,5433361.0,5433372.0,5433374.0,5433378.0,5433380.0,5433382.0,5433383.0,5520324.0,5520326.0,5520334.0],"skipIndex":0,"section_code":"gallery","featured_images":"5520334,5520326,5520324,5433383,5433382,5433380,5433378,5433374,5433372,5433361,5433360,5433357","id":307082,"singleSection":false});				  						galleries[307083] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Scott Davenport-Brown","link":"gallery_307083.html","maxRecords":0.0,"photoIDs":[5433391.0,5433395.0,5433400.0,5433403.0,5433407.0],"skipIndex":0,"section_code":"gallery","featured_images":"5433407,5433403,5433400,5433395,5433391","id":307083,"singleSection":false});				  						galleries[312681] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Shabnam","link":"gallery_312681.html","maxRecords":0.0,"photoIDs":[5520357.0,5520360.0,5520363.0,5520365.0,5520368.0,5520370.0,5520371.0,5520372.0,5520374.0],"skipIndex":0,"section_code":"gallery","featured_images":"5520374,5520372,5520371,5520370,5520368,5520365,5520363,5520360,5520357","id":312681,"singleSection":false});				  						galleries[422187] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Sophie Brosek Sanders","link":"gallery_422187.html","maxRecords":0.0,"photoIDs":[7821672.0,7821674.0,7821675.0,7821678.0,7821679.0],"skipIndex":0,"section_code":"gallery","featured_images":"7821679,7821678,7821674,7821672","id":422187,"singleSection":false});				  						galleries[139699] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio Images","link":"gallery_139699.html","maxRecords":0.0,"photoIDs":[3517784.0,4424194.0,4928118.0,5180026.0,7154645.0,7154649.0,7154654.0,7154656.0,7154679.0,7154680.0,7154683.0,7156220.0,2095896.0,2101601.0],"skipIndex":0,"section_code":"gallery","featured_images":"7156220,7154683,7154680,7154679,7154656,7154649,7154645,5180026,4928118,4424194,3517784,2101601,2095896","id":139699,"singleSection":false});				  						galleries[454256] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Tammy Rudd","link":"gallery_454256.html","maxRecords":0.0,"photoIDs":[8589903.0,8589909.0,8589913.0,8589916.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589916,8589913,8589909,8589903","id":454256,"singleSection":false});				  						galleries[386747] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trash the Dress!","link":"gallery_386747.html","maxRecords":0.0,"photoIDs":[6754054.0,6754057.0,6754210.0,7154673.0,7154674.0,7154675.0,7154676.0,7154678.0],"skipIndex":0,"section_code":"gallery","featured_images":"7154678,7154676,7154675,7154674,7154673,6754210,6754057,6754054","id":386747,"singleSection":false});				  						galleries[321533] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Victoria Louise","link":"gallery_321533.html","maxRecords":0.0,"photoIDs":[5674904.0,5674908.0,5674910.0,5674912.0,5674915.0,5674916.0],"skipIndex":0,"section_code":"gallery","featured_images":"5674916,5674915,5674912,5674910,5674908,5674904","id":321533,"singleSection":false});				  						galleries[367882] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Victoria Vandetta","link":"gallery_367882.html","maxRecords":0.0,"photoIDs":[6754240.0],"skipIndex":0,"section_code":"gallery","featured_images":6754240.0,"id":367882,"singleSection":false});				  						galleries[367884] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Zenobia","link":"gallery_367884.html","maxRecords":0.0,"photoIDs":[6754205.0,6754208.0],"skipIndex":0,"section_code":"gallery","featured_images":"6754208,6754205","id":367884,"singleSection":false});				  						galleries[258041] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Michelle Higginson","link":"gallery_258041.html","maxRecords":0.0,"photoIDs":[4424250.0,4424256.0,4424316.0,4915787.0,4917212.0,4917280.0,5275451.0],"skipIndex":0,"section_code":"gallery","featured_images":"5275451,4917280,4917212,4915787,4424316,4424256,4424250","id":258041,"singleSection":false});				  						galleries[139559] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape Photography","link":"gallery_139559.html","maxRecords":0.0,"photoIDs":[2092371.0,2092500.0,2093706.0,2098192.0,2098221.0,2098222.0,2098223.0,2101519.0,2101527.0,5218278.0,5218284.0,2842331.0],"skipIndex":0,"section_code":"gallery","featured_images":"5218284,2092371","id":139559,"singleSection":false});				  						galleries[139595] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_139595.html","maxRecords":0.0,"photoIDs":[2099605.0,2099606.0,2099611.0,2185026.0,4793271.0,5218280.0],"skipIndex":0,"section_code":"gallery","featured_images":"5218280,2099611","id":139595,"singleSection":false});				  						galleries[140956] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pets","link":"gallery_140956.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4099888,2119102","id":140956,"singleSection":false});				  						galleries[236356] = clik.newGallery({"parentGallery":238214,"usePopups":false,"title":"Nikki Donaldson","link":"gallery_236356.html","maxRecords":0.0,"photoIDs":[3945245.0,3891847.0,3891860.0,3891881.0,3891893.0,3891897.0],"skipIndex":0,"section_code":"gallery","featured_images":3891847.0,"id":236356,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8589980,8589973,8589970,8589964,8589916,8589913,8589909,8589903,8589876,8589842,8589819,8589785,8589783,8589777,8589776,8589774,7825849,7825831,7825828,7825826,7825385,7825381,7825378,7825340,7825336,7825334,7825331,7825281,7825277,7825275,7825256,7821679,7821678,7821674,7821672,7821660,7821656,7821644,7821637,7156220,7154683,7154680,7154679,7154678,7154676,7154675,7154674,7154673,7154656,7154649,7154645,6754254,6754250,6754240,6754210,6754208,6754205,6754159,6754157,6754152,6754150,6754093,6754089,6754085,6754057,6754056,6754054,6754048,5675028,5675027,5675026,5675024,5675021,5675018,5674996,5674916,5674915,5674912,5674910,5674908,5674904,5674895,5674894,5674893,5520374,5520372,5520371,5520370,5520368,5520365,5520363,5520360,5520357,5520350,5520348,5520344,5520334,5520326,5520324,5433407,5433403,5433400,5433395,5433391,5433383,5433382,5433380,5433378,5433374,5433372,5433361,5433360,5433357,5275451,5275427,5259114,5259075,5259074,5259073,5259072,5259071,5259069,5259057,5259055,5259054,5259053,5259051,5218284,5218280,5218278,5191438,5180329,5180324,5180264,5180253,5180231,5180219,5180148,5180127,5180026,5127367,5127366,5127364,5127352,4928118,4917280,4917212,4915787,4793280,4793277,4793276,4424316,4424256,4424250,4424194,4095364,3828051,3645815,3645674,3517784,2570260,2408024,2102023,2101527,2101519,2099611,2099605,2098223,2098221,2098192,2093706,2092500,2092371,2119102,4109679,2842331,4099888,3931582,3938674,3891860,2099909,2095896,2099907,2101601';
imageSets[2] = '8589980,8589973,8589970,8589964,8589916,8589913,8589909,8589903,8589876,8589842,8589819,8589785,8589783,8589777,8589776,8589774,7825849,7825831,7825828,7825826,7825385,7825381,7825378,7825340,7825336,7825334,7825331,7825281,7825277,7825275,7825256,7821679,7821678,7821674,7821672,7821660,7821656,7821644,7821637,7156220,7154683,7154680,7154679,7154678,7154676,7154675,7154674,7154673,7154656,7154649,7154645,6754254,6754250,6754240,6754210,6754208,6754205,6754159,6754157,6754152,6754150,6754093,6754089,6754085,6754057,6754056,6754054,6754048,5675028,5675027,5675026,5675024,5675021,5675018,5674996,5674916,5674915,5674912,5674910,5674908,5674904,5674895,5674894,5674893,5520374,5520372,5520371,5520370,5520368,5520365,5520363,5520360,5520357,5520350,5520348,5520344,5520334,5520326,5520324,5433407,5433403,5433400,5433395,5433391,5433383,5433382,5433380,5433378,5433374,5433372,5433361,5433360,5433357,5275451,5275427,5259114,5259075,5259074,5259073,5259072,5259071,5259069,5259057,5259055,5259054,5259053,5259051,5218284,5218280,5191438,5180329,5180324,5180264,5180253,5180231,5180219,5180148,5180127,5180026,5127367,5127366,5127364,5127352,4928118,4917280,4917212,4915787,4793280,4793277,4793276,4424316,4424256,4424250,4424194,4095364,3828051,3517784,2570260,2408024,2102023,2099611,2092371,2119102,4109679,4099888,3891847,2099909,2095896,2099907,2101601';
imageSets[3] = '8589777,8589774,7156220,7154683,7154680,7154679,7154678,7154676,7154675,7154674,7154673,7154656,7154649,7154645,6754254,6754250,6754240,6754210,6754208,6754205,6754159,6754157,6754152,6754150,6754093,6754089,6754085,6754057,6754056,6754054,6754048,5675028,5675027,5675026,5675024,5675021,5675018,5674996,5674916,5674915,5674912,5674910,5674908,5674904,5674895,5674894,5674893,5520374,5520372,5520371,5520370,5520368,5520365,5520363,5520360,5520357,5520350,5520348,5520344,5520334,5520326,5520324,5433407,5433403,5433400,5433395,5433391,5433383,5433382,5433380,5433378,5433374,5433372,5433361,5433360,5433357,5275451,5275427,5259114,5259075,5259074,5259073,5259072,5259071,5259069,5259057,5259055,5259054,5259053,5259051,5218284,5218280,5218278,5191438,5180329,5180324,5180264,5180253,5180231,5180219,5180148,5180127,5180026,5127367,5127366,5127364,5127352,4928118,4917280,4917212,4915787,4793280,4793277,4793276,4424316,4424256,4424250,4424194,4095364,3828051,3517784,2570260,2408024,2102023,2119102,4109679,4099888,2099909,2095896,2099907,2101601';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/borichar/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/borichar/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/borichar/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/borichar/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/borichar/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/borichar/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/borichar/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Bob Richards Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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="bob@brwd.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="bob@brwd.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;
	}
}

			

