window.thumbnails = {};
															thumbnails[4227437] = clik.newPhoto({"id":4227437,"src":"03-Sorry-they-only-had-red_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227437.html","width":98,"caption":"The Red rose","height":130});
															thumbnails[4227439] = clik.newPhoto({"id":4227439,"src":"01-Dress-Down-Friday_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227439.html","width":98,"caption":"Carnival hat!","height":130});
															thumbnails[4227441] = clik.newPhoto({"id":4227441,"src":"Campo-San-Polo_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227441.html","width":130,"caption":"Campo San Paulo","height":87});
															thumbnails[4227442] = clik.newPhoto({"id":4227442,"src":"StMarks-after-the-rain_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227442.html","width":130,"caption":"St Marks Square after rain","height":86});
															thumbnails[4251524] = clik.newPhoto({"id":4251524,"src":"Early-morning-in-Felbrig_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4251524.html","width":91,"caption":"Early morning in Felbrig","height":130});
															thumbnails[4251529] = clik.newPhoto({"id":4251529,"src":"The-path-to-the-Lake-Felbrig_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4251529.html","width":130,"caption":" Path to the Lake at Felbrig","height":91});
															thumbnails[4251533] = clik.newPhoto({"id":4251533,"src":"Misty-morning-at-the-lake_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4251533.html","width":130,"caption":"Misty morning at the Lake","height":85});
															thumbnails[4251545] = clik.newPhoto({"id":4251545,"src":"Winter-sunset-at-Thurne_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4251545.html","width":130,"caption":"Winter sunset at Thurne","height":86});
															thumbnails[4258777] = clik.newPhoto({"id":4258777,"src":"Alnmouth_dunes-1_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258777.html","width":130,"caption":"Alnmouth dunes","height":85});
															thumbnails[4258782] = clik.newPhoto({"id":4258782,"src":"Alanmouth-Dunes-2_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258782.html","width":130,"caption":"Alnmouth dunes again","height":82});
															thumbnails[4258784] = clik.newPhoto({"id":4258784,"src":"Alnmouth-boat_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258784.html","width":130,"caption":"Alnmouth reflections","height":87});
															thumbnails[4258785] = clik.newPhoto({"id":4258785,"src":"Alnmouth-sunset-sihluette_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258785.html","width":130,"caption":"Alnmouth at sunset","height":87});
															thumbnails[4258786] = clik.newPhoto({"id":4258786,"src":"Bamburgh-castle_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258786.html","width":130,"caption":"Bamburgh castle","height":85});
															thumbnails[4258788] = clik.newPhoto({"id":4258788,"src":"Boatshed-at-Beadnell_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258788.html","width":130,"caption":"Boatshed at Beadnell","height":87});
															thumbnails[4258789] = clik.newPhoto({"id":4258789,"src":"Lindesfarne-castle-mono_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258789.html","width":130,"caption":"Lidisfarne castle","height":87});
															thumbnails[4258790] = clik.newPhoto({"id":4258790,"src":"Warkworth-castle_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258790.html","width":130,"caption":"Warkworth castle","height":87});
															thumbnails[4258793] = clik.newPhoto({"id":4258793,"src":"Waves-breaking_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4258793.html","width":130,"caption":"Waves breaking","height":80});
															thumbnails[4288891] = clik.newPhoto({"id":4288891,"src":"Storm-clouds-over-Split_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4288891.html","width":130,"caption":"Storm clouds over Split","height":79});
															thumbnails[4288905] = clik.newPhoto({"id":4288905,"src":"Making-waves_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4288905.html","width":130,"caption":"Making waves","height":86});
															thumbnails[4288907] = clik.newPhoto({"id":4288907,"src":"Poppies-in-sunlight_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4288907.html","width":96,"caption":"Poppies in sunlight","height":130});
															thumbnails[4288910] = clik.newPhoto({"id":4288910,"src":"Crab-boat-Tractor_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4288910.html","width":110,"caption":"Crab boat tractor","height":130});
															thumbnails[4289134] = clik.newPhoto({"id":4289134,"src":"large-White-Butterfly_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4289134.html","width":130,"caption":"Large white butterfly","height":87});
															thumbnails[4289135] = clik.newPhoto({"id":4289135,"src":"Petty-Cash_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_4289135.html","width":130,"caption":"Petty cash!!","height":87});
															thumbnails[4289136] = clik.newPhoto({"id":4289136,"src":"Dunstanburgh-castle_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_4289136.html","width":130,"caption":"Dunstanburgh Castle","height":89});
															thumbnails[4515319] = clik.newPhoto({"id":4515319,"src":"011_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4515319.html","width":130,"caption":"Happisburgh Beach defences - 1","height":88});
															thumbnails[4515321] = clik.newPhoto({"id":4515321,"src":"021_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4515321.html","width":130,"caption":"Happisburgh Beach defences - 2","height":88});
															thumbnails[4515323] = clik.newPhoto({"id":4515323,"src":"0312_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4515323.html","width":130,"caption":"Happisburgh Beach defences - 3","height":92});
															thumbnails[4515324] = clik.newPhoto({"id":4515324,"src":"041_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_4515324.html","width":130,"caption":"Happisburgh Beach defences - 4","height":90});
															thumbnails[4663247] = clik.newPhoto({"id":4663247,"src":"Tractors-on-Weybourne-beach_thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_4663247.html","width":150,"caption":"Fishing boat tractors at Weybourne","height":94});
															thumbnails[5174491] = clik.newPhoto({"id":5174491,"src":"Embleton_bay_Northumberland_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_5174491.html","width":130,"caption":"Embleton Bay ","height":81});
															thumbnails[5174496] = clik.newPhoto({"id":5174496,"src":"Beamish_Museum_the_Garage_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_5174496.html","width":130,"caption":"Beamish Museum - the Garage ","height":83});
															thumbnails[5174499] = clik.newPhoto({"id":5174499,"src":"Beamish_Museum_the_Healthservice_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_5174499.html","width":130,"caption":"Beamish Museum - the Healthservice?","height":83});
															thumbnails[5174501] = clik.newPhoto({"id":5174501,"src":"Beamish_Museum_the_Schoolroom_thumb.jpg","galleries_id":251973,"server_id":15,"link":"photo_5174501.html","width":130,"caption":"Beamish Museum - the Schoolroom","height":83});
															thumbnails[5175557] = clik.newPhoto({"id":5175557,"src":"Felbrig_path_to_the_lake_thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_5175557.html","width":150,"caption":"Felbrig - the path to the Lake","height":98});
															thumbnails[5175559] = clik.newPhoto({"id":5175559,"src":"Sunrise_West_Beckham1_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_5175559.html","width":130,"caption":"Sunrise across the fields at West Beckham","height":78});
															thumbnails[5386337] = clik.newPhoto({"id":5386337,"src":"Frosty_morning_in_Norfolk_thumb.jpg","galleries_id":251644,"server_id":15,"link":"photo_5386337.html","width":130,"caption":"Frosty Morning in Norfolk","height":77});
															thumbnails[5386340] = clik.newPhoto({"id":5386340,"src":"In_Memoriam_thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_5386340.html","width":150,"caption":"In Memoriam","height":99});
															thumbnails[7878195] = clik.newPhoto({"id":7878195,"src":"01_In_Memoriam12._thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878195.html","width":150,"caption":" In Memoriam","height":104});
															thumbnails[7878198] = clik.newPhoto({"id":7878198,"src":"02_Holy_Island_Blues1_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878198.html","width":150,"caption":"Holy Island Blues","height":106});
															thumbnails[7878200] = clik.newPhoto({"id":7878200,"src":"03_First_flight_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878200.html","width":107,"caption":"First Flight","height":150});
															thumbnails[7878203] = clik.newPhoto({"id":7878203,"src":"05_Leading_the_Way_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878203.html","width":107,"caption":" Leading the Way","height":150});
															thumbnails[7878229] = clik.newPhoto({"id":7878229,"src":"11_Sunrise_on_the_Ore_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878229.html","width":150,"caption":"Early Morning on the Ore","height":96});
															thumbnails[7878230] = clik.newPhoto({"id":7878230,"src":"12_Grannys_Kitchen__thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878230.html","width":150,"caption":"Granny's Kitchen - taken at the Beamish Museum ","height":106});
															thumbnails[7878232] = clik.newPhoto({"id":7878232,"src":"13_In_soft_Light._thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878232.html","width":106,"caption":"IRIS","height":150});
															thumbnails[7878293] = clik.newPhoto({"id":7878293,"src":"17_Cromer_Pier_colour_conversion1_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_7878293.html","width":150,"caption":"Under the Pier ","height":96});
															thumbnails[7879424] = clik.newPhoto({"id":7879424,"src":"The_Crossing_The_Glaven_at_Glanford_thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_7879424.html","width":150,"caption":"The Crossing - at Glanford","height":91});
															thumbnails[7879428] = clik.newPhoto({"id":7879428,"src":"Woodland_Walk1._thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_7879428.html","width":150,"caption":"Woodland Walk","height":102});
															thumbnails[7879671] = clik.newPhoto({"id":7879671,"src":"Harvest_Home_j_thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_7879671.html","width":150,"caption":"Harvest Home","height":91});
															thumbnails[7879683] = clik.newPhoto({"id":7879683,"src":"Not_a_Soul_in_sight_Northumberland_._thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_7879683.html","width":150,"caption":"Not a Soul in Sight - Northumberland","height":89});
															thumbnails[7884711] = clik.newPhoto({"id":7884711,"src":"Bubbles__thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884711.html","width":130,"caption":"Bubbles!","height":87});
															thumbnails[7884713] = clik.newPhoto({"id":7884713,"src":"Clematis_Eduard_Defosse._thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884713.html","width":130,"caption":"Clematis Eduard Defosse","height":88});
															thumbnails[7884714] = clik.newPhoto({"id":7884714,"src":"Smoke_gets_in_your_eyes_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884714.html","width":100,"caption":"Smoke Gets in Your Eyes","height":130});
															thumbnails[7884715] = clik.newPhoto({"id":7884715,"src":"Stormy_day_at_Whitby._thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884715.html","width":130,"caption":"Stormy day at Whitby","height":86});
															thumbnails[7884717] = clik.newPhoto({"id":7884717,"src":"Tide_out_at_Staithes__thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884717.html","width":130,"caption":"Tide out at Staithes","height":91});
															thumbnails[7884718] = clik.newPhoto({"id":7884718,"src":"High__Dry_at_Staithes_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884718.html","width":91,"caption":"High & Dry at Staithes","height":130});
															thumbnails[7884719] = clik.newPhoto({"id":7884719,"src":"The_Night_of_the_Iguana._thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_7884719.html","width":130,"caption":"Night of the Iguana!","height":87});
															thumbnails[7884722] = clik.newPhoto({"id":7884722,"src":"A_Break_in_the_clouds_Blakeney._thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_7884722.html","width":150,"caption":"A Break in the Clouds at Blakeney","height":100});
															thumbnails[7885062] = clik.newPhoto({"id":7885062,"src":"Carnival_Juggler_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_7885062.html","width":91,"caption":"Street Fun at Carnival","height":130});
															thumbnails[7885068] = clik.newPhoto({"id":7885068,"src":"Young_Reveller_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_7885068.html","width":91,"caption":"Young Reveller at Carnival","height":130});
															thumbnails[8835230] = clik.newPhoto({"id":8835230,"src":"03_The_woods_in_Springtime_CPik_92D71321-24E8-5EC4-4F7872CA7E331763_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_8835230.html","width":150,"caption":"The Woods in Springtime","height":99});
															thumbnails[8835233] = clik.newPhoto({"id":8835233,"src":"07_Winter_Morning_at_the_Lake_92DF3E5D-24E8-5EC4-4F1F1049779588F4_thumb.jpg","galleries_id":425173,"server_id":15,"link":"photo_8835233.html","width":150,"caption":"Winter Morning at the Lake","height":95});
															thumbnails[8836251] = clik.newPhoto({"id":8836251,"src":"Fairy_Glen_9658509E-1EC9-DFB6-09AF479A49FAB957_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836251.html","width":150,"caption":"The Fairy Glen - the Black Isle","height":98});
															thumbnails[8836255] = clik.newPhoto({"id":8836255,"src":"Loch_Ness_-_earlier._965FCC51-1EC9-DFB6-096C71A5619F93D3_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836255.html","width":150,"caption":"Loch Ness from Dorres","height":84});
															thumbnails[8836257] = clik.newPhoto({"id":8836257,"src":"Loch_Ness_-_later_966505DC-1EC9-DFB6-090A87E5B7210FC0_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836257.html","width":150,"caption":"Loch Ness - later in the evening","height":94});
															thumbnails[8836303] = clik.newPhoto({"id":8836303,"src":"Loch_Broom_from_Ullapool_967F8AF2-1EC9-DFB6-095949802A75ED32_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836303.html","width":150,"caption":"Loch Broom from Ullapool","height":76});
															thumbnails[8836319] = clik.newPhoto({"id":8836319,"src":"Little_Old_Smokehouse_on_the_Hill_._9686CAFA-1EC9-DFB6-0903416EC1538627_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836319.html","width":150,"caption":"The Old Bothy - Elphin Assynt","height":97});
															thumbnails[8836328] = clik.newPhoto({"id":8836328,"src":"Inverpolly_Reserve_968C5DB8-1EC9-DFB6-097A9E2158FC5A38_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836328.html","width":150,"caption":"Inverpolly Nature Reserve","height":92});
															thumbnails[8836333] = clik.newPhoto({"id":8836333,"src":"Bow_fiddle_Rock_Port_Nockie._969479AC-1EC9-DFB6-0974DC7C995C6CD7_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836333.html","width":150,"caption":"Bow fiddle Rock - Portknockie","height":93});
															thumbnails[8836335] = clik.newPhoto({"id":8836335,"src":"Sunset_on_Findhorn_Beach._969B3A7C-1EC9-DFB6-09FED6C53D7A750D_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836335.html","width":150,"caption":"Findhorn Beach - the Moray Coast","height":94});
															thumbnails[8836343] = clik.newPhoto({"id":8836343,"src":"Glen_Affric_96ADEFF0-1EC9-DFB6-090064CF89038AAF_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836343.html","width":150,"caption":"Glen Affric","height":99});
															thumbnails[8836346] = clik.newPhoto({"id":8836346,"src":"Eilean_Donan_-_Loch_Duich_96B2AF36-1EC9-DFB6-09B9C992C899434A_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836346.html","width":150,"caption":"Eilean Donan - Loch Duich","height":93});
															thumbnails[8836350] = clik.newPhoto({"id":8836350,"src":"Old_Man_of_Storr__-_Isle_of_Skye._96B9DBE5-1EC9-DFB6-09AE396E51D82BA8_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836350.html","width":150,"caption":"The Old Man of Storr - Isle of Skye","height":97});
															thumbnails[8836351] = clik.newPhoto({"id":8836351,"src":"Quaraing_-_Isle_of_Skye_96C03E44-1EC9-DFB6-09CFAAE360DF0515_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836351.html","width":150,"caption":"Quairaing - Isle of Skye","height":96});
															thumbnails[8836354] = clik.newPhoto({"id":8836354,"src":"The_Group_jpg_96C77073-1EC9-DFB6-09D746675B24C517_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8836354.html","width":150,"caption":"The Group - Glen and his Ladies!","height":114});
															thumbnails[8848577] = clik.newPhoto({"id":8848577,"src":"Outer_space_small_thumb.jpg","galleries_id":252509,"server_id":15,"link":"photo_8848577.html","width":150,"caption":"Outer space?","height":100});
															thumbnails[8848627] = clik.newPhoto({"id":8848627,"src":"Rev._Low_tide_at_Moreston._thumb.jpg","galleries_id":268923,"server_id":15,"link":"photo_8848627.html","width":150,"caption":"Low tide at Moreston","height":85});
															thumbnails[8848701] = clik.newPhoto({"id":8848701,"src":"Loch_Tulla_again_thumb.jpg","galleries_id":464839,"server_id":15,"link":"photo_8848701.html","width":150,"caption":"Loch Tulla","height":87});
															thumbnails[4227435] = clik.newPhoto({"id":4227435,"src":"grand-canal_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227435.html","width":130,"caption":"Grand Canal","height":83});
															thumbnails[7895747] = clik.newPhoto({"id":7895747,"src":"Early_Morning_in_Venice_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_7895747.html","width":150,"caption":"Early Morning in Venice","height":98});
															thumbnails[4227436] = clik.newPhoto({"id":4227436,"src":"rear-La-Fenice_thumb.jpg","galleries_id":250473,"server_id":15,"link":"photo_4227436.html","width":94,"caption":"Rear of La Fenice","height":130});
															thumbnails[4251337] = clik.newPhoto({"id":4251337,"src":"023_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4251337.html","width":150,"caption":"Taking a break","height":107});
															thumbnails[4251340] = clik.newPhoto({"id":4251340,"src":"033_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4251340.html","width":107,"caption":"First flight","height":150});
															thumbnails[4251342] = clik.newPhoto({"id":4251342,"src":"043_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4251342.html","width":150,"caption":"Through the rapids","height":107});
															thumbnails[4251344] = clik.newPhoto({"id":4251344,"src":"053_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4251344.html","width":150,"caption":"On the way to Lindisfarne","height":107});
															thumbnails[4227328] = clik.newPhoto({"id":4227328,"src":"062_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4227328.html","width":107,"caption":"Lindisfarne castle","height":150});
															thumbnails[4227329] = clik.newPhoto({"id":4227329,"src":"072_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4227329.html","width":150,"caption":"Carnival Masque","height":123});
															thumbnails[4227330] = clik.newPhoto({"id":4227330,"src":"082_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4227330.html","width":107,"caption":"Magda","height":150});
															thumbnails[4227331] = clik.newPhoto({"id":4227331,"src":"092_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4227331.html","width":150,"caption":"House Leek","height":123});
															thumbnails[4227333] = clik.newPhoto({"id":4227333,"src":"102_thumb.jpg","galleries_id":250472,"server_id":15,"link":"photo_4227333.html","width":107,"caption":"Winter skyline","height":150});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[268923] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Infra Red - Digital","link":"gallery_268923.html","maxRecords":0.0,"photoIDs":[4663247.0,5175557.0,5386340.0,7879424.0,7879428.0,7879671.0,7879683.0,7884722.0,8848627.0],"skipIndex":0,"section_code":"gallery","featured_images":"8848627,7884722,7879683,7879671,7879428,7879424,5386340,5175557,4663247","id":268923,"singleSection":false});				  						galleries[464839] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Highlander Tour","link":"gallery_464839.html","maxRecords":0.0,"photoIDs":[8836251.0,8836255.0,8836257.0,8836303.0,8836319.0,8836328.0,8836333.0,8836335.0,8836343.0,8836346.0,8836350.0,8836351.0,8836354.0,8848701.0],"skipIndex":0,"section_code":"gallery","featured_images":"8848701,8836354,8836351,8836350,8836346,8836343,8836335,8836333,8836328,8836319","id":464839,"singleSection":false});				  						galleries[425173] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PAGB distinction","link":"gallery_425173.html","maxRecords":0.0,"photoIDs":[7878195.0,7878198.0,7878200.0,7878203.0,7878229.0,7878230.0,7878232.0,7878293.0,8835230.0,8835233.0],"skipIndex":0,"section_code":"gallery","featured_images":"8835233,8835230,7878293,7878232,7878230,7878229,7878203,7878200,7878198,7878195","id":425173,"singleSection":false});				  						galleries[251644] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norfolk Landscapes","link":"gallery_251644.html","maxRecords":0.0,"photoIDs":[4251524.0,4251529.0,4251533.0,4251545.0,4515319.0,4515321.0,4515323.0,4515324.0,5175559.0,5386337.0],"skipIndex":0,"section_code":"gallery","featured_images":"5386337,5175559,4515324,4515323,4515321,4515319,4251545,4251533,4251529,4251524","id":251644,"singleSection":false});				  						galleries[251973] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Northumberland","link":"gallery_251973.html","maxRecords":0.0,"photoIDs":[4258777.0,4258782.0,4258784.0,4258785.0,4258786.0,4258788.0,4258789.0,4258790.0,4258793.0,4289136.0,5174491.0,5174496.0,5174499.0,5174501.0],"skipIndex":0,"section_code":"gallery","featured_images":"5174501,5174499,5174496,5174491,4289136,4258793,4258790,4258789,4258788,4258786","id":251973,"singleSection":false});				  						galleries[250472] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LRPS Panel","link":"gallery_250472.html","maxRecords":0.0,"photoIDs":[7895747.0,4251337.0,4251340.0,4251342.0,4251344.0,4227328.0,4227329.0,4227330.0,4227331.0,4227333.0],"skipIndex":0,"section_code":"gallery","featured_images":"7895747,4251344,4251342,4251340,4251337,4227333,4227331,4227330,4227329,4227328","id":250472,"singleSection":false});				  						galleries[250473] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Venice","link":"gallery_250473.html","maxRecords":0.0,"photoIDs":[4227437.0,4227439.0,4227441.0,4227442.0,7885062.0,7885068.0,4227435.0,4227436.0],"skipIndex":0,"section_code":"gallery","featured_images":"7885068,7885062,4227442,4227441,4227439,4227437,4227436,4227435","id":250473,"singleSection":false});				  						galleries[252509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Odds and Ends","link":"gallery_252509.html","maxRecords":0.0,"photoIDs":[4288891.0,4288905.0,4288907.0,4288910.0,4289134.0,4289135.0,7884711.0,7884713.0,7884714.0,7884715.0,7884717.0,7884718.0,7884719.0,8848577.0],"skipIndex":0,"section_code":"gallery","featured_images":"8848577,7884719,7884718,7884717,7884715,7884714,7884713,7884711,4289135,4289134","id":252509,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4258793,4258786,4258785,4258784,4258777,4251529,4227435,4227436,4251340,4251342,4251344,4227329,4227331';
imageSets[3] = '7885068,7885062';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/belladonna/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/belladonna/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/belladonna/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 = 'Judy Knights 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 !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

