window.thumbnails = {};
															thumbnails[1450674] = clik.newPhoto({"id":1450674,"src":"hain001_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Peter Hain Secretary of State for Work and Pensions and Wales speaks at the Good Work fringe meeting in Bournemouth - September 07","height":86});
															thumbnails[3829764] = clik.newPhoto({"id":3829764,"src":"eastlg-v-hayes001web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ram Marwa and Gary Macdonald celebrate Hayes FC victory over Eastleigh FC in the Con Sth Play-Off semi final May 2009","height":138});
															thumbnails[6339151] = clik.newPhoto({"id":6339151,"src":"britpedcar001web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"2010 Winners - Apollo Racing 1 celebrate.","height":67});
															thumbnails[7924637] = clik.newPhoto({"id":7924637,"src":"spider_thumb.pressweb0061.jpg","galleries_id":"","server_id":35,"link":"#","width":130,"caption":"Penny Bishop and Mandy Barrow launch 'The Little Spider Book' - June 2011","height":97});
															thumbnails[7985963] = clik.newPhoto({"id":7985963,"src":"spider001web1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Penny Bishop and Mandy Barrow launch 'The Little Spider Book' in Ringwood,Hampshire. - June 2011","height":88});
															thumbnails[17127] = clik.newPhoto({"id":17127,"src":"lostwld5web_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_17127.html","width":130,"caption":"Forest Forge Theatre Co. ","height":85});
															thumbnails[20873] = clik.newPhoto({"id":20873,"src":"ebmen11web_thumb.jpg","galleries_id":2160,"server_id":1,"link":"photo_20873.html","width":130,"caption":"EB Men's Div 1 Final Sheffield Arrows v Reading Rockets NIA Birmingham May 05","height":183});
															thumbnails[20878] = clik.newPhoto({"id":20878,"src":"ebwomen6web_thumb.jpg","galleries_id":2160,"server_id":1,"link":"photo_20878.html","width":130,"caption":"EB Womens Final Rhondda Rebels v Sheffield Hatters NIA Birmingham May 05","height":85});
															thumbnails[20879] = clik.newPhoto({"id":20879,"src":"chld1web_thumb.jpg","galleries_id":2160,"server_id":1,"link":"photo_20879.html","width":130,"caption":"The Rockets Cheerleaders Basketball @ NIA Birmingham","height":198});
															thumbnails[21545] = clik.newPhoto({"id":21545,"src":"cw11_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_21545.html","width":130,"caption":"Forest Forge Theatre Co.","height":107});
															thumbnails[26446] = clik.newPhoto({"id":26446,"src":"hswive1_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_26446.html","width":130,"caption":"Forest Forge Theatre Co.","height":84});
															thumbnails[26449] = clik.newPhoto({"id":26449,"src":"giblue1_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_26449.html","width":130,"caption":"Forest Forge Theatre Co.","height":119});
															thumbnails[26450] = clik.newPhoto({"id":26450,"src":"jj10_thumb.jpg","galleries_id":2983,"server_id":1,"link":"photo_26450.html","width":130,"caption":"Byrony and Elliott ","height":111});
															thumbnails[29292] = clik.newPhoto({"id":29292,"src":"ffwchus010c_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_29292.html","width":130,"caption":"The Theatre of Arts,Education & Deaf Studies at Reading University - June 2005","height":87});
															thumbnails[44452] = clik.newPhoto({"id":44452,"src":"g_thumb.bestweb1.jpg","galleries_id":2585,"server_id":1,"link":"photo_44452.html","width":130,"caption":"George Best - 1946-2005. Signed by Don Megson in 1982,he was 36 and played five times in the Third Division for AFCB,it was his last professional club. Thanks George !","height":136});
															thumbnails[44453] = clik.newPhoto({"id":44453,"src":"gridiron2web_thumb.jpg","galleries_id":2160,"server_id":1,"link":"photo_44453.html","width":130,"caption":"San Francisco 49ers","height":158});
															thumbnails[56319] = clik.newPhoto({"id":56319,"src":"band1_thumb.jpg","galleries_id":5599,"server_id":1,"link":"photo_56319.html","width":130,"caption":"Charlie,Elliott,Hanky","height":94});
															thumbnails[56320] = clik.newPhoto({"id":56320,"src":"phil1_thumb.jpg","galleries_id":5599,"server_id":1,"link":"photo_56320.html","width":130,"caption":"Phil - Bassist","height":174});
															thumbnails[56321] = clik.newPhoto({"id":56321,"src":"ch1_thumb.jpg","galleries_id":5599,"server_id":1,"link":"photo_56321.html","width":130,"caption":"Charlie - Lead","height":174});
															thumbnails[119430] = clik.newPhoto({"id":119430,"src":"f_thumb.forge.tom.thumb02.jpg","galleries_id":2514,"server_id":1,"link":"photo_119430.html","width":130,"caption":"Josh Elwell as Tom Thumb in Forest Forge's production of 'The Adventures of Tom Thumb' 2005\/06","height":85});
															thumbnails[150667] = clik.newPhoto({"id":150667,"src":"nalc01web_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_150667.html","width":130,"caption":"National Association of Local Councils - Labour Party @ Brighton - 2005","height":136});
															thumbnails[150672] = clik.newPhoto({"id":150672,"src":"scie01web_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_150672.html","width":130,"caption":"Social Care Institute for Excellence @ House of Commons,London - 2005","height":91});
															thumbnails[151467] = clik.newPhoto({"id":151467,"src":"ell11_thumb.jpg","galleries_id":5599,"server_id":1,"link":"photo_151467.html","width":130,"caption":"Elliott at The Green Room Boscombe ","height":98});
															thumbnails[151469] = clik.newPhoto({"id":151469,"src":"ell2_thumb.jpg","galleries_id":5599,"server_id":1,"link":"photo_151469.html","width":130,"caption":"Elliott at The Green Room Boscombe","height":174});
															thumbnails[210825] = clik.newPhoto({"id":210825,"src":"aldershot001web_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_210825.html","width":130,"caption":"Aldershot's Leroy Griffiths celebrates scoring","height":157});
															thumbnails[296660] = clik.newPhoto({"id":296660,"src":"rg002_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_296660.html","width":130,"caption":"The Labour Party Centenary Gala Dinner - May 2006","height":196});
															thumbnails[297306] = clik.newPhoto({"id":297306,"src":"rg001web_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_297306.html","width":130,"caption":"Gordon Brown MP meets Robin Gibb at The Labour Party Gala Centenary Dinner in Park Lane London-May 2006","height":139});
															thumbnails[332716] = clik.newPhoto({"id":332716,"src":"sweets-for-my-sweet003web_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_332716.html","width":130,"caption":"'Sweets for my Sweet' Forest Forge Theatre Production-May 2006","height":86});
															thumbnails[338270] = clik.newPhoto({"id":338270,"src":"labgala001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_338270.html","width":130,"caption":"Melvyn Bragg,Patrick Stewart and Robin Gibb at the Labour Party Centenary Gala Dinner in Park Lane,London-May 2006","height":100});
															thumbnails[396794] = clik.newPhoto({"id":396794,"src":"shauna_thumb.danielle003web.jpg","galleries_id":41143,"server_id":1,"link":"photo_396794.html","width":130,"caption":"Wales on Sunday - July 2006 - Front Page story.'Sex Slave' case.Victim protests at early release of her tormentor. ","height":91});
															thumbnails[531718] = clik.newPhoto({"id":531718,"src":"busawards0011_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_531718.html","width":130,"caption":"UK Bus Awards in Birmingham - Sept 2006 Ray Stenning - Creative Director of the Go Ahead group.","height":141});
															thumbnails[532258] = clik.newPhoto({"id":532258,"src":"prev5_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_532258.html","width":130,"caption":"Forest Forge Theatre Co - A Wild Weekend ! production - September 2006","height":98});
															thumbnails[577629] = clik.newPhoto({"id":577629,"src":"family002web_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_577629.html","width":130,"caption":"Katie King - Winner of Harvester Restaurants Make-A-Wish competion - Portsmouth - Nov 2006 ","height":90});
															thumbnails[589126] = clik.newPhoto({"id":589126,"src":"salisby-v-fleetwd003web_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_589126.html","width":130,"caption":"Salisbury City v Fleetwood Town-FA Cup 1 11.11.06-Two footed tackle on Tim Bond","height":99});
															thumbnails[593208] = clik.newPhoto({"id":593208,"src":"cc002clicpic_thumb.jpg","galleries_id":2514,"server_id":1,"link":"photo_593208.html","width":130,"caption":"'A Christmas Carol' Forest Forge Theatre Co-Nov 2006 'Scrooge' played by Jonathon Jones and 'Jacob Marley' played by Chris Talman","height":97});
															thumbnails[793603] = clik.newPhoto({"id":793603,"src":"yateley002web1_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_793603.html","width":130,"caption":"Waitrose staff and Yateley Mayor celebrate Sam Kendall's charity ride - Waitrose PR PLC - Feb 07","height":95});
															thumbnails[816645] = clik.newPhoto({"id":816645,"src":"four_thumb.marks003web.jpg","galleries_id":41143,"server_id":1,"link":"photo_816645.html","width":130,"caption":"Pupils and staff of Four Marks Primary School,Hampshire start the Wildlife Pond project in the school garden. RBS Insurance PR - March 07","height":85});
															thumbnails[966861] = clik.newPhoto({"id":966861,"src":"sals001_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_966861.html","width":130,"caption":"Salisbury City's Robbie Williams celebrates the deciding goal against Bishops Stortford in the Conference South PlayOff Semifinal - May 5th","height":99});
															thumbnails[1139853] = clik.newPhoto({"id":1139853,"src":"tb01web_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1139853.html","width":130,"caption":"Tony Blair's final speech to the Labour Party - June Manchester 2007","height":73});
															thumbnails[1151837] = clik.newPhoto({"id":1151837,"src":"gb001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1151837.html","width":130,"caption":"Gordon Brown becomes Leader of Labour Party in Manchester - June 2007","height":86});
															thumbnails[1151839] = clik.newPhoto({"id":1151839,"src":"hh001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1151839.html","width":130,"caption":"Harriet Harman becomes Deputy Leader of the Labour Party - Manchester 2007","height":81});
															thumbnails[1151852] = clik.newPhoto({"id":1151852,"src":"hh002_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1151852.html","width":130,"caption":"Harriet Harman is congratulated by other contenders. - Manchester 2007","height":117});
															thumbnails[1151861] = clik.newPhoto({"id":1151861,"src":"fourmks013web_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_1151861.html","width":130,"caption":"Children of Four Marks Primary School at the opening of their Wild Life Pond - RBS Insurance PR - June 2007","height":86});
															thumbnails[1156682] = clik.newPhoto({"id":1156682,"src":"chichstr001web_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_1156682.html","width":130,"caption":"Partners at the Chichester branch raise £2600 for St Wilfreds Hospice - Waitrose PR PLC - June 2007 ","height":147});
															thumbnails[1247627] = clik.newPhoto({"id":1247627,"src":"nancy001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1247627.html","width":130,"caption":"Tony Blair Nancy Delelio and June Sapong at the 10 years of Sport Gala - Wembley July 2007","height":108});
															thumbnails[1665890] = clik.newPhoto({"id":1665890,"src":"scie_thumb.web001.jpg","galleries_id":4230,"server_id":1,"link":"photo_1665890.html","width":130,"caption":"Dr Mee-Yan Cheung - Founder of Quality and Equality at I&Dea Conference, Hatton Garden, London. Nov 2007","height":86});
															thumbnails[1831073] = clik.newPhoto({"id":1831073,"src":"dorch-v-st_thumb.albns003web.jpg","galleries_id":123101,"server_id":1,"link":"photo_1831073.html","width":130,"caption":"Dorchester's Bradley Middleton feels the force from St Albans Paul Hakim - 26.01.08","height":118});
															thumbnails[1833791] = clik.newPhoto({"id":1833791,"src":"iansandiegoweb002_thumb.jpg","galleries_id":123099,"server_id":1,"link":"photo_1833791.html","width":130,"caption":"The author at SuperBowl XX11,San Diego,USA","height":82});
															thumbnails[1833869] = clik.newPhoto({"id":1833869,"src":"denversuperfanweb0011_thumb.jpg","galleries_id":123099,"server_id":1,"link":"photo_1833869.html","width":130,"caption":"SuperBowl XX11,San Diego,USA","height":187});
															thumbnails[1955369] = clik.newPhoto({"id":1955369,"src":"tm-bath-v-bashley002web_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_1955369.html","width":130,"caption":"'Eyes wide shut' Smith of Bashley FC and Canham of Team Bath FC","height":101});
															thumbnails[1989606] = clik.newPhoto({"id":1989606,"src":"motty001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_1989606.html","width":130,"caption":"John Motson BBC Football meets PM Gordon Brown at the Labour Party Gala in Park Lane London - March 2008","height":86});
															thumbnails[2137571] = clik.newPhoto({"id":2137571,"src":"t_thumb.bath-v-halesow001web.jpg","galleries_id":123101,"server_id":1,"link":"photo_2137571.html","width":130,"caption":"Team Bath FC celebrate Southern League Premier PlayOff Final win against Halesowen Town FC - May 08 ","height":101});
															thumbnails[2259210] = clik.newPhoto({"id":2259210,"src":"mac004web_thumb.jpg","galleries_id":2585,"server_id":1,"link":"photo_2259210.html","width":130,"caption":"AFCB legend Ted Macdougall plays his final game in John Williams Testimonial against Southampton FC on 28th July 1998","height":95});
															thumbnails[2500522] = clik.newPhoto({"id":2500522,"src":"bev001web_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_2500522.html","width":130,"caption":"Beverley Knight MBE Singer and Songwriter at Labours Future of Sport Gala Dinner Wembley Stadium July 2008","height":94});
															thumbnails[2666754] = clik.newPhoto({"id":2666754,"src":"city-v-grays001web1_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_2666754.html","width":130,"caption":"Flying tackle from Thurgood of Grays Athletic against Michael Fowler Salisbury City - BS Premier August 08","height":130});
															thumbnails[4205333] = clik.newPhoto({"id":4205333,"src":"free001web_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_4205333.html","width":130,"caption":"The FreeSat Awards,Piccadilly,London - May 2009","height":87});
															thumbnails[4205703] = clik.newPhoto({"id":4205703,"src":"afcb_v_grimsbytwn004_thumb.jpg","galleries_id":2585,"server_id":1,"link":"photo_4205703.html","width":130,"caption":"Steve Fletcher celebrates his goal against Grimsby Town - April 2009","height":140});
															thumbnails[4206015] = clik.newPhoto({"id":4206015,"src":"hav_v_brentfd003_thumb.jpg","galleries_id":123101,"server_id":1,"link":"photo_4206015.html","width":130,"caption":"Charlie MacDonald Brentford sandwiched by Havant defenders - Nov 2008","height":103});
															thumbnails[4781974] = clik.newPhoto({"id":4781974,"src":"foam001_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_4781974.html","width":130,"caption":"Elliott @ FOAM in Amsterdam 2009","height":86});
															thumbnails[4854131] = clik.newPhoto({"id":4854131,"src":"boris001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_4854131.html","width":130,"caption":"Boris Johnson Mayor of London addresses the Tory Conference in Manchester 2009","height":86});
															thumbnails[5038182] = clik.newPhoto({"id":5038182,"src":"hallow001_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_5038182.html","width":130,"caption":"Elliott and Sarah - Halloween 2009","height":100});
															thumbnails[6400204] = clik.newPhoto({"id":6400204,"src":"bpolo020_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400204.html","width":130,"caption":"British Beach Polo Championships 2010","height":196});
															thumbnails[6400213] = clik.newPhoto({"id":6400213,"src":"bpolo021_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400213.html","width":130,"caption":"British Beach Polo Championships 2010","height":228});
															thumbnails[6400218] = clik.newPhoto({"id":6400218,"src":"bpolo022_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400218.html","width":130,"caption":"British Beach Polo Championships 2010","height":85});
															thumbnails[6400223] = clik.newPhoto({"id":6400223,"src":"bpolo023_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400223.html","width":130,"caption":"British Beach Polo Championships 2010","height":124});
															thumbnails[6400228] = clik.newPhoto({"id":6400228,"src":"bpolo024_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400228.html","width":130,"caption":"British Beach Polo Championships 2010","height":206});
															thumbnails[6400255] = clik.newPhoto({"id":6400255,"src":"bpolo002_thumb.jpg","galleries_id":353680,"server_id":1,"link":"photo_6400255.html","width":130,"caption":"British Beach Polo Championships 2010","height":86});
															thumbnails[6407035] = clik.newPhoto({"id":6407035,"src":"britpedcar002web_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407035.html","width":130,"caption":"Apollo 1 Racing Winner of the British Pedal Car Grand Prix 2010","height":107});
															thumbnails[6407036] = clik.newPhoto({"id":6407036,"src":"pedcar014_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407036.html","width":130,"caption":"","height":95});
															thumbnails[6407040] = clik.newPhoto({"id":6407040,"src":"pedcar036_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407040.html","width":130,"caption":"","height":86});
															thumbnails[6407041] = clik.newPhoto({"id":6407041,"src":"pedcar060_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407041.html","width":130,"caption":"","height":98});
															thumbnails[6407045] = clik.newPhoto({"id":6407045,"src":"pedcar119_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407045.html","width":130,"caption":"","height":86});
															thumbnails[6407047] = clik.newPhoto({"id":6407047,"src":"pedcar143_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407047.html","width":130,"caption":"","height":86});
															thumbnails[6407050] = clik.newPhoto({"id":6407050,"src":"pedcar157_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407050.html","width":130,"caption":"","height":86});
															thumbnails[6407053] = clik.newPhoto({"id":6407053,"src":"pedcar176_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407053.html","width":130,"caption":"","height":86});
															thumbnails[6407054] = clik.newPhoto({"id":6407054,"src":"pedcar184_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407054.html","width":130,"caption":"","height":86});
															thumbnails[6407055] = clik.newPhoto({"id":6407055,"src":"pedcar226_thumb.jpg","galleries_id":351331,"server_id":1,"link":"photo_6407055.html","width":130,"caption":"","height":86});
															thumbnails[6434067] = clik.newPhoto({"id":6434067,"src":"bpolo001_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434067.html","width":130,"caption":"","height":86});
															thumbnails[6434069] = clik.newPhoto({"id":6434069,"src":"bpolo002_1AEF21FD-24E8-5EC4-4F4EFF69D364E9C1_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434069.html","width":130,"caption":"","height":86});
															thumbnails[6434072] = clik.newPhoto({"id":6434072,"src":"bpolo004_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434072.html","width":130,"caption":"","height":89});
															thumbnails[6434075] = clik.newPhoto({"id":6434075,"src":"bpolo005_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434075.html","width":130,"caption":"","height":87});
															thumbnails[6434078] = clik.newPhoto({"id":6434078,"src":"bpolo007_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434078.html","width":130,"caption":"","height":86});
															thumbnails[6434083] = clik.newPhoto({"id":6434083,"src":"bpolo008_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434083.html","width":130,"caption":"","height":79});
															thumbnails[6434087] = clik.newPhoto({"id":6434087,"src":"bpolo009_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434087.html","width":130,"caption":"","height":102});
															thumbnails[6434090] = clik.newPhoto({"id":6434090,"src":"bpolo010_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434090.html","width":130,"caption":"","height":91});
															thumbnails[6434093] = clik.newPhoto({"id":6434093,"src":"bpolo011_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434093.html","width":130,"caption":"","height":132});
															thumbnails[6434096] = clik.newPhoto({"id":6434096,"src":"bpolo015_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434096.html","width":130,"caption":"","height":196});
															thumbnails[6434114] = clik.newPhoto({"id":6434114,"src":"bpolo016_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434114.html","width":130,"caption":"","height":183});
															thumbnails[6434119] = clik.newPhoto({"id":6434119,"src":"bpolo018_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434119.html","width":130,"caption":"","height":100});
															thumbnails[6434122] = clik.newPhoto({"id":6434122,"src":"bpolo025_thumb.jpg","galleries_id":355115,"server_id":1,"link":"photo_6434122.html","width":130,"caption":"","height":73});
															thumbnails[6794448] = clik.newPhoto({"id":6794448,"src":"cable001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794448.html","width":130,"caption":"Rt Hon Vince Cable addresses SMT","height":86});
															thumbnails[6794464] = clik.newPhoto({"id":6794464,"src":"redmond001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794464.html","width":130,"caption":"Phil Redmond - Brookside 2010","height":109});
															thumbnails[6794470] = clik.newPhoto({"id":6794470,"src":"pool001_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794470.html","width":130,"caption":"Liver Bird dominated by new build 2010","height":98});
															thumbnails[6794478] = clik.newPhoto({"id":6794478,"src":"pool008_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794478.html","width":130,"caption":"Not another city wheel !","height":86});
															thumbnails[6794479] = clik.newPhoto({"id":6794479,"src":"pool009_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794479.html","width":130,"caption":"Lib Dems in the Echo Arena 2010","height":86});
															thumbnails[6794503] = clik.newPhoto({"id":6794503,"src":"pool002_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794503.html","width":130,"caption":"Tate Liverpool 2010","height":98});
															thumbnails[6794510] = clik.newPhoto({"id":6794510,"src":"pool004_thumb.jpg","galleries_id":4230,"server_id":1,"link":"photo_6794510.html","width":130,"caption":"\"The Beatles Story\" it's fab !","height":173});
															thumbnails[7319148] = clik.newPhoto({"id":7319148,"src":"lyndsey001web_thumb.jpg","galleries_id":2983,"server_id":1,"link":"photo_7319148.html","width":130,"caption":"Lindsay dodges raindrops - St Marys Church Fordingbridge 2010","height":102});
															thumbnails[7932954] = clik.newPhoto({"id":7932954,"src":"spider001web_thumb.jpg","galleries_id":41143,"server_id":1,"link":"photo_7932954.html","width":130,"caption":"Mandy Barrow and Penny Bishop launch \"The Little Spider Book\" in Ringwood. June 2011","height":86});
															thumbnails[8600629] = clik.newPhoto({"id":8600629,"src":"cor043web_thumb.jpg","galleries_id":41143,"server_id":38,"link":"photo_8600629.html","width":130,"caption":"Alahambra Palace, Granada","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[2585] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AFC Bournemouth","link":"gallery_2585.html","maxRecords":0.0,"photoIDs":[44452.0,2259210.0,4205703.0],"skipIndex":0,"section_code":"gallery","featured_images":"4205703,2259210","id":2585,"singleSection":false});				  						galleries[123099] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"gallery_123099.html","maxRecords":0.0,"photoIDs":[1833791.0,1833869.0],"skipIndex":0,"section_code":"gallery","featured_images":1833791.0,"id":123099,"singleSection":false});				  						galleries[355115] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"British Beach Polo Championships 2010","link":"gallery_355115.html","maxRecords":0.0,"photoIDs":[6434067.0,6434069.0,6434072.0,6434075.0,6434078.0,6434083.0,6434087.0,6434090.0,6434093.0,6434096.0,6434114.0,6434119.0,6434122.0],"skipIndex":0,"section_code":"gallery","featured_images":"6434122,6434119,6434114,6434096,6434093,6434090,6434087,6434083,6434078,6434075","id":355115,"singleSection":false});				  						galleries[351331] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"British Pedal Car Grand Prix 2010","link":"gallery_351331.html","maxRecords":0.0,"photoIDs":[6407035.0,6407036.0,6407040.0,6407041.0,6407045.0,6407047.0,6407050.0,6407053.0,6407054.0,6407055.0],"skipIndex":0,"section_code":"gallery","featured_images":"6407055,6407054,6407053,6407050,6407047,6407045,6407041,6407040,6407036,6407035","id":351331,"singleSection":false});				  						galleries[353680] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Celebrity","link":"gallery_353680.html","maxRecords":0.0,"photoIDs":[6400204.0,6400213.0,6400218.0,6400223.0,6400228.0,6400255.0],"skipIndex":0,"section_code":"gallery","featured_images":"6400255,6400228,6400223,6400218,6400213,6400204","id":353680,"singleSection":false});				  						galleries[4230] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Conference","link":"gallery_4230.html","maxRecords":0.0,"photoIDs":[150667.0,150672.0,296660.0,297306.0,338270.0,1139853.0,1151837.0,1151839.0,1151852.0,1247627.0,1665890.0,1989606.0,2500522.0,4854131.0,6794448.0,6794464.0,6794470.0,6794478.0,6794479.0,6794503.0,6794510.0],"skipIndex":0,"section_code":"gallery","featured_images":"6794448,1151837","id":4230,"singleSection":false});				  						galleries[41143] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"News\/PR","link":"gallery_41143.html","maxRecords":0.0,"photoIDs":[396794.0,531718.0,577629.0,793603.0,816645.0,1151861.0,1156682.0,4205333.0,4781974.0,5038182.0,7932954.0,8600629.0],"skipIndex":0,"section_code":"gallery","featured_images":"8600629,1156682","id":41143,"singleSection":false});				  						galleries[123101] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Non League football","link":"gallery_123101.html","maxRecords":0.0,"photoIDs":[210825.0,589126.0,966861.0,1831073.0,1955369.0,2137571.0,2666754.0,4206015.0],"skipIndex":0,"section_code":"gallery","featured_images":1955369.0,"id":123101,"singleSection":false});				  						galleries[2160] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"gallery_2160.html","maxRecords":0.0,"photoIDs":[20873.0,20878.0,20879.0,44453.0],"skipIndex":0,"section_code":"gallery","featured_images":44453.0,"id":2160,"singleSection":false});				  						galleries[5599] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Ones - Indie band","link":"gallery_5599.html","maxRecords":0.0,"photoIDs":[56319.0,56320.0,56321.0,151467.0,151469.0],"skipIndex":0,"section_code":"gallery","featured_images":56319.0,"id":5599,"singleSection":false});				  						galleries[2514] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Theatre","link":"gallery_2514.html","maxRecords":0.0,"photoIDs":[17127.0,21545.0,26446.0,26449.0,29292.0,119430.0,332716.0,532258.0,593208.0],"skipIndex":0,"section_code":"gallery","featured_images":593208.0,"id":2514,"singleSection":false});				  						galleries[2983] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Reportage","link":"gallery_2983.html","maxRecords":0.0,"photoIDs":[26450.0,7319148.0],"skipIndex":0,"section_code":"gallery","featured_images":"7319148,26450","id":2983,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8600629';
imageSets[2] = '8600629,6794448,6339151,4205703,2259210,1955369,1833791,1156682,1151837,593208,56319,44453';
imageSets[3] = '5038182,4854131,4206015,4205703,4205333,3829764,2666754,2500522,2259210,2137571,1989606,1955369,1833869,1833791,1831073,1665890,1450674,1247627,1156682,1151861,1151852,1151839,1151837,1139853,966861,816645,793603,593208,589126,577629,532258,531718,396794,338270,332716,297306,296660,210825,151469,151467,150672,150667,119430,56321,56320,56319';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/christypix/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/christypix/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/christypix/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/christypix/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/christypix/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/christypix/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/christypix/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Ian Christy 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="christypix@gmail.com">';
					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="christypix@gmail.com">';
				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;
	}
}

			

