window.thumbnails = {};
															thumbnails[2792011] = clik.newPhoto({"id":2792011,"src":"AlexThomas1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792011.html","width":130,"caption":"","height":202});
															thumbnails[2792012] = clik.newPhoto({"id":2792012,"src":"AlexThomas2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792012.html","width":130,"caption":"","height":87});
															thumbnails[2792016] = clik.newPhoto({"id":2792016,"src":"DavidAdshead1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792016.html","width":130,"caption":"","height":92});
															thumbnails[2792018] = clik.newPhoto({"id":2792018,"src":"DavidAdshead2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792018.html","width":130,"caption":"","height":86});
															thumbnails[2792019] = clik.newPhoto({"id":2792019,"src":"DavidAdshead3_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792019.html","width":130,"caption":"","height":93});
															thumbnails[2792020] = clik.newPhoto({"id":2792020,"src":"DavidAdshead4_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792020.html","width":130,"caption":"","height":86});
															thumbnails[2792026] = clik.newPhoto({"id":2792026,"src":"DavidSoftley3_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792026.html","width":130,"caption":"","height":170});
															thumbnails[2792028] = clik.newPhoto({"id":2792028,"src":"DavidSoftley4_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792028.html","width":130,"caption":"","height":87});
															thumbnails[2792029] = clik.newPhoto({"id":2792029,"src":"FrankKent1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792029.html","width":130,"caption":"","height":87});
															thumbnails[2792031] = clik.newPhoto({"id":2792031,"src":"FrankKent2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792031.html","width":130,"caption":"","height":160});
															thumbnails[2792033] = clik.newPhoto({"id":2792033,"src":"IanHood1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792033.html","width":130,"caption":"","height":203});
															thumbnails[2792042] = clik.newPhoto({"id":2792042,"src":"JonCaley1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792042.html","width":130,"caption":"","height":85});
															thumbnails[2792044] = clik.newPhoto({"id":2792044,"src":"JonCaley2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792044.html","width":130,"caption":"","height":88});
															thumbnails[2792047] = clik.newPhoto({"id":2792047,"src":"KenHunter1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792047.html","width":130,"caption":"","height":182});
															thumbnails[2792048] = clik.newPhoto({"id":2792048,"src":"KenHunter2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792048.html","width":130,"caption":"","height":193});
															thumbnails[2792053] = clik.newPhoto({"id":2792053,"src":"MichaelLee1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792053.html","width":130,"caption":"","height":87});
															thumbnails[2792054] = clik.newPhoto({"id":2792054,"src":"MichaelLee2_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792054.html","width":130,"caption":"","height":208});
															thumbnails[2792055] = clik.newPhoto({"id":2792055,"src":"MichaelLee3_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792055.html","width":130,"caption":"","height":81});
															thumbnails[2792056] = clik.newPhoto({"id":2792056,"src":"MichaelLee4_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792056.html","width":130,"caption":"","height":50});
															thumbnails[2792060] = clik.newPhoto({"id":2792060,"src":"NielNettleship3_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792060.html","width":130,"caption":"","height":83});
															thumbnails[2792073] = clik.newPhoto({"id":2792073,"src":"DavidAdshead5_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792073.html","width":130,"caption":"","height":175});
															thumbnails[2792075] = clik.newPhoto({"id":2792075,"src":"DavidSoftley5_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792075.html","width":130,"caption":"","height":99});
															thumbnails[2792079] = clik.newPhoto({"id":2792079,"src":"DavidAdshead6_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792079.html","width":130,"caption":"","height":179});
															thumbnails[2792082] = clik.newPhoto({"id":2792082,"src":"IanHood6_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_2792082.html","width":130,"caption":"","height":185});
															thumbnails[2792083] = clik.newPhoto({"id":2792083,"src":"MichaelLee6_thumb.jpg","galleries_id":174220,"server_id":32,"link":"photo_2792083.html","width":130,"caption":"","height":86});
															thumbnails[3348479] = clik.newPhoto({"id":3348479,"src":"1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_3348479.html","width":130,"caption":"","height":195});
															thumbnails[3348489] = clik.newPhoto({"id":3348489,"src":"9_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_3348489.html","width":130,"caption":"","height":87});
															thumbnails[3508399] = clik.newPhoto({"id":3508399,"src":"neary7600_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_3508399.html","width":130,"caption":"","height":182});
															thumbnails[3508401] = clik.newPhoto({"id":3508401,"src":"neary8600_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_3508401.html","width":130,"caption":"","height":98});
															thumbnails[3508408] = clik.newPhoto({"id":3508408,"src":"neary12600_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_3508408.html","width":130,"caption":"","height":136});
															thumbnails[3508432] = clik.newPhoto({"id":3508432,"src":"SoftleyWinner_thumb.jpg","galleries_id":214627,"server_id":32,"link":"photo_3508432.html","width":130,"caption":"Best Projected Image","height":94});
															thumbnails[3508436] = clik.newPhoto({"id":3508436,"src":"Softley4of4_thumb.jpg","galleries_id":214627,"server_id":32,"link":"photo_3508436.html","width":130,"caption":"4 of 4","height":102});
															thumbnails[3562175] = clik.newPhoto({"id":3562175,"src":"Monowinner1_thumb.jpg","galleries_id":174220,"server_id":32,"link":"photo_3562175.html","width":130,"caption":"Mono Print of the year 2009.","height":81});
															thumbnails[3562291] = clik.newPhoto({"id":3562291,"src":"Hunter2CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562291.html","width":130,"caption":"","height":98});
															thumbnails[3562292] = clik.newPhoto({"id":3562292,"src":"Hunter5CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562292.html","width":130,"caption":"Newcomer of the Year","height":98});
															thumbnails[3562296] = clik.newPhoto({"id":3562296,"src":"Liddicott6CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562296.html","width":130,"caption":"","height":87});
															thumbnails[3562305] = clik.newPhoto({"id":3562305,"src":"Sykes4CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562305.html","width":130,"caption":"","height":87});
															thumbnails[3562309] = clik.newPhoto({"id":3562309,"src":"Lee2CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562309.html","width":130,"caption":"","height":195});
															thumbnails[3562312] = clik.newPhoto({"id":3562312,"src":"Lee1CP_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562312.html","width":130,"caption":"","height":87});
															thumbnails[3562498] = clik.newPhoto({"id":3562498,"src":"Ensor2_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562498.html","width":130,"caption":"","height":110});
															thumbnails[3562503] = clik.newPhoto({"id":3562503,"src":"Ensor3_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562503.html","width":130,"caption":"","height":166});
															thumbnails[3562518] = clik.newPhoto({"id":3562518,"src":"Hunter1_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_3562518.html","width":130,"caption":"This image closely resembles the winning Mono Print. It is a stunning image and helped Ken to be the Best Newcomer.","height":99});
															thumbnails[4342417] = clik.newPhoto({"id":4342417,"src":"Gypsy_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_4342417.html","width":130,"caption":"","height":172});
															thumbnails[4342419] = clik.newPhoto({"id":4342419,"src":"Holly1_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_4342419.html","width":130,"caption":"","height":196});
															thumbnails[4524907] = clik.newPhoto({"id":4524907,"src":"Insect_resized_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_4524907.html","width":130,"caption":"","height":133});
															thumbnails[4843778] = clik.newPhoto({"id":4843778,"src":"tn_Dave_McLeavy_-_Magpie_Mine_-_Crushing_wheel_BW_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4843778.html","width":130,"caption":"","height":92});
															thumbnails[4843788] = clik.newPhoto({"id":4843788,"src":"tn_Dave_McLeavy_-_Magpie_mine_-_man_up_ladder_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4843788.html","width":130,"caption":"","height":173});
															thumbnails[4843794] = clik.newPhoto({"id":4843794,"src":"Tom_Walton_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4843794.html","width":130,"caption":"","height":97});
															thumbnails[4925946] = clik.newPhoto({"id":4925946,"src":"3A_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4925946.html","width":130,"caption":"","height":100});
															thumbnails[4925965] = clik.newPhoto({"id":4925965,"src":"CheeseGraterCarPark_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4925965.html","width":130,"caption":"","height":87});
															thumbnails[4925970] = clik.newPhoto({"id":4925970,"src":"6734A_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4925970.html","width":130,"caption":"","height":83});
															thumbnails[4926041] = clik.newPhoto({"id":4926041,"src":"6524A_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_4926041.html","width":130,"caption":"","height":162});
															thumbnails[5205072] = clik.newPhoto({"id":5205072,"src":"FrankKent_LADDER_MAN_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_5205072.html","width":130,"caption":"Magpie Mine","height":195});
															thumbnails[5226902] = clik.newPhoto({"id":5226902,"src":"Portrait4W_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_5226902.html","width":130,"caption":"Portrait Session - 6 Dec 2009","height":173});
															thumbnails[5290917] = clik.newPhoto({"id":5290917,"src":"11_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_5290917.html","width":130,"caption":"","height":71});
															thumbnails[5290918] = clik.newPhoto({"id":5290918,"src":"21_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_5290918.html","width":130,"caption":"","height":98});
															thumbnails[5290919] = clik.newPhoto({"id":5290919,"src":"5_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_5290919.html","width":130,"caption":"","height":194});
															thumbnails[5290921] = clik.newPhoto({"id":5290921,"src":"91_thumb.jpg","galleries_id":174221,"server_id":32,"link":"photo_5290921.html","width":130,"caption":"","height":85});
															thumbnails[5290924] = clik.newPhoto({"id":5290924,"src":"8_thumb.jpg","galleries_id":174220,"server_id":32,"link":"photo_5290924.html","width":130,"caption":"","height":194});
															thumbnails[5290930] = clik.newPhoto({"id":5290930,"src":"3_thumb.jpg","galleries_id":174220,"server_id":32,"link":"photo_5290930.html","width":130,"caption":"","height":87});
															thumbnails[5676051] = clik.newPhoto({"id":5676051,"src":"1Ensor_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676051.html","width":130,"caption":"Helen Ensor, winner Newcomer (Harrison Camera Trophy)","height":197});
															thumbnails[5676055] = clik.newPhoto({"id":5676055,"src":"2Ensor_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676055.html","width":130,"caption":"2nd of five Helen's winning set for the Harrison Camera Necomer.","height":201});
															thumbnails[5676058] = clik.newPhoto({"id":5676058,"src":"3Ensor_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676058.html","width":130,"caption":"3rd of 5 Newcomer award","height":202});
															thumbnails[5676059] = clik.newPhoto({"id":5676059,"src":"4Ensor_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676059.html","width":130,"caption":"4 of 5 Newcomer award","height":184});
															thumbnails[5676060] = clik.newPhoto({"id":5676060,"src":"5Ensor_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676060.html","width":130,"caption":"5 of 5 winning entry for Newcomer","height":103});
															thumbnails[5676063] = clik.newPhoto({"id":5676063,"src":"1Kent_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676063.html","width":130,"caption":"Winner of Print Photographer of the Year (Lawson Cup) Frank Kent","height":95});
															thumbnails[5676064] = clik.newPhoto({"id":5676064,"src":"2Kent_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676064.html","width":130,"caption":"2\/4 Lawson Cup winning images","height":143});
															thumbnails[5676067] = clik.newPhoto({"id":5676067,"src":"3Kent_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676067.html","width":130,"caption":"3\/4 Winning set for the Lawson Cup","height":93});
															thumbnails[5676071] = clik.newPhoto({"id":5676071,"src":"4Kent_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676071.html","width":130,"caption":"4 of 4 Lawson Cup winning set","height":79});
															thumbnails[5676093] = clik.newPhoto({"id":5676093,"src":"1Lee_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676093.html","width":130,"caption":"Best Colour Print - Jacobs Cup","height":84});
															thumbnails[5676122] = clik.newPhoto({"id":5676122,"src":"040_thumb.jpg","galleries_id":321596,"server_id":32,"link":"photo_5676122.html","width":130,"caption":"Winner of Best Digital Image","height":173});
															thumbnails[6716996] = clik.newPhoto({"id":6716996,"src":"Janets9831_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6716996.html","width":130,"caption":"Tinsley Canal Marina","height":90});
															thumbnails[6717008] = clik.newPhoto({"id":6717008,"src":"Janets9856_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717008.html","width":130,"caption":"Blackberry at Tinsley Marina","height":164});
															thumbnails[6717115] = clik.newPhoto({"id":6717115,"src":"Reflection9901_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717115.html","width":130,"caption":"Sheffield Tinsley canal Marina","height":75});
															thumbnails[6717123] = clik.newPhoto({"id":6717123,"src":"9905_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717123.html","width":130,"caption":"Tinsley Marina","height":87});
															thumbnails[6717134] = clik.newPhoto({"id":6717134,"src":"9917_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717134.html","width":130,"caption":"Tinsley Marina","height":166});
															thumbnails[6717141] = clik.newPhoto({"id":6717141,"src":"9922_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717141.html","width":130,"caption":"Tinsley Marina","height":169});
															thumbnails[6717145] = clik.newPhoto({"id":6717145,"src":"9931_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717145.html","width":130,"caption":"Tinsley Marina Fisherman","height":176});
															thumbnails[6717151] = clik.newPhoto({"id":6717151,"src":"9943_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717151.html","width":130,"caption":"Tinsley Marina","height":87});
															thumbnails[6717154] = clik.newPhoto({"id":6717154,"src":"HappyMan9935_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717154.html","width":130,"caption":"Fisherman at Tinsley Marina","height":174});
															thumbnails[6717159] = clik.newPhoto({"id":6717159,"src":"Janets9863_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6717159.html","width":130,"caption":"Plant in footplate Tinsley Marina Lock Gate","height":100});
															thumbnails[6719050] = clik.newPhoto({"id":6719050,"src":"Fisherman_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6719050.html","width":130,"caption":"Tinsley Marina Fisherman, Sheffield","height":98});
															thumbnails[6719237] = clik.newPhoto({"id":6719237,"src":"Marina1_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6719237.html","width":130,"caption":"Tinsley Marina vista","height":98});
															thumbnails[6719300] = clik.newPhoto({"id":6719300,"src":"Marina2_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6719300.html","width":130,"caption":"Marina Vista 2","height":98});
															thumbnails[6719306] = clik.newPhoto({"id":6719306,"src":"MarinaFisherman_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6719306.html","width":130,"caption":"Fishing","height":98});
															thumbnails[6719313] = clik.newPhoto({"id":6719313,"src":"Water_thumb.jpg","galleries_id":181888,"server_id":32,"link":"photo_6719313.html","width":130,"caption":"Water going over a lock gate at Tinsley Marina","height":98});
															thumbnails[7253655] = clik.newPhoto({"id":7253655,"src":"OlympicTorch_Club-Site_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_7253655.html","width":130,"caption":"Smoke Images.","height":195});
															thumbnails[7280396] = clik.newPhoto({"id":7280396,"src":"Pyramids_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_7280396.html","width":130,"caption":"Pyramids by Ken Hunter","height":98});
															thumbnails[7280408] = clik.newPhoto({"id":7280408,"src":"Light_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_7280408.html","width":130,"caption":"Light Fitting by Ken Hunter","height":173});
															thumbnails[7280414] = clik.newPhoto({"id":7280414,"src":"Pinkish_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_7280414.html","width":130,"caption":"Smoke Image","height":195});
															thumbnails[7280418] = clik.newPhoto({"id":7280418,"src":"Greenish_thumb.jpg","galleries_id":217841,"server_id":32,"link":"photo_7280418.html","width":130,"caption":"Smoke Image","height":165});
															thumbnails[3562114] = clik.newPhoto({"id":3562114,"src":"4of4_thumb.jpg","galleries_id":217828,"server_id":32,"link":"photo_3562114.html","width":130,"caption":"4th of 4 for the best set.","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[321596] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2010 Competition Winners","link":"gallery_321596.html","maxRecords":0.0,"photoIDs":[5676051.0,5676055.0,5676058.0,5676059.0,5676060.0,5676063.0,5676064.0,5676067.0,5676071.0,5676093.0,5676122.0],"skipIndex":0,"section_code":"gallery","featured_images":"5676093,5676071,5676067,5676063,5676060","id":321596,"singleSection":false});				  						galleries[181888] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Club Outings\/Workshops","link":"gallery_181888.html","maxRecords":0.0,"photoIDs":[4843778.0,4843788.0,4843794.0,4925946.0,4925965.0,4925970.0,4926041.0,5205072.0,5226902.0,6716996.0,6717008.0,6717115.0,6717123.0,6717134.0,6717141.0,6717145.0,6717151.0,6717154.0,6717159.0,6719050.0,6719237.0,6719300.0,6719306.0,6719313.0],"skipIndex":0,"section_code":"gallery","featured_images":"6719313,6719306,6719300,6719237,6719050,6717159,6717151,6717123,6717115,6716996,4843794,4843778","id":181888,"singleSection":false});				  						galleries[214627] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jessops Digital Photographer of the Year 2009","link":"gallery_214627.html","maxRecords":0.0,"photoIDs":[3508432.0,3508436.0],"skipIndex":0,"section_code":"gallery","featured_images":3508432.0,"id":214627,"singleSection":false});				  						galleries[217828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Lawson Print Photographer of the Year 2009","link":"gallery_217828.html","maxRecords":0.0,"photoIDs":[3562114.0],"skipIndex":0,"section_code":"gallery","featured_images":3562114.0,"id":217828,"singleSection":false});				  						galleries[174220] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Monochrome (Inc Burton Shield Winner)","link":"gallery_174220.html","maxRecords":0.0,"photoIDs":[2792083.0,3562175.0,5290924.0,5290930.0],"skipIndex":0,"section_code":"gallery","featured_images":"5290930,5290924,3562175,2792083","id":174220,"singleSection":false});				  						galleries[174221] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Colour (Inc Jacob & Meadowhall Shield winners)","link":"gallery_174221.html","maxRecords":0.0,"photoIDs":[2792011.0,2792012.0,2792016.0,2792018.0,2792019.0,2792020.0,2792026.0,2792028.0,2792029.0,2792031.0,2792033.0,2792042.0,2792044.0,2792047.0,2792048.0,2792053.0,2792054.0,2792055.0,2792056.0,2792060.0,2792073.0,2792075.0,2792079.0,2792082.0,3348479.0,3348489.0,3508399.0,3508401.0,3508408.0,4342417.0,4342419.0,4524907.0,5290917.0,5290918.0,5290919.0,5290921.0],"skipIndex":0,"section_code":"gallery","featured_images":"5290921,5290918,2792016","id":174221,"singleSection":false});				  						galleries[217841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pot-Pourri","link":"gallery_217841.html","maxRecords":0.0,"photoIDs":[3562291.0,3562292.0,3562296.0,3562305.0,3562309.0,3562312.0,3562498.0,3562503.0,3562518.0,7253655.0,7280396.0,7280408.0,7280414.0,7280418.0],"skipIndex":0,"section_code":"gallery","featured_images":"7280396,3562292","id":217841,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7280396,6719313,6719306,6719300,6719237,6719050,6717159,6717151,6717123,6717115,6716996,5676093,5676071,5676067,5676063,5676060,5290930,5290921,5290918,4843794,4843778,3562312,3562296,3562292,3562291,3508432,3348489,2792083,2792075,2792056,2792055,2792053,2792044,2792042,2792029,2792028,2792020,2792019,2792018,2792016,2792012';
imageSets[2] = '7280396,6719313,6719306,6719300,6719237,6719050,6717159,6717151,6717123,6717115,6716996,5676093,5676071,5676067,5676063,5676060,5290921,5290918,4843794,4843778,3562292,3508432,2792016';
imageSets[3] = '7280418,7280414,7280408,7280396,7253655,6719313,6719306,6719300,6719237,6719050,6717159,6717154,6717151,6717145,6717141,6717134,6717123,6717115,6717008,6716996,5676122,5676093,5676071,5676067,5676064,5676063,5676060,5676059,5676058,5676055,5676051,5290930,5290924,5290921,5290919,5290918,5290917,5226902,5205072,4926041,4925970,4925965,4925946,4843794,4843788,4843778,4524907,4342419,4342417,3562518';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/oldtom/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/oldtom/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/oldtom/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'South Yorkshire Police Camera Club: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

			

