window.thumbnails = {};
															thumbnails[7941237] = clik.newPhoto({"id":7941237,"src":"Homepage_Image_21_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":132});
															thumbnails[8837008] = clik.newPhoto({"id":8837008,"src":"NME_Photo_Awards_2011_Grand_Prize_Winner_Layla_Smethurst_Matthew_Whitehouse_The_Heartbreaks_9C7651FD-1E4F-37DC-71987F23B8DD96AA_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":117});
															thumbnails[9082047] = clik.newPhoto({"id":9082047,"src":"F2_Freelance_Photographer_Cover_FEB_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":221});
															thumbnails[9081953] = clik.newPhoto({"id":9081953,"src":"f2_freelance_photographer_layla_smethurst_matthew_whitehouse_the_heartbreaks_music_photographer_interview__thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":111});
															thumbnails[9082746] = clik.newPhoto({"id":9082746,"src":"F2_Freelance_Photographer_PAGE_3-4_Paramore_The_02_Arena_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":118});
															thumbnails[9082034] = clik.newPhoto({"id":9082034,"src":"F2_Freelance_Photographer_PAGE_5-6_Faithless_The_Drums_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":116});
															thumbnails[9082767] = clik.newPhoto({"id":9082767,"src":"F2_Freelance_Photographer_Magazine_page_9-10_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":109});
															thumbnails[9088927] = clik.newPhoto({"id":9088927,"src":"F2_Freelance_Photographer_Magazine_Empire_Of_The_Sun_1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":228});
															thumbnails[8868895] = clik.newPhoto({"id":8868895,"src":"NME_Photo_Awards_2011_Grand_Prize_Winner_Matthew_Whitehouse_The_Heartbreaks_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":126});
															thumbnails[9057171] = clik.newPhoto({"id":9057171,"src":"NME_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":107});
															thumbnails[9057158] = clik.newPhoto({"id":9057158,"src":"The_Maccabees_PDF_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":126});
															thumbnails[8976807] = clik.newPhoto({"id":8976807,"src":"93NME11050107_small_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":386});
															thumbnails[8748727] = clik.newPhoto({"id":8748727,"src":"The_Cribs_Kirkstall_Abbey_Disorder_Magazine_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"The Cribs @ Kirkstall Abbey \/ Disorder Magazine Edition #37 Oct 11. ","height":203});
															thumbnails[8748734] = clik.newPhoto({"id":8748734,"src":"Spector_Kitkstall_Abbey_Disorder_Magazine_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":204});
															thumbnails[8170036] = clik.newPhoto({"id":8170036,"src":"Lovebox_2010_Tear_Sheet_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":124});
															thumbnails[8169994] = clik.newPhoto({"id":8169994,"src":"Arcade_Fire_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":118});
															thumbnails[8170039] = clik.newPhoto({"id":8170039,"src":"Dutch_Uncles_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":121});
															thumbnails[8748742] = clik.newPhoto({"id":8748742,"src":"Dutch_Uncles_The_Fly_Magazine_Layla_Smethurst_C75169DD-1EC9-D45B-1CC23F0543E839E4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":225});
															thumbnails[8171370] = clik.newPhoto({"id":8171370,"src":"Chew_Lips_itunes_Live_EP_Cover_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":160});
															thumbnails[8171398] = clik.newPhoto({"id":8171398,"src":"Copy_of_Chew_Lips_Promotional_2010_Tour_Banner_Layla_Smethurst_Photography_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":46});
															thumbnails[8171403] = clik.newPhoto({"id":8171403,"src":"Chew_Lips_Tear_Sheet_The_Fly_Magazine_Published_Work_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":225});
															thumbnails[8171411] = clik.newPhoto({"id":8171411,"src":"Tear_Sheet_Commanchi_The_Fly_Magazine_Published_Work_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":225});
															thumbnails[8171413] = clik.newPhoto({"id":8171413,"src":"Jonsi_Live_Review_The_Fly_Magazine_Photography_By_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":225});
															thumbnails[8309946] = clik.newPhoto({"id":8309946,"src":"Diva_Magazine_The_Girls_Are_Annette_Barlow._thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":219});
															thumbnails[8748746] = clik.newPhoto({"id":8748746,"src":"Wild_Palms_tearsheet_The_Fly_Magazine_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":225});
															thumbnails[8772291] = clik.newPhoto({"id":8772291,"src":"The_Heartbreaks_High_Voltage_Published_work_Layla_Smethurst_thumb.png","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":83});
															thumbnails[8772299] = clik.newPhoto({"id":8772299,"src":"The_Heartbreaks_Latitude_festival_published_work_Layla_Smethurst_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":103});
															thumbnails[8775703] = clik.newPhoto({"id":8775703,"src":"Pigeon_Detectives_Leeds_Festival_Layla_Smethurst_2_FA27AC83-1EC9-D45B-1C9CF8E806F3B86A_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8775703.html","width":160,"caption":"leeds","height":107});
															thumbnails[8885763] = clik.newPhoto({"id":8885763,"src":"Constellations_Festival_Layla_Smethurst_1_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8885763.html","width":160,"caption":"","height":107});
															thumbnails[8885874] = clik.newPhoto({"id":8885874,"src":"Constellations_Festival_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8885874.html","width":160,"caption":"","height":114});
															thumbnails[8885915] = clik.newPhoto({"id":8885915,"src":"Spector_Constellations_Festival_Layla_Smethurst_1_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8885915.html","width":160,"caption":"","height":114});
															thumbnails[8774874] = clik.newPhoto({"id":8774874,"src":"Eagulls_Constellations_Festival_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8774874.html","width":160,"caption":"","height":113});
															thumbnails[8774854] = clik.newPhoto({"id":8774854,"src":"DRUGS_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8774854.html","width":160,"caption":"","height":107});
															thumbnails[8774995] = clik.newPhoto({"id":8774995,"src":"Spector_Constellations_Festival_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8774995.html","width":160,"caption":"","height":114});
															thumbnails[8481727] = clik.newPhoto({"id":8481727,"src":"Frankie__The_Heartstrings_Kirkstall_Abbey_The_Fly_Magazine_Layla_Smethurst_02_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481727.html","width":160,"caption":"","height":114});
															thumbnails[8481490] = clik.newPhoto({"id":8481490,"src":"Frankie__The_Heartstrings_Kirkstall_Abbey_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481490.html","width":160,"caption":"","height":160});
															thumbnails[8481883] = clik.newPhoto({"id":8481883,"src":"The_Cribs_Kirkstall_Abbey_The_Fly_Magazine_Layla_Smethurst_02_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481883.html","width":160,"caption":"","height":107});
															thumbnails[8481877] = clik.newPhoto({"id":8481877,"src":"The_Cribs_Kirkstall_Abbey_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481877.html","width":160,"caption":"","height":240});
															thumbnails[8481899] = clik.newPhoto({"id":8481899,"src":"Fucked_Up_Leeds_Festival_Layla_Smethurst1_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481899.html","width":160,"caption":"","height":107});
															thumbnails[8481898] = clik.newPhoto({"id":8481898,"src":"Bombay_Bicycle_Club_Leeds_Festival_2011_Layla_Smethurst1_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481898.html","width":160,"caption":"","height":107});
															thumbnails[8481217] = clik.newPhoto({"id":8481217,"src":"The_Pigeon_Detectives_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481217.html","width":160,"caption":"","height":107});
															thumbnails[8713679] = clik.newPhoto({"id":8713679,"src":"Pigeon_Detectives_Leeds_Festival_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8713679.html","width":160,"caption":"","height":107});
															thumbnails[8481298] = clik.newPhoto({"id":8481298,"src":"The_Pigeon_Detectives_Leeds_Festival_2011_Layla_Smethurst_02_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8481298.html","width":160,"caption":"","height":129});
															thumbnails[8788246] = clik.newPhoto({"id":8788246,"src":"Beady_Eye_Liam_Gallagher_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8788246.html","width":160,"caption":"","height":107});
															thumbnails[8482914] = clik.newPhoto({"id":8482914,"src":"The_Joy_Formidable_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8482914.html","width":160,"caption":"","height":107});
															thumbnails[8482804] = clik.newPhoto({"id":8482804,"src":"Pete_Doherty_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8482804.html","width":160,"caption":"","height":107});
															thumbnails[8712887] = clik.newPhoto({"id":8712887,"src":"Kaiser_Chiefs_Kirkstall_Abbey_Layla_Smethurst_2_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8712887.html","width":160,"caption":"","height":112});
															thumbnails[8712519] = clik.newPhoto({"id":8712519,"src":"The_Cribs_Layla_Smethurst_Kirkstall_Abbey_Disorder_Magazine_thumb.jpg","galleries_id":448572,"server_id":15,"link":"photo_8712519.html","width":160,"caption":"","height":240});
															thumbnails[8772362] = clik.newPhoto({"id":8772362,"src":"Dutch_Uncles_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8772362.html","width":160,"caption":"","height":108});
															thumbnails[8786932] = clik.newPhoto({"id":8786932,"src":"Tigs_Chew_Lips_Lovebox_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8786932.html","width":160,"caption":"","height":107});
															thumbnails[8787324] = clik.newPhoto({"id":8787324,"src":"The_Aggitator_Layla_Smethurst_2_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8787324.html","width":160,"caption":"","height":114});
															thumbnails[8870066] = clik.newPhoto({"id":8870066,"src":"The_Heartbreaks_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8870066.html","width":160,"caption":"","height":107});
															thumbnails[8870626] = clik.newPhoto({"id":8870626,"src":"The_Heartbreaks_Layla_Smethurst_Music_promo_1_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8870626.html","width":160,"caption":"","height":112});
															thumbnails[8870627] = clik.newPhoto({"id":8870627,"src":"The_Heartbreaks_Layla_Smethurst_2_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8870627.html","width":160,"caption":"","height":107});
															thumbnails[8870631] = clik.newPhoto({"id":8870631,"src":"The_Agitator_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8870631.html","width":160,"caption":"","height":107});
															thumbnails[8903098] = clik.newPhoto({"id":8903098,"src":"Tigs_Chew_Lips_Lovebox_Festival_Layla_Smethurst_1_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8903098.html","width":160,"caption":"","height":224});
															thumbnails[8903131] = clik.newPhoto({"id":8903131,"src":"The_Heartbreaks_Layla_Smethurst_Photographer_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8903131.html","width":160,"caption":"","height":116});
															thumbnails[8903137] = clik.newPhoto({"id":8903137,"src":"Little_Fish_Reading_2010_Layla_Smethurst_portrait_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8903137.html","width":160,"caption":"","height":114});
															thumbnails[7922640] = clik.newPhoto({"id":7922640,"src":"The_Heartbreaks_Matthew_Whitehouse_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7922640.html","width":130,"caption":"","height":92});
															thumbnails[7923207] = clik.newPhoto({"id":7923207,"src":"Eva_Spence_Rolo_Tomassi_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7923207.html","width":130,"caption":"","height":93});
															thumbnails[7934119] = clik.newPhoto({"id":7934119,"src":"The_Heartbreaks_Layla_Smethurst_Matthew_Whitehouse_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7934119.html","width":160,"caption":"","height":150});
															thumbnails[8169712] = clik.newPhoto({"id":8169712,"src":"The_Agitator_Derek_Meins_Layla_Smethurst_445283FD-24E8-5EC4-4FD64518CC44D8E8_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8169712.html","width":160,"caption":"","height":107});
															thumbnails[8169487] = clik.newPhoto({"id":8169487,"src":"Health_Reading_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8169487.html","width":160,"caption":"","height":107});
															thumbnails[8169502] = clik.newPhoto({"id":8169502,"src":"Rolo_Tomassi_Eva_Spence_Reading_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8169502.html","width":160,"caption":"","height":114});
															thumbnails[8098630] = clik.newPhoto({"id":8098630,"src":"The_Heartbreaks_Music_Promo_Layla_Smethurst_Matthew_Whitehouse_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8098630.html","width":160,"caption":"","height":114});
															thumbnails[8169665] = clik.newPhoto({"id":8169665,"src":"Harrys_Gym_The_Girls_Are_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8169665.html","width":160,"caption":"","height":160});
															thumbnails[8098637] = clik.newPhoto({"id":8098637,"src":"The_Heartbreaks_Music_Promo_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8098637.html","width":160,"caption":"","height":226});
															thumbnails[8104183] = clik.newPhoto({"id":8104183,"src":"Annette_Barlow_The_Girls_Are_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8104183.html","width":160,"caption":"","height":114});
															thumbnails[7935202] = clik.newPhoto({"id":7935202,"src":"The_Agitator_Derek_Meins_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7935202.html","width":160,"caption":"","height":107});
															thumbnails[7934631] = clik.newPhoto({"id":7934631,"src":"Little_Fish_Juju_Sophie_Layla_Smethurst1_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7934631.html","width":160,"caption":"","height":154});
															thumbnails[7923904] = clik.newPhoto({"id":7923904,"src":"Portrait_-_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_7923904.html","width":130,"caption":"","height":93});
															thumbnails[8169667] = clik.newPhoto({"id":8169667,"src":"Backstage_Portraits_-_Tigs_Chew_Lips_-_Layla_Smethurst_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8169667.html","width":160,"caption":"","height":114});
															thumbnails[8749487] = clik.newPhoto({"id":8749487,"src":"Dutch_Uncles_The_Fly_Magazine_Layla_Smethurst1_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8749487.html","width":160,"caption":"","height":160});
															thumbnails[8772586] = clik.newPhoto({"id":8772586,"src":"HEALTH_Layla_Smethurst_Reading_Festival_thumb.jpg","galleries_id":427085,"server_id":15,"link":"photo_8772586.html","width":160,"caption":"","height":160});
															thumbnails[7940379] = clik.newPhoto({"id":7940379,"src":"Empire_Of_The_Sun_Lovebox_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7940379.html","width":160,"caption":"","height":107});
															thumbnails[7924184] = clik.newPhoto({"id":7924184,"src":"La_Roux_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7924184.html","width":160,"caption":"","height":107});
															thumbnails[7946234] = clik.newPhoto({"id":7946234,"src":"Alice_Glass_Crystal_Castles_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7946234.html","width":160,"caption":"","height":107});
															thumbnails[7929989] = clik.newPhoto({"id":7929989,"src":"Chew_Lips_Layla_Smethurst1_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7929989.html","width":160,"caption":"","height":240});
															thumbnails[7929979] = clik.newPhoto({"id":7929979,"src":"Wolfmother_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7929979.html","width":160,"caption":"","height":107});
															thumbnails[7934282] = clik.newPhoto({"id":7934282,"src":"3_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7934282.html","width":160,"caption":"","height":140});
															thumbnails[7934287] = clik.newPhoto({"id":7934287,"src":"4_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7934287.html","width":160,"caption":"","height":114});
															thumbnails[8098639] = clik.newPhoto({"id":8098639,"src":"Pulled_Apart_By_Horses_Live_At_Leeds_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8098639.html","width":160,"caption":"","height":141});
															thumbnails[8438794] = clik.newPhoto({"id":8438794,"src":"Bombay_Bicycle_Club_Leeds_Festival_2011_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8438794.html","width":160,"caption":"","height":107});
															thumbnails[7946236] = clik.newPhoto({"id":7946236,"src":"Crystal_castles_Alice_Glass_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7946236.html","width":160,"caption":"","height":79});
															thumbnails[7939908] = clik.newPhoto({"id":7939908,"src":"Bombay_Bicycle_Club_Lovebox_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7939908.html","width":160,"caption":"","height":107});
															thumbnails[7934309] = clik.newPhoto({"id":7934309,"src":"7_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7934309.html","width":160,"caption":"","height":114});
															thumbnails[7939958] = clik.newPhoto({"id":7939958,"src":"Paramore_The_02_Arena_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7939958.html","width":160,"caption":"","height":107});
															thumbnails[7939985] = clik.newPhoto({"id":7939985,"src":"Wolfmother_Layla_Smethurst_7ACD8B20-1EC9-D45B-1C9B34897C732071_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7939985.html","width":160,"caption":"","height":107});
															thumbnails[7939916] = clik.newPhoto({"id":7939916,"src":"Marina_and_The_Diamonds_Reading_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7939916.html","width":160,"caption":"","height":114});
															thumbnails[7934294] = clik.newPhoto({"id":7934294,"src":"5_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7934294.html","width":160,"caption":"","height":114});
															thumbnails[7929975] = clik.newPhoto({"id":7929975,"src":"La_Roux_Colour_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7929975.html","width":160,"caption":"","height":107});
															thumbnails[8104645] = clik.newPhoto({"id":8104645,"src":"The_xx_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8104645.html","width":160,"caption":"","height":107});
															thumbnails[8104648] = clik.newPhoto({"id":8104648,"src":"These_New_Puritans_Lovebox_2010_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8104648.html","width":160,"caption":"","height":114});
															thumbnails[8104657] = clik.newPhoto({"id":8104657,"src":"Egyptian_Hip_Hop_Reading_2010_Festival_Republic_The_Fly_Magazine_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8104657.html","width":160,"caption":"","height":114});
															thumbnails[7934298] = clik.newPhoto({"id":7934298,"src":"6_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_7934298.html","width":160,"caption":"","height":111});
															thumbnails[8788230] = clik.newPhoto({"id":8788230,"src":"Courtney_Love_Hole_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8788230.html","width":160,"caption":"","height":114});
															thumbnails[8788242] = clik.newPhoto({"id":8788242,"src":"Faithless_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8788242.html","width":160,"caption":"","height":114});
															thumbnails[8788266] = clik.newPhoto({"id":8788266,"src":"Arcade_Fire_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8788266.html","width":160,"caption":"","height":114});
															thumbnails[8795720] = clik.newPhoto({"id":8795720,"src":"Funeral_Party_Reading_2010_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795720.html","width":160,"caption":"","height":107});
															thumbnails[8795633] = clik.newPhoto({"id":8795633,"src":"Kings_Of_Leon_Hyde_Park_Layla_Smethurst_F88069BF-1EC9-DFB6-0909F500BB31C3A9_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795633.html","width":160,"caption":"","height":111});
															thumbnails[8795860] = clik.newPhoto({"id":8795860,"src":"Miike_Snow_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795860.html","width":160,"caption":"","height":107});
															thumbnails[8795807] = clik.newPhoto({"id":8795807,"src":"Fenech_Soler_Lovebox_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795807.html","width":160,"caption":"","height":115});
															thumbnails[8795733] = clik.newPhoto({"id":8795733,"src":"Kate_Nash_Layla_Smethurst._thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795733.html","width":160,"caption":"","height":224});
															thumbnails[8795876] = clik.newPhoto({"id":8795876,"src":"Pulled_Apart_By_Horses_Layla_Smethurst_Reading_Festival_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795876.html","width":160,"caption":"","height":114});
															thumbnails[8795795] = clik.newPhoto({"id":8795795,"src":"Courtney_Love_Hole_Layla_Smethurst_1_thumb.jpg","galleries_id":427082,"server_id":15,"link":"photo_8795795.html","width":160,"caption":"","height":114});
															thumbnails[8772742] = clik.newPhoto({"id":8772742,"src":"Little_Fish_Reading_2010_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_8772742.html","width":160,"caption":"","height":107});
															thumbnails[7924254] = clik.newPhoto({"id":7924254,"src":"Stage_Door_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7924254.html","width":160,"caption":"","height":113});
															thumbnails[7924696] = clik.newPhoto({"id":7924696,"src":"Kings_Of_Leon_Hyde_Park_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7924696.html","width":160,"caption":"","height":107});
															thumbnails[8169729] = clik.newPhoto({"id":8169729,"src":"Dutch_Uncles_The_Fly_Magazine_Layla_Smethurst_2_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_8169729.html","width":160,"caption":"","height":107});
															thumbnails[7924697] = clik.newPhoto({"id":7924697,"src":"Wild_Palms_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7924697.html","width":160,"caption":"","height":107});
															thumbnails[8438833] = clik.newPhoto({"id":8438833,"src":"Fucked_Up_Leeds_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_8438833.html","width":160,"caption":"","height":107});
															thumbnails[7924372] = clik.newPhoto({"id":7924372,"src":"Kassidy_Live_at_Leeds_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7924372.html","width":160,"caption":"","height":107});
															thumbnails[7936248] = clik.newPhoto({"id":7936248,"src":"Pulled_Apart_By_Horses_Reading_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7936248.html","width":160,"caption":"","height":107});
															thumbnails[7936296] = clik.newPhoto({"id":7936296,"src":"Strangefruit_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7936296.html","width":160,"caption":"","height":107});
															thumbnails[7936303] = clik.newPhoto({"id":7936303,"src":"Reading_Festival_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7936303.html","width":160,"caption":"","height":107});
															thumbnails[7936307] = clik.newPhoto({"id":7936307,"src":"Strangefruit_On_Tour_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7936307.html","width":160,"caption":"","height":107});
															thumbnails[7936400] = clik.newPhoto({"id":7936400,"src":"Lovebox_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7936400.html","width":160,"caption":"","height":107});
															thumbnails[7924379] = clik.newPhoto({"id":7924379,"src":"The_Duke_Spirit_Live_at_Leeds_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_7924379.html","width":160,"caption":"","height":108});
															thumbnails[8104523] = clik.newPhoto({"id":8104523,"src":"Pulled_Apart_By_Horses_Live_at_Leeds_2011_Rocksound_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_8104523.html","width":160,"caption":"","height":107});
															thumbnails[8104550] = clik.newPhoto({"id":8104550,"src":"Reading_2010_Layla_Smethurst_thumb.jpg","galleries_id":427087,"server_id":15,"link":"photo_8104550.html","width":160,"caption":"","height":107});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[448572] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent Work","link":"section539796.html","maxRecords":0.0,"photoIDs":[8775703.0,8885763.0,8885874.0,8885915.0,8774874.0,8774854.0,8774995.0,8481727.0,8481490.0,8481883.0,8481877.0,8481899.0,8481898.0,8481217.0,8713679.0,8481298.0,8788246.0,8482914.0,8482804.0,8712887.0,8712519.0],"skipIndex":0,"section_code":"section539796","featured_images":"8885915,8885874,8885763,8788246,8775703,8774995,8774874,8774854,8713679,8712887","id":448572,"singleSection":true});				  						galleries[427085] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait","link":"portrait.html","maxRecords":0.0,"photoIDs":[8772362.0,8786932.0,8787324.0,8870066.0,8870626.0,8870627.0,8870631.0,8903098.0,8903131.0,8903137.0,7922640.0,7923207.0,7934119.0,8169712.0,8169487.0,8169502.0,8098630.0,8169665.0,8098637.0,8104183.0,7935202.0,7934631.0,7923904.0,8169667.0,8749487.0,8772586.0],"skipIndex":0,"section_code":"portrait","featured_images":"8903137,8903131,8903098,8870631,8870627,8870626,8870066,8787324,8786932,8772586","id":427085,"singleSection":true});				  						galleries[427087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Reportage","link":"event-music_documentary.html","maxRecords":0.0,"photoIDs":[8772742.0,7924254.0,7924696.0,8169729.0,7924697.0,8438833.0,7924372.0,7936248.0,7936296.0,7936303.0,7936307.0,7936400.0,7924379.0,8104523.0,8104550.0],"skipIndex":0,"section_code":"event-music_documentary","featured_images":"8772742,8438833,8169729,8104550,8104523,7936400,7936307,7936303,7936296,7936248","id":427087,"singleSection":true});				  						galleries[427082] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Live Music","link":"music.html","maxRecords":0.0,"photoIDs":[7940379.0,7924184.0,7946234.0,7929989.0,7929979.0,7934282.0,7934287.0,8098639.0,8438794.0,7946236.0,7939908.0,7934309.0,7939958.0,7939985.0,7939916.0,7934294.0,7929975.0,8104645.0,8104648.0,8104657.0,7934298.0,8788230.0,8788242.0,8788266.0,8795720.0,8795633.0,8795860.0,8795807.0,8795733.0,8795876.0,8795795.0],"skipIndex":0,"section_code":"music","featured_images":"8795876,8795860,8795807,8795795,8795733,8795720,8795633,8788266,8788242,8788230","id":427082,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[242748] = '9082047,9081953,9082746,9082034,9082767,9088927,8868895,9057171,9057158,8976807,8748727,8748734,8170036,8169994,8170039,8748742,8171370,8171398,8171403,8171411,8171413,8309946,8748746,8772291,8772299';
imageSets[1] = '8837008';
imageSets[3] = '9088927,9082767,9082746,9082047,9082034,9081953,9057171,9057158,8976807,8903137,8903131,8903098,8885915,8885874,8885763,8870631,8870627,8870626,8870066,8868895,8837008,8795876,8795860,8795807,8795795,8795733,8795720,8795633,8788266,8788246,8788242,8788230,8787324,8786932,8775703,8774995,8774874,8774854,8772742,8772586,8772362,8772299,8772291,8749487,8748746,8748742,8748734,8748727,8713679,8712887';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/LaylaRSmethurst/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/LaylaRSmethurst/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 += 'section539796.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 && 'section539796' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = ': ' + photoCaption;
			    }
        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.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;
	}
}

			

