window.thumbnails = {};
															thumbnails[3539641] = clik.newPhoto({"id":3539641,"src":"eastwell_clikpic_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_3539641.html","width":130,"caption":"Eastwell Towers","height":88});
															thumbnails[3476631] = clik.newPhoto({"id":3476631,"src":"lighthouse 1961_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_3476631.html","width":130,"caption":"Dungeness Lighthouse","height":195});
															thumbnails[1075385] = clik.newPhoto({"id":1075385,"src":"RH&DR Railway_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_1075385.html","width":130,"caption":"RH&D Railway","height":91});
															thumbnails[3098112] = clik.newPhoto({"id":3098112,"src":"web use only_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_3098112.html","width":130,"caption":"Winter","height":87});
															thumbnails[3896202] = clik.newPhoto({"id":3896202,"src":"Huts_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_3896202.html","width":130,"caption":"Huts","height":88});
															thumbnails[4422503] = clik.newPhoto({"id":4422503,"src":"Wheat_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_4422503.html","width":130,"caption":"Wheat","height":87});
															thumbnails[4599246] = clik.newPhoto({"id":4599246,"src":"Plastic_Fruit__thumb.jpg","galleries_id":307920,"server_id":1,"link":"photo_4599246.html","width":130,"caption":"Berries","height":104});
															thumbnails[4695702] = clik.newPhoto({"id":4695702,"src":"Copy_of_Blue_Lagoon_thumb_DB55E32D-24E8-5EC4-4F76445D8C243B6C.jpg","galleries_id":80119,"server_id":1,"link":"photo_4695702.html","width":210,"caption":"Blue Lagoon","height":143});
															thumbnails[4700310] = clik.newPhoto({"id":4700310,"src":"Old_Harry_Rocks_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_4700310.html","width":130,"caption":"Old Harry Rocks","height":87});
															thumbnails[4724593] = clik.newPhoto({"id":4724593,"src":"Posts_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_4724593.html","width":130,"caption":"Posts","height":184});
															thumbnails[4725116] = clik.newPhoto({"id":4725116,"src":"vinyard_002_thumb.jpg","galleries_id":307920,"server_id":1,"link":"photo_4725116.html","width":130,"caption":"Grapes","height":87});
															thumbnails[4731546] = clik.newPhoto({"id":4731546,"src":"boats_swanage_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_4731546.html","width":130,"caption":"Beached","height":87});
															thumbnails[4791335] = clik.newPhoto({"id":4791335,"src":"Copy_of_Dungeness_015_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_4791335.html","width":130,"caption":"Samson ","height":90});
															thumbnails[4815542] = clik.newPhoto({"id":4815542,"src":"Copy_of_Whitstable_2_thumb.jpg","galleries_id":476189,"server_id":1,"link":"photo_4815542.html","width":130,"caption":"Whitstable after Dark","height":92});
															thumbnails[4877962] = clik.newPhoto({"id":4877962,"src":"River_Len_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_4877962.html","width":130,"caption":"River Len","height":87});
															thumbnails[5034374] = clik.newPhoto({"id":5034374,"src":"Autumn_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_5034374.html","width":130,"caption":"Autumn","height":87});
															thumbnails[5052192] = clik.newPhoto({"id":5052192,"src":"low_res_copy1_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5052192.html","width":130,"caption":"Broadstairs","height":92});
															thumbnails[5364048] = clik.newPhoto({"id":5364048,"src":"webbCopy_of_Jez_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_5364048.html","width":130,"caption":"Winter in the Park","height":92});
															thumbnails[5364551] = clik.newPhoto({"id":5364551,"src":"Copy_of_Snow_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_5364551.html","width":130,"caption":"Snow on the Downs","height":87});
															thumbnails[5415868] = clik.newPhoto({"id":5415868,"src":"Copy_of_H_bay_024_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5415868.html","width":130,"caption":"Herne Bay Harbour","height":87});
															thumbnails[5444211] = clik.newPhoto({"id":5444211,"src":"2010__Rural_Kent_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_5444211.html","width":130,"caption":"Winter in Rural Kent","height":92});
															thumbnails[5444219] = clik.newPhoto({"id":5444219,"src":"20_Fruit__Veg_thumb.jpg","galleries_id":307920,"server_id":1,"link":"photo_5444219.html","width":130,"caption":"Fresh Vegetables","height":184});
															thumbnails[5444299] = clik.newPhoto({"id":5444299,"src":"20_Dungeness_Albumen_finish_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_5444299.html","width":130,"caption":"Days Gone Bye","height":184});
															thumbnails[5477497] = clik.newPhoto({"id":5477497,"src":"CWEB2_Bison_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_5477497.html","width":130,"caption":"Bison","height":87});
															thumbnails[5495492] = clik.newPhoto({"id":5495492,"src":"Sheep_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_5495492.html","width":130,"caption":"Sheep,Snow,Sunset.","height":88});
															thumbnails[5628154] = clik.newPhoto({"id":5628154,"src":"Copy_of_customs_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5628154.html","width":130,"caption":"Vigilant","height":87});
															thumbnails[5628162] = clik.newPhoto({"id":5628162,"src":"Copy_of_Copy_of_Image1__thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5628162.html","width":130,"caption":"Up the Creek","height":182});
															thumbnails[5628336] = clik.newPhoto({"id":5628336,"src":"Copy_of_ChallockJeremy_Sagekca2_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_5628336.html","width":130,"caption":"Challock","height":87});
															thumbnails[5697928] = clik.newPhoto({"id":5697928,"src":"Copy_of_Crayons_015_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_5697928.html","width":130,"caption":"Crayons","height":86});
															thumbnails[5884453] = clik.newPhoto({"id":5884453,"src":"Copy_of_Copy_of_013_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_5884453.html","width":130,"caption":"Wild Cuckooflower","height":195});
															thumbnails[5903172] = clik.newPhoto({"id":5903172,"src":"Copy_of_rams_0021_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5903172.html","width":130,"caption":"Broadstairs - Viking bay","height":92});
															thumbnails[5903183] = clik.newPhoto({"id":5903183,"src":"creek_a4_web_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_5903183.html","width":130,"caption":"Faversham","height":92});
															thumbnails[5952200] = clik.newPhoto({"id":5952200,"src":"whatever_the_weather_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_5952200.html","width":130,"caption":"Whatever the weather","height":87});
															thumbnails[6004071] = clik.newPhoto({"id":6004071,"src":"Jez_Daisy_Zoom_Burst_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_6004071.html","width":130,"caption":"Daisy","height":92});
															thumbnails[6197196] = clik.newPhoto({"id":6197196,"src":"Weymouth_Beach_2_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6197196.html","width":130,"caption":"Weymouth Beach","height":88});
															thumbnails[6243798] = clik.newPhoto({"id":6243798,"src":"Queen_Galadriel_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6243798.html","width":130,"caption":"Queen Galadriel","height":194});
															thumbnails[6243800] = clik.newPhoto({"id":6243800,"src":"white_chicken_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_6243800.html","width":130,"caption":"White Chicken","height":88});
															thumbnails[6270692] = clik.newPhoto({"id":6270692,"src":"Woodchurch_Windmill_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6270692.html","width":130,"caption":"Woodchurch Windmill","height":87});
															thumbnails[6283385] = clik.newPhoto({"id":6283385,"src":"ading_light_woodchurch_mill_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6283385.html","width":130,"caption":"Fading Light","height":87});
															thumbnails[6289628] = clik.newPhoto({"id":6289628,"src":"Woodchuch_Windmill_PortraitJeremy_Sage_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6289628.html","width":130,"caption":"Woodchurch Mill (Portrait)","height":194});
															thumbnails[6323413] = clik.newPhoto({"id":6323413,"src":"Prospect_Cottage_thumb.jpg","galleries_id":476189,"server_id":1,"link":"photo_6323413.html","width":130,"caption":"Prospect Cottage","height":202});
															thumbnails[6394053] = clik.newPhoto({"id":6394053,"src":"Bridge_Road_View_1_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6394053.html","width":130,"caption":"Bridge Road View","height":87});
															thumbnails[6394059] = clik.newPhoto({"id":6394059,"src":"Favmarshes_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6394059.html","width":130,"caption":"Faversham Marshes","height":87});
															thumbnails[6527948] = clik.newPhoto({"id":6527948,"src":"Somerset_sunset_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6527948.html","width":130,"caption":"Somerset Sunset","height":87});
															thumbnails[6527967] = clik.newPhoto({"id":6527967,"src":"Claas_580_Terra_Trac_0361_filtered_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6527967.html","width":130,"caption":"Claas Harvest","height":87});
															thumbnails[6611201] = clik.newPhoto({"id":6611201,"src":"poppies_at_westell_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6611201.html","width":130,"caption":"Poppy View","height":85});
															thumbnails[6611238] = clik.newPhoto({"id":6611238,"src":"Jez_Riverside_PlazaMaidstone_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_6611238.html","width":130,"caption":"Riverside Plaza","height":195});
															thumbnails[6611247] = clik.newPhoto({"id":6611247,"src":"Fordson_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_6611247.html","width":130,"caption":" Fordson Major","height":87});
															thumbnails[6611660] = clik.newPhoto({"id":6611660,"src":"C1_Broadstairs_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6611660.html","width":130,"caption":"Stone Bay","height":80});
															thumbnails[6662894] = clik.newPhoto({"id":6662894,"src":"Cottage_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6662894.html","width":130,"caption":"Country Cottage ","height":83});
															thumbnails[6662923] = clik.newPhoto({"id":6662923,"src":"streaky_thumb.JPG","galleries_id":78109,"server_id":1,"link":"photo_6662923.html","width":130,"caption":"Streaky","height":87});
															thumbnails[6662952] = clik.newPhoto({"id":6662952,"src":"plough_pub_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6662952.html","width":130,"caption":"The village Pub","height":84});
															thumbnails[6705379] = clik.newPhoto({"id":6705379,"src":"New_Holland_TC56cf_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6705379.html","width":130,"caption":"New Holland TC56","height":87});
															thumbnails[6706241] = clik.newPhoto({"id":6706241,"src":"Riggshill_077_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6706241.html","width":130,"caption":"New Holland Harvester","height":87});
															thumbnails[6706257] = clik.newPhoto({"id":6706257,"src":"west_street_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_6706257.html","width":130,"caption":"West Street","height":211});
															thumbnails[6706408] = clik.newPhoto({"id":6706408,"src":"Claas_Challenger_filtered_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6706408.html","width":130,"caption":"Claas Hallenger","height":85});
															thumbnails[6706420] = clik.newPhoto({"id":6706420,"src":"jd_and_claas_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6706420.html","width":130,"caption":"JD & Claas","height":82});
															thumbnails[6706664] = clik.newPhoto({"id":6706664,"src":"Butchers_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_6706664.html","width":130,"caption":"Local Butcher","height":93});
															thumbnails[6706771] = clik.newPhoto({"id":6706771,"src":"Elwick_Road_thumb.JPG","galleries_id":78109,"server_id":1,"link":"photo_6706771.html","width":130,"caption":"Elwick Road","height":88});
															thumbnails[6751098] = clik.newPhoto({"id":6751098,"src":"Psychedelic_Corsair_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_6751098.html","width":130,"caption":"Ford Corsair","height":88});
															thumbnails[6786642] = clik.newPhoto({"id":6786642,"src":"Willesborough_Windmill_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6786642.html","width":130,"caption":"Willesborough Windmill","height":188});
															thumbnails[6793156] = clik.newPhoto({"id":6793156,"src":"Zeb_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_6793156.html","width":130,"caption":"Zeb","height":159});
															thumbnails[6808112] = clik.newPhoto({"id":6808112,"src":"Marsh_View_Erics_Boat023_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_6808112.html","width":130,"caption":"Marsh View","height":90});
															thumbnails[6831074] = clik.newPhoto({"id":6831074,"src":"Castle_Gates_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6831074.html","width":130,"caption":"Castle Gates","height":88});
															thumbnails[6868629] = clik.newPhoto({"id":6868629,"src":"Red_Phone_Box_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_6868629.html","width":130,"caption":"Re Phone Box","height":202});
															thumbnails[6868632] = clik.newPhoto({"id":6868632,"src":"StMarys_Remains_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6868632.html","width":130,"caption":"The remains of St.Marys church Little Chart","height":204});
															thumbnails[6917506] = clik.newPhoto({"id":6917506,"src":"The_Ruins_2_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_6917506.html","width":130,"caption":"The Ruins","height":90});
															thumbnails[6917525] = clik.newPhoto({"id":6917525,"src":"Chevyside_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_6917525.html","width":130,"caption":"51 Chevy","height":86});
															thumbnails[6959751] = clik.newPhoto({"id":6959751,"src":"Walland_wind_farm_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_6959751.html","width":130,"caption":"Wind Farm","height":87});
															thumbnails[7014339] = clik.newPhoto({"id":7014339,"src":"The_Forest_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_7014339.html","width":130,"caption":"If you go down to the woods today..........","height":86});
															thumbnails[7014347] = clik.newPhoto({"id":7014347,"src":"Twisted_wood_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_7014347.html","width":130,"caption":"Twisted Wood","height":196});
															thumbnails[7159642] = clik.newPhoto({"id":7159642,"src":"Snow_Orlestone_bw__thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_7159642.html","width":160,"caption":"Black & White Pine","height":110});
															thumbnails[7201626] = clik.newPhoto({"id":7201626,"src":"Java_Sparrow_2_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_7201626.html","width":160,"caption":"Java Sparrow","height":242});
															thumbnails[7201649] = clik.newPhoto({"id":7201649,"src":"Cold_sunset_thumb.jpg","galleries_id":476189,"server_id":1,"link":"photo_7201649.html","width":160,"caption":"End of the day","height":106});
															thumbnails[7222477] = clik.newPhoto({"id":7222477,"src":"Kinsnorth_snow_2_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7222477.html","width":160,"caption":"Winter at St.Michael and all Angels","height":242});
															thumbnails[7261256] = clik.newPhoto({"id":7261256,"src":"George_or_James_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_7261256.html","width":160,"caption":"George and James","height":105});
															thumbnails[7262416] = clik.newPhoto({"id":7262416,"src":"St.James_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7262416.html","width":160,"caption":"St.James","height":238});
															thumbnails[7352324] = clik.newPhoto({"id":7352324,"src":"Step-_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_7352324.html","width":160,"caption":"Step","height":106});
															thumbnails[7352331] = clik.newPhoto({"id":7352331,"src":"Windows_thumb.JPG","galleries_id":78109,"server_id":1,"link":"photo_7352331.html","width":160,"caption":"Windows","height":102});
															thumbnails[7352338] = clik.newPhoto({"id":7352338,"src":"1949_Dodge_WDX_power_Wagon_sepia_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_7352338.html","width":160,"caption":"Power Wagon","height":113});
															thumbnails[7370618] = clik.newPhoto({"id":7370618,"src":"All_Saints_view_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7370618.html","width":160,"caption":"All Saints Welcome","height":250});
															thumbnails[7398329] = clik.newPhoto({"id":7398329,"src":"Rural_Kent_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_7398329.html","width":160,"caption":"Rural Kent","height":106});
															thumbnails[7398335] = clik.newPhoto({"id":7398335,"src":"Windmill_night_7_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7398335.html","width":160,"caption":"Floodlit Windmill","height":229});
															thumbnails[7398345] = clik.newPhoto({"id":7398345,"src":"Windmill_night_6_print_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7398345.html","width":160,"caption":"Windmill view","height":106});
															thumbnails[7416831] = clik.newPhoto({"id":7416831,"src":"Copy_of_Roses_are_Red_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_7416831.html","width":160,"caption":"Roses are Red","height":236});
															thumbnails[7521655] = clik.newPhoto({"id":7521655,"src":"Train_3_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_7521655.html","width":160,"caption":"Going Loco","height":112});
															thumbnails[7584739] = clik.newPhoto({"id":7584739,"src":"Periwinkle_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_7584739.html","width":160,"caption":"","height":111});
															thumbnails[7627921] = clik.newPhoto({"id":7627921,"src":"Shadoxhurst__thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7627921.html","width":160,"caption":"Shadoxhurst Church","height":240});
															thumbnails[7655200] = clik.newPhoto({"id":7655200,"src":"Train_Shed_bw_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_7655200.html","width":160,"caption":"The Engine Shed","height":106});
															thumbnails[7673328] = clik.newPhoto({"id":7673328,"src":"Cyclone_thumb.jpg","galleries_id":476189,"server_id":1,"link":"photo_7673328.html","width":160,"caption":"Cyclone hits Isle of Sheppey","height":106});
															thumbnails[7780441] = clik.newPhoto({"id":7780441,"src":"Bluebell_Wood_1_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_7780441.html","width":160,"caption":"Bluebell wood","height":106});
															thumbnails[7824914] = clik.newPhoto({"id":7824914,"src":"Pluckley_Church_clarity_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_7824914.html","width":160,"caption":"Pluckley Church","height":108});
															thumbnails[7825126] = clik.newPhoto({"id":7825126,"src":"Daisiess_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_7825126.html","width":160,"caption":"Daisy's","height":242});
															thumbnails[7825188] = clik.newPhoto({"id":7825188,"src":"CP2_Neg_Ali_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_7825188.html","width":160,"caption":"Negative Image","height":106});
															thumbnails[7864457] = clik.newPhoto({"id":7864457,"src":"Mill_1_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_7864457.html","width":160,"caption":"Mill Kentish Smock ","height":242});
															thumbnails[7864461] = clik.newPhoto({"id":7864461,"src":"Bread_Fresh_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_7864461.html","width":160,"caption":"Bread fresh","height":107});
															thumbnails[7948817] = clik.newPhoto({"id":7948817,"src":"BA2_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_7948817.html","width":160,"caption":"","height":106});
															thumbnails[8037001] = clik.newPhoto({"id":8037001,"src":"Singleton_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_8037001.html","width":160,"caption":"Sculptures","height":242});
															thumbnails[8109596] = clik.newPhoto({"id":8109596,"src":"Harty_Ferry_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_8109596.html","width":160,"caption":"Big sky causeway","height":106});
															thumbnails[8321074] = clik.newPhoto({"id":8321074,"src":"Shades_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_8321074.html","width":160,"caption":"Shades","height":110});
															thumbnails[8321211] = clik.newPhoto({"id":8321211,"src":"Chrddar_falls_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_8321211.html","width":160,"caption":"Cheddar Falls","height":242});
															thumbnails[8346588] = clik.newPhoto({"id":8346588,"src":"Corked_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_8346588.html","width":160,"caption":"Corked","height":106});
															thumbnails[8415957] = clik.newPhoto({"id":8415957,"src":"Print_of_Pluckley_Sunset_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_8415957.html","width":160,"caption":"Pluckley Sunset","height":106});
															thumbnails[8416078] = clik.newPhoto({"id":8416078,"src":"Naeeow_boat_8_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_8416078.html","width":160,"caption":"Narrow boat on the Oford canal","height":226});
															thumbnails[8502850] = clik.newPhoto({"id":8502850,"src":"Green_Door_2_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_8502850.html","width":160,"caption":"Green Door","height":242});
															thumbnails[8649504] = clik.newPhoto({"id":8649504,"src":"Pumpkins_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_8649504.html","width":160,"caption":"Pumpkin's","height":106});
															thumbnails[8650476] = clik.newPhoto({"id":8650476,"src":"Fair_2_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_8650476.html","width":160,"caption":"All the fun of the fair","height":106});
															thumbnails[8736427] = clik.newPhoto({"id":8736427,"src":"Cobweb_2F8CEE62-24E8-5EC4-4F768C70110B326C_thumb.jpg","galleries_id":365940,"server_id":1,"link":"photo_8736427.html","width":160,"caption":"Cobweb","height":242});
															thumbnails[8754687] = clik.newPhoto({"id":8754687,"src":"Copy_of_Copy_of_IMG_8629_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_8754687.html","width":160,"caption":"Me","height":107});
															thumbnails[9037601] = clik.newPhoto({"id":9037601,"src":"Copy_of_4_thumb.jpg","galleries_id":476189,"server_id":1,"link":"photo_9037601.html","width":210,"caption":"Sunrise","height":140});
															thumbnails[9037621] = clik.newPhoto({"id":9037621,"src":"Copy_of_Big_Eyes_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037621.html","width":210,"caption":"Big Eyes","height":139});
															thumbnails[9037648] = clik.newPhoto({"id":9037648,"src":"Copy_of_Black_Cat_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_9037648.html","width":210,"caption":"Black Cat","height":138});
															thumbnails[9037653] = clik.newPhoto({"id":9037653,"src":"Copy_of_Eureka_Skyway_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037653.html","width":210,"caption":"Eureka Skyway","height":139});
															thumbnails[9037715] = clik.newPhoto({"id":9037715,"src":"Copy_of_Gargle_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037715.html","width":210,"caption":"Gargle","height":315});
															thumbnails[9037734] = clik.newPhoto({"id":9037734,"src":"Copy_of_Guitar_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037734.html","width":210,"caption":"Guitar","height":139});
															thumbnails[9037784] = clik.newPhoto({"id":9037784,"src":"copy_of_chancel_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_9037784.html","width":210,"caption":"The Chancel","height":146});
															thumbnails[9037785] = clik.newPhoto({"id":9037785,"src":"Copy_of_Relax_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037785.html","width":210,"caption":"Relax","height":139});
															thumbnails[9037786] = clik.newPhoto({"id":9037786,"src":"Copy_of_Anchor_thumb.jpg","galleries_id":80119,"server_id":1,"link":"photo_9037786.html","width":210,"caption":"Anchor","height":317});
															thumbnails[9037789] = clik.newPhoto({"id":9037789,"src":"Copy_of_P_Clips_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037789.html","width":210,"caption":"Paperclips","height":139});
															thumbnails[9037835] = clik.newPhoto({"id":9037835,"src":"Copy_of_Rainier_thumb.jpg","galleries_id":78109,"server_id":1,"link":"photo_9037835.html","width":210,"caption":"Rainier Cherries","height":138});
															thumbnails[9037838] = clik.newPhoto({"id":9037838,"src":"Copy_of_New_Mill_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_9037838.html","width":210,"caption":"New Mill at Dusk","height":139});
															thumbnails[9037839] = clik.newPhoto({"id":9037839,"src":"Copy_of_New_Will_Mill_thumb.jpg","galleries_id":476180,"server_id":1,"link":"photo_9037839.html","width":210,"caption":"Willesborough Windmill","height":317});
															thumbnails[9037844] = clik.newPhoto({"id":9037844,"src":"Copy_of_Daisies_thumb.jpg","galleries_id":76719,"server_id":1,"link":"photo_9037844.html","width":210,"caption":"Daisies","height":139});
															thumbnails[9037857] = clik.newPhoto({"id":9037857,"src":"Copy_of_Scoobi_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_9037857.html","width":210,"caption":"Scooby","height":318});
															thumbnails[9046928] = clik.newPhoto({"id":9046928,"src":"Copy_of_Morris_Oxford_thumb.jpg","galleries_id":476181,"server_id":1,"link":"photo_9046928.html","width":210,"caption":"Morris Oxford","height":317});
															thumbnails[9080380] = clik.newPhoto({"id":9080380,"src":"Tigers_thumb.jpg","galleries_id":76718,"server_id":1,"link":"photo_9080380.html","width":210,"caption":"Tigers","height":139});
															thumbnails[9106174] = clik.newPhoto({"id":9106174,"src":"Copy_Sheeps_1_thumb.jpg","galleries_id":76718,"server_id":35,"link":"photo_9106174.html","width":210,"caption":"Sheeps","height":134});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[76718] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals and Birds","link":"section108219_76718.html","maxRecords":0.0,"photoIDs":[5477497.0,5495492.0,6243800.0,6793156.0,7201626.0,9037648.0,9037857.0,9080380.0,9106174.0],"skipIndex":0,"section_code":"section108219","featured_images":"9106174,9080380,9037857,9037648,7201626,6793156,5495492","id":76718,"singleSection":false});				  						galleries[476180] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Churches, Mills and Castles","link":"section108219_476180.html","maxRecords":0.0,"photoIDs":[6270692.0,6283385.0,6289628.0,6786642.0,6831074.0,6868632.0,6917506.0,7222477.0,7262416.0,7370618.0,7398335.0,7398345.0,7627921.0,7864457.0,9037784.0,9037838.0,9037839.0],"skipIndex":0,"section_code":"section108219","featured_images":"9037839,9037838,7864457,7627921,7398335,7370618,6917506,6831074,6786642,6283385","id":476180,"singleSection":false});				  						galleries[80119] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coast, Rivers, Water","link":"section108219_80119.html","maxRecords":0.0,"photoIDs":[3476631.0,3896202.0,4695702.0,4700310.0,4724593.0,4731546.0,4877962.0,5052192.0,5415868.0,5628154.0,5628162.0,5903172.0,5903183.0,6197196.0,6243798.0,6394053.0,6394059.0,6611660.0,6808112.0,8109596.0,8321211.0,8416078.0,9037786.0],"skipIndex":0,"section_code":"section108219","featured_images":"9037786,8416078,8321211,8109596,6808112,6394053,6243798,5628162,4695702","id":80119,"singleSection":false});				  						galleries[78109] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Everything else","link":"section108219_78109.html","maxRecords":0.0,"photoIDs":[5364551.0,5697928.0,6611238.0,6662923.0,6706257.0,6706771.0,6868629.0,6959751.0,7261256.0,7352324.0,7352331.0,7824914.0,7864461.0,8321074.0,8346588.0,8650476.0,9037621.0,9037653.0,9037715.0,9037734.0,9037785.0,9037789.0,9037835.0],"skipIndex":0,"section_code":"section108219","featured_images":"9037835,9037785,9037734,8650476,8346588,8321074,7824914,5697928","id":78109,"singleSection":false});				  						galleries[476189] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunrise \/ Sunset","link":"section108219_476189.html","maxRecords":0.0,"photoIDs":[4815542.0,6323413.0,7201649.0,7673328.0,9037601.0],"skipIndex":0,"section_code":"section108219","featured_images":"9037601,7673328,6323413","id":476189,"singleSection":false});				  						galleries[476181] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wheels","link":"section108219_476181.html","maxRecords":0.0,"photoIDs":[1075385.0,4791335.0,5444299.0,6611247.0,6751098.0,6917525.0,7352338.0,7521655.0,7655200.0,8754687.0,9046928.0],"skipIndex":0,"section_code":"section108219","featured_images":"9046928,7521655,6611247","id":476181,"singleSection":false});				  						galleries[76719] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"World of Flowers","link":"section108219_76719.html","maxRecords":0.0,"photoIDs":[5884453.0,6004071.0,7416831.0,7584739.0,7825126.0,7825188.0,7948817.0,9037844.0],"skipIndex":0,"section_code":"section108219","featured_images":"9037844,7948817,7825126,7584739,7416831,5884453","id":76719,"singleSection":false});				  						galleries[307920] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fruit & Veg","link":"section108219_307920.html","maxRecords":0.0,"photoIDs":[4599246.0,4725116.0,5444219.0],"skipIndex":0,"section_code":"section108219","featured_images":"5444219,4725116,4599246","id":307920,"singleSection":false});				  						galleries[365940] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Farming , Rural , Countryside","link":"section108219_365940.html","maxRecords":0.0,"photoIDs":[3539641.0,3098112.0,4422503.0,5034374.0,5364048.0,5444211.0,5628336.0,5952200.0,6527948.0,6527967.0,6611201.0,6662894.0,6662952.0,6705379.0,6706241.0,6706408.0,6706420.0,6706664.0,7014339.0,7014347.0,7159642.0,7398329.0,7780441.0,8037001.0,8415957.0,8502850.0,8649504.0,8736427.0],"skipIndex":0,"section_code":"section108219","featured_images":"8649504,8502850,8415957,8037001,7780441,7159642,6611201","id":365940,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9106174,9080380,9046928,9037857,9037844,9037839,9037838,9037835,9037789,9037786,9037785,9037784,9037734,9037653,9037648,9037621,9037601,8650476,8649504,8502850,8416078,8415957,8346588,8321211,8321074,8109596,8037001,7948817,7864457,7825126,7824914,7780441,7673328,7627921,7584739,7521655,7416831,7398345,7398335,7398329,7370618,7352331,7352324,7262416,7261256,7201649,7201626,7159642,7014347,6959751,6917525,6917506,6868632,6868629,6831074,6808112,6793156,6786642,6706664,6706420,6706408,6706257,6705379,6662952,6662923,6611660,6611247,6611238,6611201,6527967,6527948,6394059,6323413,6289628,6283385,6270692,6243800,6243798,6004071,5903183,5884453,5697928,5628336,5628162,5628154,5495492,5477497,5444299,5444219,5364048,5034374,4791335,4695702,4422503,3896202,3539641,3476631,3098112,1075385';
imageSets[2] = '9106174,9080380,9046928,9037857,9037844,9037839,9037838,9037835,9037786,9037785,9037734,9037648,9037601,8650476,8649504,8502850,8416078,8415957,8346588,8321211,8321074,8109596,8037001,7948817,7864457,7825126,7824914,7780441,7673328,7627921,7584739,7521655,7416831,7398335,7370618,7201626,7159642,6917506,6831074,6808112,6793156,6786642,6611247,6611201,6394053,6323413,6283385,6243798,5884453,5697928,5628162,5495492,4695702';
imageSets[3] = '9106174,9080380,9046928,9037857,9037844,9037839,9037838,9037835,9037786,9037785,9037734,9037648,9037601,8650476,8649504,8502850,8416078,8415957,8346588,8321211,8321074,8109596,8037001,7948817,7864457,7825126,7824914,7780441,7673328,7655200,7627921,7584739,7521655,7416831,7398335,7370618,7352338,7222477,7159642,6917506,6868632,6831074,6611660,6611247,6611201,6283385,6243798,5884453,5697928,5628162,5495492,4695702';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Jezsage/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Jezsage/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 = 'Jez-Photographic: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JEZSAGE">';
			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;
	}
}

			

