window.thumbnails = {};
															thumbnails[7492024] = clik.newPhoto({"id":7492024,"src":"me_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":101});
															thumbnails[7574307] = clik.newPhoto({"id":7574307,"src":"bipp-logo_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":280});
															thumbnails[8145079] = clik.newPhoto({"id":8145079,"src":"print_size_image_for_web_site_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":226});
															thumbnails[6357674] = clik.newPhoto({"id":6357674,"src":"_EDN0157_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_6357674.html","width":130,"caption":"*9","height":87});
															thumbnails[6357676] = clik.newPhoto({"id":6357676,"src":"_EDN0184_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_6357676.html","width":130,"caption":"*8","height":87});
															thumbnails[6357679] = clik.newPhoto({"id":6357679,"src":"art-org-258_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_6357679.html","width":130,"caption":"bachelor","height":83});
															thumbnails[6357680] = clik.newPhoto({"id":6357680,"src":"art-org-259_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_6357680.html","width":130,"caption":"lough","height":87});
															thumbnails[6357804] = clik.newPhoto({"id":6357804,"src":"exploration1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_6357804.html","width":130,"caption":"*4","height":87});
															thumbnails[6357805] = clik.newPhoto({"id":6357805,"src":"exploration-21_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_6357805.html","width":130,"caption":"*3","height":87});
															thumbnails[6357809] = clik.newPhoto({"id":6357809,"src":"faces2_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_6357809.html","width":130,"caption":"*2","height":87});
															thumbnails[6357810] = clik.newPhoto({"id":6357810,"src":"fetus2_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_6357810.html","width":130,"caption":"*1","height":87});
															thumbnails[7442976] = clik.newPhoto({"id":7442976,"src":"human-endevour-workshop-Feb-2011-032_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_7442976.html","width":130,"caption":"*7","height":86});
															thumbnails[7442979] = clik.newPhoto({"id":7442979,"src":"human-endevour-workshop-Feb-2011-033_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_7442979.html","width":130,"caption":"*6","height":86});
															thumbnails[7443060] = clik.newPhoto({"id":7443060,"src":"bluesdog-37_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443060.html","width":130,"caption":"","height":90});
															thumbnails[7443068] = clik.newPhoto({"id":7443068,"src":"bluesdog-44_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443068.html","width":130,"caption":"","height":90});
															thumbnails[7443070] = clik.newPhoto({"id":7443070,"src":"bluesdog-40_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443070.html","width":130,"caption":"","height":118});
															thumbnails[7443074] = clik.newPhoto({"id":7443074,"src":"bluesdog-42_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443074.html","width":130,"caption":"","height":100});
															thumbnails[7443076] = clik.newPhoto({"id":7443076,"src":"bluesdog-46_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443076.html","width":130,"caption":"","height":100});
															thumbnails[7443079] = clik.newPhoto({"id":7443079,"src":"bluesdog-48_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443079.html","width":130,"caption":"","height":100});
															thumbnails[7443082] = clik.newPhoto({"id":7443082,"src":"bluesdog-50_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_7443082.html","width":130,"caption":"","height":92});
															thumbnails[8136316] = clik.newPhoto({"id":8136316,"src":"_DSC2396_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136316.html","width":200,"caption":"MG","height":133});
															thumbnails[8136320] = clik.newPhoto({"id":8136320,"src":"_DSC2614_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136320.html","width":200,"caption":"laid out for lunch","height":133});
															thumbnails[8136321] = clik.newPhoto({"id":8136321,"src":"_DSC2767_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136321.html","width":200,"caption":"man with beard","height":133});
															thumbnails[8136322] = clik.newPhoto({"id":8136322,"src":"_DSC5431_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136322.html","width":200,"caption":"two balconies","height":133});
															thumbnails[8136325] = clik.newPhoto({"id":8136325,"src":"_DSC5613_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136325.html","width":200,"caption":"shoes","height":133});
															thumbnails[8136326] = clik.newPhoto({"id":8136326,"src":"_DSC5954_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136326.html","width":200,"caption":"out for a walk","height":133});
															thumbnails[8136332] = clik.newPhoto({"id":8136332,"src":"_DSC6101_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136332.html","width":200,"caption":"white fiat","height":133});
															thumbnails[8136353] = clik.newPhoto({"id":8136353,"src":"_DSC5911_thumb_1.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136353.html","width":200,"caption":"ponte vecchio","height":133});
															thumbnails[8136355] = clik.newPhoto({"id":8136355,"src":"_DSC5673_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136355.html","width":200,"caption":"red tiled roof tops *2","height":133});
															thumbnails[8136359] = clik.newPhoto({"id":8136359,"src":"_DSC5834_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136359.html","width":200,"caption":"balcony","height":133});
															thumbnails[8136418] = clik.newPhoto({"id":8136418,"src":"_DSC2525_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8136418.html","width":200,"caption":"*5","height":133});
															thumbnails[8136424] = clik.newPhoto({"id":8136424,"src":"_DSC2591_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8136424.html","width":160,"caption":"*4","height":106});
															thumbnails[8136431] = clik.newPhoto({"id":8136431,"src":"_DSC2748_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8136431.html","width":200,"caption":"*2","height":133});
															thumbnails[8136508] = clik.newPhoto({"id":8136508,"src":"_DSC5451_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136508.html","width":200,"caption":"horse statues","height":133});
															thumbnails[8136525] = clik.newPhoto({"id":8136525,"src":"_DSC5669_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136525.html","width":200,"caption":"red tiled roof tops","height":133});
															thumbnails[8136530] = clik.newPhoto({"id":8136530,"src":"_DSC5743-colour_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136530.html","width":200,"caption":"white chair","height":133});
															thumbnails[8136576] = clik.newPhoto({"id":8136576,"src":"_DSC6044_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136576.html","width":200,"caption":"blue fiat","height":133});
															thumbnails[8783175] = clik.newPhoto({"id":8783175,"src":"_DSC7438_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8783175.html","width":200,"caption":"*1","height":133});
															thumbnails[8783195] = clik.newPhoto({"id":8783195,"src":"_DSC5895_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8783195.html","width":200,"caption":"the glance *2","height":133});
															thumbnails[8783163] = clik.newPhoto({"id":8783163,"src":"Blue-jacket-saxophone-player-1-copy_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8783163.html","width":200,"caption":"Blue-jacket-saxophone-player-1-copy","height":275});
															thumbnails[8783172] = clik.newPhoto({"id":8783172,"src":"purple-jacket-bass-player-1-copy_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8783172.html","width":200,"caption":"purple-jacket-bass-player-1-copy","height":287});
															thumbnails[8791965] = clik.newPhoto({"id":8791965,"src":"drummer-with-light-green-shirt_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8791965.html","width":200,"caption":"drummer-with-light-green-shirt","height":247});
															thumbnails[8791966] = clik.newPhoto({"id":8791966,"src":"drummer-with-pink-shirt_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8791966.html","width":200,"caption":"drummer-with-pink-shirt","height":275});
															thumbnails[8791967] = clik.newPhoto({"id":8791967,"src":"piano-player-with-yellow-jacket_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8791967.html","width":200,"caption":"piano-player-with-yellow-jacket","height":275});
															thumbnails[6357799] = clik.newPhoto({"id":6357799,"src":"awakening1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_6357799.html","width":130,"caption":"*5","height":194});
															thumbnails[6491523] = clik.newPhoto({"id":6491523,"src":"_DSC2560_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_6491523.html","width":200,"caption":"*10","height":301});
															thumbnails[7442915] = clik.newPhoto({"id":7442915,"src":"line-images-12c_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7442915.html","width":130,"caption":"yellow jacket saxophone","height":179});
															thumbnails[8137703] = clik.newPhoto({"id":8137703,"src":"_DSC2406_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137703.html","width":200,"caption":"the beach","height":133});
															thumbnails[8783653] = clik.newPhoto({"id":8783653,"src":"_DSC5433_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783653.html","width":200,"caption":"white shutters","height":133});
															thumbnails[8783695] = clik.newPhoto({"id":8783695,"src":"_DSC5481_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783695.html","width":200,"caption":"ponte vecchio *2","height":133});
															thumbnails[8784343] = clik.newPhoto({"id":8784343,"src":"_DSC6464_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784343.html","width":200,"caption":"blue strip","height":133});
															thumbnails[8784676] = clik.newPhoto({"id":8784676,"src":"_DSC2397_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784676.html","width":200,"caption":"MG *1","height":133});
															thumbnails[8784682] = clik.newPhoto({"id":8784682,"src":"florence-May-2011-228_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784682.html","width":200,"caption":"florence *3","height":150});
															thumbnails[8784857] = clik.newPhoto({"id":8784857,"src":"lanscape-210-Edit_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784857.html","width":200,"caption":"deer *6","height":133});
															thumbnails[8785356] = clik.newPhoto({"id":8785356,"src":"_DSC7941_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8785356.html","width":200,"caption":"*10","height":301});
															thumbnails[8814799] = clik.newPhoto({"id":8814799,"src":"r-profile-colour-2_thumb.jpg","galleries_id":464080,"server_id":15,"link":"photo_8814799.html","width":160,"caption":"Rachael","height":123});
															thumbnails[6355067] = clik.newPhoto({"id":6355067,"src":"_DSC2564_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_6355067.html","width":200,"caption":"*11","height":301});
															thumbnails[7442919] = clik.newPhoto({"id":7442919,"src":"line-images-Edit-a_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7442919.html","width":130,"caption":"purple Jacket saxophone","height":179});
															thumbnails[8136448] = clik.newPhoto({"id":8136448,"src":"_DSC5938_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136448.html","width":200,"caption":"coloured chairs","height":133});
															thumbnails[8783164] = clik.newPhoto({"id":8783164,"src":"seeing-as-1_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8783164.html","width":200,"caption":"*6","height":301});
															thumbnails[8783346] = clik.newPhoto({"id":8783346,"src":"_DSC3779_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8783346.html","width":200,"caption":"reflection *2","height":133});
															thumbnails[8783378] = clik.newPhoto({"id":8783378,"src":"white-door-with-yellow-panels_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783378.html","width":200,"caption":"white-door-with-yellow-panels","height":131});
															thumbnails[8783659] = clik.newPhoto({"id":8783659,"src":"_DSC6444_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783659.html","width":200,"caption":"brown door","height":133});
															thumbnails[8783696] = clik.newPhoto({"id":8783696,"src":"_DSC5647_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783696.html","width":200,"caption":"roofs","height":133});
															thumbnails[8784344] = clik.newPhoto({"id":8784344,"src":"_DSC6793_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784344.html","width":200,"caption":"red shoe","height":133});
															thumbnails[8784677] = clik.newPhoto({"id":8784677,"src":"_DSC5426_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784677.html","width":200,"caption":"two balconies *3","height":133});
															thumbnails[8784683] = clik.newPhoto({"id":8784683,"src":"lanscape-192_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784683.html","width":200,"caption":"deer *1","height":133});
															thumbnails[8784859] = clik.newPhoto({"id":8784859,"src":"lanscape-212_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784859.html","width":200,"caption":"deer *7","height":133});
															thumbnails[8785357] = clik.newPhoto({"id":8785357,"src":"_DSC7942_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8785357.html","width":200,"caption":"*11","height":301});
															thumbnails[8814800] = clik.newPhoto({"id":8814800,"src":"r-profile-colour_thumb.jpg","galleries_id":464080,"server_id":15,"link":"photo_8814800.html","width":160,"caption":"Rachael 1","height":112});
															thumbnails[8136344] = clik.newPhoto({"id":8136344,"src":"_DSC2410_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136344.html","width":200,"caption":"le coq hard","height":133});
															thumbnails[8783165] = clik.newPhoto({"id":8783165,"src":"_DSC7931-Edit_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8783165.html","width":200,"caption":"*7","height":301});
															thumbnails[8783348] = clik.newPhoto({"id":8783348,"src":"_DSC3844_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_8783348.html","width":160,"caption":"","height":106});
															thumbnails[8783697] = clik.newPhoto({"id":8783697,"src":"_DSC6098_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783697.html","width":200,"caption":"purple flower","height":133});
															thumbnails[8784345] = clik.newPhoto({"id":8784345,"src":"_DSC6918_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784345.html","width":200,"caption":"cute dogs","height":133});
															thumbnails[8784353] = clik.newPhoto({"id":8784353,"src":"street-colour-3_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784353.html","width":200,"caption":"parisian apartment","height":134});
															thumbnails[8784678] = clik.newPhoto({"id":8784678,"src":"_DSC5723_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784678.html","width":200,"caption":"lunch","height":133});
															thumbnails[8784684] = clik.newPhoto({"id":8784684,"src":"lanscape-198_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784684.html","width":200,"caption":"deer *2","height":133});
															thumbnails[8784861] = clik.newPhoto({"id":8784861,"src":"lanscape-216_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784861.html","width":200,"caption":"deer *8","height":133});
															thumbnails[8785358] = clik.newPhoto({"id":8785358,"src":"_DSC7943_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8785358.html","width":200,"caption":"*12","height":301});
															thumbnails[8814801] = clik.newPhoto({"id":8814801,"src":"rachel-3_thumb.jpg","galleries_id":464080,"server_id":15,"link":"photo_8814801.html","width":160,"caption":"Rachael 2","height":106});
															thumbnails[8783613] = clik.newPhoto({"id":8783613,"src":"bluesdog-180_thumb.jpg","galleries_id":403483,"server_id":15,"link":"photo_8783613.html","width":160,"caption":"","height":241});
															thumbnails[8136345] = clik.newPhoto({"id":8136345,"src":"_DSC2573_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136345.html","width":200,"caption":"white teapot","height":133});
															thumbnails[8783166] = clik.newPhoto({"id":8783166,"src":"_DSC7937-Edit_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8783166.html","width":200,"caption":"*8","height":301});
															thumbnails[8783349] = clik.newPhoto({"id":8783349,"src":"_DSC6445_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783349.html","width":200,"caption":"green door","height":133});
															thumbnails[8783698] = clik.newPhoto({"id":8783698,"src":"_DSC6275_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783698.html","width":200,"caption":"hanging flower pots","height":133});
															thumbnails[8784346] = clik.newPhoto({"id":8784346,"src":"_DSC6964_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784346.html","width":200,"caption":"arches *2","height":133});
															thumbnails[8784354] = clik.newPhoto({"id":8784354,"src":"street-colour-4_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784354.html","width":200,"caption":"jackets","height":134});
															thumbnails[8784679] = clik.newPhoto({"id":8784679,"src":"_DSC6000_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784679.html","width":200,"caption":"Meeting place *1","height":133});
															thumbnails[8784685] = clik.newPhoto({"id":8784685,"src":"lanscape-208_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784685.html","width":200,"caption":"deer *3","height":133});
															thumbnails[8784863] = clik.newPhoto({"id":8784863,"src":"lanscape-222_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784863.html","width":200,"caption":"deer *9","height":133});
															thumbnails[8814802] = clik.newPhoto({"id":8814802,"src":"rachel-4_thumb.jpg","galleries_id":464080,"server_id":15,"link":"photo_8814802.html","width":160,"caption":"Rachael 3","height":106});
															thumbnails[8783167] = clik.newPhoto({"id":8783167,"src":"_DSC7938-Edit-copy_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8783167.html","width":200,"caption":"*9","height":301});
															thumbnails[8784575] = clik.newPhoto({"id":8784575,"src":"_DSC8506_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8784575.html","width":200,"caption":"stampede *1","height":133});
															thumbnails[8136352] = clik.newPhoto({"id":8136352,"src":"_DSC5635_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8136352.html","width":200,"caption":"Blue window","height":133});
															thumbnails[8783350] = clik.newPhoto({"id":8783350,"src":"_DSC8507_1_thumb.jpg","galleries_id":309168,"server_id":15,"link":"photo_8783350.html","width":200,"caption":"Stampede *2","height":133});
															thumbnails[8783699] = clik.newPhoto({"id":8783699,"src":"_DSC6443_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783699.html","width":200,"caption":"two street chairs","height":133});
															thumbnails[8784347] = clik.newPhoto({"id":8784347,"src":"_DSC7121_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8784347.html","width":200,"caption":"brown door *2","height":133});
															thumbnails[8784680] = clik.newPhoto({"id":8784680,"src":"_DSC6178_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784680.html","width":200,"caption":"camera","height":133});
															thumbnails[8784865] = clik.newPhoto({"id":8784865,"src":"_DSC5426_2_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8784865.html","width":200,"caption":"two balconies *4","height":133});
															thumbnails[7718561] = clik.newPhoto({"id":7718561,"src":"trumprt-flat_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7718561.html","width":130,"caption":"blue teeshirt trumpet","height":179});
															thumbnails[8136799] = clik.newPhoto({"id":8136799,"src":"_DSC5551_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136799.html","width":200,"caption":"woman in white","height":301});
															thumbnails[8137033] = clik.newPhoto({"id":8137033,"src":"_DSC5973-square_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137033.html","width":200,"caption":"blue shutters","height":200});
															thumbnails[7442918] = clik.newPhoto({"id":7442918,"src":"line-images-15-flattened_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7442918.html","width":130,"caption":"orange jacket bass","height":186});
															thumbnails[7718559] = clik.newPhoto({"id":7718559,"src":"piano_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7718559.html","width":130,"caption":"green jacket piano","height":156});
															thumbnails[7718557] = clik.newPhoto({"id":7718557,"src":"drummer_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_7718557.html","width":130,"caption":"red jumper drums","height":161});
															thumbnails[8783173] = clik.newPhoto({"id":8783173,"src":"_DSC6102_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783173.html","width":200,"caption":"blue bowl","height":301});
															thumbnails[8694220] = clik.newPhoto({"id":8694220,"src":"Trio-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694220.html","width":200,"caption":"*1","height":100});
															thumbnails[8694268] = clik.newPhoto({"id":8694268,"src":"quartet-1-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694268.html","width":200,"caption":"*2","height":91});
															thumbnails[8694293] = clik.newPhoto({"id":8694293,"src":"quartet-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694293.html","width":200,"caption":"*3","height":94});
															thumbnails[8694206] = clik.newPhoto({"id":8694206,"src":"Quintet-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694206.html","width":200,"caption":"*4","height":84});
															thumbnails[8694331] = clik.newPhoto({"id":8694331,"src":"Trio-flat-with-bw-singer-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694331.html","width":200,"caption":"*1 with bw singer","height":100});
															thumbnails[8694274] = clik.newPhoto({"id":8694274,"src":"quartet-flat-with-bw-singer-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694274.html","width":200,"caption":"*2 with bw singer","height":100});
															thumbnails[8694194] = clik.newPhoto({"id":8694194,"src":"Quintet-flat-with-bw-singer-flat_1_thumb.jpg","galleries_id":352017,"server_id":15,"link":"photo_8694194.html","width":200,"caption":"*4 with bw singer","height":100});
															thumbnails[8136811] = clik.newPhoto({"id":8136811,"src":"_DSC5567_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136811.html","width":200,"caption":"arches","height":301});
															thumbnails[8783174] = clik.newPhoto({"id":8783174,"src":"_DSC6279_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783174.html","width":200,"caption":"behind the curtain","height":301});
															thumbnails[8136878] = clik.newPhoto({"id":8136878,"src":"_DSC5940_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136878.html","width":200,"caption":"leaning bikes","height":301});
															thumbnails[8136854] = clik.newPhoto({"id":8136854,"src":"_DSC5718_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136854.html","width":200,"caption":"the glance","height":301});
															thumbnails[8136882] = clik.newPhoto({"id":8136882,"src":"_DSC5969_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136882.html","width":200,"caption":"man with glasses","height":301});
															thumbnails[8136884] = clik.newPhoto({"id":8136884,"src":"_DSC5988_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136884.html","width":200,"caption":"monk","height":301});
															thumbnails[8136885] = clik.newPhoto({"id":8136885,"src":"_DSC6010_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136885.html","width":200,"caption":"meeting place","height":301});
															thumbnails[8136886] = clik.newPhoto({"id":8136886,"src":"_DSC6147_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136886.html","width":200,"caption":"the waiter","height":301});
															thumbnails[8136887] = clik.newPhoto({"id":8136887,"src":"_DSC6194_1_thumb.jpg","galleries_id":210771,"server_id":15,"link":"photo_8136887.html","width":200,"caption":"man with white hat","height":301});
															thumbnails[8137029] = clik.newPhoto({"id":8137029,"src":"_DSC5930_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137029.html","width":200,"caption":"reflection *3","height":301});
															thumbnails[8137031] = clik.newPhoto({"id":8137031,"src":"_DSC5937_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137031.html","width":200,"caption":"reflection *4","height":301});
															thumbnails[8137032] = clik.newPhoto({"id":8137032,"src":"_DSC5939_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137032.html","width":200,"caption":"table legs","height":301});
															thumbnails[8137035] = clik.newPhoto({"id":8137035,"src":"_DSC6093_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8137035.html","width":200,"caption":"red lenses","height":301});
															thumbnails[8783179] = clik.newPhoto({"id":8783179,"src":"_DSC3858_1_thumb.jpg","galleries_id":335946,"server_id":15,"link":"photo_8783179.html","width":200,"caption":"reflection *5","height":301});
															thumbnails[8783186] = clik.newPhoto({"id":8783186,"src":"_DSC6408_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783186.html","width":200,"caption":"street bench","height":301});
															thumbnails[8783667] = clik.newPhoto({"id":8783667,"src":"_DSC6795_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783667.html","width":200,"caption":"sunflowers","height":301});
															thumbnails[8783668] = clik.newPhoto({"id":8783668,"src":"_DSC6884_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783668.html","width":200,"caption":"two balconies *2","height":301});
															thumbnails[8783675] = clik.newPhoto({"id":8783675,"src":"paris-333_1_thumb.jpg","galleries_id":210775,"server_id":15,"link":"photo_8783675.html","width":200,"caption":"wall painting","height":298});
															thumbnails[6354970] = clik.newPhoto({"id":6354970,"src":"faces1_thumb.jpg","galleries_id":335939,"server_id":15,"link":"photo_6354970.html","width":130,"caption":"","height":87});
															thumbnails[6354971] = clik.newPhoto({"id":6354971,"src":"fetus1_thumb.jpg","galleries_id":335939,"server_id":15,"link":"photo_6354971.html","width":130,"caption":"","height":87});
															thumbnails[6354981] = clik.newPhoto({"id":6354981,"src":"alicante_DBC74482-1EC9-D45B-1CB06D6D71C6BA98_thumb.jpg","galleries_id":335938,"server_id":15,"link":"photo_6354981.html","width":130,"caption":"","height":86});
															thumbnails[6355009] = clik.newPhoto({"id":6355009,"src":"london-offices_DBCBCDC3-1EC9-D45B-1C7778D468422252_thumb.jpg","galleries_id":335938,"server_id":15,"link":"photo_6355009.html","width":130,"caption":"","height":86});
															thumbnails[6355065] = clik.newPhoto({"id":6355065,"src":"_DSC2560-large-printt_thumb.jpg","galleries_id":357523,"server_id":15,"link":"photo_6355065.html","width":130,"caption":"","height":195});
															thumbnails[6491199] = clik.newPhoto({"id":6491199,"src":"line-images-Edit-a_4E23305D-1D09-001F-99E56B5710438E5E_thumb.jpg","galleries_id":357523,"server_id":15,"link":"photo_6491199.html","width":130,"caption":"","height":179});
															thumbnails[7339514] = clik.newPhoto({"id":7339514,"src":"bipp5_thumb.jpg","galleries_id":397241,"server_id":15,"link":"photo_7339514.html","width":130,"caption":"image from 'India's Golden Triangle' photofilm exhibition","height":87});
															thumbnails[6819212] = clik.newPhoto({"id":6819212,"src":"flattened-first-2-Edit-2_thumb.jpg","galleries_id":397241,"server_id":15,"link":"photo_6819212.html","width":130,"caption":"Emigration Exhibition, Senegal","height":86});
															thumbnails[6819215] = clik.newPhoto({"id":6819215,"src":"NAE-exhibition-1-flattened-Edit_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_6819215.html","width":130,"caption":"","height":86});
															thumbnails[6819217] = clik.newPhoto({"id":6819217,"src":"NAE-exhibition-2-flattened-3-Edit-Edit_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_6819217.html","width":130,"caption":"image from 'Emigration' exhibition","height":86});
															thumbnails[6819223] = clik.newPhoto({"id":6819223,"src":"NAE-exhibition-3-flattened-2-Edit-2_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_6819223.html","width":130,"caption":"","height":86});
															thumbnails[6819226] = clik.newPhoto({"id":6819226,"src":"NAE-exhibition-4-flattened-3-Edit_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_6819226.html","width":130,"caption":"","height":86});
															thumbnails[4875893] = clik.newPhoto({"id":4875893,"src":"DSC00894_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875893.html","width":130,"caption":"","height":98});
															thumbnails[4875905] = clik.newPhoto({"id":4875905,"src":"DSC00916_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875905.html","width":130,"caption":"","height":98});
															thumbnails[4875903] = clik.newPhoto({"id":4875903,"src":"DSC00910_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875903.html","width":130,"caption":"","height":98});
															thumbnails[4875907] = clik.newPhoto({"id":4875907,"src":"DSC00917_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875907.html","width":130,"caption":"","height":98});
															thumbnails[4875910] = clik.newPhoto({"id":4875910,"src":"DSC00925_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875910.html","width":130,"caption":"","height":98});
															thumbnails[4875911] = clik.newPhoto({"id":4875911,"src":"DSC00931_thumb.jpg","galleries_id":278201,"server_id":15,"link":"photo_4875911.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[357523] = clik.newGallery({"parentGallery":212028,"usePopups":false,"title":"Djanogly Art Gallery  2010 (selected)","link":"section482036_357523.html","maxRecords":0.0,"photoIDs":[6355065.0,6491199.0],"skipIndex":0,"section_code":"section482036","featured_images":"6491199,6355065","id":357523,"singleSection":false});				  						galleries[278201] = clik.newGallery({"parentGallery":212028,"usePopups":false,"title":"Emigration Exhibiting at New Art Exchange (solo)","link":"section482036_278201.html","maxRecords":0.0,"photoIDs":[6819215.0,6819217.0,6819223.0,6819226.0,4875893.0,4875905.0,4875903.0,4875907.0,4875910.0,4875911.0],"skipIndex":0,"section_code":"section482036","featured_images":"6819226,6819223,6819217,6819215,4875911,4875910,4875907,4875905,4875903,4875893","id":278201,"singleSection":false});				  						galleries[464080] = clik.newGallery({"parentGallery":327768,"usePopups":false,"title":"Rachael","link":"gallery_464080.html","maxRecords":0.0,"photoIDs":[8814799.0,8814800.0,8814801.0,8814802.0],"skipIndex":0,"section_code":"gallery","featured_images":"8814802,8814801,8814800,8814799","id":464080,"singleSection":false});				  						galleries[335938] = clik.newGallery({"parentGallery":212028,"usePopups":false,"title":"South Holland (selected)","link":"section482036_335938.html","maxRecords":0.0,"photoIDs":[6354981.0,6355009.0],"skipIndex":0,"section_code":"section482036","featured_images":"6355009,6354981","id":335938,"singleSection":false});				  						galleries[335939] = clik.newGallery({"parentGallery":212028,"usePopups":false,"title":"The Mind's Eye (selected)","link":"section482036_335939.html","maxRecords":0.0,"photoIDs":[6354970.0,6354971.0],"skipIndex":0,"section_code":"section482036","featured_images":"6354971,6354970","id":335939,"singleSection":false});				  						galleries[210766] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Colour","link":"gallery_210766.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8791967,8791966,8791965,8785358,8785357,8785356,8784575,8784354,8784353,8784347","id":210766,"singleSection":false});				  						galleries[210775] = clik.newGallery({"parentGallery":210766,"usePopups":false,"title":"Location - Colour","link":"gallery_210775.html","maxRecords":0.0,"photoIDs":[8136353.0,8136355.0,8136359.0,8136508.0,8136525.0,8136530.0,8136576.0,8137703.0,8783653.0,8783695.0,8784343.0,8136448.0,8783378.0,8783659.0,8783696.0,8784344.0,8136344.0,8783697.0,8784345.0,8784353.0,8136345.0,8783349.0,8783698.0,8784346.0,8784354.0,8136352.0,8783699.0,8784347.0,8137033.0,8783173.0,8783174.0,8137029.0,8137031.0,8137032.0,8137035.0,8783186.0,8783667.0,8783668.0,8783675.0],"skipIndex":0,"section_code":"gallery","featured_images":"8784354,8784353,8784347,8784346,8784345,8784344,8784343,8783699,8783698,8783697","id":210775,"singleSection":false});				  						galleries[335946] = clik.newGallery({"parentGallery":210766,"usePopups":false,"title":"Abstract surface","link":"gallery_335946.html","maxRecords":0.0,"photoIDs":[6357674.0,6357676.0,7442976.0,7442979.0,8136418.0,8136424.0,8136431.0,8783175.0,6491523.0,6355067.0,8783346.0,8783179.0],"skipIndex":0,"section_code":"gallery","featured_images":"8783346,8783179,8783175,8136431,8136424,8136418,7442979,7442976,6491523,6357676","id":335946,"singleSection":false});				  						galleries[403483] = clik.newGallery({"parentGallery":327768,"usePopups":false,"title":"Bluesdog","link":"gallery_403483.html","maxRecords":0.0,"photoIDs":[7443060.0,7443068.0,7443070.0,7443074.0,7443076.0,7443079.0,7443082.0,8783348.0,8783613.0],"skipIndex":0,"section_code":"gallery","featured_images":"8783613,8783348,7443082,7443079,7443076,7443074,7443070,7443068,7443060","id":403483,"singleSection":false});				  						galleries[210771] = clik.newGallery({"parentGallery":277056,"usePopups":false,"title":"Location - B&W","link":"gallery_210771.html","maxRecords":0.0,"photoIDs":[6357679.0,6357680.0,8136316.0,8136320.0,8136321.0,8136322.0,8136325.0,8136326.0,8136332.0,8783195.0,8784676.0,8784682.0,8784857.0,8784677.0,8784683.0,8784859.0,8784678.0,8784684.0,8784861.0,8784679.0,8784685.0,8784863.0,8784680.0,8784865.0,8136799.0,8136811.0,8136878.0,8136854.0,8136882.0,8136884.0,8136885.0,8136886.0,8136887.0],"skipIndex":0,"section_code":"gallery","featured_images":"8784865,8784863,8784861,8784859,8784857,8784685,8784684,8784683,8784682,8784680","id":210771,"singleSection":false});				  						galleries[309168] = clik.newGallery({"parentGallery":210766,"usePopups":false,"title":"'seeing as' series","link":"gallery_309168.html","maxRecords":0.0,"photoIDs":[6357804.0,6357805.0,6357809.0,6357810.0,6357799.0,8785356.0,8783164.0,8785357.0,8783165.0,8785358.0,8783166.0,8783167.0,8784575.0,8783350.0],"skipIndex":0,"section_code":"gallery","featured_images":"8785358,8785357,8785356,8784575,8783350,8783167,8783166,8783165,8783164,6357810","id":309168,"singleSection":false});				  						galleries[277056] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White","link":"gallery_277056.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8784865,8784863,8784861,8784859,8784857,8784685,8784684,8784683,8784682,8784680","id":277056,"singleSection":false});				  						galleries[397241] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions 2011","link":"section482036_397241.html","maxRecords":0.0,"photoIDs":[7339514.0,6819212.0],"skipIndex":0,"section_code":"section482036","featured_images":"7339514,6819212","id":397241,"singleSection":false});				  						galleries[212028] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Past Exhibitions","link":"section482036_212028.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section482036","featured_images":"6819226,6819223,6819217,6819215,6491199,6355065,6355009,6354981,6354971,6354970","id":212028,"singleSection":false});				  						galleries[327768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissioned","link":"gallery_327768.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8814802,8814801,8814800,8814799,8783613,8783348,7443082,7443079,7443076,7443074","id":327768,"singleSection":false});				  						galleries[352017] = clik.newGallery({"parentGallery":210766,"usePopups":false,"title":"Jazz","link":"gallery_352017.html","maxRecords":0.0,"photoIDs":[8783163.0,8783172.0,8791965.0,8791966.0,8791967.0,7442915.0,7442919.0,7718561.0,7442918.0,7718559.0,7718557.0,8694220.0,8694268.0,8694293.0,8694206.0,8694331.0,8694274.0,8694194.0],"skipIndex":0,"section_code":"gallery","featured_images":"8791967,8791966,8791965,8783172,8783163,8694331,8694293,8694274,8694268,8694220","id":352017,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[239966] = '7492024';
imageSets[1] = '8136355,8136316,7339514,6357809,6354970,7442915,6819217,8694331,8136854,8136882';
imageSets[3] = '8137703,8783378,8783346,8783349,8137033,8783173,8783174,8137029,8137031,8137032,8137035,8783179,8783186';
imageSets[240910] = '7574307';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mamitchell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mamitchell/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 = 'MERVYN MITCHELL LBIPP  -  Photographic Artist   : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MAMITCHELL">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

