window.thumbnails = {};
															thumbnails[2816277] = clik.newPhoto({"id":2816277,"src":"broochs and boxs collection_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6840026] = clik.newPhoto({"id":6840026,"src":"thumbjpg1_thumb.jpeg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8339864] = clik.newPhoto({"id":8339864,"src":"DF_logo1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":127});
															thumbnails[8939060] = clik.newPhoto({"id":8939060,"src":"DSC_0535_thumb.JPG","galleries_id":470491,"server_id":32,"link":"photo_8939060.html","width":130,"caption":"","height":75});
															thumbnails[8939062] = clik.newPhoto({"id":8939062,"src":"DSC_0539_thumb.JPG","galleries_id":470491,"server_id":32,"link":"photo_8939062.html","width":130,"caption":"","height":80});
															thumbnails[8939121] = clik.newPhoto({"id":8939121,"src":"DSC_0540_thumb.JPG","galleries_id":470491,"server_id":32,"link":"photo_8939121.html","width":130,"caption":"","height":87});
															thumbnails[6591008] = clik.newPhoto({"id":6591008,"src":"gag_ring_thumb.jpg","galleries_id":360568,"server_id":32,"link":"photo_6591008.html","width":130,"caption":"Fully recycled and traceable 9ct gold ring. ","height":114});
															thumbnails[6591018] = clik.newPhoto({"id":6591018,"src":"ring_box_thumb.jpg","galleries_id":360568,"server_id":32,"link":"photo_6591018.html","width":130,"caption":"Recycled material, non toxic, plantable packaging. <br>\r\nSimply add water, sit in the sun and wait for your new crop to grow.....","height":115});
															thumbnails[6591022] = clik.newPhoto({"id":6591022,"src":"retort_thumb.jpg","galleries_id":361061,"server_id":32,"link":"photo_6591022.html","width":130,"caption":"The artisan retort is a simple user friendly mercury condensing kit. Giving an artisan retort to an artisan miner decreases the risk of mercury during the mining process.  ","height":122});
															thumbnails[6591024] = clik.newPhoto({"id":6591024,"src":"retort_box_thumb.jpg","galleries_id":361061,"server_id":32,"link":"photo_6591024.html","width":130,"caption":"","height":110});
															thumbnails[6651665] = clik.newPhoto({"id":6651665,"src":"final_poster-back_thumb.jpg","galleries_id":361062,"server_id":32,"link":"photo_6651665.html","width":130,"caption":"poster back","height":184});
															thumbnails[6651677] = clik.newPhoto({"id":6651677,"src":"final_poster-front12_thumb.jpg","galleries_id":361062,"server_id":32,"link":"photo_6651677.html","width":130,"caption":"poster front","height":181});
															thumbnails[6705747] = clik.newPhoto({"id":6705747,"src":"DSC_0201_thumb.jpg","galleries_id":361062,"server_id":32,"link":"photo_6705747.html","width":130,"caption":"Good As Gold Book","height":87});
															thumbnails[8115447] = clik.newPhoto({"id":8115447,"src":"full_map__thumb.jpg","galleries_id":360565,"server_id":32,"link":"photo_8115447.html","width":130,"caption":"Mapping gold","height":92});
															thumbnails[8115823] = clik.newPhoto({"id":8115823,"src":"3_ecologies-1_153AB2D7-1EC9-D45B-1CB04CD9C38A43E7_thumb.jpg","galleries_id":360565,"server_id":32,"link":"photo_8115823.html","width":130,"caption":"diffusion of innovation","height":85});
															thumbnails[8115866] = clik.newPhoto({"id":8115866,"src":"3_ecologies_thumb.jpg","galleries_id":360565,"server_id":32,"link":"photo_8115866.html","width":130,"caption":"3 ecologies","height":94});
															thumbnails[6591028] = clik.newPhoto({"id":6591028,"src":"plant_thumb.jpg","galleries_id":360568,"server_id":32,"link":"photo_6591028.html","width":130,"caption":"recycled material, plantable packaging. simply add water, sit in the sun and wait for your new crop to grow.....","height":87});
															thumbnails[6595247] = clik.newPhoto({"id":6595247,"src":"test_screensjpg_thumb.jpeg","galleries_id":360569,"server_id":32,"link":"photo_6595247.html","width":130,"caption":"Phone App","height":92});
															thumbnails[6595216] = clik.newPhoto({"id":6595216,"src":"beetageggjpg_thumb.jpeg","galleries_id":360569,"server_id":32,"link":"photo_6595216.html","width":130,"caption":"The Trojan Egg","height":130});
															thumbnails[5047791] = clik.newPhoto({"id":5047791,"src":"the_build_thumb.jpg","galleries_id":285622,"server_id":32,"link":"photo_5047791.html","width":130,"caption":"BENCH.","height":92});
															thumbnails[5047800] = clik.newPhoto({"id":5047800,"src":"before_an_dafter_thumb.jpg","galleries_id":285622,"server_id":32,"link":"photo_5047800.html","width":130,"caption":"BEFORE AND AFTER","height":92});
															thumbnails[6581779] = clik.newPhoto({"id":6581779,"src":"ring_front_thumb.jpg","galleries_id":360994,"server_id":32,"link":"photo_6581779.html","width":130,"caption":"","height":92});
															thumbnails[6584460] = clik.newPhoto({"id":6584460,"src":"ring_back_thumb.jpg","galleries_id":360994,"server_id":32,"link":"photo_6584460.html","width":130,"caption":"","height":99});
															thumbnails[6595563] = clik.newPhoto({"id":6595563,"src":"ring_side_thumb.jpg","galleries_id":360994,"server_id":32,"link":"photo_6595563.html","width":130,"caption":"","height":109});
															thumbnails[6840028] = clik.newPhoto({"id":6840028,"src":"webpage-example-01jpg_thumb.jpeg","galleries_id":371431,"server_id":32,"link":"photo_6840028.html","width":130,"caption":"","height":98});
															thumbnails[6840030] = clik.newPhoto({"id":6840030,"src":"webpage-example-02jpg_thumb.jpeg","galleries_id":371431,"server_id":32,"link":"photo_6840030.html","width":130,"caption":"","height":98});
															thumbnails[6840031] = clik.newPhoto({"id":6840031,"src":"webpage-example-03jpg_thumb.jpeg","galleries_id":371431,"server_id":32,"link":"photo_6840031.html","width":130,"caption":"","height":98});
															thumbnails[6840032] = clik.newPhoto({"id":6840032,"src":"webpage-example-04jpg_thumb.jpeg","galleries_id":371431,"server_id":32,"link":"photo_6840032.html","width":130,"caption":"","height":98});
															thumbnails[6840033] = clik.newPhoto({"id":6840033,"src":"webpage-example-05jpg_thumb.jpeg","galleries_id":371431,"server_id":32,"link":"photo_6840033.html","width":130,"caption":"","height":98});
															thumbnails[6875373] = clik.newPhoto({"id":6875373,"src":"hive_7_thumb.jpg","galleries_id":371432,"server_id":32,"link":"photo_6875373.html","width":130,"caption":"","height":87});
															thumbnails[6879274] = clik.newPhoto({"id":6879274,"src":"house_1_thumb.jpg","galleries_id":371432,"server_id":32,"link":"photo_6879274.html","width":130,"caption":"","height":87});
															thumbnails[8073846] = clik.newPhoto({"id":8073846,"src":"Emma_LundgrenSamilight10_thumb.jpg","galleries_id":432616,"server_id":32,"link":"photo_8073846.html","width":130,"caption":"Emma Lundgren","height":194});
															thumbnails[8374977] = clik.newPhoto({"id":8374977,"src":"braceletsweb_thumb.jpg","galleries_id":444518,"server_id":32,"link":"photo_8374977.html","width":130,"caption":"","height":95});
															thumbnails[8375439] = clik.newPhoto({"id":8375439,"src":"braceletsweb21_thumb.jpg","galleries_id":444518,"server_id":32,"link":"photo_8375439.html","width":130,"caption":"","height":100});
															thumbnails[8419124] = clik.newPhoto({"id":8419124,"src":"cross_detail_1_thumb.jpg","galleries_id":444518,"server_id":32,"link":"photo_8419124.html","width":130,"caption":"","height":98});
															thumbnails[8419125] = clik.newPhoto({"id":8419125,"src":"aero_detail_3_thumb.jpg","galleries_id":444518,"server_id":32,"link":"photo_8419125.html","width":130,"caption":"","height":98});
															thumbnails[2813026] = clik.newPhoto({"id":2813026,"src":"pistol_pendant_and_box_thumb.jpg","galleries_id":133790,"server_id":32,"link":"photo_2813026.html","width":130,"caption":"Pistol pendant and box","height":217});
															thumbnails[3203647] = clik.newPhoto({"id":3203647,"src":"box and necklace_thumb.jpg","galleries_id":191362,"server_id":32,"link":"photo_3203647.html","width":130,"caption":"Solid silver chairs and chain with injected pigmented resin, housed in a steel box.  ","height":194});
															thumbnails[3203654] = clik.newPhoto({"id":3203654,"src":"corner of piece and box_thumb.jpg","galleries_id":191362,"server_id":32,"link":"photo_3203654.html","width":130,"caption":"","height":87});
															thumbnails[3395130] = clik.newPhoto({"id":3395130,"src":"NOH_Plane[1]_thumb.jpg","galleries_id":207290,"server_id":32,"link":"photo_3395130.html","width":130,"caption":"AEROPLANE","height":130});
															thumbnails[3637851] = clik.newPhoto({"id":3637851,"src":"bracelet_aero72_thumb.jpg","galleries_id":207290,"server_id":32,"link":"photo_3637851.html","width":130,"caption":"aluminum bracelet","height":111});
															thumbnails[3050931] = clik.newPhoto({"id":3050931,"src":"nics press_thumb........jpg","galleries_id":178686,"server_id":32,"link":"photo_3050931.html","width":130,"caption":"featured maker www.benchpeg.com","height":131});
															thumbnails[4319610] = clik.newPhoto({"id":4319610,"src":"Picture_1_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_4319610.html","width":130,"caption":"BenchPeg news letter","height":178});
															thumbnails[4791866] = clik.newPhoto({"id":4791866,"src":"jewellery_focus_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_4791866.html","width":130,"caption":"Jewellery Focus Magazine<br>\r\nartical by Janet Fitch","height":211});
															thumbnails[5041344] = clik.newPhoto({"id":5041344,"src":"chanel_1_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_5041344.html","width":130,"caption":"Jewellery focus. (quote)","height":183});
															thumbnails[5041346] = clik.newPhoto({"id":5041346,"src":"chanel_2_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_5041346.html","width":130,"caption":"Jewellery focus (quote)","height":183});
															thumbnails[5393033] = clik.newPhoto({"id":5393033,"src":"_for_web2_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_5393033.html","width":130,"caption":"","height":79});
															thumbnails[5393035] = clik.newPhoto({"id":5393035,"src":"_for_web_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_5393035.html","width":130,"caption":"Design Bimonthly (Taiwan, china )","height":159});
															thumbnails[6591877] = clik.newPhoto({"id":6591877,"src":"Student_Hallmark_31__web-1_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_6591877.html","width":130,"caption":"trojan egg:","height":90});
															thumbnails[6620441] = clik.newPhoto({"id":6620441,"src":"ijl_thumb.gif","galleries_id":178686,"server_id":32,"link":"photo_6620441.html","width":130,"caption":"IJL","height":94});
															thumbnails[6737276] = clik.newPhoto({"id":6737276,"src":"Untitled-1_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_6737276.html","width":130,"caption":"","height":92});
															thumbnails[7325904] = clik.newPhoto({"id":7325904,"src":"DSC_0129_thumb.JPG","galleries_id":178686,"server_id":32,"link":"photo_7325904.html","width":130,"caption":"The Financial Times","height":87});
															thumbnails[2876189] = clik.newPhoto({"id":2876189,"src":"ND selection page2_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_2876189.html","width":129,"caption":"Design week Magazine pull out New designers selection advertisement.","height":179});
															thumbnails[2876192] = clik.newPhoto({"id":2876192,"src":"benchpeg1_thumb.jpg","galleries_id":178686,"server_id":32,"link":"photo_2876192.html","width":130,"caption":"Front page of the BenchPeg news letter","height":182});
															thumbnails[8083445] = clik.newPhoto({"id":8083445,"src":"DSC_4217_thumb.jpg","galleries_id":432873,"server_id":32,"link":"photo_8083445.html","width":130,"caption":"","height":87});
															thumbnails[8083446] = clik.newPhoto({"id":8083446,"src":"DSC_4202_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8083446.html","width":130,"caption":"","height":87});
															thumbnails[8083449] = clik.newPhoto({"id":8083449,"src":"DSC_0044_thumb.jpg","galleries_id":432873,"server_id":32,"link":"photo_8083449.html","width":130,"caption":"","height":87});
															thumbnails[8083451] = clik.newPhoto({"id":8083451,"src":"DSC_0030_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8083451.html","width":130,"caption":"","height":87});
															thumbnails[8083459] = clik.newPhoto({"id":8083459,"src":"DSC_0264_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8083459.html","width":130,"caption":"","height":87});
															thumbnails[8083461] = clik.newPhoto({"id":8083461,"src":"blue_3_thumb.jpg","galleries_id":432873,"server_id":32,"link":"photo_8083461.html","width":130,"caption":"","height":87});
															thumbnails[8083468] = clik.newPhoto({"id":8083468,"src":"070_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8083468.html","width":130,"caption":"","height":87});
															thumbnails[8089794] = clik.newPhoto({"id":8089794,"src":"DSC_0204_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8089794.html","width":130,"caption":"","height":87});
															thumbnails[8089823] = clik.newPhoto({"id":8089823,"src":"DSC_0221_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8089823.html","width":130,"caption":"","height":87});
															thumbnails[8090229] = clik.newPhoto({"id":8090229,"src":"DSC_2271_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8090229.html","width":130,"caption":"","height":87});
															thumbnails[8090340] = clik.newPhoto({"id":8090340,"src":"DSC_0105_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8090340.html","width":130,"caption":"","height":87});
															thumbnails[8090347] = clik.newPhoto({"id":8090347,"src":"IMG_1625_thumb.JPG","galleries_id":432873,"server_id":32,"link":"photo_8090347.html","width":130,"caption":"","height":87});
															thumbnails[6580635] = clik.newPhoto({"id":6580635,"src":"cradle_to_cradlejpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580635.html","width":130,"caption":"","height":211});
															thumbnails[6580746] = clik.newPhoto({"id":6580746,"src":"natural-capitalism1jpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580746.html","width":130,"caption":"","height":201});
															thumbnails[6580749] = clik.newPhoto({"id":6580749,"src":"Verso-9781844674282-First-as-Tragedy-675x1024jpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580749.html","width":130,"caption":"","height":197});
															thumbnails[6580752] = clik.newPhoto({"id":6580752,"src":"the_body_in_painjpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580752.html","width":130,"caption":"","height":196});
															thumbnails[6580755] = clik.newPhoto({"id":6580755,"src":"tipping_pointjpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580755.html","width":130,"caption":"","height":202});
															thumbnails[6580757] = clik.newPhoto({"id":6580757,"src":"designfuturejpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580757.html","width":130,"caption":"","height":135});
															thumbnails[6580770] = clik.newPhoto({"id":6580770,"src":"imagesjpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580770.html","width":130,"caption":"","height":129});
															thumbnails[6580771] = clik.newPhoto({"id":6580771,"src":"communist_manifestolargejpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6580771.html","width":130,"caption":"","height":210});
															thumbnails[6580773] = clik.newPhoto({"id":6580773,"src":"digital_by_design_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_6580773.html","width":130,"caption":"","height":194});
															thumbnails[6581148] = clik.newPhoto({"id":6581148,"src":"Ted_Noten_CH2CCH3COOCH3_enclosures_and_other_TNs_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6581148.html","width":130,"caption":"","height":130});
															thumbnails[6581152] = clik.newPhoto({"id":6581152,"src":"9780688160999jpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6581152.html","width":130,"caption":"","height":193});
															thumbnails[6581169] = clik.newPhoto({"id":6581169,"src":"0jpg_thumb.jpeg","galleries_id":360572,"server_id":32,"link":"photo_6581169.html","width":130,"caption":"","height":205});
															thumbnails[7330625] = clik.newPhoto({"id":7330625,"src":"9780141018966_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_7330625.html","width":130,"caption":"","height":214});
															thumbnails[7427342] = clik.newPhoto({"id":7427342,"src":"animalfarm_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_7427342.html","width":130,"caption":"","height":213});
															thumbnails[7427357] = clik.newPhoto({"id":7427357,"src":"poster_1984_lrg_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_7427357.html","width":130,"caption":"","height":213});
															thumbnails[8074024] = clik.newPhoto({"id":8074024,"src":"resiliance_thinking_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_8074024.html","width":130,"caption":"","height":202});
															thumbnails[8074027] = clik.newPhoto({"id":8074027,"src":"small-is-beautiful-schumacher-e-f-paperback-cover-art_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_8074027.html","width":130,"caption":"","height":206});
															thumbnails[8379108] = clik.newPhoto({"id":8379108,"src":"culture_cover_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_8379108.html","width":130,"caption":"","height":195});
															thumbnails[8379111] = clik.newPhoto({"id":8379111,"src":"bruce_mau_thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_8379111.html","width":130,"caption":"","height":179});
															thumbnails[8379119] = clik.newPhoto({"id":8379119,"src":"0140446192.01._SX220_SCLZZZZZZZ__thumb.jpg","galleries_id":360572,"server_id":32,"link":"photo_8379119.html","width":130,"caption":"","height":207});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[444518] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Al13","link":"section534336.html","maxRecords":0.0,"photoIDs":[8374977.0,8375439.0,8419124.0,8419125.0],"skipIndex":0,"section_code":"section534336","featured_images":"8419125,8419124,8375439,8374977","id":444518,"singleSection":true});				  						galleries[432873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"culture","link":"section520269.html","maxRecords":0.0,"photoIDs":[8083445.0,8083446.0,8083449.0,8083451.0,8083459.0,8083461.0,8083468.0,8089794.0,8089823.0,8090229.0,8090340.0,8090347.0],"skipIndex":0,"section_code":"section520269","featured_images":"8090347,8090340,8090229,8089823,8089794,8083468,8083461,8083459,8083451,8083449","id":432873,"singleSection":true});				  						galleries[432616] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Emma Lundgren","link":"section519916.html","maxRecords":0.0,"photoIDs":[8073846.0],"skipIndex":0,"section_code":"section519916","featured_images":8073846.0,"id":432616,"singleSection":true});				  						galleries[360569] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"IDEA ","link":"section429818_360569.html","maxRecords":0.0,"photoIDs":[6595247.0,6595216.0],"skipIndex":0,"section_code":"section429818","featured_images":"6595247,6595216","id":360569,"singleSection":false});				  						galleries[360572] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Library","link":"section429829.html","maxRecords":0.0,"photoIDs":[6580635.0,6580746.0,6580749.0,6580752.0,6580755.0,6580757.0,6580770.0,6580771.0,6580773.0,6581148.0,6581152.0,6581169.0,7330625.0,7427342.0,7427357.0,8074024.0,8074027.0,8379108.0,8379111.0,8379119.0],"skipIndex":0,"section_code":"section429829","featured_images":"8379119,8379111,8379108,8074027,8074024,7427357,7427342,7330625,6581169,6581152","id":360572,"singleSection":true});				  						galleries[178686] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Magazines and publicities ","link":"section222136.html","maxRecords":0.0,"photoIDs":[3050931.0,4319610.0,4791866.0,5041344.0,5041346.0,5393033.0,5393035.0,6591877.0,6620441.0,6737276.0,7325904.0,2876189.0,2876192.0],"skipIndex":0,"section_code":"section222136","featured_images":"7325904,6737276,6620441,6591877,5393035,5393033,5041346,5041344,4791866,4319610","id":178686,"singleSection":true});				  						galleries[285622] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SOHO","link":"section433347.html","maxRecords":0.0,"photoIDs":[5047791.0,5047800.0],"skipIndex":0,"section_code":"section433347","featured_images":"5047800,5047791","id":285622,"singleSection":true});				  						galleries[470491] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TAPESTRY SPECTACLE BY CHLOË MCCORMICK & NODH","link":"section571568.html","maxRecords":0.0,"photoIDs":[8939060.0,8939062.0,8939121.0],"skipIndex":0,"section_code":"section571568","featured_images":"8939121,8939062,8939060","id":470491,"singleSection":true});				  						galleries[361061] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The artisan Retort","link":"section429814_361061.html","maxRecords":0.0,"photoIDs":[6591022.0,6591024.0],"skipIndex":0,"section_code":"section429814","featured_images":6591022.0,"id":361061,"singleSection":false});				  						galleries[371431] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"website","link":"section430726_371431.html","maxRecords":0.0,"photoIDs":[6840028.0,6840030.0,6840031.0,6840032.0,6840033.0],"skipIndex":0,"section_code":"section430726","featured_images":"6840033,6840032,6840031,6840030,6840028","id":371431,"singleSection":false});				  						galleries[371432] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"bee hive","link":"section430726_371432.html","maxRecords":0.0,"photoIDs":[6875373.0,6879274.0],"skipIndex":0,"section_code":"section430726","featured_images":"6879274,6875373","id":371432,"singleSection":false});				  						galleries[360994] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kissed","link":"section430210.html","maxRecords":0.0,"photoIDs":[6581779.0,6584460.0,6595563.0],"skipIndex":0,"section_code":"section430210","featured_images":"6595563,6584460,6581779","id":360994,"singleSection":true});				  						galleries[360568] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Ring ","link":"section429814_360568.html","maxRecords":0.0,"photoIDs":[6591008.0,6591018.0,6591028.0],"skipIndex":0,"section_code":"section429814","featured_images":6591008.0,"id":360568,"singleSection":false});				  						galleries[360565] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"research","link":"section429814_360565.html","maxRecords":0.0,"photoIDs":[8115447.0,8115823.0,8115866.0],"skipIndex":0,"section_code":"section429814","featured_images":8115447.0,"id":360565,"singleSection":false});				  						galleries[360570] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TEAM","link":"section429818_360570.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section429818","featured_images":"","id":360570,"singleSection":false});				  						galleries[360571] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Research","link":"section429818_360571.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section429818","featured_images":"","id":360571,"singleSection":false});				  						galleries[361062] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"book","link":"section429814_361062.html","maxRecords":0.0,"photoIDs":[6651665.0,6651677.0,6705747.0],"skipIndex":0,"section_code":"section429814","featured_images":"6705747,6651665","id":361062,"singleSection":false});				  						galleries[133790] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pistol ","link":"gallery_133790.html","maxRecords":0.0,"photoIDs":[2813026.0],"skipIndex":0,"section_code":"gallery","featured_images":2813026.0,"id":133790,"singleSection":false});				  						galleries[207290] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AEROPLANE","link":"gallery_207290.html","maxRecords":0.0,"photoIDs":[3395130.0,3637851.0],"skipIndex":0,"section_code":"gallery","featured_images":3395130.0,"id":207290,"singleSection":false});				  						galleries[191362] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CHAIRS.","link":"gallery_191362.html","maxRecords":0.0,"photoIDs":[3203647.0,3203654.0],"skipIndex":0,"section_code":"gallery","featured_images":3203647.0,"id":191362,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8339864,6840026,6595216';
imageSets[2] = '8339864,8115447,6705747,6651665,6591022,6591008,5047800,5047791,3395130,3203647,2813026';
imageSets[3] = '8939121,8939062,8939060,8419125,8419124,8379119,8379111,8379108,8375439,8374977,8339864,8115866,8115823,8115447,8090347,8090340,8090229,8089823,8089794,8083468,8083461,8083459,8083451,8083449,8083446,8083445,8074027,8074024,8073846,7427357,7427342,7330625,7325904,6879274,6875373,6840033,6840032,6840031,6840030,6840028,6840026,6737276,6705747,6651677,6651665,6620441,6595563,6595247,6595216,6591877';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nicholasodonnellhoare/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nicholasodonnellhoare/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 += 'section571568.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 && 'section571568' != '') {
					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 = 'NODH: ' + 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;
	}
}

			

