window.thumbnails = {};
															thumbnails[664844] = clik.newPhoto({"id":664844,"src":"Luxor_temple_43_v1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Large granite head - Luxor Temple","height":114});
															thumbnails[680023] = clik.newPhoto({"id":680023,"src":"stockings_4_v5_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Stocking tops","height":105});
															thumbnails[675414] = clik.newPhoto({"id":675414,"src":"MyfriendthePharaoh_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"My friend the Pharaoh","height":172});
															thumbnails[1280748] = clik.newPhoto({"id":1280748,"src":"Ruth bowler & wine_4_v1_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #1","height":87});
															thumbnails[671789] = clik.newPhoto({"id":671789,"src":"Luxor_temple_21_v1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Friends - (Luxor Temple)","height":146});
															thumbnails[1280769] = clik.newPhoto({"id":1280769,"src":"Ruth_lying_with_hair_13_v1_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #2","height":87});
															thumbnails[1280909] = clik.newPhoto({"id":1280909,"src":"Ruth_with_bowler_2_v1_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #3","height":95});
															thumbnails[664843] = clik.newPhoto({"id":664843,"src":"Luxor_temple_56_v2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Queen Nefetiti","height":178});
															thumbnails[1291552] = clik.newPhoto({"id":1291552,"src":"Ruth _seated_3_2_v1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #4","height":89});
															thumbnails[1280786] = clik.newPhoto({"id":1280786,"src":"Ruth_with_shirt_5_v1_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #5","height":198});
															thumbnails[859228] = clik.newPhoto({"id":859228,"src":"Feluca stuff_11__web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Feluca Boy","height":109});
															thumbnails[1280787] = clik.newPhoto({"id":1280787,"src":"Ruth_against_door_3_v4_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #6","height":185});
															thumbnails[1291564] = clik.newPhoto({"id":1291564,"src":"Ruth_seated_1_6_v4_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth #7","height":194});
															thumbnails[665716] = clik.newPhoto({"id":665716,"src":"Venice_0193_v3_thumb.jpg","galleries_id":50588,"server_id":18,"link":"photo_665716.html","width":130,"caption":"Gondola Racing","height":62});
															thumbnails[665717] = clik.newPhoto({"id":665717,"src":"Venice_0260_theatre_v2_thumb.jpg","galleries_id":50588,"server_id":18,"link":"photo_665717.html","width":130,"caption":"Times remembered","height":118});
															thumbnails[667001] = clik.newPhoto({"id":667001,"src":"DSC04552_rachel_v1_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_667001.html","width":130,"caption":"Rachel","height":124});
															thumbnails[669134] = clik.newPhoto({"id":669134,"src":"Nepenthes_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_669134.html","width":130,"caption":"Nepenthes","height":93});
															thumbnails[670456] = clik.newPhoto({"id":670456,"src":"Edlingham_castle_01_v2_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_670456.html","width":130,"caption":"Edlingham Castle","height":173});
															thumbnails[673183] = clik.newPhoto({"id":673183,"src":"Rebecca_08_v1_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_673183.html","width":130,"caption":"Rebecca","height":113});
															thumbnails[675371] = clik.newPhoto({"id":675371,"src":"Still_life_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_675371.html","width":130,"caption":"Still life","height":127});
															thumbnails[673219] = clik.newPhoto({"id":673219,"src":"Hera_6_v1_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_673219.html","width":130,"caption":"Dreams of lost civilisations #1","height":94});
															thumbnails[764460] = clik.newPhoto({"id":764460,"src":"Melisa_47_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764460.html","width":130,"caption":"Melissa #1","height":87});
															thumbnails[764461] = clik.newPhoto({"id":764461,"src":"Melisa_50_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764461.html","width":130,"caption":"Melissa #2","height":87});
															thumbnails[673216] = clik.newPhoto({"id":673216,"src":"Ruins_near_Pythagorian_9_v2_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_673216.html","width":130,"caption":"Dreams of lost civilisations #2","height":98});
															thumbnails[675388] = clik.newPhoto({"id":675388,"src":"Victoria_baths_1_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_675388.html","width":130,"caption":"Victoria baths #1","height":178});
															thumbnails[7241587] = clik.newPhoto({"id":7241587,"src":"Urfa_01_v1_lr_thumb.jpg","galleries_id":391383,"server_id":18,"link":"photo_7241587.html","width":130,"caption":"Mannequiin #31","height":83});
															thumbnails[7583344] = clik.newPhoto({"id":7583344,"src":"Des_doll_27_hdr_v1_wb_thumb.jpg","galleries_id":411312,"server_id":18,"link":"photo_7583344.html","width":130,"caption":"Doll","height":89});
															thumbnails[671875] = clik.newPhoto({"id":671875,"src":"Al_Dossetter_58_v2_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_671875.html","width":130,"caption":"Al","height":94});
															thumbnails[664921] = clik.newPhoto({"id":664921,"src":"Emma_13_v4_thumb.jpg","galleries_id":50500,"server_id":18,"link":"photo_664921.html","width":130,"caption":"Emma #2","height":197});
															thumbnails[7241588] = clik.newPhoto({"id":7241588,"src":"Urfa_05_v1_lr_thumb.jpg","galleries_id":391383,"server_id":18,"link":"photo_7241588.html","width":130,"caption":"Mannequin #32","height":86});
															thumbnails[7583387] = clik.newPhoto({"id":7583387,"src":"El_Campico_072_hdr_v1_wb_thumb.jpg","galleries_id":411312,"server_id":18,"link":"photo_7583387.html","width":130,"caption":"El Campico #1","height":99});
															thumbnails[671884] = clik.newPhoto({"id":671884,"src":"Holy_Island_1_v1_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_671884.html","width":130,"caption":"Refuge Hut - Lindisfarne Causeway","height":93});
															thumbnails[673211] = clik.newPhoto({"id":673211,"src":"Eden_Project_figures_04_v2_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_673211.html","width":130,"caption":"The Mask","height":98});
															thumbnails[764454] = clik.newPhoto({"id":764454,"src":"Melisa_5_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764454.html","width":130,"caption":"Melissa #3","height":87});
															thumbnails[764459] = clik.newPhoto({"id":764459,"src":"Melisa_41_v4_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764459.html","width":130,"caption":"Melissa #4","height":89});
															thumbnails[7241589] = clik.newPhoto({"id":7241589,"src":"Urfa_10_v1_lr_thumb.jpg","galleries_id":391383,"server_id":18,"link":"photo_7241589.html","width":130,"caption":"Mannequin #33","height":97});
															thumbnails[7583391] = clik.newPhoto({"id":7583391,"src":"El_Campico_II_16_hdr_v2_wb_thumb.jpg","galleries_id":411312,"server_id":18,"link":"photo_7583391.html","width":130,"caption":"El Campico #2","height":93});
															thumbnails[7241590] = clik.newPhoto({"id":7241590,"src":"Urfa_07_v2_lr_thumb.jpg","galleries_id":391383,"server_id":18,"link":"photo_7241590.html","width":130,"caption":"Mannequin #34","height":198});
															thumbnails[7583394] = clik.newPhoto({"id":7583394,"src":"El_Campico_II_31_hdr_v1_wb_thumb.jpg","galleries_id":411312,"server_id":18,"link":"photo_7583394.html","width":130,"caption":"El Campico #3","height":92});
															thumbnails[825035] = clik.newPhoto({"id":825035,"src":"Norman_11_v1_web_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_825035.html","width":130,"caption":"Norman","height":149});
															thumbnails[666998] = clik.newPhoto({"id":666998,"src":"Ab & Jod_025_v1_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_666998.html","width":130,"caption":"Abi and Jody","height":98});
															thumbnails[671761] = clik.newPhoto({"id":671761,"src":"Sara_with_frame_4_v1_thumb.jpg","galleries_id":51173,"server_id":18,"link":"photo_671761.html","width":130,"caption":"Sarah #1","height":175});
															thumbnails[7583398] = clik.newPhoto({"id":7583398,"src":"Goldmine_093_hdr_v1_wb_thumb.jpg","galleries_id":411312,"server_id":18,"link":"photo_7583398.html","width":130,"caption":"Goldmine - Rodalquilar","height":206});
															thumbnails[671886] = clik.newPhoto({"id":671886,"src":"Holy_Island_38_v1_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_671886.html","width":130,"caption":"Lindisfarne Castle","height":72});
															thumbnails[671763] = clik.newPhoto({"id":671763,"src":"Sara_with_frame_29_v1_thumb.jpg","galleries_id":51173,"server_id":18,"link":"photo_671763.html","width":130,"caption":"Sarah #2","height":91});
															thumbnails[671764] = clik.newPhoto({"id":671764,"src":"Sarah_pose_7_ 2_v1_thumb.jpg","galleries_id":51173,"server_id":18,"link":"photo_671764.html","width":130,"caption":"Sarah #3","height":85});
															thumbnails[675382] = clik.newPhoto({"id":675382,"src":"The_Devil_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_675382.html","width":130,"caption":"The Devil","height":90});
															thumbnails[675419] = clik.newPhoto({"id":675419,"src":"Jodrelbank_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_675419.html","width":130,"caption":"Lovell telescope - Jodrell Bank","height":87});
															thumbnails[956450] = clik.newPhoto({"id":956450,"src":"teddy_2_v1_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_956450.html","width":130,"caption":"Shrine","height":89});
															thumbnails[664882] = clik.newPhoto({"id":664882,"src":"Emma_37_v1_thumb.jpg","galleries_id":50500,"server_id":18,"link":"photo_664882.html","width":130,"caption":"Emma #4","height":87});
															thumbnails[670500] = clik.newPhoto({"id":670500,"src":"Abi_getting_ready_18_v4_thumb.jpg","galleries_id":76257,"server_id":18,"link":"photo_670500.html","width":130,"caption":"Abi's wedding day","height":167});
															thumbnails[670518] = clik.newPhoto({"id":670518,"src":"Red_Amarylis_6_v1_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_670518.html","width":130,"caption":"Amarylis","height":98});
															thumbnails[834557] = clik.newPhoto({"id":834557,"src":"Sarah pose 15_3_v4_web_thumb.jpg","galleries_id":64477,"server_id":18,"link":"photo_834557.html","width":130,"caption":"Nude #1","height":94});
															thumbnails[886907] = clik.newPhoto({"id":886907,"src":"Carlsberg brewery_002_v1_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886907.html","width":130,"caption":"Carlsberg Brewery Gateway","height":194});
															thumbnails[956447] = clik.newPhoto({"id":956447,"src":"shirls_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_956447.html","width":130,"caption":"Figure at a window","height":185});
															thumbnails[956494] = clik.newPhoto({"id":956494,"src":"woman in window_12_v3_thumb.jpg","galleries_id":72285,"server_id":18,"link":"photo_956494.html","width":130,"caption":"Untitled #1","height":89});
															thumbnails[1689481] = clik.newPhoto({"id":1689481,"src":"Gothenburg manequin_4_v3_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_1689481.html","width":130,"caption":"Mannequin #1 - an evening at home","height":105});
															thumbnails[1956618] = clik.newPhoto({"id":1956618,"src":"Ellie_37_v5_web_thumb.jpg","galleries_id":178492,"server_id":18,"link":"photo_1956618.html","width":130,"caption":"Ellie #1 - With downcast eyes and modest grace","height":135});
															thumbnails[2748442] = clik.newPhoto({"id":2748442,"src":"Maggie classical_3_v7a_LR_thumb.jpg","galleries_id":172579,"server_id":18,"link":"photo_2748442.html","width":130,"caption":"A siren lures the wanderer to her wiles","height":159});
															thumbnails[3357022] = clik.newPhoto({"id":3357022,"src":"Nicks_101_v1_wb_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3357022.html","width":130,"caption":"Washing line #1","height":179});
															thumbnails[3388933] = clik.newPhoto({"id":3388933,"src":"Montreal_14_v2_web1_thumb.jpg","galleries_id":206942,"server_id":18,"link":"photo_3388933.html","width":130,"caption":"Montreal rooftops #1","height":188});
															thumbnails[3509677] = clik.newPhoto({"id":3509677,"src":"Cars_11_v1_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509677.html","width":130,"caption":"Trading up","height":81});
															thumbnails[4009447] = clik.newPhoto({"id":4009447,"src":"Ladybower_trees_22_v2_web_thumb.jpg","galleries_id":242246,"server_id":18,"link":"photo_4009447.html","width":130,"caption":"Ladybower woodland","height":91});
															thumbnails[4009463] = clik.newPhoto({"id":4009463,"src":"Congleton_WTs_30_v1_lr_thumb.jpg","galleries_id":242247,"server_id":18,"link":"photo_4009463.html","width":130,"caption":"Congleton water towers #1","height":88});
															thumbnails[4288800] = clik.newPhoto({"id":4288800,"src":"manequins_07_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288800.html","width":130,"caption":"Maannquin #15","height":102});
															thumbnails[5011790] = clik.newPhoto({"id":5011790,"src":"MW_Mannequins_238_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011790.html","width":130,"caption":"Mannequin #24","height":92});
															thumbnails[6353295] = clik.newPhoto({"id":6353295,"src":"Cambois_3_25_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353295.html","width":130,"caption":"Doll ~1","height":86});
															thumbnails[6353674] = clik.newPhoto({"id":6353674,"src":"Miners_village_162hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353674.html","width":130,"caption":"Miners village #1","height":86});
															thumbnails[7242504] = clik.newPhoto({"id":7242504,"src":"St_Jerome_37_v5_web_thumb.jpg","galleries_id":391461,"server_id":18,"link":"photo_7242504.html","width":130,"caption":"St. Jerome writing - after Caravagio","height":95});
															thumbnails[764455] = clik.newPhoto({"id":764455,"src":"Melisa_19_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764455.html","width":130,"caption":"Melissa #5","height":186});
															thumbnails[671766] = clik.newPhoto({"id":671766,"src":"Sarah_pose_16_1_v4_thumb.jpg","galleries_id":51173,"server_id":18,"link":"photo_671766.html","width":130,"caption":"Sarah #4","height":89});
															thumbnails[673224] = clik.newPhoto({"id":673224,"src":"scarecrows_14_v4_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_673224.html","width":130,"caption":"The crows revenge","height":183});
															thumbnails[673500] = clik.newPhoto({"id":673500,"src":"Tynemouth_G_v2xxxx_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_673500.html","width":130,"caption":"Collingwoods Monument","height":176});
															thumbnails[675369] = clik.newPhoto({"id":675369,"src":"Saracena_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_675369.html","width":130,"caption":"Sarracenia","height":173});
															thumbnails[831119] = clik.newPhoto({"id":831119,"src":"Emma_74_v1_web_thumb.jpg","galleries_id":50500,"server_id":18,"link":"photo_831119.html","width":130,"caption":"Emma #5","height":95});
															thumbnails[764463] = clik.newPhoto({"id":764463,"src":"Melisa_78_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764463.html","width":130,"caption":"Melissa #7","height":194});
															thumbnails[764462] = clik.newPhoto({"id":764462,"src":"Melisa_71_B&W_v1_web_web_thumb.jpg","galleries_id":59102,"server_id":18,"link":"photo_764462.html","width":130,"caption":"Melissa #8","height":194});
															thumbnails[671777] = clik.newPhoto({"id":671777,"src":"Paddling_pool_102_v2_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_671777.html","width":130,"caption":"Paddling Pool - Blyth","height":95});
															thumbnails[834559] = clik.newPhoto({"id":834559,"src":"Sarah pose 9_2_v4_web_thumb.jpg","galleries_id":64477,"server_id":18,"link":"photo_834559.html","width":130,"caption":"Nude #2","height":100});
															thumbnails[886908] = clik.newPhoto({"id":886908,"src":"Observatory_89_v1_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886908.html","width":130,"caption":"Observatory, Lund","height":164});
															thumbnails[956495] = clik.newPhoto({"id":956495,"src":"Refelctions misc_2_v1_thumb.jpg","galleries_id":72285,"server_id":18,"link":"photo_956495.html","width":130,"caption":"Untitled #2","height":194});
															thumbnails[991611] = clik.newPhoto({"id":991611,"src":"Ellie_49_v3_thumb.jpg","galleries_id":76257,"server_id":18,"link":"photo_991611.html","width":130,"caption":"Red top\/Blue jeans","height":194});
															thumbnails[1689500] = clik.newPhoto({"id":1689500,"src":"Manequin_v5_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_1689500.html","width":130,"caption":"Mannequin #2","height":194});
															thumbnails[1956620] = clik.newPhoto({"id":1956620,"src":"Ellie-102_v3_web_thumb.jpg","galleries_id":178492,"server_id":18,"link":"photo_1956620.html","width":130,"caption":"Ellie #2","height":196});
															thumbnails[2748501] = clik.newPhoto({"id":2748501,"src":"Maggie lying on fur_4_v2_LR_thumb.jpg","galleries_id":172579,"server_id":18,"link":"photo_2748501.html","width":130,"caption":"Tiffany","height":73});
															thumbnails[3357027] = clik.newPhoto({"id":3357027,"src":"Nicks_55_v4_wb_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3357027.html","width":130,"caption":"Washing line #2","height":89});
															thumbnails[3388875] = clik.newPhoto({"id":3388875,"src":"Montreal_35_v2_web_thumb.jpg","galleries_id":206942,"server_id":18,"link":"photo_3388875.html","width":130,"caption":"Montreal rooftops #2","height":99});
															thumbnails[3509680] = clik.newPhoto({"id":3509680,"src":"Cars_78_v1_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509680.html","width":130,"caption":"Morning sun on O'Reilly","height":87});
															thumbnails[4009452] = clik.newPhoto({"id":4009452,"src":"Lose_Hill_06_v1_web_thumb.jpg","galleries_id":242246,"server_id":18,"link":"photo_4009452.html","width":130,"caption":"Lose Hill #1","height":79});
															thumbnails[4009464] = clik.newPhoto({"id":4009464,"src":"_NIK6382_lr_thumb.jpg","galleries_id":242247,"server_id":18,"link":"photo_4009464.html","width":130,"caption":"Congleton water towers #2","height":92});
															thumbnails[4288635] = clik.newPhoto({"id":4288635,"src":"Liverpool_manequin_03_v2_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288635.html","width":130,"caption":"Mannequin #9","height":177});
															thumbnails[4288805] = clik.newPhoto({"id":4288805,"src":"manequins_10_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288805.html","width":130,"caption":"Mannequin #16","height":100});
															thumbnails[5011792] = clik.newPhoto({"id":5011792,"src":"MW_Mannequins_185_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011792.html","width":130,"caption":"Mannequin #25","height":86});
															thumbnails[6353307] = clik.newPhoto({"id":6353307,"src":"Cambois_doll5_25_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353307.html","width":130,"caption":"Doll #2","height":86});
															thumbnails[6353682] = clik.newPhoto({"id":6353682,"src":"Miners_village_188_9_v3_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353682.html","width":130,"caption":"Miners village #2","height":95});
															thumbnails[7242505] = clik.newPhoto({"id":7242505,"src":"Pieta__v4_web_thumb.jpg","galleries_id":391461,"server_id":18,"link":"photo_7242505.html","width":130,"caption":"The grieving widow - after von Stuck","height":83});
															thumbnails[671891] = clik.newPhoto({"id":671891,"src":"Codger_Fort_08_v2_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_671891.html","width":130,"caption":"Codger Fort","height":97});
															thumbnails[675410] = clik.newPhoto({"id":675410,"src":"Vernon mill_5_v2_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_675410.html","width":130,"caption":"Vernon Mill - Stockport","height":96});
															thumbnails[671774] = clik.newPhoto({"id":671774,"src":"Rialto_bridge_132_v5_B&W_thumb.jpg","galleries_id":50588,"server_id":18,"link":"photo_671774.html","width":130,"caption":"Rialto Bridge","height":108});
															thumbnails[845008] = clik.newPhoto({"id":845008,"src":"Ellie-125_v1_web_thumb.jpg","galleries_id":64477,"server_id":18,"link":"photo_845008.html","width":130,"caption":"Nude #3","height":83});
															thumbnails[886911] = clik.newPhoto({"id":886911,"src":"doorway_v2_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886911.html","width":130,"caption":"No 3","height":175});
															thumbnails[956493] = clik.newPhoto({"id":956493,"src":"toilets  & dad_6_v1_thumb.jpg","galleries_id":72285,"server_id":18,"link":"photo_956493.html","width":130,"caption":"Untitled #3","height":185});
															thumbnails[1280962] = clik.newPhoto({"id":1280962,"src":"Ruth_undressing_3_v1_thumb.jpg","galleries_id":76257,"server_id":18,"link":"photo_1280962.html","width":130,"caption":"Co-ordinated","height":187});
															thumbnails[1689503] = clik.newPhoto({"id":1689503,"src":"Doll in room_ v2_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_1689503.html","width":130,"caption":"Mannequin #3 - only slightly disturbing","height":172});
															thumbnails[1956621] = clik.newPhoto({"id":1956621,"src":"Ellie-111_v3_web_thumb.jpg","galleries_id":178492,"server_id":18,"link":"photo_1956621.html","width":130,"caption":"Ellie #3","height":116});
															thumbnails[2000822] = clik.newPhoto({"id":2000822,"src":"Arche  museum _17_v7_web_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_2000822.html","width":130,"caption":"Dreams of lost civilisations #3 - Castor & Pollux","height":69});
															thumbnails[3357035] = clik.newPhoto({"id":3357035,"src":"Nicks_41_v1_wb_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3357035.html","width":130,"caption":"Washing line #3","height":100});
															thumbnails[3388886] = clik.newPhoto({"id":3388886,"src":"NIK5239_v4_Holga_web_thumb.jpg","galleries_id":206942,"server_id":18,"link":"photo_3388886.html","width":130,"caption":"Underwear","height":105});
															thumbnails[3509687] = clik.newPhoto({"id":3509687,"src":"Barbers_2_v3_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509687.html","width":130,"caption":"Barbers shop","height":92});
															thumbnails[4009454] = clik.newPhoto({"id":4009454,"src":"Lose_Hill_16_v1_web_thumb.jpg","galleries_id":242246,"server_id":18,"link":"photo_4009454.html","width":130,"caption":"Lose Hill #2","height":86});
															thumbnails[4009472] = clik.newPhoto({"id":4009472,"src":"_NIK6385_lr_thumb.jpg","galleries_id":242247,"server_id":18,"link":"photo_4009472.html","width":130,"caption":"Congleton water towers #3","height":95});
															thumbnails[4288640] = clik.newPhoto({"id":4288640,"src":"Liverpool_manequin_05_v1_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288640.html","width":130,"caption":"Mannequin #10","height":194});
															thumbnails[4288820] = clik.newPhoto({"id":4288820,"src":"manequins_12_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288820.html","width":130,"caption":"Mannequin #17","height":87});
															thumbnails[5011795] = clik.newPhoto({"id":5011795,"src":"MW_Mannequins_207_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011795.html","width":130,"caption":"Mannequin #26","height":87});
															thumbnails[5181534] = clik.newPhoto({"id":5181534,"src":"Pigeon_still_life_03__v4_web_thumb.jpg","galleries_id":51257,"server_id":18,"link":"photo_5181534.html","width":130,"caption":"After a days shooting","height":108});
															thumbnails[6353317] = clik.newPhoto({"id":6353317,"src":"Cambois_doll5_15_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353317.html","width":130,"caption":"Doll #3","height":87});
															thumbnails[6353685] = clik.newPhoto({"id":6353685,"src":"Ruin_nr_Bedar_65hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353685.html","width":130,"caption":"Ruin nr Bedar #1","height":85});
															thumbnails[7242507] = clik.newPhoto({"id":7242507,"src":"Pigeon_still_life_03__v4_web_620A1A03-1EC9-DFB6-09219F3CF43F292A_thumb.jpg","galleries_id":391461,"server_id":18,"link":"photo_7242507.html","width":130,"caption":"After a day's shooting","height":108});
															thumbnails[665722] = clik.newPhoto({"id":665722,"src":"Whitworth_gallery_v5_thumb.jpg","galleries_id":69517,"server_id":18,"link":"photo_665722.html","width":130,"caption":"Empty Space #1","height":164});
															thumbnails[670449] = clik.newPhoto({"id":670449,"src":"Wooden_blinds_2_v2_thumb.jpg","galleries_id":69517,"server_id":18,"link":"photo_670449.html","width":130,"caption":"Empty Space #2","height":108});
															thumbnails[670470] = clik.newPhoto({"id":670470,"src":"empty_space_v2_thumb.jpg","galleries_id":69517,"server_id":18,"link":"photo_670470.html","width":130,"caption":"Empty Space #3","height":183});
															thumbnails[845010] = clik.newPhoto({"id":845010,"src":"Ellie-129_v1_web_thumb.jpg","galleries_id":64477,"server_id":18,"link":"photo_845010.html","width":130,"caption":"Nude #4","height":85});
															thumbnails[1734321] = clik.newPhoto({"id":1734321,"src":"Gothenburg manequin_3_v4_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_1734321.html","width":130,"caption":"Mannequin #4","height":194});
															thumbnails[1956622] = clik.newPhoto({"id":1956622,"src":"Ellie-178_v1_web_thumb.jpg","galleries_id":178492,"server_id":18,"link":"photo_1956622.html","width":130,"caption":"Ellie #4","height":187});
															thumbnails[2000820] = clik.newPhoto({"id":2000820,"src":"Arche  museum _13_v5_web_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_2000820.html","width":130,"caption":"Dreams of lost civilisations #4","height":97});
															thumbnails[2728741] = clik.newPhoto({"id":2728741,"src":"Maggie undressing_22_v3_LR_thumb.jpg","galleries_id":76257,"server_id":18,"link":"photo_2728741.html","width":130,"caption":"Corset","height":100});
															thumbnails[2748563] = clik.newPhoto({"id":2748563,"src":"Maggie lying on red_1_v10_LR_thumb.jpg","galleries_id":172579,"server_id":18,"link":"photo_2748563.html","width":130,"caption":"Corpse","height":88});
															thumbnails[3357041] = clik.newPhoto({"id":3357041,"src":"Nicks_2_v1_wb_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3357041.html","width":130,"caption":"Washing line #4","height":90});
															thumbnails[3388946] = clik.newPhoto({"id":3388946,"src":"misty scenes_11_v3_web_thumb.jpg","galleries_id":206942,"server_id":18,"link":"photo_3388946.html","width":130,"caption":"Spring flowers","height":191});
															thumbnails[3509693] = clik.newPhoto({"id":3509693,"src":"Contra jour_15+16_v3_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509693.html","width":130,"caption":"End of the day","height":96});
															thumbnails[4001924] = clik.newPhoto({"id":4001924,"src":"Miners_cottages_42__Maggie_v2_web_thumb.jpg","galleries_id":172579,"server_id":18,"link":"photo_4001924.html","width":130,"caption":"I once knew this place","height":174});
															thumbnails[4009482] = clik.newPhoto({"id":4009482,"src":"Congleton_WTs_33_v1_web_thumb.jpg","galleries_id":242247,"server_id":18,"link":"photo_4009482.html","width":130,"caption":"Congleton water towers #4","height":194});
															thumbnails[4009487] = clik.newPhoto({"id":4009487,"src":"Mill_stones_I_10_v2_web_thumb.jpg","galleries_id":242246,"server_id":18,"link":"photo_4009487.html","width":130,"caption":"Old mill stones","height":163});
															thumbnails[4288644] = clik.newPhoto({"id":4288644,"src":"Liverpool_manequin_07_v1_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288644.html","width":130,"caption":"Mannequin #11","height":176});
															thumbnails[4288826] = clik.newPhoto({"id":4288826,"src":"manequins_20_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288826.html","width":130,"caption":"Mannequin #18","height":94});
															thumbnails[5011798] = clik.newPhoto({"id":5011798,"src":"MW_Mannequins_176_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011798.html","width":130,"caption":"mannequin #27","height":91});
															thumbnails[5181537] = clik.newPhoto({"id":5181537,"src":"Ballet_080_v4_web_thumb.jpg","galleries_id":51257,"server_id":18,"link":"photo_5181537.html","width":130,"caption":"Balllet","height":126});
															thumbnails[6353322] = clik.newPhoto({"id":6353322,"src":"Cambois_doll5_17_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353322.html","width":130,"caption":"Doll #4","height":86});
															thumbnails[6353688] = clik.newPhoto({"id":6353688,"src":"Ruin_nr_Bedar_209_hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353688.html","width":130,"caption":"Ruin nr Bedar #2","height":86});
															thumbnails[7242510] = clik.newPhoto({"id":7242510,"src":"Pheasent__21_v1_web_thumb.jpg","galleries_id":391461,"server_id":18,"link":"photo_7242510.html","width":130,"caption":"Farmhouse still life","height":92});
															thumbnails[886915] = clik.newPhoto({"id":886915,"src":"Building_87_v1_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886915.html","width":130,"caption":"Reflections #1","height":173});
															thumbnails[956632] = clik.newPhoto({"id":956632,"src":"Dserted patio_3_v1_thumb.jpg","galleries_id":69517,"server_id":18,"link":"photo_956632.html","width":130,"caption":"Empty Space #4","height":173});
															thumbnails[1972290] = clik.newPhoto({"id":1972290,"src":"Blush_1_v4_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_1972290.html","width":130,"caption":"Mannequin #5","height":179});
															thumbnails[2001485] = clik.newPhoto({"id":2001485,"src":"Nude statues_19_v1_web_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_2001485.html","width":130,"caption":"Dreams of lost civilisations #5 - Medea","height":194});
															thumbnails[3357044] = clik.newPhoto({"id":3357044,"src":"NIK5239_v6_wb_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3357044.html","width":130,"caption":"Washing line #5","height":94});
															thumbnails[3509695] = clik.newPhoto({"id":3509695,"src":"Cuba misc_72_v1_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509695.html","width":130,"caption":"Untitled","height":88});
															thumbnails[3510083] = clik.newPhoto({"id":3510083,"src":"Miners cottages_54_v1_wb_thumb.jpg","galleries_id":214692,"server_id":18,"link":"photo_3510083.html","width":130,"caption":"Old Miners Cottages #1","height":94});
															thumbnails[4009751] = clik.newPhoto({"id":4009751,"src":"derwent_valley_27_v1_web_thumb.jpg","galleries_id":242246,"server_id":18,"link":"photo_4009751.html","width":130,"caption":"Derwent overflow","height":94});
															thumbnails[4288649] = clik.newPhoto({"id":4288649,"src":"Liverpool_manequin_08_v2_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288649.html","width":130,"caption":"Mannequin #12","height":96});
															thumbnails[4288830] = clik.newPhoto({"id":4288830,"src":"manequins_29_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288830.html","width":130,"caption":"Mannequin #19","height":94});
															thumbnails[5011801] = clik.newPhoto({"id":5011801,"src":"MW_Mannequins_045_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011801.html","width":130,"caption":"Mannequin #28","height":90});
															thumbnails[5181541] = clik.newPhoto({"id":5181541,"src":"_NIK8943snail_v3_web_thumb.jpg","galleries_id":51257,"server_id":18,"link":"photo_5181541.html","width":130,"caption":"Meditations on the pasage of time","height":87});
															thumbnails[6353329] = clik.newPhoto({"id":6353329,"src":"Cambois_doll5_08_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353329.html","width":130,"caption":"Doll #5","height":86});
															thumbnails[6353691] = clik.newPhoto({"id":6353691,"src":"Ruin_nr_Bedar_220hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353691.html","width":130,"caption":"Ruin nr Bedar #3","height":90});
															thumbnails[859232] = clik.newPhoto({"id":859232,"src":"daresbury_17_v4_web_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_859232.html","width":130,"caption":"Van der Graaff facility - Daresbury","height":58});
															thumbnails[859242] = clik.newPhoto({"id":859242,"src":"station clock_v1_web_thumb.jpg","galleries_id":50941,"server_id":18,"link":"photo_859242.html","width":130,"caption":"The Station Clock - Newcastle","height":91});
															thumbnails[886926] = clik.newPhoto({"id":886926,"src":"Reflections_89_v1_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886926.html","width":130,"caption":"Reflections #2","height":104});
															thumbnails[2044097] = clik.newPhoto({"id":2044097,"src":"Blush_3_v4_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_2044097.html","width":130,"caption":"Mannequin #6 - Tattooed","height":87});
															thumbnails[2157934] = clik.newPhoto({"id":2157934,"src":"gothenburg statue 3_v5_thumb.jpg","galleries_id":69516,"server_id":18,"link":"photo_2157934.html","width":130,"caption":"Dreams of lost civilisations #6","height":194});
															thumbnails[3408502] = clik.newPhoto({"id":3408502,"src":"Nicks2_compo_web_thumb.jpg","galleries_id":204948,"server_id":18,"link":"photo_3408502.html","width":130,"caption":"Washing line #6","height":87});
															thumbnails[3509991] = clik.newPhoto({"id":3509991,"src":"Seminary_5_v1_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509991.html","width":130,"caption":"Early morning at the Seminary","height":68});
															thumbnails[3510126] = clik.newPhoto({"id":3510126,"src":"Masts mojacar_08_v1_wb_thumb.jpg","galleries_id":214692,"server_id":18,"link":"photo_3510126.html","width":130,"caption":"Masts above Mojacar Village","height":87});
															thumbnails[4288652] = clik.newPhoto({"id":4288652,"src":"Liverpool_manequin_v1a_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288652.html","width":130,"caption":"Mannequin #13","height":93});
															thumbnails[4288831] = clik.newPhoto({"id":4288831,"src":"manequins_33_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288831.html","width":130,"caption":"Mannequin #20","height":93});
															thumbnails[5011804] = clik.newPhoto({"id":5011804,"src":"MW_Mannequins_197_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011804.html","width":130,"caption":"Mannequin #29","height":188});
															thumbnails[6353503] = clik.newPhoto({"id":6353503,"src":"Cambois_3_19_v1_web_thumb.jpg","galleries_id":351895,"server_id":18,"link":"photo_6353503.html","width":130,"caption":"Doll #6","height":86});
															thumbnails[6353692] = clik.newPhoto({"id":6353692,"src":"Ruin_21hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353692.html","width":130,"caption":"Ruin","height":86});
															thumbnails[6353698] = clik.newPhoto({"id":6353698,"src":"Villa_04_v2_web_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_6353698.html","width":130,"caption":"Vapour trail","height":85});
															thumbnails[7242449] = clik.newPhoto({"id":7242449,"src":"Website_front_page_web_thumb.jpg","galleries_id":51257,"server_id":18,"link":"photo_7242449.html","width":130,"caption":"","height":88});
															thumbnails[4288628] = clik.newPhoto({"id":4288628,"src":"Liverpool_manequin_02_v1_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4288628.html","width":130,"caption":"Mannequin #14","height":105});
															thumbnails[957262] = clik.newPhoto({"id":957262,"src":"Old Building_86_v3_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_957262.html","width":130,"caption":"Here time has passed - what ruin marks his way","height":159});
															thumbnails[976392] = clik.newPhoto({"id":976392,"src":"Cacti_x_v2_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_976392.html","width":130,"caption":"Dusky blooms","height":118});
															thumbnails[3408508] = clik.newPhoto({"id":3408508,"src":"Manequin 11_v3_web_thumb.jpg","galleries_id":113796,"server_id":18,"link":"photo_3408508.html","width":130,"caption":"Manequin #7 - Coppelia","height":92});
															thumbnails[3509994] = clik.newPhoto({"id":3509994,"src":"Girl jumping_v2_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509994.html","width":130,"caption":"Street play","height":194});
															thumbnails[4001916] = clik.newPhoto({"id":4001916,"src":"Duncan_096_v4_web_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_4001916.html","width":130,"caption":"Duncan: A Musician<br>\r\n","height":88});
															thumbnails[4288881] = clik.newPhoto({"id":4288881,"src":"manequins_38_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288881.html","width":130,"caption":"Mannequin #21","height":93});
															thumbnails[4553277] = clik.newPhoto({"id":4553277,"src":"Mannequin_04_v1_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4553277.html","width":130,"caption":"Mannequin #15","height":95});
															thumbnails[5011809] = clik.newPhoto({"id":5011809,"src":"MW_Mannequins_201_v1_web_thumb.jpg","galleries_id":284156,"server_id":18,"link":"photo_5011809.html","width":130,"caption":"Mannequin #30","height":180});
															thumbnails[6353695] = clik.newPhoto({"id":6353695,"src":"Ruin_nr_Bedar_189_hdr_v1_web_thumb.jpg","galleries_id":351906,"server_id":18,"link":"photo_6353695.html","width":130,"caption":"Ruin nr Bedar #4","height":196});
															thumbnails[886922] = clik.newPhoto({"id":886922,"src":"Rundertaarn_3_v2_zen_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_886922.html","width":130,"caption":"Rundertaarn","height":97});
															thumbnails[2872228] = clik.newPhoto({"id":2872228,"src":"Ellie-137_v4_web_thumb.jpg","galleries_id":69521,"server_id":18,"link":"photo_2872228.html","width":129,"caption":"Sang real","height":73});
															thumbnails[3509999] = clik.newPhoto({"id":3509999,"src":"Old lady_v4_wb_thumb.jpg","galleries_id":214689,"server_id":18,"link":"photo_3509999.html","width":130,"caption":"Old woman in a doorway","height":128});
															thumbnails[3510033] = clik.newPhoto({"id":3510033,"src":"Miners cottages_23+27_v1_wb_thumb.jpg","galleries_id":214692,"server_id":18,"link":"photo_3510033.html","width":130,"caption":"Old Miners Cottages #2","height":197});
															thumbnails[4288885] = clik.newPhoto({"id":4288885,"src":"manequins_42_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288885.html","width":130,"caption":"Mannequin #22","height":99});
															thumbnails[4553281] = clik.newPhoto({"id":4553281,"src":"Mannequin_11_v1_web_thumb.jpg","galleries_id":253183,"server_id":18,"link":"photo_4553281.html","width":130,"caption":"Mannequin #16","height":94});
															thumbnails[1020614] = clik.newPhoto({"id":1020614,"src":"boat in wood_v1_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_1020614.html","width":130,"caption":"Untitled","height":87});
															thumbnails[3510191] = clik.newPhoto({"id":3510191,"src":"Miners cottages_55_v1_wb_thumb.jpg","galleries_id":214692,"server_id":18,"link":"photo_3510191.html","width":130,"caption":"Old Miners Cottages #3 ","height":166});
															thumbnails[4288913] = clik.newPhoto({"id":4288913,"src":"manequins_28_v1_web_thumb.jpg","galleries_id":253184,"server_id":18,"link":"photo_4288913.html","width":130,"caption":"Mannequin #23","height":194});
															thumbnails[886966] = clik.newPhoto({"id":886966,"src":"Mam Tor_4_v12_zen_thumb.jpg","galleries_id":51421,"server_id":18,"link":"photo_886966.html","width":130,"caption":"Decending Mam Tor","height":95});
															thumbnails[1472921] = clik.newPhoto({"id":1472921,"src":"Dolls head-5_v1_web_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_1472921.html","width":130,"caption":"Dolls Head","height":87});
															thumbnails[2114305] = clik.newPhoto({"id":2114305,"src":"Yve portrait_1_v1_web_thumb.jpg","galleries_id":50715,"server_id":18,"link":"photo_2114305.html","width":130,"caption":"Yvonne","height":122});
															thumbnails[1020841] = clik.newPhoto({"id":1020841,"src":"old house_3_v1_thumb.jpg","galleries_id":68021,"server_id":18,"link":"photo_1020841.html","width":130,"caption":"Old Red House","height":103});
															thumbnails[1472925] = clik.newPhoto({"id":1472925,"src":"Blue Bottle_2_v1_web_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_1472925.html","width":130,"caption":"Blue Bottle - Blue Paint","height":87});
															thumbnails[4009563] = clik.newPhoto({"id":4009563,"src":"Bakewell_museum_15_v2_web_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_4009563.html","width":130,"caption":"Old bottles<br>\r\n","height":105});
															thumbnails[1473153] = clik.newPhoto({"id":1473153,"src":"Bra-4_web _v3_thumb.jpg","galleries_id":50925,"server_id":18,"link":"photo_1473153.html","width":130,"caption":"Discarded Bra","height":93});
															thumbnails[685589] = clik.newPhoto({"id":685589,"src":"Composite for web site v2_thumb.jpg","galleries_id":51257,"server_id":18,"link":"photo_685589.html","width":130,"caption":"","height":92});
															thumbnails[8907997] = clik.newPhoto({"id":8907997,"src":"Maggieportrait_4_v2_wb_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8907997.html","width":130,"caption":"Abstract nude #1","height":92});
															thumbnails[8907999] = clik.newPhoto({"id":8907999,"src":"Maggieframe_3_v6_wb_C43E6E7F-24E8-5EC4-4FA0DBF249E035F8_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8907999.html","width":130,"caption":"Abstrract nude #2","height":168});
															thumbnails[8908001] = clik.newPhoto({"id":8908001,"src":"Maggiesittingchair_17_v4_wb_C43EC600-24E8-5EC4-4FFDAA20754191C6_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908001.html","width":130,"caption":"Abstrract nude #3","height":79});
															thumbnails[8908000] = clik.newPhoto({"id":8908000,"src":"Maggieframe_3_v4_wb_C43E9D31-24E8-5EC4-4F98C19AD04B60B8_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908000.html","width":130,"caption":"Abstract nude #4","height":200});
															thumbnails[8908013] = clik.newPhoto({"id":8908013,"src":"Liverpoolabstr_05_v4_wb_C4682465-24E8-5EC4-4FACF04A181235D8_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908013.html","width":130,"caption":"Abstract #1","height":88});
															thumbnails[8908014] = clik.newPhoto({"id":8908014,"src":"bottleabstract_04_v1_wb_C4685251-24E8-5EC4-4F944F33457A9776_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908014.html","width":130,"caption":"Abstract #2","height":135});
															thumbnails[8908015] = clik.newPhoto({"id":8908015,"src":"Ribbons17_v1_wb_C468753C-24E8-5EC4-4FF3798265C2AAC7_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908015.html","width":130,"caption":"Abstract #3","height":93});
															thumbnails[8908016] = clik.newPhoto({"id":8908016,"src":"talking2_v9_wb_C4689CC1-24E8-5EC4-4F7AD72214BE0066_thumb.jpg","galleries_id":468559,"server_id":18,"link":"photo_8908016.html","width":130,"caption":"Talking to myself","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[72285] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Memories are  films about  ghosts","link":"gallery_72285.html","maxRecords":0.0,"photoIDs":[956494.0,956495.0,956493.0],"skipIndex":0,"section_code":"gallery","featured_images":"956495,956494,956493","id":72285,"singleSection":false});				  						galleries[50715] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Family and Friends","link":"gallery_50715.html","maxRecords":0.0,"photoIDs":[667001.0,673183.0,671875.0,825035.0,666998.0,4001916.0,2114305.0],"skipIndex":0,"section_code":"gallery","featured_images":"4001916,2114305,825035,673183,671875,667001,666998","id":50715,"singleSection":false});				  						galleries[468559] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent work","link":"section568522.html","maxRecords":0.0,"photoIDs":[8907997.0,8907999.0,8908001.0,8908000.0,8908013.0,8908014.0,8908015.0,8908016.0],"skipIndex":0,"section_code":"section568522","featured_images":"8908016,8908015,8908014,8908013,8908001,8908000,8907999,8907997","id":468559,"singleSection":true});				  						galleries[214692] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Almeria, 2009","link":"gallery_214692.html","maxRecords":0.0,"photoIDs":[3510083.0,3510126.0,3510033.0,3510191.0],"skipIndex":0,"section_code":"gallery","featured_images":"3510191,3510126,3510083,3510033","id":214692,"singleSection":false});				  						galleries[59102] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Melissa","link":"gallery_59102.html","maxRecords":0.0,"photoIDs":[764460.0,764461.0,764454.0,764459.0,764455.0,764463.0,764462.0],"skipIndex":0,"section_code":"gallery","featured_images":764461.0,"id":59102,"singleSection":false});				  						galleries[351906] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Almeria, 2010","link":"gallery_351906.html","maxRecords":0.0,"photoIDs":[6353674.0,6353682.0,6353685.0,6353688.0,6353691.0,6353692.0,6353695.0],"skipIndex":0,"section_code":"gallery","featured_images":"6353695,6353692,6353691,6353688,6353685,6353682,6353674","id":351906,"singleSection":false});				  						galleries[411312] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Almeria 2011","link":"gallery_411312.html","maxRecords":0.0,"photoIDs":[7583344.0,7583387.0,7583391.0,7583394.0,7583398.0],"skipIndex":0,"section_code":"gallery","featured_images":"7583398,7583394,7583391,7583387,7583344","id":411312,"singleSection":false});				  						galleries[50588] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Venice","link":"gallery_50588.html","maxRecords":0.0,"photoIDs":[665716.0,665717.0,671774.0],"skipIndex":0,"section_code":"gallery","featured_images":"671774,665717,665716","id":50588,"singleSection":false});				  						galleries[113796] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":" Mannequins #1","link":"gallery_113796.html","maxRecords":0.0,"photoIDs":[1689481.0,1689500.0,1689503.0,1734321.0,1972290.0,2044097.0,3408508.0],"skipIndex":0,"section_code":"gallery","featured_images":"3408508,2044097,1972290,1734321,1689503,1689500,1689481","id":113796,"singleSection":false});				  						galleries[50714] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People......","link":"gallery_50714.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"1956618,764461","id":50714,"singleSection":false});				  						galleries[51173] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Sarah","link":"gallery_51173.html","maxRecords":0.0,"photoIDs":[671761.0,671763.0,671764.0,671766.0],"skipIndex":0,"section_code":"gallery","featured_images":"671766,671764,671763,671761","id":51173,"singleSection":false});				  						galleries[51259] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Places.....","link":"gallery_51259.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7583398,7583394,7583391,7583387,7583344,6353695,6353692,6353691,6353688,6353685","id":51259,"singleSection":false});				  						galleries[69516] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Dreams of Lost Civilisations","link":"gallery_69516.html","maxRecords":0.0,"photoIDs":[673219.0,673216.0,2000822.0,2000820.0,2001485.0,2157934.0],"skipIndex":0,"section_code":"gallery","featured_images":"2157934,2001485,2000822,2000820,673219,673216","id":69516,"singleSection":false});				  						galleries[50941] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Northumberland","link":"gallery_50941.html","maxRecords":0.0,"photoIDs":[670456.0,671884.0,671886.0,673500.0,671777.0,671891.0,859242.0],"skipIndex":0,"section_code":"gallery","featured_images":"859242,673500,671891,671886,671884,671777,670456","id":50941,"singleSection":false});				  						galleries[69517] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Empty Spaces","link":"gallery_69517.html","maxRecords":0.0,"photoIDs":[665722.0,670449.0,670470.0,956632.0],"skipIndex":0,"section_code":"gallery","featured_images":"956632,670470,670449,665722","id":69517,"singleSection":false});				  						galleries[253183] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":"Mannequins #2","link":"gallery_253183.html","maxRecords":0.0,"photoIDs":[4288635.0,4288640.0,4288644.0,4288649.0,4288652.0,4288628.0,4553277.0,4553281.0],"skipIndex":0,"section_code":"gallery","featured_images":"4553281,4553277,4288652,4288649,4288644,4288640,4288635,4288628","id":253183,"singleSection":false});				  						galleries[50500] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Emma","link":"gallery_50500.html","maxRecords":0.0,"photoIDs":[664921.0,664882.0,831119.0],"skipIndex":0,"section_code":"gallery","featured_images":"831119,664921,664882","id":50500,"singleSection":false});				  						galleries[253184] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":"Mannequins #3 (Havana)","link":"gallery_253184.html","maxRecords":0.0,"photoIDs":[4288800.0,4288805.0,4288820.0,4288826.0,4288830.0,4288831.0,4288881.0,4288885.0,4288913.0],"skipIndex":0,"section_code":"gallery","featured_images":"4288913,4288885,4288881,4288831,4288830,4288826,4288820,4288805,4288800","id":253184,"singleSection":false});				  						galleries[284156] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":"Mannequns #4","link":"gallery_284156.html","maxRecords":0.0,"photoIDs":[5011790.0,5011792.0,5011795.0,5011798.0,5011801.0,5011804.0,5011809.0],"skipIndex":0,"section_code":"gallery","featured_images":"5011809,5011804,5011801,5011798,5011795,5011792,5011790","id":284156,"singleSection":false});				  						galleries[391383] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":"Mannequins #5 (Urfa)","link":"gallery_391383.html","maxRecords":0.0,"photoIDs":[7241587.0,7241588.0,7241589.0,7241590.0],"skipIndex":0,"section_code":"gallery","featured_images":"7241590,7241589,7241588,7241587","id":391383,"singleSection":false});				  						galleries[50925] = clik.newGallery({"parentGallery":253178,"usePopups":false,"title":"Miscelaneous","link":"gallery_50925.html","maxRecords":0.0,"photoIDs":[669134.0,675371.0,670518.0,675369.0,6353698.0,976392.0,1472921.0,1472925.0,4009563.0,1473153.0],"skipIndex":0,"section_code":"gallery","featured_images":"6353698,4009563,1473153,1472925,1472921,976392,675371,675369,670518,669134","id":50925,"singleSection":false});				  						galleries[51421] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"North West","link":"gallery_51421.html","maxRecords":0.0,"photoIDs":[675388.0,675419.0,675410.0,859232.0,957262.0,886966.0],"skipIndex":0,"section_code":"gallery","featured_images":"957262,886966,859232,675419,675410,675388","id":51421,"singleSection":false});				  						galleries[64477] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Bodyscapes","link":"gallery_64477.html","maxRecords":0.0,"photoIDs":[834557.0,834559.0,845008.0,845010.0],"skipIndex":0,"section_code":"gallery","featured_images":"845010,845008,834559,834557","id":64477,"singleSection":false});				  						galleries[351895] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Corpse Doll","link":"gallery_351895.html","maxRecords":0.0,"photoIDs":[6353295.0,6353307.0,6353317.0,6353322.0,6353329.0,6353503.0],"skipIndex":0,"section_code":"gallery","featured_images":"6353503,6353329,6353322,6353317,6353307,6353295","id":351895,"singleSection":false});				  						galleries[253178] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Things....","link":"gallery_253178.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7241590,7241589,7241588,7241587,6353698,5011809,5011804,5011801,5011798,5011795","id":253178,"singleSection":false});				  						galleries[178492] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Ellie","link":"gallery_178492.html","maxRecords":0.0,"photoIDs":[1956618.0,1956620.0,1956621.0,1956622.0],"skipIndex":0,"section_code":"gallery","featured_images":1956618.0,"id":178492,"singleSection":false});				  						galleries[214689] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Old Havana","link":"gallery_214689.html","maxRecords":0.0,"photoIDs":[3509677.0,3509680.0,3509687.0,3509693.0,3509695.0,3509991.0,3509994.0,3509999.0],"skipIndex":0,"section_code":"gallery","featured_images":"3509999,3509994,3509991,3509695,3509693,3509687,3509680,3509677","id":214689,"singleSection":false});				  						galleries[68021] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"Scandanavia","link":"gallery_68021.html","maxRecords":0.0,"photoIDs":[886907.0,886908.0,886911.0,886915.0,886926.0,886922.0,1020614.0,1020841.0],"skipIndex":0,"section_code":"gallery","featured_images":"1020841,1020614,886926,886922,886915,886911,886908,886907","id":68021,"singleSection":false});				  						galleries[69322] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Projects","link":"gallery_69322.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7242510,7242507,7242505,7242504,6353503,6353329,6353322,6353317,6353307,6353295","id":69322,"singleSection":false});				  						galleries[69521] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Melancholy & Dark","link":"gallery_69521.html","maxRecords":0.0,"photoIDs":[673211.0,675382.0,956450.0,956447.0,673224.0,2872228.0],"skipIndex":0,"section_code":"gallery","featured_images":"2872228,956450,956447,675382,673224,673211","id":69521,"singleSection":false});				  						galleries[172579] = clik.newGallery({"parentGallery":50714,"usePopups":false,"title":"Tiffany","link":"gallery_172579.html","maxRecords":0.0,"photoIDs":[2748442.0,2748501.0,2748563.0,4001924.0],"skipIndex":0,"section_code":"gallery","featured_images":"4001924,2748563,2748501,2748442","id":172579,"singleSection":false});				  						galleries[242246] = clik.newGallery({"parentGallery":51259,"usePopups":false,"title":"The Peak District","link":"gallery_242246.html","maxRecords":0.0,"photoIDs":[4009447.0,4009452.0,4009454.0,4009487.0,4009751.0],"skipIndex":0,"section_code":"gallery","featured_images":"4009751,4009487,4009454,4009452,4009447","id":242246,"singleSection":false});				  						galleries[76257] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Dressing & Undressing","link":"gallery_76257.html","maxRecords":0.0,"photoIDs":[670500.0,991611.0,1280962.0,2728741.0],"skipIndex":0,"section_code":"gallery","featured_images":"2728741,1280962,991611,670500","id":76257,"singleSection":false});				  						galleries[206942] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Pseudo Holgas","link":"gallery_206942.html","maxRecords":0.0,"photoIDs":[3388933.0,3388875.0,3388886.0,3388946.0],"skipIndex":0,"section_code":"gallery","featured_images":"3388946,3388933,3388886,3388875","id":206942,"singleSection":false});				  						galleries[204948] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Washing Line","link":"gallery_204948.html","maxRecords":0.0,"photoIDs":[3357022.0,3357027.0,3357035.0,3357041.0,3357044.0,3408502.0],"skipIndex":0,"section_code":"gallery","featured_images":"3408502,3357044,3357041,3357035,3357027,3357022","id":204948,"singleSection":false});				  						galleries[242247] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"- Water Towers","link":"gallery_242247.html","maxRecords":0.0,"photoIDs":[4009463.0,4009464.0,4009472.0,4009482.0],"skipIndex":0,"section_code":"gallery","featured_images":"4009482,4009472,4009464,4009463","id":242247,"singleSection":false});				  						galleries[51257] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Stuff","link":"gallery_51257.html","maxRecords":0.0,"photoIDs":[5181534.0,5181537.0,5181541.0,7242449.0,685589.0],"skipIndex":0,"section_code":"gallery","featured_images":"7242449,5181541,5181537,5181534,685589","id":51257,"singleSection":false});				  						galleries[391461] = clik.newGallery({"parentGallery":69322,"usePopups":false,"title":"Pictorialism","link":"gallery_391461.html","maxRecords":0.0,"photoIDs":[7242504.0,7242505.0,7242507.0,7242510.0],"skipIndex":0,"section_code":"gallery","featured_images":"7242510,7242507,7242505,7242504","id":391461,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7242449';
imageSets[2] = '764461,1956618';
imageSets[3] = '8908016,8908015,8908014,8908013,8908001,8908000,8907999,8907997,7583398,7583394,7583391,7583387,7583344,7242510,7242507,7242505,7242504,7242449,7241590,7241589,7241588,7241587,6353698,6353695,6353692,6353691,6353688,6353685,6353682,6353674,6353503,6353329,6353322,6353317,6353307,6353295,5181541,5181537,5181534,5011809,5011804,5011801,5011798,5011795,5011792,5011790,4553281,4553277,4288913,4288885';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/brianlaw/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/brianlaw/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 = 'Brian Law Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

