window.thumbnails = {};
															thumbnails[3958108] = clik.newPhoto({"id":3958108,"src":"Benoitfilm_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":73});
															thumbnails[5655573] = clik.newPhoto({"id":5655573,"src":"bloody_minded_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":184});
															thumbnails[7198026] = clik.newPhoto({"id":7198026,"src":"mirabel1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Mirabel Open Studios","height":92});
															thumbnails[7198057] = clik.newPhoto({"id":7198057,"src":"summersalon1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Work Featured in the Islington Arts Factory Summer Open. London.","height":92});
															thumbnails[7198071] = clik.newPhoto({"id":7198071,"src":"mk4u1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Lost & Found MK4U Festival","height":128});
															thumbnails[7198099] = clik.newPhoto({"id":7198099,"src":"artnescape1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":52});
															thumbnails[7198139] = clik.newPhoto({"id":7198139,"src":"cc_promo1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Castlefield Contemporaries Exhibition","height":184});
															thumbnails[7198147] = clik.newPhoto({"id":7198147,"src":"tea_leaf1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":75});
															thumbnails[7198177] = clik.newPhoto({"id":7198177,"src":"untitled1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":38});
															thumbnails[7267006] = clik.newPhoto({"id":7267006,"src":"Economic_Transformation_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Manchester Artist Bonfire Friday 28th January 2011 Islington Mill   <a href=","height":186});
															thumbnails[8001372] = clik.newPhoto({"id":8001372,"src":"monocle_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":184});
															thumbnails[7168821] = clik.newPhoto({"id":7168821,"src":"dont_sit_on_the_fence_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_7168821.html","width":130,"caption":"","height":80});
															thumbnails[5460909] = clik.newPhoto({"id":5460909,"src":"bookfightpart2drawing_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_5460909.html","width":130,"caption":"","height":85});
															thumbnails[5430763] = clik.newPhoto({"id":5430763,"src":"book_fight_allegation1_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_5430763.html","width":130,"caption":"","height":90});
															thumbnails[5245421] = clik.newPhoto({"id":5245421,"src":"morph1_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_5245421.html","width":130,"caption":"","height":103});
															thumbnails[5245429] = clik.newPhoto({"id":5245429,"src":"easehq_thumb.JPG","galleries_id":429977,"server_id":15,"link":"photo_5245429.html","width":130,"caption":"","height":87});
															thumbnails[5245441] = clik.newPhoto({"id":5245441,"src":"CCdiscussion_thumb.JPG","galleries_id":429977,"server_id":15,"link":"photo_5245441.html","width":130,"caption":"","height":87});
															thumbnails[4659691] = clik.newPhoto({"id":4659691,"src":"cc_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_4659691.html","width":130,"caption":"","height":161});
															thumbnails[4435823] = clik.newPhoto({"id":4435823,"src":"spaceinvad_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_4435823.html","width":130,"caption":"","height":87});
															thumbnails[3961061] = clik.newPhoto({"id":3961061,"src":"Overnight_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_3961061.html","width":130,"caption":"","height":78});
															thumbnails[5240930] = clik.newPhoto({"id":5240930,"src":"morph_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_5240930.html","width":130,"caption":"","height":97});
															thumbnails[5650369] = clik.newPhoto({"id":5650369,"src":"space_invader_film__thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_5650369.html","width":130,"caption":"","height":95});
															thumbnails[6013940] = clik.newPhoto({"id":6013940,"src":"112_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_6013940.html","width":130,"caption":"","height":84});
															thumbnails[6063451] = clik.newPhoto({"id":6063451,"src":"phantom_space_muncher1_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_6063451.html","width":130,"caption":"","height":184});
															thumbnails[6170364] = clik.newPhoto({"id":6170364,"src":"tealeadarts1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_6170364.html","width":130,"caption":"","height":35});
															thumbnails[6594359] = clik.newPhoto({"id":6594359,"src":"lightthroughvoidonpaper_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_6594359.html","width":130,"caption":"","height":86});
															thumbnails[6594360] = clik.newPhoto({"id":6594360,"src":"love_on_paper_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_6594360.html","width":130,"caption":"","height":92});
															thumbnails[6893522] = clik.newPhoto({"id":6893522,"src":"112_A71C8E74-1D09-001F-990025747F7BAEC0_thumb.jpg","galleries_id":429976,"server_id":15,"link":"photo_6893522.html","width":130,"caption":"","height":87});
															thumbnails[7198144] = clik.newPhoto({"id":7198144,"src":"noise1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_7198144.html","width":130,"caption":"","height":87});
															thumbnails[7443724] = clik.newPhoto({"id":7443724,"src":"listenandcommonup_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7443724.html","width":130,"caption":"","height":69});
															thumbnails[7469438] = clik.newPhoto({"id":7469438,"src":"newistinggood_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7469438.html","width":130,"caption":"","height":184});
															thumbnails[7469441] = clik.newPhoto({"id":7469441,"src":"motherkingsmall_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7469441.html","width":130,"caption":"","height":204});
															thumbnails[7598241] = clik.newPhoto({"id":7598241,"src":"TAS3_part1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_7598241.html","width":130,"caption":"","height":92});
															thumbnails[7688276] = clik.newPhoto({"id":7688276,"src":"ambitions2_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7688276.html","width":130,"caption":"","height":171});
															thumbnails[7688279] = clik.newPhoto({"id":7688279,"src":"Greatest_Cup_I_Night_Happiness_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7688279.html","width":130,"caption":"","height":152});
															thumbnails[7703232] = clik.newPhoto({"id":7703232,"src":"quietly_seeking_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7703232.html","width":130,"caption":"","height":74});
															thumbnails[7703237] = clik.newPhoto({"id":7703237,"src":"mansewingchildren1_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7703237.html","width":130,"caption":"","height":87});
															thumbnails[7703241] = clik.newPhoto({"id":7703241,"src":"rock_thumb.jpg","galleries_id":429975,"server_id":15,"link":"photo_7703241.html","width":130,"caption":"","height":204});
															thumbnails[8001224] = clik.newPhoto({"id":8001224,"src":"drawing3_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001224.html","width":130,"caption":"","height":184});
															thumbnails[8001226] = clik.newPhoto({"id":8001226,"src":"drawing2_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001226.html","width":130,"caption":"","height":92});
															thumbnails[8001251] = clik.newPhoto({"id":8001251,"src":"drawing8_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001251.html","width":130,"caption":"","height":92});
															thumbnails[8001282] = clik.newPhoto({"id":8001282,"src":"drawing9_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001282.html","width":130,"caption":"","height":92});
															thumbnails[8001284] = clik.newPhoto({"id":8001284,"src":"drawing11_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001284.html","width":130,"caption":"","height":184});
															thumbnails[8001302] = clik.newPhoto({"id":8001302,"src":"drawing12_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001302.html","width":130,"caption":"","height":92});
															thumbnails[8001303] = clik.newPhoto({"id":8001303,"src":"drawing14_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001303.html","width":130,"caption":"","height":92});
															thumbnails[8001304] = clik.newPhoto({"id":8001304,"src":"drawing15_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001304.html","width":130,"caption":"","height":184});
															thumbnails[8001305] = clik.newPhoto({"id":8001305,"src":"drawing16_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8001305.html","width":130,"caption":"","height":92});
															thumbnails[8001310] = clik.newPhoto({"id":8001310,"src":"ambitions_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_8001310.html","width":130,"caption":"","height":92});
															thumbnails[8001312] = clik.newPhoto({"id":8001312,"src":"greensofa_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_8001312.html","width":130,"caption":"","height":92});
															thumbnails[8001446] = clik.newPhoto({"id":8001446,"src":"picknmix_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_8001446.html","width":130,"caption":"","height":92});
															thumbnails[8001466] = clik.newPhoto({"id":8001466,"src":"workhouse_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_8001466.html","width":130,"caption":"","height":184});
															thumbnails[8001473] = clik.newPhoto({"id":8001473,"src":"workhouse1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_8001473.html","width":130,"caption":"","height":92});
															thumbnails[8001481] = clik.newPhoto({"id":8001481,"src":"antisocial_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_8001481.html","width":130,"caption":"","height":184});
															thumbnails[8001484] = clik.newPhoto({"id":8001484,"src":"pentonville_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_8001484.html","width":130,"caption":"","height":92});
															thumbnails[8001488] = clik.newPhoto({"id":8001488,"src":"sharpie_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_8001488.html","width":130,"caption":"","height":92});
															thumbnails[8124364] = clik.newPhoto({"id":8124364,"src":"IMG_9759_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124364.html","width":130,"caption":"","height":195});
															thumbnails[8124367] = clik.newPhoto({"id":8124367,"src":"IMG_9757_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124367.html","width":130,"caption":"","height":87});
															thumbnails[8124416] = clik.newPhoto({"id":8124416,"src":"IMG_9762_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124416.html","width":130,"caption":"","height":87});
															thumbnails[8124420] = clik.newPhoto({"id":8124420,"src":"IMG_9767_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124420.html","width":130,"caption":"","height":87});
															thumbnails[8124442] = clik.newPhoto({"id":8124442,"src":"IMG_9780_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124442.html","width":130,"caption":"","height":87});
															thumbnails[8124445] = clik.newPhoto({"id":8124445,"src":"IMG_9792_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124445.html","width":130,"caption":"","height":87});
															thumbnails[8124447] = clik.newPhoto({"id":8124447,"src":"IMG_9827_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124447.html","width":130,"caption":"","height":108});
															thumbnails[8124449] = clik.newPhoto({"id":8124449,"src":"IMG_9834_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124449.html","width":130,"caption":"","height":195});
															thumbnails[8124458] = clik.newPhoto({"id":8124458,"src":"IMG_9839_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124458.html","width":130,"caption":"","height":74});
															thumbnails[8124466] = clik.newPhoto({"id":8124466,"src":"IMG_9864_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124466.html","width":130,"caption":"","height":87});
															thumbnails[8124467] = clik.newPhoto({"id":8124467,"src":"IMG_9868_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124467.html","width":130,"caption":"","height":87});
															thumbnails[8124468] = clik.newPhoto({"id":8124468,"src":"IMG_9886_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124468.html","width":130,"caption":"","height":87});
															thumbnails[8124474] = clik.newPhoto({"id":8124474,"src":"IMG_9888_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124474.html","width":130,"caption":"","height":107});
															thumbnails[8124486] = clik.newPhoto({"id":8124486,"src":"IMG_9936_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124486.html","width":130,"caption":"","height":100});
															thumbnails[8124487] = clik.newPhoto({"id":8124487,"src":"IMG_9940_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124487.html","width":130,"caption":"","height":87});
															thumbnails[8124489] = clik.newPhoto({"id":8124489,"src":"IMG_9941_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124489.html","width":130,"caption":"","height":87});
															thumbnails[8124491] = clik.newPhoto({"id":8124491,"src":"IMG_9948_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124491.html","width":130,"caption":"","height":99});
															thumbnails[8124523] = clik.newPhoto({"id":8124523,"src":"IMG_9950_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124523.html","width":130,"caption":"","height":87});
															thumbnails[8124589] = clik.newPhoto({"id":8124589,"src":"IMG_9982_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124589.html","width":130,"caption":"","height":87});
															thumbnails[8124591] = clik.newPhoto({"id":8124591,"src":"IMG_9984_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124591.html","width":130,"caption":"","height":87});
															thumbnails[8124592] = clik.newPhoto({"id":8124592,"src":"IMG_9985_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124592.html","width":130,"caption":"","height":87});
															thumbnails[8124597] = clik.newPhoto({"id":8124597,"src":"IMG_0006_thumb.jpg","galleries_id":434618,"server_id":15,"link":"photo_8124597.html","width":130,"caption":"Documentation clip using phone.","height":87});
															thumbnails[8173720] = clik.newPhoto({"id":8173720,"src":"Art_my_hamburger_thumb.jpg","galleries_id":429978,"server_id":15,"link":"photo_8173720.html","width":130,"caption":"","height":87});
															thumbnails[8677556] = clik.newPhoto({"id":8677556,"src":"trampoline_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8677556.html","width":130,"caption":"","height":184});
															thumbnails[8677560] = clik.newPhoto({"id":8677560,"src":"bananas_thumb.jpg","galleries_id":429980,"server_id":15,"link":"photo_8677560.html","width":130,"caption":"","height":195});
															thumbnails[8778601] = clik.newPhoto({"id":8778601,"src":"IMG_0241_thumb.JPG","galleries_id":429977,"server_id":15,"link":"photo_8778601.html","width":130,"caption":"","height":87});
															thumbnails[8905804] = clik.newPhoto({"id":8905804,"src":"abortretryfail1_thumb.png","galleries_id":429977,"server_id":15,"link":"photo_8905804.html","width":130,"caption":"","height":97});
															thumbnails[8905846] = clik.newPhoto({"id":8905846,"src":"abortretryfail2_thumb.png","galleries_id":429977,"server_id":15,"link":"photo_8905846.html","width":130,"caption":"","height":87});
															thumbnails[9087704] = clik.newPhoto({"id":9087704,"src":"showyourface2_1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_9087704.html","width":130,"caption":"","height":97});
															thumbnails[9087706] = clik.newPhoto({"id":9087706,"src":"showyourface3_1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_9087706.html","width":130,"caption":"","height":90});
															thumbnails[9087709] = clik.newPhoto({"id":9087709,"src":"showyourface4_1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_9087709.html","width":130,"caption":"","height":74});
															thumbnails[9087710] = clik.newPhoto({"id":9087710,"src":"showyourface5_1_thumb.jpg","galleries_id":429977,"server_id":15,"link":"photo_9087710.html","width":130,"caption":"","height":97});
															thumbnails[9087711] = clik.newPhoto({"id":9087711,"src":"showyourface6_1_thumb.jpg","galleries_id":429977,"server_id":37,"link":"photo_9087711.html","width":130,"caption":"","height":97});
															thumbnails[8774685] = clik.newPhoto({"id":8774685,"src":"Ambitions_Dream_Nothing_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774685.html","width":130,"caption":"","height":184});
															thumbnails[8774779] = clik.newPhoto({"id":8774779,"src":"bananacopy_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774779.html","width":130,"caption":"","height":195});
															thumbnails[8774782] = clik.newPhoto({"id":8774782,"src":"trampoline_F268CCA4-1E4F-37DC-71CEF4987A8C154D_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774782.html","width":130,"caption":"","height":184});
															thumbnails[8774784] = clik.newPhoto({"id":8774784,"src":"listen_And_Common_Up_JennyCore_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774784.html","width":130,"caption":"","height":69});
															thumbnails[8774788] = clik.newPhoto({"id":8774788,"src":"bookfightallegationpart2_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774788.html","width":130,"caption":"","height":92});
															thumbnails[8774789] = clik.newPhoto({"id":8774789,"src":"motherking_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774789.html","width":130,"caption":"","height":184});
															thumbnails[8774791] = clik.newPhoto({"id":8774791,"src":"IStingGood_JennyCore_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774791.html","width":130,"caption":"","height":184});
															thumbnails[8774794] = clik.newPhoto({"id":8774794,"src":"quietly_seeking_F2993D4C-1E4F-37DC-71B4EE9FE8B05955_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774794.html","width":130,"caption":"","height":74});
															thumbnails[8774795] = clik.newPhoto({"id":8774795,"src":"love_on_paper_F29F5E05-1E4F-37DC-7127BE9EC2CBA400_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774795.html","width":130,"caption":"","height":92});
															thumbnails[8774798] = clik.newPhoto({"id":8774798,"src":"Waiting_Room_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774798.html","width":130,"caption":"","height":92});
															thumbnails[8774801] = clik.newPhoto({"id":8774801,"src":"Greatest_Cup_I_Night_Happiness_F2B639CD-1E4F-37DC-716C63C56FA70476_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774801.html","width":130,"caption":"","height":152});
															thumbnails[8774802] = clik.newPhoto({"id":8774802,"src":"Art_my_hamburger_F2CAB179-1E4F-37DC-7135BAE37845A685_thumb.jpg","galleries_id":462016,"server_id":15,"link":"photo_8774802.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[434618] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"An Evening of Action","link":"gallery_434618.html","maxRecords":0.0,"photoIDs":[8124364.0,8124367.0,8124416.0,8124420.0,8124442.0,8124445.0,8124447.0,8124449.0,8124458.0,8124466.0,8124467.0,8124468.0,8124474.0,8124486.0,8124487.0,8124489.0,8124491.0,8124523.0,8124589.0,8124591.0,8124592.0,8124597.0],"skipIndex":0,"section_code":"gallery","featured_images":"8124597,8124592,8124591,8124589,8124523,8124491,8124489,8124487,8124486,8124474","id":434618,"singleSection":false});				  						galleries[462016] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints","link":"section559460.html","maxRecords":0.0,"photoIDs":[8774685.0,8774779.0,8774782.0,8774784.0,8774788.0,8774789.0,8774791.0,8774794.0,8774795.0,8774798.0,8774801.0,8774802.0],"skipIndex":0,"section_code":"section559460","featured_images":"8774802,8774801,8774798,8774795,8774794,8774791,8774789,8774788,8774784,8774782","id":462016,"singleSection":true});				  						galleries[429976] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Space Series","link":"gallery_429976.html","maxRecords":0.0,"photoIDs":[5245421.0,4435823.0,3961061.0,5240930.0,5650369.0,6013940.0,6063451.0,6594359.0,6893522.0],"skipIndex":0,"section_code":"gallery","featured_images":"6893522,6594359,6063451,3961061","id":429976,"singleSection":false});				  						galleries[429975] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"White Noise Series","link":"gallery_429975.html","maxRecords":0.0,"photoIDs":[5460909.0,5430763.0,6594360.0,7443724.0,7469438.0,7469441.0,7688276.0,7688279.0,7703232.0,7703237.0,7703241.0],"skipIndex":0,"section_code":"gallery","featured_images":"7443724,5430763","id":429975,"singleSection":false});				  						galleries[429978] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Social Series","link":"gallery_429978.html","maxRecords":0.0,"photoIDs":[7168821.0,8001312.0,8001446.0,8001481.0,8001488.0,8173720.0],"skipIndex":0,"section_code":"gallery","featured_images":8001312.0,"id":429978,"singleSection":false});				  						galleries[429980] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Drawing with Objects Series","link":"gallery_429980.html","maxRecords":0.0,"photoIDs":[8001224.0,8001226.0,8001251.0,8001282.0,8001284.0,8001302.0,8001303.0,8001304.0,8001305.0,8677556.0,8677560.0],"skipIndex":0,"section_code":"gallery","featured_images":8001305.0,"id":429980,"singleSection":false});				  						galleries[429977] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_429977.html","maxRecords":0.0,"photoIDs":[5245429.0,5245441.0,4659691.0,6170364.0,7198144.0,7598241.0,8001310.0,8001466.0,8001473.0,8001484.0,8778601.0,8905804.0,8905846.0,9087704.0,9087706.0,9087709.0,9087710.0,9087711.0],"skipIndex":0,"section_code":"gallery","featured_images":8001473.0,"id":429977,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8677556';
imageSets[2] = '8001473,8001312,8001305,7443724,7267006,6893522,6594359,6063451,5430763,3961061,3958108';
imageSets[3] = '9087711,9087710,9087709,9087706,9087704,8905846,8905804,8778601,8774802,8774801,8774798,8774795,8774794,8774791,8774789,8774788,8774784,8774782,8774779,8774685,8677560,8677556,8173720,8124597,8124592,8124591,8124589,8124523,8124491,8124489,8124487,8124486,8124474,8124468,8124467,8124466,8124458,8124449,8124447,8124445,8124442,8124420,8124416,8124367,8124364,8001488,8001484,8001481,8001473,8001466';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jennycore/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jennycore/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jennycore/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 = 'Jenny Core: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="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="JENNYCORE">';
			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({					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;
	}
}

			

