window.thumbnails = {};
															thumbnails[6894811] = clik.newPhoto({"id":6894811,"src":"Business-Card_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8383074] = clik.newPhoto({"id":8383074,"src":"Crazy_Bear-1_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_8383074.html","width":130,"caption":"Lemar Crazy Bear Summer Garden Party","height":195});
															thumbnails[8382986] = clik.newPhoto({"id":8382986,"src":"Natalie__Robs_Wedding-279_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_8382986.html","width":130,"caption":"Natalie and Rob ","height":110});
															thumbnails[8382993] = clik.newPhoto({"id":8382993,"src":"Crazy_Bear-5_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_8382993.html","width":130,"caption":"Mica Paris The Crazy Bear Garden Party Oxford","height":130});
															thumbnails[8383002] = clik.newPhoto({"id":8383002,"src":"Crazy_Bear-4_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_8383002.html","width":130,"caption":"Lemar Crazy Bear Summer Garden Party","height":130});
															thumbnails[8383008] = clik.newPhoto({"id":8383008,"src":"Crazy_Bear-3_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_8383008.html","width":130,"caption":"Boy George Crazy Bear Summer Garden Party","height":130});
															thumbnails[8383065] = clik.newPhoto({"id":8383065,"src":"Crazy_Bear-2_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_8383065.html","width":130,"caption":"Lemar Crazy Bear Summer Garden Party","height":130});
															thumbnails[7767255] = clik.newPhoto({"id":7767255,"src":"219174_10150234702291635_550221634_8408429_8212583_o_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_7767255.html","width":130,"caption":"","height":155});
															thumbnails[7715276] = clik.newPhoto({"id":7715276,"src":"For-Anthony-and-Nigel_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_7715276.html","width":130,"caption":"One gorgeous Rockweiller ","height":87});
															thumbnails[7780026] = clik.newPhoto({"id":7780026,"src":"Portfolio0026_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_7780026.html","width":130,"caption":"The Jazz Man","height":186});
															thumbnails[7552589] = clik.newPhoto({"id":7552589,"src":"Boscombe_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_7552589.html","width":130,"caption":"Beach Sheds","height":103});
															thumbnails[7569936] = clik.newPhoto({"id":7569936,"src":"Oving-Church_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7569936.html","width":130,"caption":"Oving Chrurch","height":87});
															thumbnails[7501473] = clik.newPhoto({"id":7501473,"src":"Focus-2011_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_7501473.html","width":130,"caption":"Focus 2011","height":195});
															thumbnails[7501512] = clik.newPhoto({"id":7501512,"src":"IMG_8682Clara_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_7501512.html","width":130,"caption":"Clara on Pole","height":162});
															thumbnails[6905381] = clik.newPhoto({"id":6905381,"src":"Gorgeous-Mel_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6905381.html","width":130,"caption":"The Gorgeous Mel","height":195});
															thumbnails[6894815] = clik.newPhoto({"id":6894815,"src":"Avanti-Ad_thumb.jpg","galleries_id":374177,"server_id":15,"link":"photo_6894815.html","width":130,"caption":"Current Special Offers","height":87});
															thumbnails[6894030] = clik.newPhoto({"id":6894030,"src":"Madie2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894030.html","width":130,"caption":"","height":87});
															thumbnails[6894033] = clik.newPhoto({"id":6894033,"src":"Ursula3_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894033.html","width":130,"caption":"","height":87});
															thumbnails[6894034] = clik.newPhoto({"id":6894034,"src":"Family-3_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894034.html","width":130,"caption":"","height":195});
															thumbnails[6894036] = clik.newPhoto({"id":6894036,"src":"The-Girls_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894036.html","width":130,"caption":"","height":195});
															thumbnails[6894040] = clik.newPhoto({"id":6894040,"src":"Group-Piccy_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894040.html","width":130,"caption":"","height":164});
															thumbnails[6894041] = clik.newPhoto({"id":6894041,"src":"Joshua_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894041.html","width":130,"caption":"","height":195});
															thumbnails[6894043] = clik.newPhoto({"id":6894043,"src":"Mans-best-friend_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_6894043.html","width":130,"caption":"","height":195});
															thumbnails[6894044] = clik.newPhoto({"id":6894044,"src":"Madie_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894044.html","width":130,"caption":"","height":195});
															thumbnails[6894046] = clik.newPhoto({"id":6894046,"src":"Ursula2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6894046.html","width":130,"caption":"","height":195});
															thumbnails[6833978] = clik.newPhoto({"id":6833978,"src":"Avanti-1_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6833978.html","width":130,"caption":"Shots done for Avanti hairdressers Watermead Aylesbury","height":195});
															thumbnails[6833989] = clik.newPhoto({"id":6833989,"src":"Avanti-2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6833989.html","width":130,"caption":"Another shot for Avanti hairdressers Watermead Aylesbury","height":195});
															thumbnails[6833998] = clik.newPhoto({"id":6833998,"src":"Avanti-3_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6833998.html","width":130,"caption":"A photoshoot for Avanti Hairdressers Watermead Aylesbury","height":195});
															thumbnails[6834004] = clik.newPhoto({"id":6834004,"src":"Avanti-5_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6834004.html","width":130,"caption":"A shot taken on location during a photoshoot I done for Avanti Hairdressers Watermead Aylesbury","height":195});
															thumbnails[6309813] = clik.newPhoto({"id":6309813,"src":"Bride-Jo-08-July-2010_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_6309813.html","width":130,"caption":"A lovely window lit natural light bridal portait","height":193});
															thumbnails[6174286] = clik.newPhoto({"id":6174286,"src":"Ascot-2-a-for-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6174286.html","width":130,"caption":"Royal Ascott 2010","height":195});
															thumbnails[6174297] = clik.newPhoto({"id":6174297,"src":"Ascot-4-a-for-web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6174297.html","width":130,"caption":"Looking Lovely","height":195});
															thumbnails[5948666] = clik.newPhoto({"id":5948666,"src":"me_and_mummy_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5948666.html","width":130,"caption":"Family portrait bringing colour and personality to the forefront","height":163});
															thumbnails[5715306] = clik.newPhoto({"id":5715306,"src":"The-Tebbut-Kids-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5715306.html","width":130,"caption":"Brother and sisterly love","height":178});
															thumbnails[3726419] = clik.newPhoto({"id":3726419,"src":"Amber-2_BW-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3726419.html","width":130,"caption":"Amber","height":195});
															thumbnails[5711021] = clik.newPhoto({"id":5711021,"src":"My-Mel-web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5711021.html","width":130,"caption":"The lovely Champayne Mel ","height":195});
															thumbnails[5624003] = clik.newPhoto({"id":5624003,"src":"Sam_web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5624003.html","width":130,"caption":"Sam","height":182});
															thumbnails[5624066] = clik.newPhoto({"id":5624066,"src":"Montgenevre_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_5624066.html","width":130,"caption":"Montgenevre by Tony Cashen","height":98});
															thumbnails[5628397] = clik.newPhoto({"id":5628397,"src":"Phoebe_Portrait_web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5628397.html","width":130,"caption":"Phoebe ","height":163});
															thumbnails[4646385] = clik.newPhoto({"id":4646385,"src":"Ryan_Cyprus_2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4646385.html","width":130,"caption":"Portfolio pictures Cyprus","height":195});
															thumbnails[4646143] = clik.newPhoto({"id":4646143,"src":"Carl_and_Rene__Sunset_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646143.html","width":130,"caption":"Sunsetd and silouettes","height":195});
															thumbnails[4646153] = clik.newPhoto({"id":4646153,"src":"Carl_Wedding_day_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646153.html","width":130,"caption":"The Groom","height":182});
															thumbnails[4646157] = clik.newPhoto({"id":4646157,"src":"Wedded_Bliss_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646157.html","width":130,"caption":"Wedded Bliss","height":182});
															thumbnails[6309823] = clik.newPhoto({"id":6309823,"src":"Carl-and-Ren-Web_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_6309823.html","width":130,"caption":"A portrait showing the bride and groom with a little help from our friend Photoshop","height":195});
															thumbnails[4341966] = clik.newPhoto({"id":4341966,"src":"Grasshopper_for_web_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_4341966.html","width":130,"caption":"Ah Grasshopper ","height":93});
															thumbnails[4341974] = clik.newPhoto({"id":4341974,"src":"Silverstone_Rally_School_web_thumb.jpg","galleries_id":222184,"server_id":15,"link":"photo_4341974.html","width":130,"caption":"Mind the bend","height":93});
															thumbnails[4111847] = clik.newPhoto({"id":4111847,"src":"Carl_Cowboy_5_web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4111847.html","width":130,"caption":"Cow - Boy  - Carl","height":182});
															thumbnails[4111862] = clik.newPhoto({"id":4111862,"src":"Carl_Weights_4_web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4111862.html","width":130,"caption":"Fit lad ? Well not bad for forty","height":182});
															thumbnails[4112116] = clik.newPhoto({"id":4112116,"src":"Limmo_Girls_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4112116.html","width":130,"caption":"Home James","height":195});
															thumbnails[4112305] = clik.newPhoto({"id":4112305,"src":"Macro_Head_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_4112305.html","width":130,"caption":"Macro Head","height":130});
															thumbnails[3729673] = clik.newPhoto({"id":3729673,"src":"Surfer_Boy__thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3729673.html","width":130,"caption":"So where's the waves?","height":92});
															thumbnails[3729693] = clik.newPhoto({"id":3729693,"src":"Now_What_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3729693.html","width":130,"caption":"Whoops","height":182});
															thumbnails[3746085] = clik.newPhoto({"id":3746085,"src":"Carl_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3746085.html","width":130,"caption":"Looking Cool","height":190});
															thumbnails[3751849] = clik.newPhoto({"id":3751849,"src":"Peppa_Feb_2009_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_3751849.html","width":130,"caption":"Mans Best Friend  \"Peppa\"","height":182});
															thumbnails[6000006] = clik.newPhoto({"id":6000006,"src":"DJ-and-the-Drink-Problem_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_6000006.html","width":130,"caption":"When you just have to turn to the drink","height":192});
															thumbnails[3729717] = clik.newPhoto({"id":3729717,"src":"Dragon_Fly_Macro_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_3729717.html","width":130,"caption":"Dragon Fly","height":94});
															thumbnails[3767047] = clik.newPhoto({"id":3767047,"src":"Muddeford_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3767047.html","width":130,"caption":"Muddeford Quay","height":87});
															thumbnails[4112675] = clik.newPhoto({"id":4112675,"src":"_MG_5409_thumb.JPG","galleries_id":227593,"server_id":15,"link":"photo_4112675.html","width":130,"caption":"To Bee or not to Bee","height":179});
															thumbnails[3767022] = clik.newPhoto({"id":3767022,"src":"Waadesden_Web_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3767022.html","width":130,"caption":"Waddesden Manor","height":195});
															thumbnails[3729716] = clik.newPhoto({"id":3729716,"src":"Butterfly_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_3729716.html","width":130,"caption":"Grey butterfly","height":179});
															thumbnails[4112650] = clik.newPhoto({"id":4112650,"src":"_MG_5402_thumb.JPG","galleries_id":227593,"server_id":15,"link":"photo_4112650.html","width":130,"caption":"Beezzzzzz","height":179});
															thumbnails[4112660] = clik.newPhoto({"id":4112660,"src":"Dragon_Fly_Closeup_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_4112660.html","width":130,"caption":"An old dragon","height":95});
															thumbnails[3729715] = clik.newPhoto({"id":3729715,"src":"Lets_Go_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_3729715.html","width":130,"caption":"Lets go","height":195});
															thumbnails[3740284] = clik.newPhoto({"id":3740284,"src":"Chevey_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3740284.html","width":130,"caption":"Chevy","height":134});
															thumbnails[3752422] = clik.newPhoto({"id":3752422,"src":"Daniel_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_3752422.html","width":130,"caption":"Daniel","height":195});
															thumbnails[3752445] = clik.newPhoto({"id":3752445,"src":"Mr_Leopard_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_3752445.html","width":130,"caption":"Mr Leopard","height":92});
															thumbnails[3766257] = clik.newPhoto({"id":3766257,"src":"Mayball21_thumb.jpg","galleries_id":222184,"server_id":15,"link":"photo_3766257.html","width":130,"caption":"Black Tie Events","height":195});
															thumbnails[3637069] = clik.newPhoto({"id":3637069,"src":"Tony_October_Piccy_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3637069.html","width":130,"caption":"","height":198});
															thumbnails[3752384] = clik.newPhoto({"id":3752384,"src":"Poole_Harbour_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3752384.html","width":130,"caption":"Poole Harbour","height":87});
															thumbnails[7780021] = clik.newPhoto({"id":7780021,"src":"Portfolio0017_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_7780021.html","width":130,"caption":"British Grand Prix","height":163});
															thumbnails[3767050] = clik.newPhoto({"id":3767050,"src":"Football_Star_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3767050.html","width":130,"caption":"Football Star","height":111});
															thumbnails[3752299] = clik.newPhoto({"id":3752299,"src":"Millenium_Wheel_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3752299.html","width":130,"caption":"London's Millenniums Wheel","height":173});
															thumbnails[3767058] = clik.newPhoto({"id":3767058,"src":"Macro_Head1_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_3767058.html","width":130,"caption":"Gardens are great","height":130});
															thumbnails[4112314] = clik.newPhoto({"id":4112314,"src":"Macro_Flower_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_4112314.html","width":130,"caption":"Hairy Flower Power","height":138});
															thumbnails[3729532] = clik.newPhoto({"id":3729532,"src":"A_Chardonnay_I_believe_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_3729532.html","width":130,"caption":"I prefer the 68 myself","height":163});
															thumbnails[3729566] = clik.newPhoto({"id":3729566,"src":"Its_just_up_here_dad_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_3729566.html","width":130,"caption":"Its just up here dad","height":131});
															thumbnails[3752472] = clik.newPhoto({"id":3752472,"src":"Jamesons_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_3752472.html","width":130,"caption":"Jamesons Ireland","height":98});
															thumbnails[3729527] = clik.newPhoto({"id":3729527,"src":"Little_Tinker_thumb.jpg","galleries_id":227618,"server_id":15,"link":"photo_3729527.html","width":130,"caption":"Little Tinker","height":195});
															thumbnails[3752286] = clik.newPhoto({"id":3752286,"src":"Little_Elle_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_3752286.html","width":130,"caption":"Little Elllie","height":195});
															thumbnails[3751906] = clik.newPhoto({"id":3751906,"src":"Joel_2_years_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_3751906.html","width":130,"caption":"Joel ","height":113});
															thumbnails[3726879] = clik.newPhoto({"id":3726879,"src":"Sassy_Lady_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_3726879.html","width":130,"caption":"Sassy Lady","height":182});
															thumbnails[3727446] = clik.newPhoto({"id":3727446,"src":"Giss_a_kiss_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_3727446.html","width":130,"caption":"Giss a Kiss","height":168});
															thumbnails[3915841] = clik.newPhoto({"id":3915841,"src":"Prom_girls_thumb.jpg","galleries_id":222184,"server_id":15,"link":"photo_3915841.html","width":130,"caption":"Cheers","height":195});
															thumbnails[3915852] = clik.newPhoto({"id":3915852,"src":"Prom_Girls_2_thumb.jpg","galleries_id":222184,"server_id":15,"link":"photo_3915852.html","width":130,"caption":"Another smile please","height":195});
															thumbnails[3915864] = clik.newPhoto({"id":3915864,"src":"Prom_Girls_3_thumb.jpg","galleries_id":222184,"server_id":15,"link":"photo_3915864.html","width":130,"caption":"We're off","height":87});
															thumbnails[4341959] = clik.newPhoto({"id":4341959,"src":"Ellieweb_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4341959.html","width":130,"caption":"","height":195});
															thumbnails[4341962] = clik.newPhoto({"id":4341962,"src":"Baby_web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_4341962.html","width":130,"caption":"Ga ga blurb blurb!!","height":87});
															thumbnails[4341983] = clik.newPhoto({"id":4341983,"src":"Leaf_for_Web_thumb.jpg","galleries_id":227593,"server_id":15,"link":"photo_4341983.html","width":130,"caption":"Whats in a drop of rain? Water I guess!","height":93});
															thumbnails[4646141] = clik.newPhoto({"id":4646141,"src":"Carl_and_Ren_Wedding_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646141.html","width":130,"caption":"Wedding day","height":182});
															thumbnails[4646183] = clik.newPhoto({"id":4646183,"src":"Carl_and_Rene_The_rings_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646183.html","width":130,"caption":"The Rings","height":130});
															thumbnails[4646254] = clik.newPhoto({"id":4646254,"src":"The_Bride_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646254.html","width":130,"caption":"The Bride","height":89});
															thumbnails[4646318] = clik.newPhoto({"id":4646318,"src":"The_Bride_2_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4646318.html","width":130,"caption":"The Bride 2","height":195});
															thumbnails[4646372] = clik.newPhoto({"id":4646372,"src":"Ryan_Cyprus_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4646372.html","width":130,"caption":"Ryan portfolio ","height":195});
															thumbnails[4646446] = clik.newPhoto({"id":4646446,"src":"Ryan_3_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_4646446.html","width":130,"caption":"Portrait for Portfolio Cyprus","height":195});
															thumbnails[4648273] = clik.newPhoto({"id":4648273,"src":"Here_come_the_girls_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_4648273.html","width":130,"caption":"Here Comes The Girls","height":195});
															thumbnails[5624042] = clik.newPhoto({"id":5624042,"src":"Jane_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5624042.html","width":130,"caption":"","height":182});
															thumbnails[5631925] = clik.newPhoto({"id":5631925,"src":"Phoebe_Arty_web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5631925.html","width":130,"caption":"Arty Phoebe","height":104});
															thumbnails[5714998] = clik.newPhoto({"id":5714998,"src":"The-Tebbuts-4-web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5714998.html","width":130,"caption":"Family Life","height":160});
															thumbnails[5715295] = clik.newPhoto({"id":5715295,"src":"Amber-and-Mel-Highkey-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5715295.html","width":130,"caption":"Hghkey","height":170});
															thumbnails[5722112] = clik.newPhoto({"id":5722112,"src":"Susan-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5722112.html","width":130,"caption":"Susan","height":195});
															thumbnails[5722151] = clik.newPhoto({"id":5722151,"src":"Mum-and-Baby-girl_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_5722151.html","width":130,"caption":"Right mum your turn","height":71});
															thumbnails[5808775] = clik.newPhoto({"id":5808775,"src":"Bella_net_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_5808775.html","width":130,"caption":"Belle and Rene","height":93});
															thumbnails[5837799] = clik.newPhoto({"id":5837799,"src":"Charly_Greenwood_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5837799.html","width":130,"caption":"Just wanna have fun","height":163});
															thumbnails[5837811] = clik.newPhoto({"id":5837811,"src":"Phoebs-and-Sam-To-web_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_5837811.html","width":130,"caption":"Girls best friend as well","height":163});
															thumbnails[5837815] = clik.newPhoto({"id":5837815,"src":"Alfie-at-wedding-web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_5837815.html","width":130,"caption":"What a day","height":173});
															thumbnails[5837886] = clik.newPhoto({"id":5837886,"src":"Mum-and-daughter2_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_5837886.html","width":130,"caption":"Laugh, for you mum anything!","height":130});
															thumbnails[5899594] = clik.newPhoto({"id":5899594,"src":"Arthur-web_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_5899594.html","width":130,"caption":"One Proud Dog","height":87});
															thumbnails[6100422] = clik.newPhoto({"id":6100422,"src":"Kaite_Green_1_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6100422.html","width":130,"caption":"A Sudio shot of KAtie Green taken by our senior photographer Tony","height":164});
															thumbnails[6100426] = clik.newPhoto({"id":6100426,"src":"Katie_Green_2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6100426.html","width":130,"caption":"Another shot of the ever lovely Katie Green taken by Tony in studio","height":171});
															thumbnails[6136497] = clik.newPhoto({"id":6136497,"src":"William-7-Arty-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_6136497.html","width":130,"caption":"Baby William Aged 1 year 2 months","height":163});
															thumbnails[6136500] = clik.newPhoto({"id":6136500,"src":"William-3-Arty-web-2_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_6136500.html","width":130,"caption":"Baby Wills 2","height":104});
															thumbnails[6834006] = clik.newPhoto({"id":6834006,"src":"Avanti-6_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_6834006.html","width":130,"caption":"A shot taken on location during a photoshoot I done for Avanti Hairdressers Watermead Aylesbury","height":195});
															thumbnails[7514452] = clik.newPhoto({"id":7514452,"src":"Baby-Luxon-1-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_7514452.html","width":130,"caption":"10 week old Mia","height":92});
															thumbnails[7514454] = clik.newPhoto({"id":7514454,"src":"Baby-Luxon-3-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_7514454.html","width":130,"caption":"The love of a mother and little 10 week old Mia ","height":114});
															thumbnails[7644621] = clik.newPhoto({"id":7644621,"src":"bath-cathedral_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_7644621.html","width":130,"caption":"Bath Cathedral ","height":80});
															thumbnails[7680785] = clik.newPhoto({"id":7680785,"src":"Wedding-Huntingdon-2_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680785.html","width":130,"caption":"Weddings by Tony Cashen","height":177});
															thumbnails[7680786] = clik.newPhoto({"id":7680786,"src":"Romantic-moments-by-Tony-Cashen_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680786.html","width":130,"caption":"Weddings by Tony Cashen","height":159});
															thumbnails[7680787] = clik.newPhoto({"id":7680787,"src":"Oving-Church_751B355F-24E8-5EC4-4F6A18C2787CA4B7_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680787.html","width":130,"caption":"Weddings by Tony Cashen","height":87});
															thumbnails[7680788] = clik.newPhoto({"id":7680788,"src":"Wedding-3_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680788.html","width":130,"caption":"Weddings by Tony Cashen","height":87});
															thumbnails[7680789] = clik.newPhoto({"id":7680789,"src":"Wedding-Huntingdon_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680789.html","width":130,"caption":"Weddings by Tony Cashen","height":195});
															thumbnails[7680790] = clik.newPhoto({"id":7680790,"src":"Wedding-Show_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680790.html","width":130,"caption":"Weddings by Tony Cashen","height":211});
															thumbnails[7680791] = clik.newPhoto({"id":7680791,"src":"Wedding-show-2_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680791.html","width":130,"caption":"Weddings by Tony Cashen","height":195});
															thumbnails[7680792] = clik.newPhoto({"id":7680792,"src":"St-Marys-Church-Aylesbury_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_7680792.html","width":130,"caption":"Weddings by Tony Cashen","height":93});
															thumbnails[8280241] = clik.newPhoto({"id":8280241,"src":"Bump_copy_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280241.html","width":130,"caption":"","height":155});
															thumbnails[8280243] = clik.newPhoto({"id":8280243,"src":"Amber-Profile-Web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280243.html","width":130,"caption":"Gorgeous social networking pictures by a1photographic.com","height":187});
															thumbnails[8280245] = clik.newPhoto({"id":8280245,"src":"Eloise-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280245.html","width":130,"caption":"Gorgeous children's portraits by a1photographic.com","height":130});
															thumbnails[8280247] = clik.newPhoto({"id":8280247,"src":"Elenor-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280247.html","width":130,"caption":"Gorgeous mum and Todler pictures by a1photographic.com","height":128});
															thumbnails[8280249] = clik.newPhoto({"id":8280249,"src":"Freya-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280249.html","width":130,"caption":"Lovely children's portraits captures by a1photographic.com","height":181});
															thumbnails[8280252] = clik.newPhoto({"id":8280252,"src":"Mel-web_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280252.html","width":130,"caption":"Lovely natural portraits by a1photographic.com","height":92});
															thumbnails[8280255] = clik.newPhoto({"id":8280255,"src":"Natalie-and-Rob-3240_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_8280255.html","width":130,"caption":"Wedding photography by a1photographic.com","height":130});
															thumbnails[8280272] = clik.newPhoto({"id":8280272,"src":"Bridal_makeup_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_8280272.html","width":130,"caption":"Bridal photography by a1photographic","height":181});
															thumbnails[8280279] = clik.newPhoto({"id":8280279,"src":"Madi-Web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280279.html","width":130,"caption":"Children's smiles captured by a1photographic.com","height":161});
															thumbnails[8280314] = clik.newPhoto({"id":8280314,"src":"The-Girls-web_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8280314.html","width":130,"caption":"Family pictures by a1photographic.com","height":103});
															thumbnails[8280321] = clik.newPhoto({"id":8280321,"src":"Luke-and-Di-web_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_8280321.html","width":130,"caption":"Engagement phototography by a1photographic.com","height":130});
															thumbnails[8280329] = clik.newPhoto({"id":8280329,"src":"Harry--Laura_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_8280329.html","width":130,"caption":"Pictures of love by a1photographic.com","height":186});
															thumbnails[8280339] = clik.newPhoto({"id":8280339,"src":"Model_B4D7F853-24E8-5EC4-4F2E8CEFBE8D3CCA_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280339.html","width":130,"caption":"Model portfolio's by a1photographic.com","height":189});
															thumbnails[8280342] = clik.newPhoto({"id":8280342,"src":"model2_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280342.html","width":130,"caption":"Model portfolio's by a1photographic.com","height":89});
															thumbnails[8280348] = clik.newPhoto({"id":8280348,"src":"Service-with-a-smile_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280348.html","width":130,"caption":"People for advertising by a1photographic.com","height":140});
															thumbnails[8280663] = clik.newPhoto({"id":8280663,"src":"Amber-art_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280663.html","width":130,"caption":"Artistic photography by a1photographic.com","height":91});
															thumbnails[8280851] = clik.newPhoto({"id":8280851,"src":"Little-Els-1_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8280851.html","width":130,"caption":"On location children's photography","height":130});
															thumbnails[8299800] = clik.newPhoto({"id":8299800,"src":"Flames-by-Tony-Cashen_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8299800.html","width":130,"caption":"Flames by Tony Cashen","height":130});
															thumbnails[8300244] = clik.newPhoto({"id":8300244,"src":"Ridgeback-by-Tony-Cashen_thumb.jpg","galleries_id":228956,"server_id":15,"link":"photo_8300244.html","width":130,"caption":"Ridgeback by Tony Cashen","height":130});
															thumbnails[8741329] = clik.newPhoto({"id":8741329,"src":"Nicki_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741329.html","width":130,"caption":"","height":130});
															thumbnails[8741332] = clik.newPhoto({"id":8741332,"src":"Nicki-2_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741332.html","width":130,"caption":"Bump2baby","height":130});
															thumbnails[8741334] = clik.newPhoto({"id":8741334,"src":"Nicola-3_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741334.html","width":130,"caption":"Bump2baby","height":130});
															thumbnails[8741337] = clik.newPhoto({"id":8741337,"src":"Sally_Anne-5-Edit_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741337.html","width":130,"caption":"Baby Bump","height":93});
															thumbnails[8741338] = clik.newPhoto({"id":8741338,"src":"Sally_Anne-21-Edit-Edit_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741338.html","width":130,"caption":"Mum2be","height":130});
															thumbnails[8741339] = clik.newPhoto({"id":8741339,"src":"Sally_Anne-b2b_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_8741339.html","width":130,"caption":"Bump2baby","height":130});
															thumbnails[8741364] = clik.newPhoto({"id":8741364,"src":"Aylesbury-FC-3-web_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8741364.html","width":130,"caption":"Aylesbury FC","height":61});
															thumbnails[8741373] = clik.newPhoto({"id":8741373,"src":"Bygones-by-Tony-Cashen_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8741373.html","width":130,"caption":"Bygones","height":93});
															thumbnails[8741377] = clik.newPhoto({"id":8741377,"src":"Joel-says_thumb.jpg","galleries_id":222183,"server_id":15,"link":"photo_8741377.html","width":130,"caption":"Your Friends need you","height":193});
															thumbnails[8741383] = clik.newPhoto({"id":8741383,"src":"Cobra-by-Tony-Cashen_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8741383.html","width":130,"caption":"Cobra 427","height":89});
															thumbnails[8741484] = clik.newPhoto({"id":8741484,"src":"Venice-web_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8741484.html","width":130,"caption":"Venice","height":100});
															thumbnails[8741510] = clik.newPhoto({"id":8741510,"src":"Body_Art_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_8741510.html","width":130,"caption":"Body Art","height":87});
															thumbnails[9084340] = clik.newPhoto({"id":9084340,"src":"morning_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_9084340.html","width":130,"caption":"","height":101});
															thumbnails[9084342] = clik.newPhoto({"id":9084342,"src":"Birchington-On-Sea_thumb.jpg","galleries_id":227594,"server_id":15,"link":"photo_9084342.html","width":130,"caption":"","height":76});
															thumbnails[9084354] = clik.newPhoto({"id":9084354,"src":"Baby-Noah-and-Nicola_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9084354.html","width":130,"caption":"","height":170});
															thumbnails[9084356] = clik.newPhoto({"id":9084356,"src":"Baby-Lucas-2-weeks_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9084356.html","width":130,"caption":"","height":130});
															thumbnails[9084361] = clik.newPhoto({"id":9084361,"src":"Baby_Christmas_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9084361.html","width":130,"caption":"","height":90});
															thumbnails[9003441] = clik.newPhoto({"id":9003441,"src":"Cashen77231_3CD5A79C-1EC9-DFB6-0972358A861BF334_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003441.html","width":130,"caption":"'Cashen77231","height":198});
															thumbnails[9121382] = clik.newPhoto({"id":9121382,"src":"and-they-laughed_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121382.html","width":130,"caption":"and-they-laughed","height":95});
															thumbnails[9169806] = clik.newPhoto({"id":9169806,"src":"Tony_Portfolio_web-1_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169806.html","width":130,"caption":"Leoni Engagement","height":195});
															thumbnails[9003443] = clik.newPhoto({"id":9003443,"src":"Boudoir-by-Tony-2_3CD61C4F-1EC9-DFB6-09BCA1FB1EE4569E_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003443.html","width":130,"caption":"Boudoir-by-Tony-2","height":91});
															thumbnails[9169808] = clik.newPhoto({"id":9169808,"src":"Tony_Portfolio_web-2_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169808.html","width":130,"caption":"Leoni Engagement","height":195});
															thumbnails[9003444] = clik.newPhoto({"id":9003444,"src":"Boudoir-by-Tony-3_3CD64E88-1EC9-DFB6-09B548A9CC59F70F_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003444.html","width":130,"caption":"Boudoir-by-Tony-3","height":88});
															thumbnails[9121384] = clik.newPhoto({"id":9121384,"src":"Baby-Khan_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121384.html","width":130,"caption":"Baby-Khan","height":188});
															thumbnails[9169809] = clik.newPhoto({"id":9169809,"src":"Tony_Portfolio_web-3_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169809.html","width":130,"caption":"Leoni Engagement","height":195});
															thumbnails[9003445] = clik.newPhoto({"id":9003445,"src":"Boudoir-by-Tony-4_3CD67E37-1EC9-DFB6-09EA70686E2B1025_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003445.html","width":130,"caption":"Boudoir-by-Tony-4","height":91});
															thumbnails[9121385] = clik.newPhoto({"id":9121385,"src":"Baby-Lucas-2-weeks_FFB34E03-1EC9-D45B-1CB6DF850C030A7B_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121385.html","width":130,"caption":"Baby-Lucas-2-weeks","height":130});
															thumbnails[9169810] = clik.newPhoto({"id":9169810,"src":"Tony_Portfolio_web-4_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169810.html","width":130,"caption":"Leoni Engagement","height":195});
															thumbnails[9003446] = clik.newPhoto({"id":9003446,"src":"Boudoir-by-Tony-5_3CD6AB02-1EC9-DFB6-09DC0F515AC13DA4_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003446.html","width":130,"caption":"Boudoir-by-Tony-5","height":100});
															thumbnails[9121386] = clik.newPhoto({"id":9121386,"src":"Baby-Lucas_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121386.html","width":130,"caption":"Baby-Lucas","height":90});
															thumbnails[9169811] = clik.newPhoto({"id":9169811,"src":"Tony_Portfolio_web-5_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169811.html","width":130,"caption":"Leoni Engagement","height":195});
															thumbnails[9003447] = clik.newPhoto({"id":9003447,"src":"Boudoir-by-Tony_3CD6DCE5-1EC9-DFB6-0947890AE8DDA941_thumb.jpg","galleries_id":334763,"server_id":15,"link":"photo_9003447.html","width":130,"caption":"Boudoir-by-Tony","height":91});
															thumbnails[9121387] = clik.newPhoto({"id":9121387,"src":"Baby-Noah-and-Nicola_FFB4A5A8-1EC9-D45B-1CD1BEA03BD67EE5_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121387.html","width":130,"caption":"Baby-Noah-and-Nicola","height":170});
															thumbnails[9169812] = clik.newPhoto({"id":9169812,"src":"Tony_Portfolio_web-6_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169812.html","width":130,"caption":"Leonie & Mark","height":195});
															thumbnails[9121388] = clik.newPhoto({"id":9121388,"src":"dan_by_Tony_Cashen_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121388.html","width":130,"caption":"dan by Tony Cashen","height":203});
															thumbnails[9169814] = clik.newPhoto({"id":9169814,"src":"Tony_Portfolio_web-7_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169814.html","width":130,"caption":"Leonie & Mark","height":195});
															thumbnails[9121389] = clik.newPhoto({"id":9121389,"src":"Joel-in-tree_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121389.html","width":130,"caption":"Joel-in-tree","height":195});
															thumbnails[9169816] = clik.newPhoto({"id":9169816,"src":"Tony_Portfolio_web-8_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169816.html","width":130,"caption":"Leonie & Mark","height":195});
															thumbnails[9121390] = clik.newPhoto({"id":9121390,"src":"Noah-dreams-of-snow_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121390.html","width":130,"caption":"Noah-dreams-of-snow","height":90});
															thumbnails[9169817] = clik.newPhoto({"id":9169817,"src":"Tony_Portfolio_web-9_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169817.html","width":130,"caption":"Lilly & Daniel","height":130});
															thumbnails[9121391] = clik.newPhoto({"id":9121391,"src":"Noahs-hand_1_thumb.jpg","galleries_id":342181,"server_id":15,"link":"photo_9121391.html","width":130,"caption":"Noahs-hand","height":130});
															thumbnails[9169818] = clik.newPhoto({"id":9169818,"src":"Tony_Portfolio_web-10_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169818.html","width":130,"caption":"Lilly & Daniel","height":87});
															thumbnails[9169820] = clik.newPhoto({"id":9169820,"src":"Tony_Portfolio_web-11_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169820.html","width":130,"caption":"Lilly & Daniel","height":87});
															thumbnails[9169822] = clik.newPhoto({"id":9169822,"src":"Tony_Portfolio_web-12_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169822.html","width":130,"caption":"Lilly ","height":195});
															thumbnails[9169823] = clik.newPhoto({"id":9169823,"src":"Tony_Portfolio_web-13_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169823.html","width":130,"caption":"Lilly","height":195});
															thumbnails[9169826] = clik.newPhoto({"id":9169826,"src":"Tony_Portfolio_web-14_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169826.html","width":130,"caption":"Lilly","height":130});
															thumbnails[9169828] = clik.newPhoto({"id":9169828,"src":"Tony_Portfolio_web-15_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169828.html","width":130,"caption":"Lilly","height":195});
															thumbnails[9169829] = clik.newPhoto({"id":9169829,"src":"Tony_Portfolio_web-16_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169829.html","width":130,"caption":"Lilly","height":195});
															thumbnails[9169831] = clik.newPhoto({"id":9169831,"src":"Tony_Portfolio_web-17_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169831.html","width":130,"caption":"Tia","height":195});
															thumbnails[9169832] = clik.newPhoto({"id":9169832,"src":"Tony_Portfolio_web-18_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169832.html","width":130,"caption":"Tia","height":195});
															thumbnails[9169833] = clik.newPhoto({"id":9169833,"src":"Tony_Portfolio_web-19_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169833.html","width":130,"caption":"Tia","height":195});
															thumbnails[9169835] = clik.newPhoto({"id":9169835,"src":"Tony_Portfolio_web-20_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169835.html","width":130,"caption":"Tia","height":195});
															thumbnails[9169836] = clik.newPhoto({"id":9169836,"src":"Tony_Portfolio_web-21_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169836.html","width":130,"caption":"Lilly","height":87});
															thumbnails[9169838] = clik.newPhoto({"id":9169838,"src":"Tony_Portfolio_web-22_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169838.html","width":130,"caption":"Lilly","height":87});
															thumbnails[9169839] = clik.newPhoto({"id":9169839,"src":"Tony_Portfolio_web-23_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169839.html","width":130,"caption":"Lilly","height":87});
															thumbnails[9169840] = clik.newPhoto({"id":9169840,"src":"Tony_Portfolio_web-24_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169840.html","width":130,"caption":"Daniel","height":195});
															thumbnails[9169842] = clik.newPhoto({"id":9169842,"src":"Tony_Portfolio_web-25_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169842.html","width":130,"caption":"Daniel","height":195});
															thumbnails[9169843] = clik.newPhoto({"id":9169843,"src":"Tony_Portfolio_web-26_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169843.html","width":130,"caption":"Lilly","height":87});
															thumbnails[9169844] = clik.newPhoto({"id":9169844,"src":"Tony_Portfolio_web-27_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169844.html","width":130,"caption":"Lilly & Daniel","height":247});
															thumbnails[9169845] = clik.newPhoto({"id":9169845,"src":"Tony_Portfolio_web-28_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169845.html","width":130,"caption":"Tony Portfolio web-28","height":195});
															thumbnails[9169846] = clik.newPhoto({"id":9169846,"src":"Tony_Portfolio_web-29_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169846.html","width":130,"caption":"Lilly & Daniel","height":195});
															thumbnails[9169848] = clik.newPhoto({"id":9169848,"src":"Tony_Portfolio_web-30_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169848.html","width":130,"caption":"Lilly & Daniel","height":87});
															thumbnails[9169849] = clik.newPhoto({"id":9169849,"src":"Tony_Portfolio_web-31_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169849.html","width":130,"caption":"Lilly & Daniel","height":87});
															thumbnails[9169850] = clik.newPhoto({"id":9169850,"src":"Tony_Portfolio_web-32_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169850.html","width":130,"caption":"Tony Portfolio web-32","height":87});
															thumbnails[9169852] = clik.newPhoto({"id":9169852,"src":"Tony_Portfolio_web-33_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169852.html","width":130,"caption":"Lilly & Daniel","height":195});
															thumbnails[9169853] = clik.newPhoto({"id":9169853,"src":"Tony_Portfolio_web-34_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169853.html","width":130,"caption":"Tony Portfolio web-34","height":195});
															thumbnails[9169854] = clik.newPhoto({"id":9169854,"src":"Tony_Portfolio_web-35_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169854.html","width":130,"caption":"Tony Portfolio web-35","height":195});
															thumbnails[9169856] = clik.newPhoto({"id":9169856,"src":"Tony_Portfolio_web-36_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169856.html","width":130,"caption":"Tony Portfolio web-36","height":195});
															thumbnails[9169858] = clik.newPhoto({"id":9169858,"src":"Tony_Portfolio_web-37_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169858.html","width":130,"caption":"Tony Portfolio web-37","height":195});
															thumbnails[9169859] = clik.newPhoto({"id":9169859,"src":"Tony_Portfolio_web-38_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169859.html","width":130,"caption":"Tony Portfolio web-38","height":195});
															thumbnails[9169860] = clik.newPhoto({"id":9169860,"src":"Tony_Portfolio_web-39_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169860.html","width":130,"caption":"Tony Portfolio web-39","height":87});
															thumbnails[9169862] = clik.newPhoto({"id":9169862,"src":"Tony_Portfolio_web-40_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169862.html","width":130,"caption":"Tony Portfolio web-40","height":195});
															thumbnails[9169863] = clik.newPhoto({"id":9169863,"src":"Tony_Portfolio_web-41_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169863.html","width":130,"caption":"Tony Portfolio web-41","height":87});
															thumbnails[9169864] = clik.newPhoto({"id":9169864,"src":"Tony_Portfolio_web-42_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169864.html","width":130,"caption":"Tony Portfolio web-42","height":195});
															thumbnails[9169865] = clik.newPhoto({"id":9169865,"src":"Tony_Portfolio_web-43_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169865.html","width":130,"caption":"Tony Portfolio web-43","height":195});
															thumbnails[9169866] = clik.newPhoto({"id":9169866,"src":"Tony_Portfolio_web-44_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169866.html","width":130,"caption":"Tony Portfolio web-44","height":195});
															thumbnails[9169868] = clik.newPhoto({"id":9169868,"src":"Tony_Portfolio_web-45_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169868.html","width":130,"caption":"Lilly & Daniel","height":87});
															thumbnails[9169869] = clik.newPhoto({"id":9169869,"src":"Tony_Portfolio_web-46_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169869.html","width":130,"caption":"Tony Portfolio web-46","height":195});
															thumbnails[9169870] = clik.newPhoto({"id":9169870,"src":"Tony_Portfolio_web-47_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169870.html","width":130,"caption":"Tony Portfolio web-47","height":195});
															thumbnails[9169871] = clik.newPhoto({"id":9169871,"src":"Tony_Portfolio_web-48_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169871.html","width":130,"caption":"Tony Portfolio web-48","height":195});
															thumbnails[9169873] = clik.newPhoto({"id":9169873,"src":"Tony_Portfolio_web-49_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169873.html","width":130,"caption":"Leonie & Mark","height":87});
															thumbnails[9169874] = clik.newPhoto({"id":9169874,"src":"Tony_Portfolio_web-50_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169874.html","width":130,"caption":"Leonie & Mark","height":195});
															thumbnails[9169875] = clik.newPhoto({"id":9169875,"src":"Tony_Portfolio_web-51_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169875.html","width":130,"caption":"Tony Portfolio web-51","height":195});
															thumbnails[9169876] = clik.newPhoto({"id":9169876,"src":"Tony_Portfolio_web-52_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169876.html","width":130,"caption":"Tony Portfolio web-52","height":195});
															thumbnails[9169877] = clik.newPhoto({"id":9169877,"src":"Tony_Portfolio_web-53_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169877.html","width":130,"caption":"Tony Portfolio web-53","height":87});
															thumbnails[9169879] = clik.newPhoto({"id":9169879,"src":"Tony_Portfolio_web-54_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169879.html","width":130,"caption":"Tony Portfolio web-54","height":87});
															thumbnails[9169880] = clik.newPhoto({"id":9169880,"src":"Tony_Portfolio_web-55_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169880.html","width":130,"caption":"Tony Portfolio web-55","height":87});
															thumbnails[9169881] = clik.newPhoto({"id":9169881,"src":"Tony_Portfolio_web-56_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169881.html","width":130,"caption":"Tony Portfolio web-56","height":87});
															thumbnails[9169882] = clik.newPhoto({"id":9169882,"src":"Tony_Portfolio_web-57_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169882.html","width":130,"caption":"Tony Portfolio web-57","height":195});
															thumbnails[9169884] = clik.newPhoto({"id":9169884,"src":"Tony_Portfolio_web-58_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169884.html","width":130,"caption":"Tony Portfolio web-58","height":195});
															thumbnails[9169886] = clik.newPhoto({"id":9169886,"src":"Tony_Portfolio_web-59_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169886.html","width":130,"caption":"Tony Portfolio web-59","height":195});
															thumbnails[9169887] = clik.newPhoto({"id":9169887,"src":"Tony_Portfolio_web-60_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169887.html","width":130,"caption":"Tony Portfolio web-60","height":92});
															thumbnails[9169888] = clik.newPhoto({"id":9169888,"src":"Tony-Portfolio-web-1_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169888.html","width":130,"caption":"Tony-Portfolio-web-1","height":195});
															thumbnails[9169890] = clik.newPhoto({"id":9169890,"src":"Tony-Portfolio-web-2_1_thumb.jpg","galleries_id":268009,"server_id":15,"link":"photo_9169890.html","width":130,"caption":"Tony-Portfolio-web-2","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[334763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Artistic","link":"gallery_334763.html","maxRecords":0.0,"photoIDs":[9003441.0,9003443.0,9003444.0,9003445.0,9003446.0,9003447.0],"skipIndex":0,"section_code":"gallery","featured_images":"9003447,9003446,9003445,9003444,9003443,9003441","id":334763,"singleSection":false});				  						galleries[342181] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children and Bumps to babies","link":"gallery_342181.html","maxRecords":0.0,"photoIDs":[7501512.0,3752286.0,3751906.0,4341962.0,5722151.0,5837886.0,6136497.0,6136500.0,7514452.0,7514454.0,8280241.0,8280245.0,8280247.0,8280249.0,8280279.0,8280314.0,8741329.0,8741332.0,8741334.0,8741337.0,8741338.0,8741339.0,9084354.0,9084356.0,9084361.0,9121382.0,9121384.0,9121385.0,9121386.0,9121387.0,9121388.0,9121389.0,9121390.0,9121391.0],"skipIndex":0,"section_code":"gallery","featured_images":8280241.0,"id":342181,"singleSection":false});				  						galleries[228956] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pet Portraits","link":"gallery_228956.html","maxRecords":0.0,"photoIDs":[7715276.0,6894043.0,3751849.0,6000006.0,3752445.0,3727446.0,5808775.0,5837811.0,5899594.0,8300244.0],"skipIndex":0,"section_code":"gallery","featured_images":"8300244,7715276,6894043,6000006,5899594,5837811,5808775,3752445,3751849,3727446","id":228956,"singleSection":false});				  						galleries[374177] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Offers","link":"gallery_374177.html","maxRecords":0.0,"photoIDs":[6894815.0],"skipIndex":0,"section_code":"gallery","featured_images":6894815.0,"id":374177,"singleSection":false});				  						galleries[268009] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings & engagement","link":"gallery_268009.html","maxRecords":0.0,"photoIDs":[8382986.0,7569936.0,6309813.0,4646143.0,4646153.0,4646157.0,6309823.0,4646141.0,4646183.0,4646254.0,4646318.0,4648273.0,7680785.0,7680786.0,7680787.0,7680788.0,7680789.0,7680790.0,7680791.0,7680792.0,8280255.0,8280272.0,8280321.0,8280329.0,9169806.0,9169808.0,9169809.0,9169810.0,9169811.0,9169812.0,9169814.0,9169816.0,9169817.0,9169818.0,9169820.0,9169822.0,9169823.0,9169826.0,9169828.0,9169829.0,9169831.0,9169832.0,9169833.0,9169835.0,9169836.0,9169838.0,9169839.0,9169840.0,9169842.0,9169843.0,9169844.0,9169845.0,9169846.0,9169848.0,9169849.0,9169850.0,9169852.0,9169853.0,9169854.0,9169856.0,9169858.0,9169859.0,9169860.0,9169862.0,9169863.0,9169864.0,9169865.0,9169866.0,9169868.0,9169869.0,9169870.0,9169871.0,9169873.0,9169874.0,9169875.0,9169876.0,9169877.0,9169879.0,9169880.0,9169881.0,9169882.0,9169884.0,9169886.0,9169887.0,9169888.0,9169890.0],"skipIndex":0,"section_code":"gallery","featured_images":8280255.0,"id":268009,"singleSection":false});				  						galleries[222183] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Posed Portraits","link":"gallery_222183.html","maxRecords":0.0,"photoIDs":[7501473.0,6905381.0,6894030.0,6894033.0,6894034.0,6894036.0,6894040.0,6894041.0,6894044.0,6894046.0,6833978.0,6833989.0,6833998.0,6834004.0,6174286.0,6174297.0,5948666.0,5715306.0,3726419.0,5711021.0,5624003.0,5628397.0,4646385.0,4111847.0,4111862.0,4112116.0,3729673.0,3729693.0,3746085.0,3637069.0,3767050.0,3726879.0,4341959.0,4646372.0,4646446.0,5624042.0,5631925.0,5714998.0,5715295.0,5722112.0,5837799.0,5837815.0,6100422.0,6100426.0,6834006.0,8280243.0,8280252.0,8280339.0,8280342.0,8280348.0,8280663.0,8280851.0,8741377.0],"skipIndex":0,"section_code":"gallery","featured_images":8280243.0,"id":222183,"singleSection":false});				  						galleries[227618] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Natural Portraits","link":"gallery_227618.html","maxRecords":0.0,"photoIDs":[8383074.0,8382993.0,8383002.0,8383008.0,8383065.0,7767255.0,3729715.0,3752422.0,3729532.0,3729566.0,3729527.0],"skipIndex":0,"section_code":"gallery","featured_images":"8383074,8383065,8383008,8383002,8382993,7767255,3752422,3729715,3729566,3729532","id":227618,"singleSection":false});				  						galleries[227594] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General","link":"gallery_227594.html","maxRecords":0.0,"photoIDs":[7780026.0,7552589.0,5624066.0,3767047.0,3767022.0,3740284.0,3752384.0,7780021.0,3752299.0,3752472.0,7644621.0,8299800.0,8741364.0,8741373.0,8741383.0,8741484.0,8741510.0,9084340.0,9084342.0],"skipIndex":0,"section_code":"gallery","featured_images":3740284.0,"id":227594,"singleSection":false});				  						galleries[222184] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_222184.html","maxRecords":0.0,"photoIDs":[4341974.0,3766257.0,3915841.0,3915852.0,3915864.0],"skipIndex":0,"section_code":"gallery","featured_images":3915841.0,"id":222184,"singleSection":false});				  						galleries[227593] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Macro Work","link":"gallery_227593.html","maxRecords":0.0,"photoIDs":[4341966.0,4112305.0,3729717.0,4112675.0,3729716.0,4112650.0,4112660.0,3767058.0,4112314.0,4341983.0],"skipIndex":0,"section_code":"gallery","featured_images":4112675.0,"id":227593,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8741338,8741329,8382986,8280314,8280255,8280249,8280247,8280243,8280241,7680786,7680785,7501473,6834004,6136497,4646157,3727446,9169809,9169814,9169820,9169873';
imageSets[2] = '8280255,8280243,8280241,4112675,3915841,3740284';
imageSets[3] = '6894811';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chilmark/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chilmark/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chilmark/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 = 'A1photographic.com: ' + 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>Order this print:</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.item_price !== '') {
											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="CHILMARK">';
			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;
	}
}

			

