window.thumbnails = {};
															thumbnails[3469184] = clik.newPhoto({"id":3469184,"src":"TheCurve_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The Curve Theatre, Leicester","height":98});
															thumbnails[2141363] = clik.newPhoto({"id":2141363,"src":"LeedsCornExchange_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Corn Exchange, Leeds","height":87});
															thumbnails[949067] = clik.newPhoto({"id":949067,"src":"The-Lowry-Bridge_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The Lowry Bridge at night, Manchester","height":81});
															thumbnails[9066341] = clik.newPhoto({"id":9066341,"src":"IMG_4496_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066341.html","width":160,"caption":"Kate","height":117});
															thumbnails[9066345] = clik.newPhoto({"id":9066345,"src":"IMG_4519_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066345.html","width":160,"caption":"Kate & Simon","height":166});
															thumbnails[9066319] = clik.newPhoto({"id":9066319,"src":"IMG_4472minus_plus_even_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_9066319.html","width":160,"caption":"Monks Bay\/Steel Bay, Isle Of Wight","height":107});
															thumbnails[9066296] = clik.newPhoto({"id":9066296,"src":"IMG_4387minus_plus_even_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_9066296.html","width":160,"caption":"Whitecliff Bay, Isle Of Wight","height":107});
															thumbnails[9066298] = clik.newPhoto({"id":9066298,"src":"IMG_4389_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_9066298.html","width":160,"caption":"Brighstone Bay, Isle Of Wight","height":60});
															thumbnails[9066315] = clik.newPhoto({"id":9066315,"src":"IMG_4462minus_plus_even_tonemappedlatest_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_9066315.html","width":160,"caption":"Steephill Cove, Isle of Wight","height":107});
															thumbnails[9066339] = clik.newPhoto({"id":9066339,"src":"IMG_4140_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066339.html","width":160,"caption":"Forest Elf Fashion Show 2011","height":124});
															thumbnails[9066334] = clik.newPhoto({"id":9066334,"src":"IMG_3540_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066334.html","width":160,"caption":"Leicester Uni Dance Sport Comp 2011","height":120});
															thumbnails[9066337] = clik.newPhoto({"id":9066337,"src":"IMG_3388_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066337.html","width":160,"caption":"Leicester Uni Dance Sport Comp 2011","height":120});
															thumbnails[9066326] = clik.newPhoto({"id":9066326,"src":"IMG_2711print_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066326.html","width":160,"caption":"Occupy London, St. Paul's Cathedral, London.","height":227});
															thumbnails[9066330] = clik.newPhoto({"id":9066330,"src":"IMG_2731printnew_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9066330.html","width":160,"caption":"Occupy London, St. Paul's Cathedral, London.l ","height":93});
															thumbnails[9066292] = clik.newPhoto({"id":9066292,"src":"KirbyMuxloe_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_9066292.html","width":160,"caption":"Kirby Muxloe Castle","height":107});
															thumbnails[9059439] = clik.newPhoto({"id":9059439,"src":"Chesterton_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_9059439.html","width":160,"caption":"Chesterton Windmill","height":120});
															thumbnails[9059413] = clik.newPhoto({"id":9059413,"src":"IMG_2124print_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059413.html","width":160,"caption":"Lesley Smith - Tutbury Castle ","height":114});
															thumbnails[9059409] = clik.newPhoto({"id":9059409,"src":"IMG_1632b_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059409.html","width":160,"caption":"The Brycreem Boys - Pickering War Weekend","height":120});
															thumbnails[9059411] = clik.newPhoto({"id":9059411,"src":"IMG_1816_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059411.html","width":160,"caption":"Pickering War Weekend","height":120});
															thumbnails[9059415] = clik.newPhoto({"id":9059415,"src":"IMG_2357_4892B511-24E8-5EC4-4F9A59D3075323A6_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059415.html","width":160,"caption":"Tutbury Castle","height":213});
															thumbnails[9059417] = clik.newPhoto({"id":9059417,"src":"IMG_2434_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059417.html","width":160,"caption":"Tutbury Castle","height":120});
															thumbnails[9059448] = clik.newPhoto({"id":9059448,"src":"IMG_1713mono2_thumb.jpg","galleries_id":477610,"server_id":18,"link":"photo_9059448.html","width":160,"caption":"Spike","height":120});
															thumbnails[9059435] = clik.newPhoto({"id":9059435,"src":"CossingtonLakes01_E83A4DC4-1EC9-D45B-1C941E55CEAF93C5_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_9059435.html","width":160,"caption":"Cossington Lakes, Leicestershire","height":110});
															thumbnails[9059437] = clik.newPhoto({"id":9059437,"src":"CossingtonLakes03_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_9059437.html","width":160,"caption":"Cossington Lakes, Leicestershire","height":213});
															thumbnails[9059438] = clik.newPhoto({"id":9059438,"src":"CossingtonLakes02_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_9059438.html","width":160,"caption":"Cossington Lakes, Leicestershire","height":120});
															thumbnails[9059258] = clik.newPhoto({"id":9059258,"src":"IMG_0008print_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_9059258.html","width":160,"caption":"Trolley Wars","height":113});
															thumbnails[8448694] = clik.newPhoto({"id":8448694,"src":"IMG_9787even_minus_plus_fusednew_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448694.html","width":160,"caption":"Victory Show, Cosby, Leics","height":213});
															thumbnails[8448695] = clik.newPhoto({"id":8448695,"src":"IMG_9815_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448695.html","width":160,"caption":"Victory Show, Cosby, Leics","height":213});
															thumbnails[8448696] = clik.newPhoto({"id":8448696,"src":"IMG_9912even_minus_plus_fused2_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448696.html","width":160,"caption":"Victory Show, Cosby, Leics","height":120});
															thumbnails[8451855] = clik.newPhoto({"id":8451855,"src":"IMG_9490_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8451855.html","width":160,"caption":"Katie & David's wedding, Beaumanor Hall, Leics","height":120});
															thumbnails[8448691] = clik.newPhoto({"id":8448691,"src":"IMG_8272_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448691.html","width":160,"caption":"Notting Hill Carnival","height":213});
															thumbnails[8448692] = clik.newPhoto({"id":8448692,"src":"IMG_8352_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448692.html","width":160,"caption":"Notting Hill Carnival","height":120});
															thumbnails[8448693] = clik.newPhoto({"id":8448693,"src":"IMG_8666even_minus_plus_tonemapped_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448693.html","width":160,"caption":"Notting Hill Carnival","height":103});
															thumbnails[8448378] = clik.newPhoto({"id":8448378,"src":"IMG_7897_898_899_900_901_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448378.html","width":160,"caption":"Bembridge, Isle of Wight","height":213});
															thumbnails[8448380] = clik.newPhoto({"id":8448380,"src":"IMG_7931_2_3_4_5_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448380.html","width":160,"caption":"Bembridge, Isle of Wight","height":216});
															thumbnails[8448381] = clik.newPhoto({"id":8448381,"src":"IMG_7948even_minus_plus_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448381.html","width":160,"caption":"Bembridge Lifeboat Station, Isle of Wight","height":203});
															thumbnails[8448384] = clik.newPhoto({"id":8448384,"src":"IMG_7983even_minus_plus_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448384.html","width":160,"caption":"Bembridge Lifeboat Station, Isle of Wight","height":120});
															thumbnails[8448385] = clik.newPhoto({"id":8448385,"src":"IMG_7988even_minus_plus_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448385.html","width":160,"caption":"Bembridge Lifeboat Station, Isle of Wight","height":120});
															thumbnails[8448375] = clik.newPhoto({"id":8448375,"src":"IMG_7266new_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448375.html","width":160,"caption":"Fort Victoria Pier, Isle of Wight","height":120});
															thumbnails[8448359] = clik.newPhoto({"id":8448359,"src":"IMG_7099plusAnd3more_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448359.html","width":160,"caption":"Bembridge Harbour, Isle Of Wight","height":120});
															thumbnails[8448354] = clik.newPhoto({"id":8448354,"src":"IMG_6803minus_plus_even_tonemapped_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448354.html","width":160,"caption":"Sunrise,Lulworth Cove, Dorset","height":98});
															thumbnails[8448352] = clik.newPhoto({"id":8448352,"src":"IMG_6531_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448352.html","width":160,"caption":"Studland Bay, Isle of Purbeck, Dorset","height":198});
															thumbnails[8448348] = clik.newPhoto({"id":8448348,"src":"IMG_6479_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_8448348.html","width":160,"caption":"Durdle Door, Dorset","height":213});
															thumbnails[8448389] = clik.newPhoto({"id":8448389,"src":"IMG_6360_1_2_tonemapped_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8448389.html","width":160,"caption":"Corfe Castle, Isle of Purbeck, Dorset","height":192});
															thumbnails[8448586] = clik.newPhoto({"id":8448586,"src":"IMG_6187newflikr_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8448586.html","width":160,"caption":"Thornton Reservoir, Leicestershire","height":211});
															thumbnails[8448684] = clik.newPhoto({"id":8448684,"src":"IMG_5070_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448684.html","width":160,"caption":"Festival of History, Kelmarsh Hall, Northamptonshire","height":113});
															thumbnails[8448685] = clik.newPhoto({"id":8448685,"src":"IMG_5233_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448685.html","width":160,"caption":"Roman Soldiers, Festival OF History, Kelmarsh Hall, Northants","height":120});
															thumbnails[8448686] = clik.newPhoto({"id":8448686,"src":"IMG_5241_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448686.html","width":160,"caption":"Festival OF History, Kelmarsh Hall, Northants","height":107});
															thumbnails[8448688] = clik.newPhoto({"id":8448688,"src":"IMG_5287_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448688.html","width":160,"caption":"Roman Soldier, Festival Of History, Kelmarsh Hall, Northants","height":120});
															thumbnails[8448689] = clik.newPhoto({"id":8448689,"src":"IMG_5590_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448689.html","width":160,"caption":"Festival OF History, Kelmarsh Hall, Northants","height":107});
															thumbnails[8448585] = clik.newPhoto({"id":8448585,"src":"IMG_5006_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8448585.html","width":160,"caption":"Watermead Park, Leicestershire","height":107});
															thumbnails[8448682] = clik.newPhoto({"id":8448682,"src":"IMG_4792_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448682.html","width":160,"caption":"Leicester Belgrave Mela","height":120});
															thumbnails[8448342] = clik.newPhoto({"id":8448342,"src":"IMG_4653_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8448342.html","width":160,"caption":"Gilmorton, Leicestershire","height":107});
															thumbnails[8448681] = clik.newPhoto({"id":8448681,"src":"IMG_4534_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448681.html","width":160,"caption":"Roxanne","height":213});
															thumbnails[8448680] = clik.newPhoto({"id":8448680,"src":"IMG_3431mono_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_8448680.html","width":160,"caption":"Sarah","height":213});
															thumbnails[8448339] = clik.newPhoto({"id":8448339,"src":"IMG_3311web_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8448339.html","width":160,"caption":"Stanard Edge, Peak District, Derbyshire","height":213});
															thumbnails[8451716] = clik.newPhoto({"id":8451716,"src":"IMG_2130new_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8451716.html","width":160,"caption":"The Val D'Orcia, Tuscany, Italy","height":120});
															thumbnails[8451718] = clik.newPhoto({"id":8451718,"src":"IMG_3057_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8451718.html","width":160,"caption":"The Val D'Orcia, Tuscany, Italy","height":107});
															thumbnails[8451720] = clik.newPhoto({"id":8451720,"src":"JMonkPoppies_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8451720.html","width":160,"caption":"The Val D'Orcia, Tuscany, Italy","height":120});
															thumbnails[8451715] = clik.newPhoto({"id":8451715,"src":"IMG_1800new_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8451715.html","width":160,"caption":"The Val D'Orcia, Tuscany, Italy","height":80});
															thumbnails[8447690] = clik.newPhoto({"id":8447690,"src":"CossingtonLakes01_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_8447690.html","width":160,"caption":"Cossington Lakes, Leicestershire","height":120});
															thumbnails[7759123] = clik.newPhoto({"id":7759123,"src":"IMG_0723websmall_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_7759123.html","width":160,"caption":"Taken from the Palma to Soller train, Majorca","height":107});
															thumbnails[7760523] = clik.newPhoto({"id":7760523,"src":"IMG_0757websmall_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7760523.html","width":160,"caption":"Hat Man, Palma, Majorca","height":213});
															thumbnails[7769702] = clik.newPhoto({"id":7769702,"src":"Jenny01_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7769702.html","width":160,"caption":"Hospital of Terror","height":120});
															thumbnails[7769703] = clik.newPhoto({"id":7769703,"src":"Jenny02_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7769703.html","width":160,"caption":"Jenny & Lamara","height":107});
															thumbnails[7601947] = clik.newPhoto({"id":7601947,"src":"FocusA_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7601947.html","width":160,"caption":"Focus Girl (Westcott kit) ","height":213});
															thumbnails[7601943] = clik.newPhoto({"id":7601943,"src":"LeicsUniRugby02_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7601943.html","width":160,"caption":"Leicester University - Ladies Rugby","height":120});
															thumbnails[7594719] = clik.newPhoto({"id":7594719,"src":"Bodyline1st03_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7594719.html","width":160,"caption":"Valen Vain & Abyss","height":107});
															thumbnails[7594730] = clik.newPhoto({"id":7594730,"src":"Bodyline1st04_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7594730.html","width":160,"caption":"Victoria Vendettaa","height":240});
															thumbnails[7594694] = clik.newPhoto({"id":7594694,"src":"LeicsUniRugby01_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7594694.html","width":160,"caption":"LFPS & Leicester University Sports Project - Rugby Union","height":240});
															thumbnails[7594699] = clik.newPhoto({"id":7594699,"src":"LeicsUniNetball02_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7594699.html","width":160,"caption":"LFPS & Leicester University Sports Project - Netball","height":107});
															thumbnails[7594642] = clik.newPhoto({"id":7594642,"src":"BradgateParkB_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7594642.html","width":160,"caption":"Bradgate Park","height":120});
															thumbnails[7187541] = clik.newPhoto({"id":7187541,"src":"IMG_0455web_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_7187541.html","width":160,"caption":"A lunchtimewalk around Carlton Park","height":110});
															thumbnails[7060092] = clik.newPhoto({"id":7060092,"src":"CropstonRes01_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_7060092.html","width":160,"caption":"Cropston Reservoir","height":80});
															thumbnails[7060097] = clik.newPhoto({"id":7060097,"src":"CropstonRes03_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_7060097.html","width":160,"caption":"Cropston Reservoir","height":110});
															thumbnails[7054959] = clik.newPhoto({"id":7054959,"src":"UllswaterBoatHouse_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_7054959.html","width":130,"caption":"Ullswater Boat House","height":98});
															thumbnails[7054796] = clik.newPhoto({"id":7054796,"src":"MktHarbArtsFresco08_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_7054796.html","width":130,"caption":"Market Harborough Arts Fresco - The Cone Heads","height":96});
															thumbnails[6691497] = clik.newPhoto({"id":6691497,"src":"Ireland01_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_6691497.html","width":130,"caption":"Walking down the Dark Hedges, Co. Antrim, Northern Ireland","height":96});
															thumbnails[6691512] = clik.newPhoto({"id":6691512,"src":"Ireland04_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_6691512.html","width":130,"caption":"Giant's Causeway, Country Antrim, Northern Ireland","height":87});
															thumbnails[6665890] = clik.newPhoto({"id":6665890,"src":"Firestationday07_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_6665890.html","width":130,"caption":"A day with the lads at the Leicester Southern Fire and Rescue Station","height":89});
															thumbnails[6665893] = clik.newPhoto({"id":6665893,"src":"Firestationday08_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_6665893.html","width":130,"caption":"A day with the lads at the Leicester Southern Fire and Rescue Station","height":89});
															thumbnails[6665180] = clik.newPhoto({"id":6665180,"src":"LeicesterMELA03_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_6665180.html","width":130,"caption":"Leicester Belgrave Mela","height":98});
															thumbnails[6664817] = clik.newPhoto({"id":6664817,"src":"Jasmina01jpg_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_6664817.html","width":130,"caption":"Jasmina","height":87});
															thumbnails[6184232] = clik.newPhoto({"id":6184232,"src":"ribblehead02_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_6184232.html","width":130,"caption":"Ribblehead Viaduct, Yorkshire Dales","height":63});
															thumbnails[5926650] = clik.newPhoto({"id":5926650,"src":"Whitby023new_thumb.jpg","galleries_id":35031,"server_id":18,"link":"photo_5926650.html","width":130,"caption":"Whitby Goth Weekend 2","height":195});
															thumbnails[5854646] = clik.newPhoto({"id":5854646,"src":"Istanbul02_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_5854646.html","width":130,"caption":"Blue Mosque, Istanbul","height":184});
															thumbnails[5030314] = clik.newPhoto({"id":5030314,"src":"Barcelona23_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_5030314.html","width":130,"caption":"It rained and rained on our last day in Barcelona","height":173});
															thumbnails[4692678] = clik.newPhoto({"id":4692678,"src":"LeicesterBowstring_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_4692678.html","width":130,"caption":"The Bowstring Bridge, Leicester , just prior to demolition.","height":87});
															thumbnails[4423477] = clik.newPhoto({"id":4423477,"src":"Cornwall32_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_4423477.html","width":130,"caption":"The Rumps, Nr Polzeath, Cornwall","height":87});
															thumbnails[4423471] = clik.newPhoto({"id":4423471,"src":"Cornwall29_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_4423471.html","width":130,"caption":"Trebarwith Strand, Cornwall","height":195});
															thumbnails[4423462] = clik.newPhoto({"id":4423462,"src":"Cornwall26_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_4423462.html","width":130,"caption":"Bedruthan Steps, Cornwall","height":195});
															thumbnails[4402654] = clik.newPhoto({"id":4402654,"src":"Cornwall09_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_4402654.html","width":130,"caption":"Porthcurno Waves, Cornwall","height":43});
															thumbnails[4402671] = clik.newPhoto({"id":4402671,"src":"Cornwall11_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_4402671.html","width":130,"caption":"Nanven, Cornwall","height":87});
															thumbnails[4258940] = clik.newPhoto({"id":4258940,"src":"StauntonHarold_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_4258940.html","width":130,"caption":"Staunton Harold, Leics","height":87});
															thumbnails[3836309] = clik.newPhoto({"id":3836309,"src":"AuschwitzBirkenaumontage_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_3836309.html","width":130,"caption":"Auschwitz-Birkenau","height":65});
															thumbnails[3622452] = clik.newPhoto({"id":3622452,"src":"TheVampiress_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_3622452.html","width":130,"caption":"The Vampiress","height":87});
															thumbnails[2908338] = clik.newPhoto({"id":2908338,"src":"CromerTheOldWorkhorse_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_2908338.html","width":130,"caption":"Cromer Tractor","height":97});
															thumbnails[3278665] = clik.newPhoto({"id":3278665,"src":"Vienna05_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_3278665.html","width":130,"caption":"Schonbrunn Palace, Vienna","height":42});
															thumbnails[3278660] = clik.newPhoto({"id":3278660,"src":"Gower3CliffsBay03_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_3278660.html","width":130,"caption":"Three Cliffs Bay, Gower, Wales","height":37});
															thumbnails[2602413] = clik.newPhoto({"id":2602413,"src":"Carl_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_2602413.html","width":130,"caption":"Carl","height":167});
															thumbnails[2146434] = clik.newPhoto({"id":2146434,"src":"Lucerne01_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_2146434.html","width":130,"caption":"Chapel Bridge, Lucerne","height":87});
															thumbnails[2068151] = clik.newPhoto({"id":2068151,"src":"LondonMilleniumBridge_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_2068151.html","width":130,"caption":"Millenium Bridge, London","height":38});
															thumbnails[1841576] = clik.newPhoto({"id":1841576,"src":"Les-Bois-France_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_1841576.html","width":130,"caption":"Les Bois, Center Parcs, nr Paris","height":84});
															thumbnails[3279339] = clik.newPhoto({"id":3279339,"src":"LakeDistrictRydal_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_3279339.html","width":130,"caption":"Rydal Water, Lake District","height":39});
															thumbnails[1282269] = clik.newPhoto({"id":1282269,"src":"Lindisfarne01_thumb.jpg","galleries_id":35127,"server_id":18,"link":"photo_1282269.html","width":130,"caption":"Lindisfarne Castle 01","height":87});
															thumbnails[698559] = clik.newPhoto({"id":698559,"src":"Meg_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_698559.html","width":130,"caption":"Scary Meg","height":182});
															thumbnails[7601954] = clik.newPhoto({"id":7601954,"src":"MegvsAlien_thumb.jpg","galleries_id":446576,"server_id":18,"link":"photo_7601954.html","width":160,"caption":"Meg vs Alien","height":126});
															thumbnails[3279280] = clik.newPhoto({"id":3279280,"src":"clumberpano_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_3279280.html","width":130,"caption":"Clumber Park, Nottinghamshire","height":34});
															thumbnails[3279303] = clik.newPhoto({"id":3279303,"src":"CromerPier2_thumb.jpg","galleries_id":199965,"server_id":18,"link":"photo_3279303.html","width":130,"caption":"Cromer Pier","height":55});
															thumbnails[485375] = clik.newPhoto({"id":485375,"src":"SaddingtonRessie_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_485375.html","width":130,"caption":"Saddington Reservoir, Leics","height":76});
															thumbnails[488484] = clik.newPhoto({"id":488484,"src":"HarboroughCanalBasin_thumb.jpg","galleries_id":34990,"server_id":18,"link":"photo_488484.html","width":130,"caption":"Market Harborough Canal Basin","height":76});
															thumbnails[7760638] = clik.newPhoto({"id":7760638,"src":"IMG_0899websmall_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_7760638.html","width":160,"caption":"Pompeii, Naples","height":240});
															thumbnails[7765012] = clik.newPhoto({"id":7765012,"src":"IMG_1290websmall_thumb.jpg","galleries_id":447023,"server_id":18,"link":"photo_7765012.html","width":160,"caption":"Salvador Dali Museum - Figueres, Spain","height":120});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[34990] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscapes","link":"gallery_34990.html","maxRecords":0.0,"photoIDs":[9066292.0,9059439.0,9059435.0,9059437.0,9059438.0,8448389.0,8448586.0,8448585.0,8448342.0,8448339.0,8451716.0,8451718.0,8451720.0,8451715.0,8447690.0,7759123.0,7187541.0,7060092.0,7060097.0,7054959.0,6691497.0,6184232.0,4692678.0,4258940.0,1841576.0,485375.0,488484.0],"skipIndex":0,"section_code":"gallery","featured_images":"9066292,9059439,9059438,9059437,9059435,8451720,8451718,8451716,8451715,8448586","id":34990,"singleSection":false});				  						galleries[35127] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Seascapes","link":"gallery_35127.html","maxRecords":0.0,"photoIDs":[9066319.0,9066296.0,9066298.0,9066315.0,8448378.0,8448380.0,8448381.0,8448384.0,8448385.0,8448375.0,8448359.0,8448354.0,8448352.0,8448348.0,6691512.0,4423477.0,4423471.0,4423462.0,4402671.0,2908338.0,1282269.0],"skipIndex":0,"section_code":"gallery","featured_images":8448354.0,"id":35127,"singleSection":false});				  						galleries[446576] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Studio Work","link":"gallery_446576.html","maxRecords":0.0,"photoIDs":[7769702.0,7769703.0,7601947.0,7594719.0,7594730.0,3622452.0,2602413.0,698559.0,7601954.0],"skipIndex":0,"section_code":"gallery","featured_images":7594719.0,"id":446576,"singleSection":false});				  						galleries[35031] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Location Portraiture","link":"gallery_35031.html","maxRecords":0.0,"photoIDs":[9066341.0,9066345.0,9066339.0,9066334.0,9066337.0,9066326.0,9066330.0,9059413.0,9059409.0,9059411.0,9059415.0,9059417.0,9059258.0,8448694.0,8448695.0,8448696.0,8451855.0,8448691.0,8448692.0,8448693.0,8448684.0,8448685.0,8448686.0,8448688.0,8448689.0,8448682.0,8448681.0,8448680.0,7760523.0,7601943.0,7594694.0,7594699.0,7594642.0,7054796.0,6665890.0,6665893.0,6665180.0,6664817.0,5926650.0],"skipIndex":0,"section_code":"gallery","featured_images":8448682.0,"id":35031,"singleSection":false});				  						galleries[447023] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Travel","link":"gallery_447023.html","maxRecords":0.0,"photoIDs":[5854646.0,5030314.0,3836309.0,2146434.0,7760638.0,7765012.0],"skipIndex":0,"section_code":"gallery","featured_images":"7765012,7760638,5854646,5030314,3836309,2146434","id":447023,"singleSection":false});				  						galleries[199965] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Panoramas","link":"gallery_199965.html","maxRecords":0.0,"photoIDs":[4402654.0,3278665.0,3278660.0,2068151.0,3279339.0,3279280.0,3279303.0],"skipIndex":0,"section_code":"gallery","featured_images":3279303.0,"id":199965,"singleSection":false});				  						galleries[477610] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Others","link":"gallery_477610.html","maxRecords":0.0,"photoIDs":[9059448.0],"skipIndex":0,"section_code":"gallery","featured_images":9059448.0,"id":477610,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8451716,8448693,8448686,8448384';
imageSets[2] = '8448682,8448354,7594719,3469184,3279303';
imageSets[3] = '7760638,7765012';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jimmonk/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jimmonk/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 = 'Jim Monk Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.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="jim.monk@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="jim.monk@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

