window.thumbnails = {};
															thumbnails[7735805] = clik.newPhoto({"id":7735805,"src":"LilyVanilli_WeddingCake_VA_JHO_7796_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7735830] = clik.newPhoto({"id":7735830,"src":"LilyVanilli_WeddingCake_VA_JHO_2874_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":239});
															thumbnails[8640424] = clik.newPhoto({"id":8640424,"src":"SitRoom_Oct_JHO_0382_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Hattie Hayridge, Sitting Room","height":86});
															thumbnails[6636054] = clik.newPhoto({"id":6636054,"src":"NOTTING_HILL_CARNIVAL-9299_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":85});
															thumbnails[6636056] = clik.newPhoto({"id":6636056,"src":"NOTTING_HILL_CARNIVAL-9366_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":77});
															thumbnails[6636066] = clik.newPhoto({"id":6636066,"src":"NOTTING_HILL_CARNIVAL-9474_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":88});
															thumbnails[6636067] = clik.newPhoto({"id":6636067,"src":"NOTTING_HILL_CARNIVAL-9500_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6636069] = clik.newPhoto({"id":6636069,"src":"NOTTING_HILL_CARNIVAL-9481_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6692690] = clik.newPhoto({"id":6692690,"src":"Krishna_Fetival-7679_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Laxmipriya, in costume as Krishna, to celebrate his birth.","height":138});
															thumbnails[6692691] = clik.newPhoto({"id":6692691,"src":"Krishna_Fetival-9827_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6692692] = clik.newPhoto({"id":6692692,"src":"Krishna_Fetival-7665_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"A Pujari tends to the flowers surrounding the deities at the temple, performing poojah on behalf of others.","height":86});
															thumbnails[6692697] = clik.newPhoto({"id":6692697,"src":"Krishna_Fetival-7742_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Two volunteers cook for the many thousands of pilgrims and guests.","height":86});
															thumbnails[6692698] = clik.newPhoto({"id":6692698,"src":"Krishna_Fetival-9985_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Man in costume as Krishna, to celebrate his birth.","height":188});
															thumbnails[6692700] = clik.newPhoto({"id":6692700,"src":"Krishna_Fetival-7768_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Girl dressed as Krishna, playing his favourite instrument, to celebrate his birth.","height":160});
															thumbnails[4495914] = clik.newPhoto({"id":4495914,"src":"BUFFALOBILL-358_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Shoot from the hip <br>\r\n1. Lit. to fire a gun that is held at one's side, beside one's hip. (This increases one's speed in firing a gun.) <br>\r\n2. Fig. to speak directly and frankly. (Alluding to the rapidness of firing a gun from the hip.) ","height":86});
															thumbnails[6736489] = clik.newPhoto({"id":6736489,"src":"THE_TROCKS-0387_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_6736489.html","width":130,"caption":"All male ballet company Les Ballets Trockadero de Monte Carlo perform at The Peacock Theatre (Sadlers Wells), 14.9.10.","height":104});
															thumbnails[6739120] = clik.newPhoto({"id":6739120,"src":"ALVIN_AILEY-0472_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_6739120.html","width":130,"caption":"LONDON, ENGLAND. Alvin Ailey American Dance Theatre's world premiere of 'Anointed' at Sadler's Wells, London, UK. 15.9.10. Photograph by Jane Hobson","height":195});
															thumbnails[6857439] = clik.newPhoto({"id":6857439,"src":"Akram_Khan-0228_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_6857439.html","width":130,"caption":"05\/10\/2010. Akram Khan Company presents \"Vertical Road\" at Sadlers' Wells, London. Yen-Ching Lin and Salah El Brogy perform in the multi-award winning Sadler's Wells Associate Artist's new work. Khan joins forces with fellow Sadler's Wells Associate Artist, Nitin Sawhney, who adds a specially commissioned score.","height":194});
															thumbnails[6934769] = clik.newPhoto({"id":6934769,"src":"Concert_for_Care-8556_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6934769.html","width":130,"caption":"Dom Joly, Concert for Care, Albert Hall, 18\/10\/2010.","height":195});
															thumbnails[6934771] = clik.newPhoto({"id":6934771,"src":"Concert_for_Care-8589_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6934771.html","width":130,"caption":"Paloma Faith and Ricky Wilson, Concert for Care, Albert Hall, 18\/10\/2010.","height":86});
															thumbnails[6934772] = clik.newPhoto({"id":6934772,"src":"Concert_for_Care-8620_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6934772.html","width":130,"caption":"Michael Nyman, composer, Concert for Care, Albert Hall, 18\/10\/2010.","height":195});
															thumbnails[6934774] = clik.newPhoto({"id":6934774,"src":"Concert_for_Care-8598_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6934774.html","width":130,"caption":"Jimmy Carr, Concert for Care, Albert Hall, 18\/10\/2010.","height":195});
															thumbnails[6934775] = clik.newPhoto({"id":6934775,"src":"Concert_for_Care-8581_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6934775.html","width":130,"caption":"Matt Lucas & Alfie Boe, Concert for Care, Albert Hall, 18\/10\/2010.","height":86});
															thumbnails[6998017] = clik.newPhoto({"id":6998017,"src":"Macbeth_London_JHO-3675_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_6998017.html","width":130,"caption":"Song of the Goat Theatre presents \"Macbeth\" at the Barbican, as part of the bite 10 season. 3\/11\/10. ","height":86});
															thumbnails[7028106] = clik.newPhoto({"id":7028106,"src":"Complicite_Shun-Kin_London_JHO-3933_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_7028106.html","width":130,"caption":"Shun-Kin, Complicite, Barbican, November 2010.","height":86});
															thumbnails[7178303] = clik.newPhoto({"id":7178303,"src":"BourgeoisMaurice_LilianBaylis_JHO-277712_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_7178303.html","width":130,"caption":"","height":178});
															thumbnails[7178400] = clik.newPhoto({"id":7178400,"src":"BourgeoisMaurice_LilianBaylis_JHO-5555_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_7178400.html","width":130,"caption":"","height":125});
															thumbnails[7285038] = clik.newPhoto({"id":7285038,"src":"Lanzarote_JHO-000006210006_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_7285038.html","width":130,"caption":"","height":106});
															thumbnails[7285056] = clik.newPhoto({"id":7285056,"src":"Lanzarote_JHO-000052770024_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_7285056.html","width":130,"caption":"","height":86});
															thumbnails[7419365] = clik.newPhoto({"id":7419365,"src":"BlueDragon_Barbican__JHO_6635_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_7419365.html","width":130,"caption":"","height":111});
															thumbnails[7617149] = clik.newPhoto({"id":7617149,"src":"Oz_Palladium_JHO_4565_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_7617149.html","width":130,"caption":"Wizard of Oz, Palladium, London.","height":86});
															thumbnails[7710423] = clik.newPhoto({"id":7710423,"src":"Ouroboros_documentary_JHO_1987_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_7710423.html","width":130,"caption":"\"Ouroboros\" film still","height":89});
															thumbnails[7710426] = clik.newPhoto({"id":7710426,"src":"Ouroboros_documentary_JHO_7529_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_7710426.html","width":130,"caption":"\"Ouroboros\" film still","height":86});
															thumbnails[8345232] = clik.newPhoto({"id":8345232,"src":"MadnessGeorgeIII_Bath_JHO_5769_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_8345232.html","width":130,"caption":"","height":86});
															thumbnails[8345235] = clik.newPhoto({"id":8345235,"src":"TheGames_EdFest_JHO_5054_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_8345235.html","width":130,"caption":"","height":195});
															thumbnails[8345239] = clik.newPhoto({"id":8345239,"src":"IMalvolio_TimCrouch_Traverse_JHO_4842_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_8345239.html","width":130,"caption":"","height":195});
															thumbnails[8531908] = clik.newPhoto({"id":8531908,"src":"ChrisHall_headshot_JHO_3285_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_8531908.html","width":130,"caption":"","height":163});
															thumbnails[8540568] = clik.newPhoto({"id":8540568,"src":"Rose_studio_JHO_0377_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_8540568.html","width":130,"caption":"","height":195});
															thumbnails[8550624] = clik.newPhoto({"id":8550624,"src":"CrystalBall_JHO_0443_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_8550624.html","width":130,"caption":"","height":195});
															thumbnails[8793670] = clik.newPhoto({"id":8793670,"src":"MerceCunningham_AnticMeet_JHO_9495_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_8793670.html","width":130,"caption":"","height":86});
															thumbnails[8923190] = clik.newPhoto({"id":8923190,"src":"XmasMarket_JHO_1000493_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_8923190.html","width":130,"caption":"Christmas Market, Southbank, London.","height":86});
															thumbnails[8923259] = clik.newPhoto({"id":8923259,"src":"Dungeness_JHO_1000222_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_8923259.html","width":130,"caption":"Dungeness train carriage bedroom.","height":86});
															thumbnails[8923275] = clik.newPhoto({"id":8923275,"src":"Dungeness_JHO_1000229_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_8923275.html","width":130,"caption":"Lighthouse, Dungeness","height":195});
															thumbnails[8923283] = clik.newPhoto({"id":8923283,"src":"Dungeness_JHO_1000252_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_8923283.html","width":130,"caption":"Dusk, Dungeness","height":86});
															thumbnails[5663947] = clik.newPhoto({"id":5663947,"src":"after_CUT_OUTS-3993_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_5663947.html","width":130,"caption":"","height":195});
															thumbnails[6795107] = clik.newPhoto({"id":6795107,"src":"Tom_Felton_and_Lizzie_Mary_Cullen-0822_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_6795107.html","width":130,"caption":"Tom Felton (Draco Malfoy in the Harry Potter films) visits his friend, Lizzie Mary Cullen's, first solo show at Artefact, The Framer's Gallery, Windmill Street, London. 23.9.10.","height":195});
															thumbnails[6704629] = clik.newPhoto({"id":6704629,"src":"LIZZIE_MARY_CULLEN-00941_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_6704629.html","width":130,"caption":"Daniel Radcliffe (Harry Potter, Equus) and Lizzie Mary Cullen at her first solo show, in aid of The Big Issue, at the the Framers Gallery, Windmill St, London. 9.9.10.  ","height":86});
															thumbnails[6087000] = clik.newPhoto({"id":6087000,"src":"TWIGGY_SEABOURN_SOJOURN-4890_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_6087000.html","width":130,"caption":"Twiggy on the bridge of the Seabourn Sojourn, which she named, and is godmother of. 4.6.10.","height":195});
															thumbnails[5006311] = clik.newPhoto({"id":5006311,"src":"FRIGHTFEST-1632_9F83A5CD-1D09-001F-99E7EC30654E39F3_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5006311.html","width":130,"caption":"","height":86});
															thumbnails[5533604] = clik.newPhoto({"id":5533604,"src":"PRIDE_09-9696_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5533604.html","width":130,"caption":"","height":121});
															thumbnails[5533595] = clik.newPhoto({"id":5533595,"src":"SANTACON204_Lomo_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5533595.html","width":130,"caption":"","height":163});
															thumbnails[5663985] = clik.newPhoto({"id":5663985,"src":"after_CUT_OUTS-4001_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_5663985.html","width":130,"caption":"","height":86});
															thumbnails[4496469] = clik.newPhoto({"id":4496469,"src":"BUCKDIABLO-184_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_4496469.html","width":130,"caption":"","height":163});
															thumbnails[4496770] = clik.newPhoto({"id":4496770,"src":"VALENTINE-2_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_4496770.html","width":130,"caption":"","height":195});
															thumbnails[4496777] = clik.newPhoto({"id":4496777,"src":"VALENTINE-5802_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_4496777.html","width":130,"caption":"","height":86});
															thumbnails[5699721] = clik.newPhoto({"id":5699721,"src":"WINE-9489_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_5699721.html","width":130,"caption":"","height":290});
															thumbnails[5701080] = clik.newPhoto({"id":5701080,"src":"WINE-9524_thumb.jpg","galleries_id":261662,"server_id":18,"link":"photo_5701080.html","width":130,"caption":"","height":195});
															thumbnails[6138270] = clik.newPhoto({"id":6138270,"src":"REPRIEVE_COMEDY-55281_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_6138270.html","width":130,"caption":"Tim Minchin, headlining the comedy benefit for Reprieve at the Lyceum Theatre, London, 7.6.10","height":195});
															thumbnails[5532841] = clik.newPhoto({"id":5532841,"src":"TIM_CHAUNDY_2-8157-2_thumb.jpg","galleries_id":313423,"server_id":18,"link":"photo_5532841.html","width":130,"caption":"","height":86});
															thumbnails[5433252] = clik.newPhoto({"id":5433252,"src":"RANKIN_BT-7198-2_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5433252.html","width":130,"caption":"","height":189});
															thumbnails[5433289] = clik.newPhoto({"id":5433289,"src":"RANKIN_BT-7348_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5433289.html","width":130,"caption":"","height":95});
															thumbnails[6043646] = clik.newPhoto({"id":6043646,"src":"KEW_GARDENS_SUMMER_FESTIVAL-4371_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_6043646.html","width":130,"caption":"Jo Maxwell, Press Officer, with an Atlas Moth (Attacus Atlas) in the Princess of Wales Conservatory, Kew Gardens, at the start of the Summer Festival. The festival celebrates pollination and biodiversity. 27\/5\/10.","height":180});
															thumbnails[4495478] = clik.newPhoto({"id":4495478,"src":"DAKS-6266_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_4495478.html","width":130,"caption":"","height":94});
															thumbnails[4517607] = clik.newPhoto({"id":4517607,"src":"RADOX-1404-2_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_4517607.html","width":130,"caption":"","height":86});
															thumbnails[5212881] = clik.newPhoto({"id":5212881,"src":"CORBIS-1754_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5212881.html","width":130,"caption":"","height":157});
															thumbnails[5212896] = clik.newPhoto({"id":5212896,"src":"NUJ_ADM_SAT-4773_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5212896.html","width":130,"caption":"","height":195});
															thumbnails[5213070] = clik.newPhoto({"id":5213070,"src":"THE_WAVE-5405_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213070.html","width":130,"caption":"","height":195});
															thumbnails[5213085] = clik.newPhoto({"id":5213085,"src":"FRIGHTFEST-1704-2_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213085.html","width":130,"caption":"","height":92});
															thumbnails[5213089] = clik.newPhoto({"id":5213089,"src":"BRIDES_OF_MARCH-20_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213089.html","width":130,"caption":"","height":134});
															thumbnails[5213096] = clik.newPhoto({"id":5213096,"src":"SANTACON055_Lomo_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213096.html","width":130,"caption":"","height":91});
															thumbnails[5213132] = clik.newPhoto({"id":5213132,"src":"LONDON_FASHION_WEEKEND_09-2529_69092257-1D09-001F-99A79ECF26A647C6_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213132.html","width":130,"caption":"","height":195});
															thumbnails[6717118] = clik.newPhoto({"id":6717118,"src":"MAYORS_CRICKET_MATCH-0148_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_6717118.html","width":130,"caption":"Mayor of Haringey, Eddie Griffith, hosts a charity cricket match at North Middlesex Cricket Ground, 12.9.10. Photograph by Jane Hobson.","height":86});
															thumbnails[5213827] = clik.newPhoto({"id":5213827,"src":"PROSECCO_TASTING-3527_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213827.html","width":130,"caption":"","height":195});
															thumbnails[5213864] = clik.newPhoto({"id":5213864,"src":"BALLANTYNE_SS10_LFW-2458_thumb.jpg","galleries_id":294193,"server_id":18,"link":"photo_5213864.html","width":130,"caption":"","height":86});
															thumbnails[4496527] = clik.newPhoto({"id":4496527,"src":"THEPOOL-2_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_4496527.html","width":130,"caption":"","height":85});
															thumbnails[4496549] = clik.newPhoto({"id":4496549,"src":"STUARTBRAY_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_4496549.html","width":130,"caption":"","height":81});
															thumbnails[4496342] = clik.newPhoto({"id":4496342,"src":"BUCKDIABLO-22_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_4496342.html","width":130,"caption":"","height":169});
															thumbnails[5352836] = clik.newPhoto({"id":5352836,"src":"OPERA_SINGER-710912_thumb.jpg","galleries_id":299903,"server_id":18,"link":"photo_5352836.html","width":130,"caption":"","height":86});
															thumbnails[4496585] = clik.newPhoto({"id":4496585,"src":"TRAVELPROJECT-4258_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4496585.html","width":130,"caption":"","height":195});
															thumbnails[4496590] = clik.newPhoto({"id":4496590,"src":"HORNSEYROADBATHSANDLAUNDRY-5564_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4496590.html","width":130,"caption":"","height":195});
															thumbnails[4495548] = clik.newPhoto({"id":4495548,"src":"DUNGENESSRZ-007_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4495548.html","width":130,"caption":"","height":106});
															thumbnails[4495550] = clik.newPhoto({"id":4495550,"src":"DUNGENESSRZ-008_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4495550.html","width":130,"caption":"","height":105});
															thumbnails[4495300] = clik.newPhoto({"id":4495300,"src":"BRIGHTON-5453_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4495300.html","width":130,"caption":"","height":195});
															thumbnails[4495303] = clik.newPhoto({"id":4495303,"src":"BRIGHTON-5603_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_4495303.html","width":130,"caption":"","height":195});
															thumbnails[5812974] = clik.newPhoto({"id":5812974,"src":"GENIE-0066_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_5812974.html","width":130,"caption":"De La Warr Pavilion, Bexhill on Sea","height":87});
															thumbnails[6722350] = clik.newPhoto({"id":6722350,"src":"front_RC_Panorama2_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_6722350.html","width":130,"caption":"Regent's College, London. Panorama of the front of the building and gardens. Commissioned for the college prospectus.","height":30});
															thumbnails[6722382] = clik.newPhoto({"id":6722382,"src":"REGENTS_COLLEGE_archi-7588_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_6722382.html","width":130,"caption":"Reid Hall, Regent's College, London. Commissioned for the college prospectus.","height":89});
															thumbnails[6722384] = clik.newPhoto({"id":6722384,"src":"REGENTS_COLLEGE_archi-9677_thumb.jpg","galleries_id":261661,"server_id":18,"link":"photo_6722384.html","width":130,"caption":"The Quad, Regent's College, London. Commissioned for the college prospectus.","height":86});
															thumbnails[6023509] = clik.newPhoto({"id":6023509,"src":"BROOD_publicity-4220-2_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6023509.html","width":130,"caption":"","height":152});
															thumbnails[6023623] = clik.newPhoto({"id":6023623,"src":"BROOD_publicity-4178-2_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6023623.html","width":130,"caption":"","height":176});
															thumbnails[6225946] = clik.newPhoto({"id":6225946,"src":"CANDI_FASHION_SHOW-7087_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6225946.html","width":130,"caption":"CANDI Fashion Show June 25th 2010","height":163});
															thumbnails[6226033] = clik.newPhoto({"id":6226033,"src":"CHARACTER_PORTRAITS-6880_retouched_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6226033.html","width":130,"caption":"","height":195});
															thumbnails[6226023] = clik.newPhoto({"id":6226023,"src":"CHARACTER_PORTRAITS-6940_retouched_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6226023.html","width":130,"caption":"","height":195});
															thumbnails[6226029] = clik.newPhoto({"id":6226029,"src":"CHARACTER_PORTRAITS-7053_retouched_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6226029.html","width":130,"caption":"","height":138});
															thumbnails[6225998] = clik.newPhoto({"id":6225998,"src":"CHARACTER_PORTRAITS-6807_retouched_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6225998.html","width":130,"caption":"","height":195});
															thumbnails[6225995] = clik.newPhoto({"id":6225995,"src":"CHARACTER_PORTRAITS-6846_layers_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6225995.html","width":130,"caption":"","height":195});
															thumbnails[4970095] = clik.newPhoto({"id":4970095,"src":"H3DII31_LAUREN-8_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_4970095.html","width":130,"caption":"","height":104});
															thumbnails[6547966] = clik.newPhoto({"id":6547966,"src":"AXUM-8962-2_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6547966.html","width":130,"caption":"Axum Barber shop, Hornsey Road, Upper Holloway, London. 11\/8\/10.","height":195});
															thumbnails[6612075] = clik.newPhoto({"id":6612075,"src":"KELVIN_HOUGHTON-9265-3_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6612075.html","width":130,"caption":"Kelvin Houghton, proprietor of North London Models, in his shop. 24.8.10.","height":86});
															thumbnails[5812975] = clik.newPhoto({"id":5812975,"src":"GENIE-0072_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_5812975.html","width":130,"caption":"Amar in Paris","height":102});
															thumbnails[5812978] = clik.newPhoto({"id":5812978,"src":"GENIE-0086_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_5812978.html","width":130,"caption":"Busker on the Paris Metro","height":87});
															thumbnails[5812979] = clik.newPhoto({"id":5812979,"src":"GENIE-0088_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_5812979.html","width":130,"caption":"Sacha on the Paris Metro","height":87});
															thumbnails[4495318] = clik.newPhoto({"id":4495318,"src":"LONDONSCHOOLOFMEDIAMAKEUP0110b1_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_4495318.html","width":130,"caption":"","height":195});
															thumbnails[4495320] = clik.newPhoto({"id":4495320,"src":"LONDONSCHOOLOFMEDIAMAKEUP04571_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_4495320.html","width":130,"caption":"","height":195});
															thumbnails[4496561] = clik.newPhoto({"id":4496561,"src":"PLASTICSISTER-5312_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_4496561.html","width":130,"caption":"","height":98});
															thumbnails[6468356] = clik.newPhoto({"id":6468356,"src":"VICTOR-8644-3_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6468356.html","width":130,"caption":"Victor, proprietor of Hamlet Cafe, Hornsey Road, London, at work. ","height":86});
															thumbnails[5812983] = clik.newPhoto({"id":5812983,"src":"GENIE-0103_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_5812983.html","width":130,"caption":"Banger Bros.","height":107});
															thumbnails[6371498] = clik.newPhoto({"id":6371498,"src":"RICHARD_TRAVERS-8240-41_thumb.jpg","galleries_id":261687,"server_id":18,"link":"photo_6371498.html","width":130,"caption":"","height":152});
															thumbnails[5006773] = clik.newPhoto({"id":5006773,"src":"OCTOBER_UNPLUGGED-3336_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006773.html","width":130,"caption":"Philip Mudd and Peter Mullett at home in their Victorian, self-renovated, house in Archway, before they start October 'Unplugged'.","height":195});
															thumbnails[5006792] = clik.newPhoto({"id":5006792,"src":"OCTOBER_UNPLUGGED-3409_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006792.html","width":130,"caption":"Two of the conveniences that are missed the most, or at least the most immediately, first thing in the morning.","height":195});
															thumbnails[5006793] = clik.newPhoto({"id":5006793,"src":"OCTOBER_UNPLUGGED-3431_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006793.html","width":130,"caption":"Philip works from home, as a Publishing Director. When working hours are over, the screen is a silent blank. Emails are both a blessing and a curse.","height":195});
															thumbnails[5006794] = clik.newPhoto({"id":5006794,"src":"OCTOBER_UNPLUGGED-3439_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006794.html","width":130,"caption":"Just some of the items not being used during October by Peter Mullet (left) and Philip Mudd (right).","height":195});
															thumbnails[5006795] = clik.newPhoto({"id":5006795,"src":"OCTOBER_UNPLUGGED-3071-2b_9FB4AA72-1D09-001F-994FAF9DD9D69AC3_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006795.html","width":130,"caption":"The Tilley Lamp was such a useful 'invention' last year that it is now a permanent fixture of 'October Unplugged'. It is Pete's job to light it as he finds the noise of it burning soothing. Philip, on the other hand, does not.","height":109});
															thumbnails[5006796] = clik.newPhoto({"id":5006796,"src":"OCTOBER_UNPLUGGED-3256_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006796.html","width":130,"caption":"The light the Tilley lamp throws out makes the candles look dim by comparison.","height":195});
															thumbnails[5006797] = clik.newPhoto({"id":5006797,"src":"OCTOBER_UNPLUGGED-3027_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006797.html","width":130,"caption":"Peter Mullett prepares dinner by candlelight during October Unplugged.","height":87});
															thumbnails[5006799] = clik.newPhoto({"id":5006799,"src":"OCTOBER_UNPLUGGED-3096_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006799.html","width":130,"caption":"Changing the candles happens at regular intervals when having to rely on them for illumination. Philip constantly keeps an eye out for dripping wax and unintentional fire hazards.","height":87});
															thumbnails[5006800] = clik.newPhoto({"id":5006800,"src":"OCTOBER_UNPLUGGED-3134_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006800.html","width":130,"caption":"Lighting the fire is a daily ritual for Philip. The warmth thrown out is more than enough to heat the entire room.","height":87});
															thumbnails[5006801] = clik.newPhoto({"id":5006801,"src":"OCTOBER_UNPLUGGED-3145_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006801.html","width":130,"caption":"Heating and lighting only one room means more time being spent in each other's company - one of the most enjoyable things of the project.","height":87});
															thumbnails[5006803] = clik.newPhoto({"id":5006803,"src":"OCTOBER_UNPLUGGED-3183_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006803.html","width":130,"caption":"Cutting down on 21st Century media overload is a stress-reducing effect of October Unplugged. the evening's audio entertainment is provided courtesy of a wind up gramophone and a stack of 78s.","height":87});
															thumbnails[5006804] = clik.newPhoto({"id":5006804,"src":"OCTOBER_UNPLUGGED-3199-2b_9FB7270B-1D09-001F-995CF2EEA6B8F81D_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006804.html","width":130,"caption":"The pull down gas lamp in the drawing room provides ample illumination for reading the newspaper by.","height":87});
															thumbnails[5006805] = clik.newPhoto({"id":5006805,"src":"OCTOBER_UNPLUGGED-3227_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006805.html","width":130,"caption":"Putting contact lenses in is a bit tricky in such close proximity to fire.","height":87});
															thumbnails[5006807] = clik.newPhoto({"id":5006807,"src":"OCTOBER_UNPLUGGED-3236_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006807.html","width":130,"caption":"Washing clothes without electricity is such a chore, during October Unplugged, that Peter Mullett and Philip Mudd prefer to wear everything in their possession, and save the laundry until after the experiment is over.","height":87});
															thumbnails[5006808] = clik.newPhoto({"id":5006808,"src":"OCTOBER_UNPLUGGED-3282_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006808.html","width":130,"caption":"Although these irons are usable, Peter is waiting until the Tilley iron is invented in week three before he presses any clothes.","height":195});
															thumbnails[5006809] = clik.newPhoto({"id":5006809,"src":"OCTOBER_UNPLUGGED-3248_thumb.jpg","galleries_id":283848,"server_id":18,"link":"photo_5006809.html","width":130,"caption":"Bedtime is a lot earlier without electricity but Pete stills manages to read in bed.","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[313423] = clik.newGallery({"parentGallery":313422,"usePopups":false,"title":"Stage","link":"gallery_313423.html","maxRecords":0.0,"photoIDs":[6736489.0,6739120.0,6857439.0,6998017.0,7028106.0,7178303.0,7178400.0,7419365.0,7617149.0,8345232.0,8345235.0,8345239.0,8793670.0,6138270.0,5532841.0],"skipIndex":0,"section_code":"gallery","featured_images":8793670.0,"id":313423,"singleSection":false});				  						galleries[294190] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Press and PR","link":"gallery_294190.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6795107,6704629,5006794","id":294190,"singleSection":false});				  						galleries[299903] = clik.newGallery({"parentGallery":313422,"usePopups":false,"title":"Screen","link":"gallery_299903.html","maxRecords":0.0,"photoIDs":[7710423.0,7710426.0,4496527.0,4496549.0,4496342.0,5352836.0],"skipIndex":0,"section_code":"gallery","featured_images":"7710426,7710423,5352836,4496549,4496527,4496342","id":299903,"singleSection":false});				  						galleries[313422] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stage & Screen","link":"gallery_313422.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":8793670.0,"id":313422,"singleSection":false});				  						galleries[294193] = clik.newGallery({"parentGallery":294190,"usePopups":false,"title":"Singles","link":"gallery_294193.html","maxRecords":0.0,"photoIDs":[6795107.0,6704629.0,6087000.0,5006311.0,5533604.0,5533595.0,5433252.0,5433289.0,6043646.0,4495478.0,4517607.0,5212881.0,5212896.0,5213070.0,5213085.0,5213089.0,5213096.0,5213132.0,6717118.0,5213827.0,5213864.0],"skipIndex":0,"section_code":"gallery","featured_images":"6795107,6704629","id":294193,"singleSection":false});				  						galleries[283848] = clik.newGallery({"parentGallery":294190,"usePopups":false,"title":"October Unplugged","link":"gallery_283848.html","maxRecords":0.0,"photoIDs":[5006773.0,5006792.0,5006793.0,5006794.0,5006795.0,5006796.0,5006797.0,5006799.0,5006800.0,5006801.0,5006803.0,5006804.0,5006805.0,5006807.0,5006808.0,5006809.0],"skipIndex":0,"section_code":"gallery","featured_images":5006794.0,"id":283848,"singleSection":false});				  						galleries[261687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_261687.html","maxRecords":0.0,"photoIDs":[6934769.0,6934771.0,6934772.0,6934774.0,6934775.0,8531908.0,8923190.0,6023509.0,6023623.0,6225946.0,6226033.0,6226023.0,6226029.0,6225998.0,6225995.0,4970095.0,6547966.0,6612075.0,5812975.0,5812978.0,5812979.0,4495318.0,4495320.0,4496561.0,6468356.0,5812983.0,6371498.0],"skipIndex":0,"section_code":"gallery","featured_images":"8923190,8531908,6934775,6934774,6934772,6934771,6934769,6612075,6547966,6468356","id":261687,"singleSection":false});				  						galleries[261661] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Places","link":"gallery_261661.html","maxRecords":0.0,"photoIDs":[7285038.0,7285056.0,8923259.0,8923275.0,8923283.0,4496585.0,4496590.0,4495548.0,4495550.0,4495300.0,4495303.0,5812974.0,6722350.0,6722382.0,6722384.0],"skipIndex":0,"section_code":"gallery","featured_images":7285038.0,"id":261661,"singleSection":false});				  						galleries[261662] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Things","link":"gallery_261662.html","maxRecords":0.0,"photoIDs":[8540568.0,8550624.0,5663947.0,5663985.0,4496469.0,4496770.0,4496777.0,5699721.0,5701080.0],"skipIndex":0,"section_code":"gallery","featured_images":5663947.0,"id":261662,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8923283,8923275,8923259,8923190,8793670,8540568,7735805,7710426,7419365,7285056,7285038,6934771,5663947,5533595,5663985,4496469,4496777,5532841,4517607,5213085,5213089,5213096,6717118,5352836,4495300,5812974,6722350,6226023,6225995,5812975,5812978,5812979,4496561,6468356,5812983,6371498,5006804,6692692,4495914';
imageSets[2] = '8793670,7285038,5663947,6795107,6704629,5006794,6692690';
imageSets[3] = '8923283,8923275,8923259,8923190,8793670,8640424,8550624,8540568,8531908,8345239,8345235,8345232,7735830,7735805,7710426,7710423,7617149,7419365,7285056,7285038,7178400,7178303,7028106,6998017,6934775,6934774,6934772,6934771,6934769,6857439,6795107,6739120,6736489,6722384,6722382,6722350,6717118,6704629,6692700,6692698,6692697,6692692,6692691,6692690,6636069,6636067,6636066,6636056,6636054,6612075';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/calamityjane/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/calamityjane/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 = 'Shooting from the Hip: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

