window.thumbnails = {};
															thumbnails[4936127] = clik.newPhoto({"id":4936127,"src":"small_about_me_pic_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":215});
															thumbnails[4942969] = clik.newPhoto({"id":4942969,"src":"MY_WORK_SMALL_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":92});
															thumbnails[4943761] = clik.newPhoto({"id":4943761,"src":"TELEPHONE_FLAT_SMALLER12_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":24});
															thumbnails[5214369] = clik.newPhoto({"id":5214369,"src":"spring_flattened_poster_CLIK1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":92});
															thumbnails[5274096] = clik.newPhoto({"id":5274096,"src":"coventry_telegtraph_large_montage_1mb_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":184});
															thumbnails[5873185] = clik.newPhoto({"id":5873185,"src":"crimes_of_a_labrador_small_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":114});
															thumbnails[5873376] = clik.newPhoto({"id":5873376,"src":"flat_rube_prisioner_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":140});
															thumbnails[6485862] = clik.newPhoto({"id":6485862,"src":"DARK_MICKEY_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"MISSING MICKEY","height":87});
															thumbnails[6485864] = clik.newPhoto({"id":6485864,"src":"PIN-GONE_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"PING-GONE","height":153});
															thumbnails[6485865] = clik.newPhoto({"id":6485865,"src":"HERE_LIES_THE_REMAINS_OF_SCOOBY_DOO_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"HERE LIES THE REMAINS OF SCOOBY DOO","height":83});
															thumbnails[6485867] = clik.newPhoto({"id":6485867,"src":"GROOMING_RUBY_STYLE_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"GROOMING RUBY STYLE","height":73});
															thumbnails[6485869] = clik.newPhoto({"id":6485869,"src":"Legless_Ted_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"LEGLESS TED<br>\r\n","height":95});
															thumbnails[6485870] = clik.newPhoto({"id":6485870,"src":"GNOME_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"HEADLESS GNOME","height":151});
															thumbnails[6485871] = clik.newPhoto({"id":6485871,"src":"FISH_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"GUTTED FISH","height":104});
															thumbnails[6485948] = clik.newPhoto({"id":6485948,"src":"DINO_3_LEGGED_DINOSAUR_CLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":94});
															thumbnails[6485951] = clik.newPhoto({"id":6485951,"src":"dogheadless_clik_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":91});
															thumbnails[4783462] = clik.newPhoto({"id":4783462,"src":"GREYHOUND_6_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783462.html","width":130,"caption":"","height":81});
															thumbnails[4783763] = clik.newPhoto({"id":4783763,"src":"GREYHOUND_7_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783763.html","width":130,"caption":"","height":116});
															thumbnails[4783780] = clik.newPhoto({"id":4783780,"src":"GREYHOUND_14_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783780.html","width":130,"caption":"","height":195});
															thumbnails[4783898] = clik.newPhoto({"id":4783898,"src":"GREYHOUND_101_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783898.html","width":130,"caption":"","height":195});
															thumbnails[4783914] = clik.newPhoto({"id":4783914,"src":"GREYHOUND_1_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783914.html","width":130,"caption":"","height":195});
															thumbnails[4783926] = clik.newPhoto({"id":4783926,"src":"GREYHOUND_17_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783926.html","width":130,"caption":"","height":195});
															thumbnails[4783936] = clik.newPhoto({"id":4783936,"src":"GREYHOUND_less_yellow_chin__16_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783936.html","width":130,"caption":"","height":79});
															thumbnails[4942392] = clik.newPhoto({"id":4942392,"src":"ruby_smelling_small_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_4942392.html","width":130,"caption":"","height":128});
															thumbnails[5364258] = clik.newPhoto({"id":5364258,"src":"ruby_snow_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_5364258.html","width":130,"caption":"","height":195});
															thumbnails[5873235] = clik.newPhoto({"id":5873235,"src":"2_small_thumb.jpg","galleries_id":331880,"server_id":18,"link":"photo_5873235.html","width":130,"caption":"","height":87});
															thumbnails[5873251] = clik.newPhoto({"id":5873251,"src":"3_small_thumb.jpg","galleries_id":331880,"server_id":18,"link":"photo_5873251.html","width":130,"caption":"","height":111});
															thumbnails[5873319] = clik.newPhoto({"id":5873319,"src":"4_small_thumb.jpg","galleries_id":331880,"server_id":18,"link":"photo_5873319.html","width":130,"caption":"","height":87});
															thumbnails[5873342] = clik.newPhoto({"id":5873342,"src":"5_small_thumb.jpg","galleries_id":331880,"server_id":18,"link":"photo_5873342.html","width":130,"caption":"","height":87});
															thumbnails[7208746] = clik.newPhoto({"id":7208746,"src":"will_cheeky_thumb.jpg","galleries_id":417627,"server_id":18,"link":"photo_7208746.html","width":130,"caption":"","height":157});
															thumbnails[7208747] = clik.newPhoto({"id":7208747,"src":"ruby_card_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_7208747.html","width":130,"caption":"","height":157});
															thumbnails[4782790] = clik.newPhoto({"id":4782790,"src":"dog_photographer_of_the_year_entry_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4782790.html","width":130,"caption":"","height":77});
															thumbnails[4783940] = clik.newPhoto({"id":4783940,"src":"GREYOHOUND_4_thumb.jpg","galleries_id":273767,"server_id":18,"link":"photo_4783940.html","width":130,"caption":"","height":89});
															thumbnails[5873232] = clik.newPhoto({"id":5873232,"src":"1_small_thumb.jpg","galleries_id":331880,"server_id":18,"link":"photo_5873232.html","width":130,"caption":"","height":87});
															thumbnails[6857761] = clik.newPhoto({"id":6857761,"src":"DENZIL_124_smaller_thumb.jpg","galleries_id":372295,"server_id":18,"link":"photo_6857761.html","width":130,"caption":"","height":87});
															thumbnails[4943235] = clik.newPhoto({"id":4943235,"src":"12_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943235.html","width":130,"caption":"","height":163});
															thumbnails[4943248] = clik.newPhoto({"id":4943248,"src":"13_thumb.jpg","galleries_id":281179,"server_id":18,"link":"photo_4943248.html","width":130,"caption":"","height":96});
															thumbnails[4943259] = clik.newPhoto({"id":4943259,"src":"14_thumb.jpg","galleries_id":281180,"server_id":18,"link":"photo_4943259.html","width":130,"caption":"","height":173});
															thumbnails[4943264] = clik.newPhoto({"id":4943264,"src":"15_thumb.jpg","galleries_id":281182,"server_id":18,"link":"photo_4943264.html","width":130,"caption":"","height":104});
															thumbnails[4943271] = clik.newPhoto({"id":4943271,"src":"16_thumb.jpg","galleries_id":281178,"server_id":18,"link":"photo_4943271.html","width":130,"caption":"","height":87});
															thumbnails[4783979] = clik.newPhoto({"id":4783979,"src":"WHITE_CAT_1_thumb.jpg","galleries_id":417627,"server_id":18,"link":"photo_4783979.html","width":130,"caption":"","height":256});
															thumbnails[4943137] = clik.newPhoto({"id":4943137,"src":"21_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943137.html","width":130,"caption":"","height":219});
															thumbnails[4943200] = clik.newPhoto({"id":4943200,"src":"11_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_4943200.html","width":130,"caption":"","height":153});
															thumbnails[4943236] = clik.newPhoto({"id":4943236,"src":"23_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943236.html","width":130,"caption":"","height":87});
															thumbnails[4943250] = clik.newPhoto({"id":4943250,"src":"24_thumb.jpg","galleries_id":281179,"server_id":18,"link":"photo_4943250.html","width":130,"caption":"","height":182});
															thumbnails[4943262] = clik.newPhoto({"id":4943262,"src":"25_thumb.jpg","galleries_id":281180,"server_id":18,"link":"photo_4943262.html","width":130,"caption":"","height":182});
															thumbnails[4943266] = clik.newPhoto({"id":4943266,"src":"26_thumb.jpg","galleries_id":281182,"server_id":18,"link":"photo_4943266.html","width":130,"caption":"","height":144});
															thumbnails[4943273] = clik.newPhoto({"id":4943273,"src":"27_thumb.jpg","galleries_id":281178,"server_id":18,"link":"photo_4943273.html","width":130,"caption":"","height":92});
															thumbnails[4943202] = clik.newPhoto({"id":4943202,"src":"22_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_4943202.html","width":130,"caption":"","height":90});
															thumbnails[4783980] = clik.newPhoto({"id":4783980,"src":"WHITE_CAT_2_thumb.jpg","galleries_id":417627,"server_id":18,"link":"photo_4783980.html","width":130,"caption":"","height":92});
															thumbnails[4943145] = clik.newPhoto({"id":4943145,"src":"3_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943145.html","width":130,"caption":"","height":132});
															thumbnails[4943207] = clik.newPhoto({"id":4943207,"src":"31_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_4943207.html","width":130,"caption":"","height":193});
															thumbnails[4943238] = clik.newPhoto({"id":4943238,"src":"32_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943238.html","width":130,"caption":"","height":87});
															thumbnails[4943251] = clik.newPhoto({"id":4943251,"src":"33_thumb.jpg","galleries_id":281179,"server_id":18,"link":"photo_4943251.html","width":130,"caption":"","height":196});
															thumbnails[4943263] = clik.newPhoto({"id":4943263,"src":"34_thumb.jpg","galleries_id":281180,"server_id":18,"link":"photo_4943263.html","width":130,"caption":"","height":195});
															thumbnails[4943268] = clik.newPhoto({"id":4943268,"src":"35_thumb.jpg","galleries_id":281182,"server_id":18,"link":"photo_4943268.html","width":130,"caption":"","height":100});
															thumbnails[4943274] = clik.newPhoto({"id":4943274,"src":"36_thumb.jpg","galleries_id":281178,"server_id":18,"link":"photo_4943274.html","width":130,"caption":"","height":87});
															thumbnails[4948530] = clik.newPhoto({"id":4948530,"src":"17_thumb.jpg","galleries_id":417627,"server_id":18,"link":"photo_4948530.html","width":130,"caption":"","height":221});
															thumbnails[4943147] = clik.newPhoto({"id":4943147,"src":"4_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943147.html","width":130,"caption":"","height":173});
															thumbnails[4943209] = clik.newPhoto({"id":4943209,"src":"41_thumb.jpg","galleries_id":281177,"server_id":18,"link":"photo_4943209.html","width":130,"caption":"","height":159});
															thumbnails[4943241] = clik.newPhoto({"id":4943241,"src":"42_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943241.html","width":130,"caption":"","height":104});
															thumbnails[4943269] = clik.newPhoto({"id":4943269,"src":"43_thumb.jpg","galleries_id":281182,"server_id":18,"link":"photo_4943269.html","width":130,"caption":"","height":86});
															thumbnails[4943275] = clik.newPhoto({"id":4943275,"src":"44_thumb.jpg","galleries_id":281178,"server_id":18,"link":"photo_4943275.html","width":130,"caption":"","height":87});
															thumbnails[4948535] = clik.newPhoto({"id":4948535,"src":"28_thumb.jpg","galleries_id":273808,"server_id":18,"link":"photo_4948535.html","width":130,"caption":"","height":184});
															thumbnails[4943186] = clik.newPhoto({"id":4943186,"src":"5_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943186.html","width":130,"caption":"","height":182});
															thumbnails[4943242] = clik.newPhoto({"id":4943242,"src":"51_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943242.html","width":130,"caption":"","height":87});
															thumbnails[4943188] = clik.newPhoto({"id":4943188,"src":"6_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943188.html","width":130,"caption":"","height":163});
															thumbnails[4943244] = clik.newPhoto({"id":4943244,"src":"61_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943244.html","width":130,"caption":"","height":87});
															thumbnails[4943191] = clik.newPhoto({"id":4943191,"src":"7_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943191.html","width":130,"caption":"","height":191});
															thumbnails[4943246] = clik.newPhoto({"id":4943246,"src":"71_thumb.jpg","galleries_id":281175,"server_id":18,"link":"photo_4943246.html","width":130,"caption":"","height":163});
															thumbnails[4943194] = clik.newPhoto({"id":4943194,"src":"8_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943194.html","width":130,"caption":"","height":153});
															thumbnails[4943196] = clik.newPhoto({"id":4943196,"src":"9_thumb.jpg","galleries_id":281181,"server_id":18,"link":"photo_4943196.html","width":130,"caption":"","height":162});
															thumbnails[6857837] = clik.newPhoto({"id":6857837,"src":"60406_160484590644248_100000481237096_447263_4058993_n1_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857837.html","width":130,"caption":"","height":199});
															thumbnails[6857842] = clik.newPhoto({"id":6857842,"src":"handy_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857842.html","width":130,"caption":"","height":133});
															thumbnails[6857844] = clik.newPhoto({"id":6857844,"src":"donkey_blackpool_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857844.html","width":130,"caption":"","height":90});
															thumbnails[6857846] = clik.newPhoto({"id":6857846,"src":"donkey_main_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857846.html","width":130,"caption":"","height":91});
															thumbnails[6857847] = clik.newPhoto({"id":6857847,"src":"donkey_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857847.html","width":130,"caption":"","height":133});
															thumbnails[6857848] = clik.newPhoto({"id":6857848,"src":"handy1_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857848.html","width":130,"caption":"","height":133});
															thumbnails[6857851] = clik.newPhoto({"id":6857851,"src":"lamb_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857851.html","width":130,"caption":"","height":101});
															thumbnails[6857853] = clik.newPhoto({"id":6857853,"src":"mamsie_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857853.html","width":130,"caption":"","height":108});
															thumbnails[6857856] = clik.newPhoto({"id":6857856,"src":"pigeon_street_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857856.html","width":130,"caption":"","height":194});
															thumbnails[6857857] = clik.newPhoto({"id":6857857,"src":"sammy_thumb.jpg","galleries_id":372300,"server_id":18,"link":"photo_6857857.html","width":130,"caption":"","height":170});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[417627] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Feline Fun ","link":"gallery_417627.html","maxRecords":0.0,"photoIDs":[7208746.0,4783979.0,4783980.0,4948530.0],"skipIndex":0,"section_code":"gallery","featured_images":"7208746,4783980,4783979","id":417627,"singleSection":false});				  						galleries[281170] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Canine Capers ","link":"gallery_281170.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6857761,5873342,5873319,5873251,5873235,5873232,5364258,4943275,4943274,4943273,4943271,4943269,4943268,4943266,4943264,4943263,4943262,4943259,4943251,4943250,4943248,4943246,4943244,4943242,4943241,4943238,4943236,4943235,4943209,4943207,4943202,4943200,4943196,4943194,4943191,4943188,4943186,4943147,4943145,4943137,4942392,4783940,4783936,4783926,4783914,4783898,4783780,4783763,4783462,4782790","id":281170,"singleSection":false});				  						galleries[273808] = clik.newGallery({"parentGallery":281171,"usePopups":false,"title":"Rowan and Willow","link":"gallery_273808.html","maxRecords":0.0,"photoIDs":[4948535.0],"skipIndex":0,"section_code":"gallery","featured_images":4948535.0,"id":273808,"singleSection":false});				  						galleries[281181] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Jake and Skye","link":"gallery_281181.html","maxRecords":0.0,"photoIDs":[4782790.0,4943137.0,4943145.0,4943147.0,4943186.0,4943188.0,4943191.0,4943194.0,4943196.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943196,4943194,4943191,4943188,4943186,4943147,4943145,4943137,4782790","id":281181,"singleSection":false});				  						galleries[281171] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Feline Fun","link":"gallery_281171.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":4948535.0,"id":281171,"singleSection":false});				  						galleries[273767] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Jo and Twiggy","link":"gallery_273767.html","maxRecords":0.0,"photoIDs":[4783462.0,4783763.0,4783780.0,4783898.0,4783914.0,4783926.0,4783936.0,4783940.0],"skipIndex":0,"section_code":"gallery","featured_images":"4783940,4783936,4783926,4783914,4783898,4783780,4783763,4783462","id":273767,"singleSection":false});				  						galleries[331880] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Teddy McWoof","link":"gallery_331880.html","maxRecords":0.0,"photoIDs":[5873235.0,5873251.0,5873319.0,5873342.0,5873232.0],"skipIndex":0,"section_code":"gallery","featured_images":"5873342,5873319,5873251,5873235,5873232","id":331880,"singleSection":false});				  						galleries[372295] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Denzil the dog","link":"gallery_372295.html","maxRecords":0.0,"photoIDs":[6857761.0],"skipIndex":0,"section_code":"gallery","featured_images":6857761.0,"id":372295,"singleSection":false});				  						galleries[281175] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Kipper and Biscuits ","link":"gallery_281175.html","maxRecords":0.0,"photoIDs":[4943235.0,4943236.0,4943238.0,4943241.0,4943242.0,4943244.0,4943246.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943246,4943244,4943242,4943241,4943238,4943236,4943235","id":281175,"singleSection":false});				  						galleries[281177] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Ruby the Labrador","link":"gallery_281177.html","maxRecords":0.0,"photoIDs":[4942392.0,5364258.0,7208747.0,4943200.0,4943202.0,4943207.0,4943209.0],"skipIndex":0,"section_code":"gallery","featured_images":"5364258,4943209,4943207,4943202,4943200,4942392","id":281177,"singleSection":false});				  						galleries[281179] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Dancer and Kate","link":"gallery_281179.html","maxRecords":0.0,"photoIDs":[4943248.0,4943250.0,4943251.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943251,4943250,4943248","id":281179,"singleSection":false});				  						galleries[372300] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"How Dr Lulittle got her name","link":"section443425.html","maxRecords":0.0,"photoIDs":[6857837.0,6857842.0,6857844.0,6857846.0,6857847.0,6857848.0,6857851.0,6857853.0,6857856.0,6857857.0],"skipIndex":0,"section_code":"section443425","featured_images":"6857857,6857856,6857853,6857851,6857848,6857847,6857846,6857844,6857842,6857837","id":372300,"singleSection":true});				  						galleries[281180] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Zeus and Somer","link":"gallery_281180.html","maxRecords":0.0,"photoIDs":[4943259.0,4943262.0,4943263.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943263,4943262,4943259","id":281180,"singleSection":false});				  						galleries[281182] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Corky, Royston and The Hound dogs","link":"gallery_281182.html","maxRecords":0.0,"photoIDs":[4943264.0,4943266.0,4943268.0,4943269.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943269,4943268,4943266,4943264","id":281182,"singleSection":false});				  						galleries[281178] = clik.newGallery({"parentGallery":281170,"usePopups":false,"title":"Bailey and Cassie","link":"gallery_281178.html","maxRecords":0.0,"photoIDs":[4943271.0,4943273.0,4943274.0,4943275.0],"skipIndex":0,"section_code":"gallery","featured_images":"4943275,4943274,4943273,4943271","id":281178,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[233030] = '7208747,7208746,5873342,5873319,5873251,5873235,5364258,4942392,4783936,4783926,4783914,4783898,4783780,4783763,4783462,6857761,5873232,4783940,4782790,4943271,4943264,4943259,4943248,4943235,4943273,4943266,4943262,4943250,4943236,4943200,4943137,4783979,4943202,4943274,4943268,4943263,4943251,4943238,4943207,4943145,4783980,4948535,4943275,4943269,4943241,4943209,4943147,4943242,4943186,4943244,4943188,4943246,4943191,4943194,4943196';
imageSets[1] = '7208747,7208746,5873342,5873319,5873251,5873235,5364258,4942392,4783936,4783926,4783914,4783898,4783780,4783763,4783462,6857761,5873232,4783940,4782790,4943271,4943264,4943259,4943248,4943235,4943273,4943266,4943262,4943250,4943236,4943200,4943137,4783979,4943202,4943274,4943268,4943263,4943251,4943238,4943207,4943145,4783980,4948535,4943275,4943269,4943241,4943209,4943147,4943242,4943186,4943244,4943188,4943246,4943191,4943194,4943196';
imageSets[2] = '7208746,5873342,5873319,5873251,5873235,5364258,4942392,4783936,4783926,4783914,4783898,4783780,4783763,4783462,6857761,5873232,4783940,4782790,4943271,4943264,4943259,4943248,4943235,4943273,4943266,4943262,4943250,4943236,4943200,4943137,4783979,4943202,4943274,4943268,4943263,4943251,4943238,4943207,4943145,4783980,4948535,4943275,4943269,4943241,4943209,4943147,4943242,4943186,4943244,4943188,4943246,4943191,4943194,4943196';
imageSets[3] = '5873342,5873319,5873251,5873235,5364258,4942392,4783936,4783926,4783914,4783898,4783780,4783763,4783462,6857761,5873232,4783940,4782790,4943271,4943264,4943259,4943248,4943235,4943273,4943266,4943262,4943250,4943236,4943200,4943137,4783979,4943202,4943274,4943268,4943263,4943238,4943207,4943145,4783980,4948535,4943275,4943269,4943241,4943209,4943147,4943242,4943186,4943244,4943188,4943246,4943191,4943194,4943196';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lucydiscodiva/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lucydiscodiva/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 = 'Dr Lulittle Pet 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> &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 !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="lucydiscodiva@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="lucydiscodiva@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

