window.thumbnails = {};
															thumbnails[8936924] = clik.newPhoto({"id":8936924,"src":"Chriss_other_fave_web_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8936924.html","width":106,"caption":"Express Yourself","height":130});
															thumbnails[8936929] = clik.newPhoto({"id":8936929,"src":"_MG_5496_mysite_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8936929.html","width":105,"caption":"Cheeky","height":130});
															thumbnails[8936933] = clik.newPhoto({"id":8936933,"src":"_MG_5481__mysite_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8936933.html","width":130,"caption":"Limelight","height":104});
															thumbnails[8936937] = clik.newPhoto({"id":8936937,"src":"8__mysite_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8936937.html","width":106,"caption":"Posing","height":130});
															thumbnails[8937026] = clik.newPhoto({"id":8937026,"src":"_MG_5458_mysite_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8937026.html","width":104,"caption":"Hoping","height":130});
															thumbnails[8937063] = clik.newPhoto({"id":8937063,"src":"Flying_Without_Wings_mysite_thumb.jpg","galleries_id":470323,"server_id":15,"link":"photo_8937063.html","width":130,"caption":"Flying Without Wings","height":105});
															thumbnails[7958173] = clik.newPhoto({"id":7958173,"src":"_MG_4483_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958173.html","width":130,"caption":"Squeeze","height":104});
															thumbnails[7958094] = clik.newPhoto({"id":7958094,"src":"_MG_4405_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958094.html","width":104,"caption":"Close up and Personal","height":130});
															thumbnails[7958230] = clik.newPhoto({"id":7958230,"src":"_MG_4495_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958230.html","width":106,"caption":"Flicker","height":130});
															thumbnails[7958274] = clik.newPhoto({"id":7958274,"src":"_MG_4505_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958274.html","width":104,"caption":"Face to Face","height":130});
															thumbnails[7958298] = clik.newPhoto({"id":7958298,"src":"_MG_4548_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958298.html","width":105,"caption":"Reach for the Sky","height":130});
															thumbnails[7958320] = clik.newPhoto({"id":7958320,"src":"_MG_4596_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958320.html","width":130,"caption":"Slither","height":104});
															thumbnails[7958341] = clik.newPhoto({"id":7958341,"src":"_MG_4662_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958341.html","width":130,"caption":"Macro Menace","height":106});
															thumbnails[7958383] = clik.newPhoto({"id":7958383,"src":"_MG_4711_2_edited-1_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958383.html","width":130,"caption":"Peruvian Boa Constrictor","height":106});
															thumbnails[6033005] = clik.newPhoto({"id":6033005,"src":"IMG_1851_edited-2_-_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6033005.html","width":130,"caption":"For Sale","height":93});
															thumbnails[6033053] = clik.newPhoto({"id":6033053,"src":"IMG_1862_edited-2_-_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6033053.html","width":130,"caption":"Gorgeous","height":93});
															thumbnails[6033075] = clik.newPhoto({"id":6033075,"src":"IMG_1863_edited-2_-_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6033075.html","width":130,"caption":"Damson Jam","height":87});
															thumbnails[3493263] = clik.newPhoto({"id":3493263,"src":"Skylight copy_thumb.jpg","galleries_id":213729,"server_id":15,"link":"photo_3493263.html","width":130,"caption":"Skylight","height":96});
															thumbnails[3493744] = clik.newPhoto({"id":3493744,"src":"317 cropped_edited-1_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3493744.html","width":130,"caption":"Thinking","height":197});
															thumbnails[3494289] = clik.newPhoto({"id":3494289,"src":"Read my Mind_edited-2 copy_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3494289.html","width":130,"caption":"Read my Mind","height":205});
															thumbnails[3494371] = clik.newPhoto({"id":3494371,"src":"White_edited-2 copy_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_3494371.html","width":130,"caption":"White","height":107});
															thumbnails[3494386] = clik.newPhoto({"id":3494386,"src":"Brushed Chrome Rail_edited-1 copy_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3494386.html","width":130,"caption":"Brushed Chrome","height":97});
															thumbnails[3494470] = clik.newPhoto({"id":3494470,"src":"Descent website_edited-1_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3494470.html","width":130,"caption":"Descent","height":98});
															thumbnails[3494507] = clik.newPhoto({"id":3494507,"src":"Kettles_edited-1 copy_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_3494507.html","width":130,"caption":"Kettles","height":91});
															thumbnails[3494570] = clik.newPhoto({"id":3494570,"src":"Stiletto_edited-1 website copy_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_3494570.html","width":130,"caption":"Found High Heel","height":207});
															thumbnails[3494627] = clik.newPhoto({"id":3494627,"src":"Book and specs 2_edited-1 copy_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_3494627.html","width":130,"caption":"A Good Read","height":97});
															thumbnails[3495131] = clik.newPhoto({"id":3495131,"src":"Industrial Demolition_edited-1 copy_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3495131.html","width":130,"caption":"Demolition","height":92});
															thumbnails[3495216] = clik.newPhoto({"id":3495216,"src":"Dereliction_edited-1_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3495216.html","width":130,"caption":"Dereliction","height":93});
															thumbnails[3495747] = clik.newPhoto({"id":3495747,"src":"Multi Storey copy_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3495747.html","width":130,"caption":"Windows","height":92});
															thumbnails[3517381] = clik.newPhoto({"id":3517381,"src":"Sheffield Steel copy website_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3517381.html","width":87,"caption":"Sheffield Steel","height":130});
															thumbnails[3517399] = clik.newPhoto({"id":3517399,"src":"IMG_0397_edited-2_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3517399.html","width":130,"caption":"3 in a Row","height":83});
															thumbnails[3518430] = clik.newPhoto({"id":3518430,"src":"IMG_0400_edited-2_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3518430.html","width":130,"caption":"Stone Crusher","height":122});
															thumbnails[3534995] = clik.newPhoto({"id":3534995,"src":"IMG_0474_edited-3_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3534995.html","width":130,"caption":"Chris Charlton","height":123});
															thumbnails[3538592] = clik.newPhoto({"id":3538592,"src":"IMG_0468_edited-3_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3538592.html","width":93,"caption":"Disdain","height":130});
															thumbnails[3665681] = clik.newPhoto({"id":3665681,"src":"Abstract_self_portrait_edited-1_website_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_3665681.html","width":130,"caption":"Self Portrait","height":88});
															thumbnails[3705494] = clik.newPhoto({"id":3705494,"src":"H13_Close_up_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3705494.html","width":94,"caption":"Close Up and Personal","height":130});
															thumbnails[3705506] = clik.newPhoto({"id":3705506,"src":"Y6_G_ref__hat__Cig_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3705506.html","width":88,"caption":"Props","height":130});
															thumbnails[3732218] = clik.newPhoto({"id":3732218,"src":"H11__Bear_G_ref_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3732218.html","width":116,"caption":"Harriet and Ted","height":130});
															thumbnails[3924402] = clik.newPhoto({"id":3924402,"src":"IMG_1066_copy_-_web_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3924402.html","width":90,"caption":"A Musician's Soul","height":130});
															thumbnails[5386805] = clik.newPhoto({"id":5386805,"src":"IMG_0616_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_5386805.html","width":87,"caption":"Lulu in repose","height":130});
															thumbnails[5386971] = clik.newPhoto({"id":5386971,"src":"IMG_1492_web_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_5386971.html","width":87,"caption":"Kalju Suur 1928 -","height":130});
															thumbnails[5509713] = clik.newPhoto({"id":5509713,"src":"IMG_1593_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_5509713.html","width":87,"caption":"Lulu close up","height":130});
															thumbnails[6551267] = clik.newPhoto({"id":6551267,"src":"IMG_1867_edited-2_-_mysite_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6551267.html","width":130,"caption":"Right Hand Drive","height":87});
															thumbnails[6552200] = clik.newPhoto({"id":6552200,"src":"IMG_2182_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6552200.html","width":130,"caption":"Devil in the Detail","height":87});
															thumbnails[6696565] = clik.newPhoto({"id":6696565,"src":"Yaya_web_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_6696565.html","width":93,"caption":"Yaya","height":130});
															thumbnails[6737619] = clik.newPhoto({"id":6737619,"src":"Yaya_Moving_edited-1_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_6737619.html","width":96,"caption":"On a Mission","height":130});
															thumbnails[6738288] = clik.newPhoto({"id":6738288,"src":"Yioryo_Special_10x8_edited-1_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_6738288.html","width":105,"caption":"Candid Camera","height":130});
															thumbnails[6739982] = clik.newPhoto({"id":6739982,"src":"IMG_2266_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6739982.html","width":87,"caption":"Little Boy Blue","height":130});
															thumbnails[6739995] = clik.newPhoto({"id":6739995,"src":"IMG_2271_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6739995.html","width":130,"caption":"New Home","height":87});
															thumbnails[7179147] = clik.newPhoto({"id":7179147,"src":"_MG_3079_web_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_7179147.html","width":104,"caption":"Mean and Moody","height":130});
															thumbnails[7196168] = clik.newPhoto({"id":7196168,"src":"Head_and_Neck_web1.jpg","galleries_id":213714,"server_id":15,"link":"photo_7196168.html","width":105,"caption":"Imagine","height":130});
															thumbnails[7291348] = clik.newPhoto({"id":7291348,"src":"_MG_3163_web_mysite_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_7291348.html","width":88,"caption":"Steel Angel","height":130});
															thumbnails[7357404] = clik.newPhoto({"id":7357404,"src":"Angies_Choice2_72_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7357404.html","width":130,"caption":"Snake Charm","height":98});
															thumbnails[7357867] = clik.newPhoto({"id":7357867,"src":"Chriss2_300_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7357867.html","width":130,"caption":"Reflections","height":102});
															thumbnails[7459141] = clik.newPhoto({"id":7459141,"src":"My_website_thumb.jpg","galleries_id":403836,"server_id":15,"link":"photo_7459141.html","width":130,"caption":"Injury Scar","height":87});
															thumbnails[7459159] = clik.newPhoto({"id":7459159,"src":"My_website_2_thumb.jpg","galleries_id":403836,"server_id":15,"link":"photo_7459159.html","width":130,"caption":"Injury Scar 2","height":87});
															thumbnails[7459185] = clik.newPhoto({"id":7459185,"src":"IMG_1946_web_edited-1_thumb.jpg","galleries_id":404454,"server_id":15,"link":"photo_7459185.html","width":130,"caption":"Hands in Marriage","height":104});
															thumbnails[7459235] = clik.newPhoto({"id":7459235,"src":"IMG_1060_edited-1_copy_edited-1_thumb.jpg","galleries_id":404454,"server_id":15,"link":"photo_7459235.html","width":105,"caption":"A Star of the Show","height":130});
															thumbnails[7459261] = clik.newPhoto({"id":7459261,"src":"Victory_edited-1_thumb.jpg","galleries_id":404454,"server_id":15,"link":"photo_7459261.html","width":101,"caption":"Victory","height":130});
															thumbnails[7459306] = clik.newPhoto({"id":7459306,"src":"floral_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7459306.html","width":125,"caption":"Flower Power","height":130});
															thumbnails[7459321] = clik.newPhoto({"id":7459321,"src":"floral_mysite_2_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7459321.html","width":130,"caption":"Say it with Flowers","height":95});
															thumbnails[7459340] = clik.newPhoto({"id":7459340,"src":"Congratulations_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7459340.html","width":87,"caption":"Congratulations","height":130});
															thumbnails[7466845] = clik.newPhoto({"id":7466845,"src":"IMG_3443_web_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7466845.html","width":91,"caption":"Take a Break","height":130});
															thumbnails[7472972] = clik.newPhoto({"id":7472972,"src":"Pestle_and_mortar_web_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7472972.html","width":87,"caption":"Daily Grind","height":130});
															thumbnails[7473534] = clik.newPhoto({"id":7473534,"src":"Pythagoraen_Cup_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7473534.html","width":104,"caption":"Souvenir","height":130});
															thumbnails[7508435] = clik.newPhoto({"id":7508435,"src":"_MG_3582_retry_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7508435.html","width":103,"caption":"Memorial Masons","height":130});
															thumbnails[7509528] = clik.newPhoto({"id":7509528,"src":"_MG_3541_retry_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7509528.html","width":105,"caption":"Memorial Masons","height":130});
															thumbnails[7540941] = clik.newPhoto({"id":7540941,"src":"Product_Lighting_mysite_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_7540941.html","width":105,"caption":"Decanter","height":130});
															thumbnails[7540971] = clik.newPhoto({"id":7540971,"src":"Best_Mixed_Open_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7540971.html","width":130,"caption":"Best Mix","height":105});
															thumbnails[7772032] = clik.newPhoto({"id":7772032,"src":"Retro_Rivals_V2_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7772032.html","width":130,"caption":"Retro Rivals","height":104});
															thumbnails[7826494] = clik.newPhoto({"id":7826494,"src":"advert1_edited-2_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7826494.html","width":130,"caption":"Van Jamboree","height":108});
															thumbnails[7958138] = clik.newPhoto({"id":7958138,"src":"_MG_4469_edited-2_thumb.jpg","galleries_id":428393,"server_id":15,"link":"photo_7958138.html","width":106,"caption":"Tongue Twister","height":130});
															thumbnails[7958604] = clik.newPhoto({"id":7958604,"src":"_MG_4414_edited-3_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_7958604.html","width":130,"caption":"Eye to Eye","height":106});
															thumbnails[6552177] = clik.newPhoto({"id":6552177,"src":"IMG_2173_copy_edited-1_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_6552177.html","width":130,"caption":"Dragon's Breath","height":93});
															thumbnails[7358190] = clik.newPhoto({"id":7358190,"src":"Chriss_300_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7358190.html","width":130,"caption":"Charms","height":87});
															thumbnails[7358090] = clik.newPhoto({"id":7358090,"src":"Chris5_72_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7358090.html","width":130,"caption":"Seamless","height":98});
															thumbnails[7358227] = clik.newPhoto({"id":7358227,"src":"Desert_Cactus_Pendant_-_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7358227.html","width":92,"caption":"Desert Cactus","height":130});
															thumbnails[7179097] = clik.newPhoto({"id":7179097,"src":"_MG_3042_pp_web_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_7179097.html","width":103,"caption":"Caroline","height":130});
															thumbnails[7100765] = clik.newPhoto({"id":7100765,"src":"Christmas_Robin_web_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7100765.html","width":130,"caption":" Christmas Robin","height":104});
															thumbnails[6737482] = clik.newPhoto({"id":6737482,"src":"Yioryo_10x8_edited-1_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_6737482.html","width":104,"caption":"The Strategist","height":130});
															thumbnails[7540964] = clik.newPhoto({"id":7540964,"src":"Wild_Bird_Salad_mysite_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_7540964.html","width":130,"caption":"Wild Bird Salad","height":104});
															thumbnails[6524922] = clik.newPhoto({"id":6524922,"src":"_MG_1942_mywebsite_thumb.jpg","galleries_id":403691,"server_id":15,"link":"photo_6524922.html","width":130,"caption":"Normandy Skies","height":87});
															thumbnails[6739979] = clik.newPhoto({"id":6739979,"src":"IMG_2261_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6739979.html","width":87,"caption":"Nappy Cake","height":130});
															thumbnails[3518398] = clik.newPhoto({"id":3518398,"src":"Thingy_thumb.jpg","galleries_id":213732,"server_id":15,"link":"photo_3518398.html","width":81,"caption":"Whirlygigthingumajig","height":130});
															thumbnails[7291340] = clik.newPhoto({"id":7291340,"src":"_MG_3178_web_mysite_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_7291340.html","width":105,"caption":"Thrupence","height":130});
															thumbnails[6516327] = clik.newPhoto({"id":6516327,"src":"_MG_1985_web_thumb.jpg","galleries_id":403691,"server_id":15,"link":"photo_6516327.html","width":99,"caption":"The Last Post","height":130});
															thumbnails[3493464] = clik.newPhoto({"id":3493464,"src":"Classic Vignette_edited-1_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3493464.html","width":130,"caption":"Blurred Vignette","height":164});
															thumbnails[3494457] = clik.newPhoto({"id":3494457,"src":"Arcadia website_edited-1_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3494457.html","width":130,"caption":"Arcadia","height":165});
															thumbnails[6740129] = clik.newPhoto({"id":6740129,"src":"photo_11_my_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_6740129.html","width":91,"caption":"A Concept of Self","height":130});
															thumbnails[3495822] = clik.newPhoto({"id":3495822,"src":"Moored up for Winter_edited-3 copy_thumb.jpg","galleries_id":403691,"server_id":15,"link":"photo_3495822.html","width":130,"caption":"Moored for Winter","height":89});
															thumbnails[5405415] = clik.newPhoto({"id":5405415,"src":"IMG_0799_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_5405415.html","width":95,"caption":"Forbidden not Forgotten","height":130});
															thumbnails[6516174] = clik.newPhoto({"id":6516174,"src":"_MG_1954_web_thumb.jpg","galleries_id":213729,"server_id":15,"link":"photo_6516174.html","width":130,"caption":"Wheat Fields of Normandy","height":87});
															thumbnails[6238038] = clik.newPhoto({"id":6238038,"src":"IMG_1872_ed_2_edited-3_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6238038.html","width":130,"caption":"Standing out from the Crowd","height":91});
															thumbnails[3495999] = clik.newPhoto({"id":3495999,"src":"The Lake District copy_thumb.jpg","galleries_id":403691,"server_id":15,"link":"photo_3495999.html","width":130,"caption":"Boats in the Lakes","height":88});
															thumbnails[3493196] = clik.newPhoto({"id":3493196,"src":"The Beauty of Vandalism website_edited-1_thumb.jpg","galleries_id":213729,"server_id":15,"link":"photo_3493196.html","width":130,"caption":"The Beauty of Vandalism","height":98});
															thumbnails[3665677] = clik.newPhoto({"id":3665677,"src":"Trevor_2_edited-1_for_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3665677.html","width":91,"caption":"Character","height":130});
															thumbnails[3495792] = clik.newPhoto({"id":3495792,"src":"Alnwick Castle Treehouse_edited-1 copy_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3495792.html","width":130,"caption":"Alnwick Castle Treehouse","height":88});
															thumbnails[3517411] = clik.newPhoto({"id":3517411,"src":"IMG_0435_edited-2_thumb.jpg","galleries_id":213728,"server_id":15,"link":"photo_3517411.html","width":130,"caption":"Looking Up","height":87});
															thumbnails[3493293] = clik.newPhoto({"id":3493293,"src":"Weathered Rock_edited-2 copy_thumb.jpg","galleries_id":213729,"server_id":15,"link":"photo_3493293.html","width":130,"caption":"Weathered Rock","height":89});
															thumbnails[3705459] = clik.newPhoto({"id":3705459,"src":"Y_Thinking_outside_with_G_Ref_website_thumb.jpg","galleries_id":213714,"server_id":15,"link":"photo_3705459.html","width":120,"caption":"Reflection","height":130});
															thumbnails[6516260] = clik.newPhoto({"id":6516260,"src":"_MG_1969_web_thumb.jpg","galleries_id":213731,"server_id":15,"link":"photo_6516260.html","width":130,"caption":"Les Braves","height":87});
															thumbnails[6551731] = clik.newPhoto({"id":6551731,"src":"IMG_2177_edited-1_thumb.jpg","galleries_id":367426,"server_id":15,"link":"photo_6551731.html","width":125,"caption":"Take Me Home","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[470323] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children and Infants","link":"gallery_470323.html","maxRecords":0.0,"photoIDs":[8936924.0,8936929.0,8936933.0,8936937.0,8937026.0,8937063.0],"skipIndex":0,"section_code":"gallery","featured_images":"8937063,8937026,8936937,8936933,8936929,8936924","id":470323,"singleSection":false});				  						galleries[428393] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Reptiles","link":"gallery_428393.html","maxRecords":0.0,"photoIDs":[7958173.0,7958094.0,7958230.0,7958274.0,7958298.0,7958320.0,7958341.0,7958383.0,7958138.0],"skipIndex":0,"section_code":"gallery","featured_images":"7958383,7958341,7958320,7958298,7958274,7958230,7958173,7958138,7958094","id":428393,"singleSection":false});				  						galleries[367426] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_367426.html","maxRecords":0.0,"photoIDs":[6033005.0,6033053.0,6033075.0,6551267.0,6552200.0,6739982.0,6739995.0,7357404.0,7357867.0,7459306.0,7459321.0,7459340.0,7466845.0,7472972.0,7473534.0,7508435.0,7509528.0,7540971.0,7772032.0,7826494.0,7358190.0,7358090.0,7358227.0,7100765.0,7540964.0,6739979.0,6238038.0,6551731.0],"skipIndex":0,"section_code":"gallery","featured_images":"7357867,6238038","id":367426,"singleSection":false});				  						galleries[213714] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_213714.html","maxRecords":0.0,"photoIDs":[3493744.0,3494289.0,3534995.0,3538592.0,3705494.0,3705506.0,3732218.0,3924402.0,5386805.0,5386971.0,5509713.0,6696565.0,6737619.0,6738288.0,7179147.0,7196168.0,7179097.0,6737482.0,3493464.0,6740129.0,5405415.0,3665677.0,3705459.0],"skipIndex":0,"section_code":"gallery","featured_images":"7179147,7179097","id":213714,"singleSection":false});				  						galleries[403836] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Personal Injury ","link":"gallery_403836.html","maxRecords":0.0,"photoIDs":[7459141.0,7459159.0],"skipIndex":0,"section_code":"gallery","featured_images":"7459159,7459141","id":403836,"singleSection":false});				  						galleries[213729] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_213729.html","maxRecords":0.0,"photoIDs":[3493263.0,6516174.0,3493196.0,3493293.0],"skipIndex":0,"section_code":"gallery","featured_images":"3493293,3493263,3493196","id":213729,"singleSection":false});				  						galleries[213732] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Industrial","link":"gallery_213732.html","maxRecords":0.0,"photoIDs":[3495131.0,3495216.0,3517381.0,3517399.0,3518430.0,3518398.0],"skipIndex":0,"section_code":"gallery","featured_images":3517381.0,"id":213732,"singleSection":false});				  						galleries[213728] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Built Environment","link":"gallery_213728.html","maxRecords":0.0,"photoIDs":[3494386.0,3494470.0,3495747.0,3494457.0,3495792.0,3517411.0],"skipIndex":0,"section_code":"gallery","featured_images":"3517411,3494386","id":213728,"singleSection":false});				  						galleries[403691] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mood","link":"gallery_403691.html","maxRecords":0.0,"photoIDs":[6524922.0,6516327.0,3495822.0,3495999.0],"skipIndex":0,"section_code":"gallery","featured_images":6524922.0,"id":403691,"singleSection":false});				  						galleries[213731] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"gallery_213731.html","maxRecords":0.0,"photoIDs":[3494371.0,3494507.0,3494570.0,3494627.0,3665681.0,7291348.0,7540941.0,7958604.0,6552177.0,7291340.0,6516260.0],"skipIndex":0,"section_code":"gallery","featured_images":"7958604,7540941,7291348,7291340,6552177,6516260,3665681,3494627,3494570,3494507","id":213731,"singleSection":false});				  						galleries[404454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Event","link":"gallery_404454.html","maxRecords":0.0,"photoIDs":[7459185.0,7459235.0,7459261.0],"skipIndex":0,"section_code":"gallery","featured_images":"7459261,7459185","id":404454,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8936924,3494457';
imageSets[2] = '7459261,7459185,7357867,7179147,3517381,3494386,3493263,7179097,6524922,6238038,3493196,3517411,3493293';
imageSets[3] = '3924402,6740129';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrischarlton/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrischarlton/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 = 'ARTISAN IMAGE COMMERCIAL and PERSONAL PHOTOGRAPHY : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

