window.thumbnails = {};
															thumbnails[5395034] = clik.newPhoto({"id":5395034,"src":"xx_218_copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Still life, Heart Shape Stone","height":87});
															thumbnails[5396245] = clik.newPhoto({"id":5396245,"src":"Afza_and_Sam_11072009_075_3_copy1234_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Wedding Photographer","height":87});
															thumbnails[5415097] = clik.newPhoto({"id":5415097,"src":"Windsor_063x_copy1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Photographer service","height":153});
															thumbnails[5424357] = clik.newPhoto({"id":5424357,"src":"1fox_036_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Event Photographer, Conference photographer","height":32});
															thumbnails[5700902] = clik.newPhoto({"id":5700902,"src":"Picnik_collage_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"photography, pictures, photo, good, quality photos, qyality portraits, high quality photos, best photography, quality pictures","height":130});
															thumbnails[5990915] = clik.newPhoto({"id":5990915,"src":"Barcelona_2009_076_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":58});
															thumbnails[5997149] = clik.newPhoto({"id":5997149,"src":"500ahti_008xx12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ahti Nigol","height":71});
															thumbnails[5997589] = clik.newPhoto({"id":5997589,"src":"2_065bw_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":32});
															thumbnails[5997643] = clik.newPhoto({"id":5997643,"src":"1aaa_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":32});
															thumbnails[5997818] = clik.newPhoto({"id":5997818,"src":"389_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":32});
															thumbnails[6561868] = clik.newPhoto({"id":6561868,"src":"CyB_in_HSBC_0571_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":30});
															thumbnails[6561924] = clik.newPhoto({"id":6561924,"src":"colleagues_group_picture_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":31});
															thumbnails[6561991] = clik.newPhoto({"id":6561991,"src":"Afza_and_Sam_11072009_1691_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6562063] = clik.newPhoto({"id":6562063,"src":"Picture_4241_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":47});
															thumbnails[5395963] = clik.newPhoto({"id":5395963,"src":"Ricoh_2009_019_copy_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5395963.html","width":130,"caption":"","height":87});
															thumbnails[5396243] = clik.newPhoto({"id":5396243,"src":"CyB_Belsize_1591_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_5396243.html","width":130,"caption":"","height":87});
															thumbnails[5396244] = clik.newPhoto({"id":5396244,"src":"AM1_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_5396244.html","width":130,"caption":"Carlos","height":87});
															thumbnails[5396246] = clik.newPhoto({"id":5396246,"src":"Julie_Grace_Christmas_2008_0831_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_5396246.html","width":130,"caption":"Julie Grace","height":87});
															thumbnails[5396286] = clik.newPhoto({"id":5396286,"src":"Dinar_169x_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_5396286.html","width":130,"caption":"Old lady & her dog. Dinard, France 48° 38' 14.50\" N  2° 2' 59.08\" W  ","height":87});
															thumbnails[5396288] = clik.newPhoto({"id":5396288,"src":"Picture_171x1_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_5396288.html","width":130,"caption":"Switzerland","height":87});
															thumbnails[5398284] = clik.newPhoto({"id":5398284,"src":"Francesco-252bbw1_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_5398284.html","width":130,"caption":"","height":88});
															thumbnails[5401647] = clik.newPhoto({"id":5401647,"src":"313_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401647.html","width":130,"caption":"Dmitry Pankin, Deputy Minister of Finance of The Russian Federation","height":87});
															thumbnails[5401704] = clik.newPhoto({"id":5401704,"src":"248_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401704.html","width":130,"caption":"Alderman Nick Anstee, Lord mayor of The City of London","height":87});
															thumbnails[5401720] = clik.newPhoto({"id":5401720,"src":"CyB_in_HSBC_001_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401720.html","width":130,"caption":"Conference registration, Sophie Hulm (Heart of The City)","height":87});
															thumbnails[5401732] = clik.newPhoto({"id":5401732,"src":"Jan_Trust_Deen_Fest_06122009_43712_thumb.JPG","galleries_id":106234,"server_id":1,"link":"photo_5401732.html","width":130,"caption":"Paul Goodman, MP<br>\r\nShadow Minister for the Department of Communities and Local Government","height":194});
															thumbnails[5401751] = clik.newPhoto({"id":5401751,"src":"CyB_in_HSBC_12312_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401751.html","width":130,"caption":"Conference Speaker. David Pack, City of London","height":194});
															thumbnails[5401767] = clik.newPhoto({"id":5401767,"src":"Ricoh_2009_10412_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401767.html","width":130,"caption":"Ricoh Europe","height":194});
															thumbnails[5401891] = clik.newPhoto({"id":5401891,"src":"Jan_Trust-_Community_Talk_189123_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5401891.html","width":130,"caption":"Nilgun Canver, Councillor at Haringey Council ","height":194});
															thumbnails[5402041] = clik.newPhoto({"id":5402041,"src":"CyB_in_HSBC_192_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5402041.html","width":130,"caption":"Lucy Timms (London Metropolitan University) and Peter Campbell (Drinking Water Solutions)","height":87});
															thumbnails[5402047] = clik.newPhoto({"id":5402047,"src":"Ricoh_2009_135_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5402047.html","width":130,"caption":"Ricoh Europe Awards Ceremony","height":87});
															thumbnails[5402049] = clik.newPhoto({"id":5402049,"src":"CyB_in_HSBC_132_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5402049.html","width":130,"caption":"Conference Speaker Sally Ann Spencer, HSBC Bank, London","height":87});
															thumbnails[5402057] = clik.newPhoto({"id":5402057,"src":"251_CC758FBE-24E8-5EC4-4F48A87A12E01518_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5402057.html","width":130,"caption":"Question Time, RBCC","height":87});
															thumbnails[5594520] = clik.newPhoto({"id":5594520,"src":"290_CC7BC04E-24E8-5EC4-4F74B4B72A6BACA7_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5594520.html","width":130,"caption":"Coffee Break at The Institute Of Directors, London Pall Mall","height":87});
															thumbnails[5594522] = clik.newPhoto({"id":5594522,"src":"266_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5594522.html","width":130,"caption":"Paul Corcoran, Nord Stream AG","height":87});
															thumbnails[5594529] = clik.newPhoto({"id":5594529,"src":"Ricoh_2009_201_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5594529.html","width":130,"caption":"Post Conference Drinks Reception, Melia White House Hotel, London","height":87});
															thumbnails[5594534] = clik.newPhoto({"id":5594534,"src":"Ricoh_2009_160_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5594534.html","width":130,"caption":"Ricoh Europe, Group photo","height":87});
															thumbnails[5610230] = clik.newPhoto({"id":5610230,"src":"Jan_Trust_Deen_Fest_06122009_310_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5610230.html","width":130,"caption":"Maqsood Ahmed OBE, Senior Advisor on Muslim Communities, CLG. Jan Trust 2009","height":87});
															thumbnails[5610231] = clik.newPhoto({"id":5610231,"src":"CyB_Belsize_168_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5610231.html","width":130,"caption":"Conference Working Lunch, Belsize Library London","height":87});
															thumbnails[5610233] = clik.newPhoto({"id":5610233,"src":"279_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5610233.html","width":130,"caption":"Metin Güvener, Chief Executive Officer, Property Dimensions","height":87});
															thumbnails[5610241] = clik.newPhoto({"id":5610241,"src":"330_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_5610241.html","width":130,"caption":"Panel discussions","height":87});
															thumbnails[6076600] = clik.newPhoto({"id":6076600,"src":"Jan_Trust_Deen_Fest_06122009_272_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076600.html","width":130,"caption":"Lord Sheikh","height":87});
															thumbnails[6076606] = clik.newPhoto({"id":6076606,"src":"301_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076606.html","width":130,"caption":"Exhibitors and Buyers","height":87});
															thumbnails[6076614] = clik.newPhoto({"id":6076614,"src":"257_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076614.html","width":130,"caption":"Russo-British Chamber of Commerce, Conference Delegates","height":87});
															thumbnails[6076626] = clik.newPhoto({"id":6076626,"src":"Jan_Trust_Deen_Fest_06122009_246_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076626.html","width":130,"caption":"Sajda Mughal. Opening Speech, Jan Trust","height":87});
															thumbnails[6076896] = clik.newPhoto({"id":6076896,"src":"CyB_in_HSBC_150_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076896.html","width":130,"caption":"Marcelo Porcu, HSBC Bank","height":87});
															thumbnails[6076898] = clik.newPhoto({"id":6076898,"src":"RBCC_10032010_107_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076898.html","width":130,"caption":"Conference Delegates ","height":87});
															thumbnails[6076911] = clik.newPhoto({"id":6076911,"src":"Ricoh_2009_144_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076911.html","width":130,"caption":"Prize, Ricoh Europe","height":87});
															thumbnails[6076920] = clik.newPhoto({"id":6076920,"src":"RBCC_169_thumb.jpg","galleries_id":106234,"server_id":1,"link":"photo_6076920.html","width":130,"caption":"RBCC Dinner","height":87});
															thumbnails[6340095] = clik.newPhoto({"id":6340095,"src":"RBCC_016_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340095.html","width":130,"caption":"Welcome drink at the Institute of Directors, London","height":87});
															thumbnails[6340107] = clik.newPhoto({"id":6340107,"src":"RBCC_020_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340107.html","width":130,"caption":"Entertainment","height":87});
															thumbnails[6340235] = clik.newPhoto({"id":6340235,"src":"RBCC_123_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340235.html","width":130,"caption":"Institute of Directors, London Conference Photohraphy","height":87});
															thumbnails[6340515] = clik.newPhoto({"id":6340515,"src":"Picture_3901_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340515.html","width":87,"caption":"Ladies day","height":130});
															thumbnails[6340755] = clik.newPhoto({"id":6340755,"src":"RBCC_131_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340755.html","width":87,"caption":"Gentleman wearing English Kilt","height":130});
															thumbnails[6340761] = clik.newPhoto({"id":6340761,"src":"RBCC_032_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340761.html","width":87,"caption":"Canapes","height":130});
															thumbnails[6340765] = clik.newPhoto({"id":6340765,"src":"RBCC_127_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340765.html","width":87,"caption":"RBCC Executive Director Stephen Dalziel","height":130});
															thumbnails[6340884] = clik.newPhoto({"id":6340884,"src":"Hair011_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340884.html","width":130,"caption":"The Happening. Propagandahair, London ","height":87});
															thumbnails[6340942] = clik.newPhoto({"id":6340942,"src":"The_Happening_032_copy1_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340942.html","width":130,"caption":"The Happening. Propagandahair, London","height":87});
															thumbnails[6340954] = clik.newPhoto({"id":6340954,"src":"The_Happening_043_copy_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6340954.html","width":130,"caption":"The Happening. Propagandahair, London","height":86});
															thumbnails[6341037] = clik.newPhoto({"id":6341037,"src":"The_Happening_031_copy_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341037.html","width":130,"caption":"The Happening. Propagandahair, London","height":87});
															thumbnails[6341147] = clik.newPhoto({"id":6341147,"src":"Picnik_collage_D1502FCC-24E8-5EC4-4FA85EFE3A455993_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341147.html","width":130,"caption":"Argentine Ambassadors Polo Cup 2008, Cowdray Park Polo Club ","height":87});
															thumbnails[6341171] = clik.newPhoto({"id":6341171,"src":"IMG_4794_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341171.html","width":130,"caption":"Federico Mirre, The Ambassador of Argentina, 2008","height":87});
															thumbnails[6341222] = clik.newPhoto({"id":6341222,"src":"IMG_4646_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341222.html","width":130,"caption":"Spanish tapas and paella beautifully prepared and presented by the chefs of Solmelia Hotels & Resorts","height":87});
															thumbnails[6341247] = clik.newPhoto({"id":6341247,"src":"IMG_4790_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341247.html","width":130,"caption":"Cowdray Park Polo Club","height":87});
															thumbnails[6341715] = clik.newPhoto({"id":6341715,"src":"072_FA8FE549-24E8-5EC4-4FA7CE8B9A3672B2_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341715.html","width":130,"caption":"Money Market Breakfast Forum, Iberica London","height":81});
															thumbnails[6341792] = clik.newPhoto({"id":6341792,"src":"IMG_4847_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341792.html","width":130,"caption":"Polo Match ","height":87});
															thumbnails[6341955] = clik.newPhoto({"id":6341955,"src":"IMG_4616_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341955.html","width":130,"caption":"Cowdray Park Polo Club","height":87});
															thumbnails[6341961] = clik.newPhoto({"id":6341961,"src":"IMG_4615_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6341961.html","width":130,"caption":"Spanish tapas","height":87});
															thumbnails[6342648] = clik.newPhoto({"id":6342648,"src":"Picture_115_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6342648.html","width":130,"caption":"","height":87});
															thumbnails[6342650] = clik.newPhoto({"id":6342650,"src":"Picture_185_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6342650.html","width":130,"caption":"","height":87});
															thumbnails[6342653] = clik.newPhoto({"id":6342653,"src":"038_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6342653.html","width":130,"caption":"Record TV, London Team","height":87});
															thumbnails[6342659] = clik.newPhoto({"id":6342659,"src":"RBCC_108_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6342659.html","width":130,"caption":"","height":87});
															thumbnails[6343306] = clik.newPhoto({"id":6343306,"src":"CyB_DHC_104_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6343306.html","width":130,"caption":"","height":87});
															thumbnails[6343311] = clik.newPhoto({"id":6343311,"src":"CyB_in_HSBC_029_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6343311.html","width":130,"caption":"Networking event at The HSBC Tower, London","height":87});
															thumbnails[6343315] = clik.newPhoto({"id":6343315,"src":"CyB_DHC_153_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6343315.html","width":130,"caption":"","height":87});
															thumbnails[6343364] = clik.newPhoto({"id":6343364,"src":"RBCC_107_thumb.jpg","galleries_id":106232,"server_id":1,"link":"photo_6343364.html","width":130,"caption":"","height":87});
															thumbnails[6345348] = clik.newPhoto({"id":6345348,"src":"barbaraweb1_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6345348.html","width":130,"caption":"","height":84});
															thumbnails[6345379] = clik.newPhoto({"id":6345379,"src":"INGRID_042_19A7963B-24E8-5EC4-4F6101B21EDC6D9A_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6345379.html","width":130,"caption":"","height":87});
															thumbnails[6345687] = clik.newPhoto({"id":6345687,"src":"Claudio-spaghetti-boy_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6345687.html","width":85,"caption":"","height":130});
															thumbnails[6345688] = clik.newPhoto({"id":6345688,"src":"dena_351X_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6345688.html","width":86,"caption":"","height":130});
															thumbnails[6346209] = clik.newPhoto({"id":6346209,"src":"34_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6346209.html","width":88,"caption":"","height":130});
															thumbnails[6346210] = clik.newPhoto({"id":6346210,"src":"Picnik_collage_D57EC9F3-24E8-5EC4-4F863566C33F7B0E_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6346210.html","width":130,"caption":"","height":87});
															thumbnails[6346211] = clik.newPhoto({"id":6346211,"src":"Picture_206_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6346211.html","width":130,"caption":"","height":87});
															thumbnails[6346299] = clik.newPhoto({"id":6346299,"src":"JC1_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6346299.html","width":130,"caption":"","height":94});
															thumbnails[6346325] = clik.newPhoto({"id":6346325,"src":"IMG_8463_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6346325.html","width":130,"caption":"","height":87});
															thumbnails[6347391] = clik.newPhoto({"id":6347391,"src":"023_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6347391.html","width":85,"caption":"","height":130});
															thumbnails[6347494] = clik.newPhoto({"id":6347494,"src":"studio_011208_172_thumb.JPG","galleries_id":106230,"server_id":1,"link":"photo_6347494.html","width":87,"caption":"","height":130});
															thumbnails[6347556] = clik.newPhoto({"id":6347556,"src":"003_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6347556.html","width":81,"caption":"","height":130});
															thumbnails[6365283] = clik.newPhoto({"id":6365283,"src":"isabelle_collage_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6365283.html","width":130,"caption":"","height":80});
															thumbnails[6365293] = clik.newPhoto({"id":6365293,"src":"121_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6365293.html","width":130,"caption":"","height":87});
															thumbnails[6365300] = clik.newPhoto({"id":6365300,"src":"Isabelle_154_thumb.JPG","galleries_id":106233,"server_id":1,"link":"photo_6365300.html","width":87,"caption":"","height":130});
															thumbnails[6365316] = clik.newPhoto({"id":6365316,"src":"Isabelle_205_thumb.JPG","galleries_id":106233,"server_id":1,"link":"photo_6365316.html","width":87,"caption":"","height":130});
															thumbnails[6365367] = clik.newPhoto({"id":6365367,"src":"Isabelle_204bw_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6365367.html","width":87,"caption":"","height":130});
															thumbnails[6365386] = clik.newPhoto({"id":6365386,"src":"072_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6365386.html","width":87,"caption":"","height":130});
															thumbnails[6365438] = clik.newPhoto({"id":6365438,"src":"068BW_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6365438.html","width":130,"caption":"","height":87});
															thumbnails[6366507] = clik.newPhoto({"id":6366507,"src":"Julie_Grace_Christmas_2008_1561_thumb.JPG","galleries_id":106233,"server_id":1,"link":"photo_6366507.html","width":130,"caption":"","height":87});
															thumbnails[6366531] = clik.newPhoto({"id":6366531,"src":"toeshand_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6366531.html","width":130,"caption":"","height":73});
															thumbnails[6367030] = clik.newPhoto({"id":6367030,"src":"Polo_2009_0271_thumb.JPG","galleries_id":106233,"server_id":1,"link":"photo_6367030.html","width":130,"caption":"","height":87});
															thumbnails[6367312] = clik.newPhoto({"id":6367312,"src":"064_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6367312.html","width":87,"caption":"","height":130});
															thumbnails[6371562] = clik.newPhoto({"id":6371562,"src":"800Mont_St_Michel_023sky_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371562.html","width":130,"caption":"Mont St Michel","height":86});
															thumbnails[6371573] = clik.newPhoto({"id":6371573,"src":"New_Forest_England_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371573.html","width":130,"caption":"New Forest Wild Ponies","height":87});
															thumbnails[6371586] = clik.newPhoto({"id":6371586,"src":"New_Forestlom_064_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371586.html","width":130,"caption":"New Forest Wild Ponies","height":87});
															thumbnails[6371732] = clik.newPhoto({"id":6371732,"src":"Picture_325x_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371732.html","width":130,"caption":"Ain't no Mountain High Enough","height":87});
															thumbnails[6371743] = clik.newPhoto({"id":6371743,"src":"479_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371743.html","width":130,"caption":"Ordinary inspirations. The Beauty of the Sunlight.","height":87});
															thumbnails[6371764] = clik.newPhoto({"id":6371764,"src":"458_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371764.html","width":130,"caption":"Puppy Nap","height":87});
															thumbnails[6371780] = clik.newPhoto({"id":6371780,"src":"Paris_318_thumb.JPG","galleries_id":112001,"server_id":1,"link":"photo_6371780.html","width":87,"caption":"La Tour Eiffel photographed from Rue De Buenos Aires","height":130});
															thumbnails[6371782] = clik.newPhoto({"id":6371782,"src":"talv_067_thumb.JPG","galleries_id":112001,"server_id":1,"link":"photo_6371782.html","width":87,"caption":"Football in the Snowy Grovelands Park, London","height":130});
															thumbnails[6371805] = clik.newPhoto({"id":6371805,"src":"Cracassonne_and_Fauvet_009_thumb.JPG","galleries_id":112001,"server_id":1,"link":"photo_6371805.html","width":87,"caption":"Lift to The Roots. Carcassonne, France","height":130});
															thumbnails[6371943] = clik.newPhoto({"id":6371943,"src":"IMG_8590xxx_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371943.html","width":87,"caption":"","height":130});
															thumbnails[6371976] = clik.newPhoto({"id":6371976,"src":"Winchmore_Hill_105_800x533_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6371976.html","width":130,"caption":"English Cottages in Winchmore Hill","height":87});
															thumbnails[6372015] = clik.newPhoto({"id":6372015,"src":"Paris_0141_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372015.html","width":130,"caption":"Railway journey","height":87});
															thumbnails[6372027] = clik.newPhoto({"id":6372027,"src":"IMG_0214_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372027.html","width":130,"caption":"Narrow Boats near Oxford, England","height":87});
															thumbnails[6372046] = clik.newPhoto({"id":6372046,"src":"Père_Lachaise_Cemetery_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372046.html","width":130,"caption":"Cimetière du Père-Lachaise","height":87});
															thumbnails[6372231] = clik.newPhoto({"id":6372231,"src":"Evening_sunnear_Bergerac_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372231.html","width":130,"caption":"Sunset near Bordeaux, France","height":87});
															thumbnails[6372280] = clik.newPhoto({"id":6372280,"src":"Fashion_and_glamour_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372280.html","width":130,"caption":"Fashion and Glamour. Street shot in paris","height":86});
															thumbnails[6372345] = clik.newPhoto({"id":6372345,"src":"Light_at_the_end_of_the_tunnel_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372345.html","width":130,"caption":"There IS light at the end...","height":87});
															thumbnails[6372356] = clik.newPhoto({"id":6372356,"src":"Street_Musician_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372356.html","width":130,"caption":"Street Musician","height":86});
															thumbnails[6372393] = clik.newPhoto({"id":6372393,"src":"800London_Eye_by_Night_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372393.html","width":130,"caption":"London Eye by Night","height":87});
															thumbnails[6372397] = clik.newPhoto({"id":6372397,"src":"Rainy_morning_in_Santander_Spain_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372397.html","width":130,"caption":"Rainy morning in santander, Spain","height":87});
															thumbnails[6372422] = clik.newPhoto({"id":6372422,"src":"The_Colours_of_Nordic_Sky_01_Tallinn_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372422.html","width":130,"caption":"Beautiful Colours of Nordic Sky, Tallinn","height":87});
															thumbnails[6372426] = clik.newPhoto({"id":6372426,"src":"Viru_Bog_001_thumb.jpg","galleries_id":112001,"server_id":1,"link":"photo_6372426.html","width":130,"caption":"Bog lakes","height":87});
															thumbnails[6389615] = clik.newPhoto({"id":6389615,"src":"Baby_066_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6389615.html","width":87,"caption":"","height":130});
															thumbnails[6389628] = clik.newPhoto({"id":6389628,"src":"1Agnes_135_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6389628.html","width":97,"caption":"","height":130});
															thumbnails[6389660] = clik.newPhoto({"id":6389660,"src":"Baby_013_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6389660.html","width":85,"caption":"","height":130});
															thumbnails[6429621] = clik.newPhoto({"id":6429621,"src":"Claudio_2010_2841_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6429621.html","width":130,"caption":"","height":87});
															thumbnails[6431171] = clik.newPhoto({"id":6431171,"src":"portraweb1_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6431171.html","width":130,"caption":"","height":87});
															thumbnails[6432424] = clik.newPhoto({"id":6432424,"src":"IMG_84741_thumb.jpg","galleries_id":106230,"server_id":1,"link":"photo_6432424.html","width":130,"caption":"","height":86});
															thumbnails[6561137] = clik.newPhoto({"id":6561137,"src":"Jan_Trust_Deen_Fest_06122009_081_thumb.JPG","galleries_id":106233,"server_id":1,"link":"photo_6561137.html","width":130,"caption":"","height":87});
															thumbnails[6561140] = clik.newPhoto({"id":6561140,"src":"JG_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6561140.html","width":130,"caption":"","height":79});
															thumbnails[6561149] = clik.newPhoto({"id":6561149,"src":"Kayleen1_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6561149.html","width":130,"caption":"","height":74});
															thumbnails[6561341] = clik.newPhoto({"id":6561341,"src":"063BW1_thumb.jpg","galleries_id":106233,"server_id":1,"link":"photo_6561341.html","width":130,"caption":"","height":87});
															thumbnails[6723562] = clik.newPhoto({"id":6723562,"src":"324_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723562.html","width":130,"caption":"","height":96});
															thumbnails[6723579] = clik.newPhoto({"id":6723579,"src":"030_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723579.html","width":130,"caption":"","height":87});
															thumbnails[6723580] = clik.newPhoto({"id":6723580,"src":"035_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723580.html","width":130,"caption":"","height":87});
															thumbnails[6723583] = clik.newPhoto({"id":6723583,"src":"065_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723583.html","width":130,"caption":"","height":87});
															thumbnails[6723590] = clik.newPhoto({"id":6723590,"src":"097_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723590.html","width":130,"caption":"","height":87});
															thumbnails[6723682] = clik.newPhoto({"id":6723682,"src":"172_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723682.html","width":130,"caption":"","height":88});
															thumbnails[6723685] = clik.newPhoto({"id":6723685,"src":"220_thumb.JPG","galleries_id":366680,"server_id":1,"link":"photo_6723685.html","width":130,"caption":"","height":88});
															thumbnails[6723687] = clik.newPhoto({"id":6723687,"src":"290_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723687.html","width":130,"caption":"","height":89});
															thumbnails[6723785] = clik.newPhoto({"id":6723785,"src":"313_0B309AF1-24E8-5EC4-4FF3597DF14497F4_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6723785.html","width":109,"caption":"","height":130});
															thumbnails[6724092] = clik.newPhoto({"id":6724092,"src":"265_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724092.html","width":87,"caption":"","height":130});
															thumbnails[6724099] = clik.newPhoto({"id":6724099,"src":"327_thumb.JPG","galleries_id":366680,"server_id":1,"link":"photo_6724099.html","width":81,"caption":"","height":130});
															thumbnails[6724169] = clik.newPhoto({"id":6724169,"src":"279_0B3BA751-24E8-5EC4-4FAB882498D4E59E_thumb.JPG","galleries_id":366680,"server_id":1,"link":"photo_6724169.html","width":87,"caption":"","height":130});
															thumbnails[6724174] = clik.newPhoto({"id":6724174,"src":"329_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724174.html","width":87,"caption":"","height":130});
															thumbnails[6724175] = clik.newPhoto({"id":6724175,"src":"325_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724175.html","width":99,"caption":"","height":130});
															thumbnails[6724182] = clik.newPhoto({"id":6724182,"src":"362_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724182.html","width":87,"caption":"","height":130});
															thumbnails[6724184] = clik.newPhoto({"id":6724184,"src":"343_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724184.html","width":87,"caption":"","height":130});
															thumbnails[6724310] = clik.newPhoto({"id":6724310,"src":"523_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724310.html","width":130,"caption":"","height":87});
															thumbnails[6724314] = clik.newPhoto({"id":6724314,"src":"Afza_and_Sam_11072009_075_2_picnik_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724314.html","width":130,"caption":"","height":87});
															thumbnails[6724323] = clik.newPhoto({"id":6724323,"src":"444_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724323.html","width":130,"caption":"","height":87});
															thumbnails[6724336] = clik.newPhoto({"id":6724336,"src":"Picnik_collage_0B562F76-24E8-5EC4-4FD6B190A62E7512_thumb.jpg","galleries_id":366680,"server_id":1,"link":"photo_6724336.html","width":130,"caption":"","height":94});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[106234] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Conferences","link":"gallery_106234.html","maxRecords":0.0,"photoIDs":[5395963.0,5401647.0,5401704.0,5401720.0,5401732.0,5401751.0,5401767.0,5401891.0,5402041.0,5402047.0,5402049.0,5402057.0,5594520.0,5594522.0,5594529.0,5594534.0,5610230.0,5610231.0,5610233.0,5610241.0,6076600.0,6076606.0,6076614.0,6076626.0,6076896.0,6076898.0,6076911.0,6076920.0],"skipIndex":0,"section_code":"gallery","featured_images":5395963.0,"id":106234,"singleSection":false});				  						galleries[106232] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Events","link":"gallery_106232.html","maxRecords":0.0,"photoIDs":[5396243.0,6340095.0,6340107.0,6340235.0,6340515.0,6340755.0,6340761.0,6340765.0,6340884.0,6340942.0,6340954.0,6341037.0,6341147.0,6341171.0,6341222.0,6341247.0,6341715.0,6341792.0,6341955.0,6341961.0,6342648.0,6342650.0,6342653.0,6342659.0,6343306.0,6343311.0,6343315.0,6343364.0],"skipIndex":0,"section_code":"gallery","featured_images":5396243.0,"id":106232,"singleSection":false});				  						galleries[106230] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portraits","link":"gallery_106230.html","maxRecords":0.0,"photoIDs":[5398284.0,6345348.0,6345379.0,6345687.0,6345688.0,6346209.0,6346210.0,6346211.0,6346299.0,6346325.0,6347391.0,6347494.0,6347556.0,6429621.0,6431171.0,6432424.0],"skipIndex":0,"section_code":"gallery","featured_images":6345379.0,"id":106230,"singleSection":false});				  						galleries[106233] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Kids","link":"gallery_106233.html","maxRecords":0.0,"photoIDs":[5396244.0,5396246.0,6365283.0,6365293.0,6365300.0,6365316.0,6365367.0,6365386.0,6365438.0,6366507.0,6366531.0,6367030.0,6367312.0,6389615.0,6389628.0,6389660.0,6561137.0,6561140.0,6561149.0,6561341.0],"skipIndex":0,"section_code":"gallery","featured_images":"5396246,5396244","id":106233,"singleSection":false});				  						galleries[366680] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Weddings","link":"gallery_366680.html","maxRecords":0.0,"photoIDs":[6723562.0,6723579.0,6723580.0,6723583.0,6723590.0,6723682.0,6723685.0,6723687.0,6723785.0,6724092.0,6724099.0,6724169.0,6724174.0,6724175.0,6724182.0,6724184.0,6724310.0,6724314.0,6724323.0,6724336.0],"skipIndex":0,"section_code":"gallery","featured_images":"6724336,6724323,6724314,6724310,6724184,6724182,6724175,6724174,6724169,6724099","id":366680,"singleSection":false});				  						galleries[112001] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Personal & Travel","link":"gallery_112001.html","maxRecords":0.0,"photoIDs":[5396286.0,5396288.0,6371562.0,6371573.0,6371586.0,6371732.0,6371743.0,6371764.0,6371780.0,6371782.0,6371805.0,6371943.0,6371976.0,6372015.0,6372027.0,6372046.0,6372231.0,6372280.0,6372345.0,6372356.0,6372393.0,6372397.0,6372422.0,6372426.0],"skipIndex":0,"section_code":"gallery","featured_images":5396286.0,"id":112001,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5396288,5396286,5396246,5396245,5396244,5396243,5395963,5395034';
imageSets[2] = '6345379,5396286,5396246,5396244,5396243,5395963';
imageSets[3] = '6724336,6724323,6724314,6724310,6724184,6724182,6724175,6724174,6724169,6724099,6724092,6723785,6723687,6723685,6723682,6723590,6723583,6723580,6723579,6723562,6562063,6561991,6561924,6561868,6561341,6561149,6561140,6561137,6432424,6431171,6429621,6389660,6389628,6389615,6372426,6372422,6372397,6372393,6372356,6372345,6372280,6372231,6372046,6372027,6372015,6371976,6371943,6371805,6371782,6371780';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ahtinigol/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ahtinigol/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 = photoCaption + ': Corporate Event Photographer|Wedding Photographer';
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="AHTINIGOL">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

