window.thumbnails = {};
															thumbnails[8302682] = clik.newPhoto({"id":8302682,"src":"Kitchen_CD84F422-1E4F-37DC-71DCCD6E5078DE6C_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302682.html","width":130,"caption":"\"Stonewell\" Tranwell Woods, Morpeth  - Kitchen","height":87});
															thumbnails[8302688] = clik.newPhoto({"id":8302688,"src":"Kitchen_2_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302688.html","width":130,"caption":"\"Stonewell\" Tranwell Woods, Morpeth  - Kitchen 2","height":87});
															thumbnails[8302692] = clik.newPhoto({"id":8302692,"src":"interior_1_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302692.html","width":130,"caption":"\"Stonewell\" Tranwell Woods, Morpeth  - Interior","height":87});
															thumbnails[8302693] = clik.newPhoto({"id":8302693,"src":"View_from_the_garden_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302693.html","width":130,"caption":"\"Stonewell\" Tranwell Woods, Morpeth  - Garden 2","height":87});
															thumbnails[8224762] = clik.newPhoto({"id":8224762,"src":"Bullers_Green_5_thumb.JPG","galleries_id":438482,"server_id":1,"link":"photo_8224762.html","width":130,"caption":"Bullers Green, Morpeth - Extension to exisiting Dwelling","height":98});
															thumbnails[8224791] = clik.newPhoto({"id":8224791,"src":"Bullers_Green_3_thumb.JPG","galleries_id":438482,"server_id":1,"link":"photo_8224791.html","width":130,"caption":"Bullers Green, Morpeth - Extension to exisiting Dwelling","height":98});
															thumbnails[8224792] = clik.newPhoto({"id":8224792,"src":"Bullers_Green_4_thumb.JPG","galleries_id":438482,"server_id":1,"link":"photo_8224792.html","width":130,"caption":"","height":98});
															thumbnails[8224722] = clik.newPhoto({"id":8224722,"src":"80_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_8224722.html","width":130,"caption":"Main Dining\/Reception Room Middleton Hall","height":86});
															thumbnails[8224724] = clik.newPhoto({"id":8224724,"src":"81_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_8224724.html","width":130,"caption":"","height":85});
															thumbnails[8224789] = clik.newPhoto({"id":8224789,"src":"Bullers_Green_2_thumb.JPG","galleries_id":438482,"server_id":1,"link":"photo_8224789.html","width":130,"caption":"Bullers Green, Morpeth - Extension to exisiting Dwelling","height":98});
															thumbnails[7793126] = clik.newPhoto({"id":7793126,"src":"The_Boathouse_Middleton_Hall_1_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793126.html","width":130,"caption":"","height":98});
															thumbnails[7793128] = clik.newPhoto({"id":7793128,"src":"The_Boathouse_Middleton_Hall_2_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793128.html","width":130,"caption":"","height":99});
															thumbnails[7793187] = clik.newPhoto({"id":7793187,"src":"The_Boathouse_Middleton_Hall_3_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793187.html","width":130,"caption":"","height":173});
															thumbnails[7793224] = clik.newPhoto({"id":7793224,"src":"The_Boathouse_Middleton_Hall_4_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793224.html","width":130,"caption":"","height":173});
															thumbnails[7793229] = clik.newPhoto({"id":7793229,"src":"The_Boathouse_Middleton_Hall_9_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793229.html","width":130,"caption":"","height":98});
															thumbnails[7793230] = clik.newPhoto({"id":7793230,"src":"The_Boathouse_Middleton_Hall_10_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793230.html","width":130,"caption":"","height":173});
															thumbnails[7793232] = clik.newPhoto({"id":7793232,"src":"The_Boathouse_Middleton_Hall_7_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793232.html","width":130,"caption":"","height":261});
															thumbnails[7831533] = clik.newPhoto({"id":7831533,"src":"Bathroom_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831533.html","width":130,"caption":"Lakeside Cottage - Bathroom","height":195});
															thumbnails[7831540] = clik.newPhoto({"id":7831540,"src":"South_Facing_Elevation_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831540.html","width":130,"caption":"Lakeside Cottage - South Elevation","height":87});
															thumbnails[7831547] = clik.newPhoto({"id":7831547,"src":"Lounge_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831547.html","width":130,"caption":"Lakeside Cottage - Lounge","height":87});
															thumbnails[7831572] = clik.newPhoto({"id":7831572,"src":"Bedroom_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831572.html","width":130,"caption":"Lakeside Cottage - Bedroom","height":87});
															thumbnails[7831577] = clik.newPhoto({"id":7831577,"src":"Kitchen_8D453FDF-1EC9-DFB6-0944840F4D3ED9E1_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831577.html","width":130,"caption":"Lakeside Cottage, Kitchen","height":87});
															thumbnails[7831597] = clik.newPhoto({"id":7831597,"src":"331_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831597.html","width":130,"caption":"Lakeside Cottage - Lounge 2","height":195});
															thumbnails[7831634] = clik.newPhoto({"id":7831634,"src":"North_Elevation_thumb.jpg","galleries_id":420986,"server_id":1,"link":"photo_7831634.html","width":130,"caption":"Lakeside Cottage - North Elevation","height":87});
															thumbnails[7862922] = clik.newPhoto({"id":7862922,"src":"Middleton_Hall_-_Wedding_Conservatory_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862922.html","width":130,"caption":"","height":87});
															thumbnails[7862924] = clik.newPhoto({"id":7862924,"src":"Middleton_Hall_-Wedding_Hall_2_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862924.html","width":130,"caption":"","height":87});
															thumbnails[7862925] = clik.newPhoto({"id":7862925,"src":"Middleton_Hall_-Wedding_Hall_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862925.html","width":130,"caption":"","height":87});
															thumbnails[7862926] = clik.newPhoto({"id":7862926,"src":"Middleton_Hall_-Wedding_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862926.html","width":130,"caption":"Middleton Hall, Wedding Outside","height":87});
															thumbnails[7862927] = clik.newPhoto({"id":7862927,"src":"Bedroom_2_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862927.html","width":86,"caption":"Middleton Hall, Bedroom 1","height":130});
															thumbnails[7862929] = clik.newPhoto({"id":7862929,"src":"Bedroom_3_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7862929.html","width":130,"caption":"Middleton Hall, Bedroom 2","height":86});
															thumbnails[7862930] = clik.newPhoto({"id":7862930,"src":"Middleton_Hall_-_26_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7862930.html","width":130,"caption":"Middleton Hall, Bedroom 3","height":87});
															thumbnails[7862932] = clik.newPhoto({"id":7862932,"src":"DSCF6507_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7862932.html","width":130,"caption":"Middleton Hall, Conservatory","height":98});
															thumbnails[7862933] = clik.newPhoto({"id":7862933,"src":"P1060923_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7862933.html","width":130,"caption":"Middleton Hall, Main Lounge Ceiling","height":98});
															thumbnails[7922581] = clik.newPhoto({"id":7922581,"src":"Iolair_Conservatory_Internal_2_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922581.html","width":130,"caption":"Iolair Conservatory Internal 2","height":98});
															thumbnails[7922582] = clik.newPhoto({"id":7922582,"src":"Iolair_Kitchen_Internal_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922582.html","width":130,"caption":"Iolair Conservatory Kitchen","height":98});
															thumbnails[7922587] = clik.newPhoto({"id":7922587,"src":"Iolair_Pagoda_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922587.html","width":98,"caption":"Iolair Garden Pagoda","height":130});
															thumbnails[7922592] = clik.newPhoto({"id":7922592,"src":"Iolair_Front_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922592.html","width":130,"caption":"Iolair Outside 1","height":98});
															thumbnails[7922593] = clik.newPhoto({"id":7922593,"src":"Iolair_Front__2_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922593.html","width":98,"caption":"Iolair Outside 2","height":130});
															thumbnails[6409175] = clik.newPhoto({"id":6409175,"src":"Irish_House_3_thumb.JPG","galleries_id":354124,"server_id":1,"link":"photo_6409175.html","width":130,"caption":"The Irish House","height":98});
															thumbnails[6409194] = clik.newPhoto({"id":6409194,"src":"Irish_House_1_thumb.JPG","galleries_id":354124,"server_id":1,"link":"photo_6409194.html","width":130,"caption":"The Irish House","height":98});
															thumbnails[6409199] = clik.newPhoto({"id":6409199,"src":"Irish_House_2_thumb.JPG","galleries_id":354124,"server_id":1,"link":"photo_6409199.html","width":130,"caption":"The Irish House","height":98});
															thumbnails[6409203] = clik.newPhoto({"id":6409203,"src":"Irish_House_5_thumb.JPG","galleries_id":354124,"server_id":1,"link":"photo_6409203.html","width":130,"caption":"The Irish House","height":98});
															thumbnails[1764096] = clik.newPhoto({"id":1764096,"src":"BurghamHouse03_thumb.JPG","galleries_id":118513,"server_id":1,"link":"photo_1764096.html","width":225,"caption":"Burgham Park, Morpeth Northumberland","height":192});
															thumbnails[1764099] = clik.newPhoto({"id":1764099,"src":"BurghamHouse11_thumb.JPG","galleries_id":118513,"server_id":1,"link":"photo_1764099.html","width":288,"caption":"Burgham Park, Morpeth Northumberland","height":247});
															thumbnails[1764106] = clik.newPhoto({"id":1764106,"src":"BurghamHouse12_thumb.JPG","galleries_id":118513,"server_id":1,"link":"photo_1764106.html","width":275,"caption":"Burgham Park, Morpeth, Northumberland","height":246});
															thumbnails[1764112] = clik.newPhoto({"id":1764112,"src":"BurghamHouse18_thumb.JPG","galleries_id":118513,"server_id":1,"link":"photo_1764112.html","width":288,"caption":"Burgham Park, Morpeth, Northumberland","height":246});
															thumbnails[1764115] = clik.newPhoto({"id":1764115,"src":"BurghamHouse20_thumb.JPG","galleries_id":118513,"server_id":1,"link":"photo_1764115.html","width":288,"caption":"Burgham Park, Morpeth, Northumberland","height":246});
															thumbnails[1871800] = clik.newPhoto({"id":1871800,"src":"NEABAQA01_thumb.JPG","galleries_id":125816,"server_id":1,"link":"photo_1871800.html","width":308,"caption":"NEAB AQA, Harrogate","height":231});
															thumbnails[1871801] = clik.newPhoto({"id":1871801,"src":"NEABAQA02_thumb.JPG","galleries_id":125816,"server_id":1,"link":"photo_1871801.html","width":308,"caption":"NEAB AQA, Harrogate","height":231});
															thumbnails[1871802] = clik.newPhoto({"id":1871802,"src":"NEABAQA03_thumb.JPG","galleries_id":125816,"server_id":1,"link":"photo_1871802.html","width":300,"caption":"NEAB AQA, Harrogate","height":131});
															thumbnails[1871803] = clik.newPhoto({"id":1871803,"src":"NEABAQA04_thumb.JPG","galleries_id":125816,"server_id":1,"link":"photo_1871803.html","width":304,"caption":"","height":130});
															thumbnails[1871804] = clik.newPhoto({"id":1871804,"src":"TheGrove01_thumb.JPG","galleries_id":125813,"server_id":1,"link":"photo_1871804.html","width":192,"caption":"The Grove, Dipe Lane, Sunderland","height":144});
															thumbnails[1871805] = clik.newPhoto({"id":1871805,"src":"TheGrove02_thumb.JPG","galleries_id":125813,"server_id":1,"link":"photo_1871805.html","width":192,"caption":"The Grove, Dipe Lane, Sunderland","height":144});
															thumbnails[1871806] = clik.newPhoto({"id":1871806,"src":"TheGrove03_thumb.JPG","galleries_id":125813,"server_id":1,"link":"photo_1871806.html","width":192,"caption":"The Grove, Dipe Lane, Sunderland","height":144});
															thumbnails[1871807] = clik.newPhoto({"id":1871807,"src":"TheGrove04_thumb.JPG","galleries_id":125813,"server_id":1,"link":"photo_1871807.html","width":192,"caption":"The Grove, Dipe Lane, Sunderland","height":144});
															thumbnails[1871808] = clik.newPhoto({"id":1871808,"src":"Warkworth01_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871808.html","width":269,"caption":"Castle Field, Warkworth, Northumberland","height":202});
															thumbnails[1871809] = clik.newPhoto({"id":1871809,"src":"Warkworth02_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871809.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871812] = clik.newPhoto({"id":1871812,"src":"Warkworth03_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871812.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871813] = clik.newPhoto({"id":1871813,"src":"Warkworth04_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871813.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871814] = clik.newPhoto({"id":1871814,"src":"Warkworth05_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871814.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871815] = clik.newPhoto({"id":1871815,"src":"Warkworth06_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871815.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871816] = clik.newPhoto({"id":1871816,"src":"Warkworth07_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871816.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871817] = clik.newPhoto({"id":1871817,"src":"Warkworth08_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871817.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[1871818] = clik.newPhoto({"id":1871818,"src":"Warkworth09_thumb.JPG","galleries_id":125815,"server_id":1,"link":"photo_1871818.html","width":349,"caption":"Castle Field, Warkworth, Northumberland","height":262});
															thumbnails[4925267] = clik.newPhoto({"id":4925267,"src":"Birney_Grange_Bedroom_2_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4925267.html","width":130,"caption":"Birney Grange, Stanfordham","height":98});
															thumbnails[4925268] = clik.newPhoto({"id":4925268,"src":"Birney_Grange_Guest_Bedroom_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4925268.html","width":130,"caption":"Birney Grange, Stanfordham","height":98});
															thumbnails[4925269] = clik.newPhoto({"id":4925269,"src":"Birney_Grange_Main_Staircase_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4925269.html","width":130,"caption":"Birney Grange, Stanfordham","height":98});
															thumbnails[4925270] = clik.newPhoto({"id":4925270,"src":"Birney_Grange_Stairs_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4925270.html","width":130,"caption":"Birney Grange, Stanfordham","height":173});
															thumbnails[4925446] = clik.newPhoto({"id":4925446,"src":"External_photo_thumb.JPG","galleries_id":280371,"server_id":1,"link":"photo_4925446.html","width":130,"caption":"Birney Grange, Stanfordham","height":68});
															thumbnails[4925745] = clik.newPhoto({"id":4925745,"src":"Newfields_Pool_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925745.html","width":130,"caption":"Newfields, Pool","height":98});
															thumbnails[4925748] = clik.newPhoto({"id":4925748,"src":"Newfields_Cloakroom_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925748.html","width":130,"caption":"Newfields, Kids Bathroom","height":195});
															thumbnails[4925773] = clik.newPhoto({"id":4925773,"src":"Newfields_Entracnce_Hall_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925773.html","width":130,"caption":"Newfields, Entrance Hall","height":199});
															thumbnails[4925776] = clik.newPhoto({"id":4925776,"src":"Newfields_Stairs_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925776.html","width":130,"caption":"Newfields, Staircase","height":173});
															thumbnails[4925798] = clik.newPhoto({"id":4925798,"src":"Field-House-Close-Apartment_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925798.html","width":130,"caption":"Newfields, Guest Annex Lounge","height":86});
															thumbnails[4925802] = clik.newPhoto({"id":4925802,"src":"Back_Garden_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925802.html","width":130,"caption":"Newfields, Back Sun Area","height":82});
															thumbnails[4925805] = clik.newPhoto({"id":4925805,"src":"Kitchen_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925805.html","width":130,"caption":"Newfields, Kitchen","height":82});
															thumbnails[4925809] = clik.newPhoto({"id":4925809,"src":"Kitchen_Snug_Area_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925809.html","width":130,"caption":"Newfields, Kitchen Snug","height":82});
															thumbnails[4925850] = clik.newPhoto({"id":4925850,"src":"Guest_Annex_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925850.html","width":130,"caption":"Newfields, Guest Annex","height":82});
															thumbnails[4925852] = clik.newPhoto({"id":4925852,"src":"Guest_Annex_2_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925852.html","width":130,"caption":"Newfields, Guest Annex 2","height":82});
															thumbnails[6409201] = clik.newPhoto({"id":6409201,"src":"Irish_House_4_thumb.JPG","galleries_id":354124,"server_id":1,"link":"photo_6409201.html","width":130,"caption":"The Irish House","height":98});
															thumbnails[8302659] = clik.newPhoto({"id":8302659,"src":"Entrance_Elevation_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302659.html","width":130,"caption":"\"Stonewell\" Tranwell Woods, Tranwell, Morpeth Front Elevation","height":87});
															thumbnails[8224672] = clik.newPhoto({"id":8224672,"src":"88_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_8224672.html","width":130,"caption":"Front Entrance Middleton Hall","height":86});
															thumbnails[7793226] = clik.newPhoto({"id":7793226,"src":"The_Boathouse_Middleton_Hall_6_thumb.jpg","galleries_id":420985,"server_id":1,"link":"photo_7793226.html","width":130,"caption":"","height":98});
															thumbnails[7853314] = clik.newPhoto({"id":7853314,"src":"Middleton_Hall_Main_Building_thumb.jpg","galleries_id":420989,"server_id":1,"link":"photo_7853314.html","width":130,"caption":"Middleton Hall Main Building Conservatory","height":64});
															thumbnails[7922573] = clik.newPhoto({"id":7922573,"src":"Iolair_Conservatory_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922573.html","width":130,"caption":"Iolair Conservatory Outside","height":98});
															thumbnails[4925448] = clik.newPhoto({"id":4925448,"src":"External_Photo_2_thumb.JPG","galleries_id":280371,"server_id":1,"link":"photo_4925448.html","width":130,"caption":"Birney Grange, Stanfordham","height":64});
															thumbnails[4925928] = clik.newPhoto({"id":4925928,"src":"Newfields_External_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925928.html","width":130,"caption":"Newfields, External Vista","height":61});
															thumbnails[8302661] = clik.newPhoto({"id":8302661,"src":"Gallery_staircase_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302661.html","width":130,"caption":"\"Stonewell\" Tranwell Woods","height":87});
															thumbnails[7853309] = clik.newPhoto({"id":7853309,"src":"Middleton_Hall_now_7_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853309.html","width":130,"caption":"Middleton Hall Main Building Conservatory","height":98});
															thumbnails[7922576] = clik.newPhoto({"id":7922576,"src":"Iolair_Conservatory_Internal_1_thumb.JPG","galleries_id":427002,"server_id":1,"link":"photo_7922576.html","width":98,"caption":"","height":130});
															thumbnails[4925791] = clik.newPhoto({"id":4925791,"src":"Master_Bathroom_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925791.html","width":130,"caption":"Newfields, Master Bathroom","height":82});
															thumbnails[8302662] = clik.newPhoto({"id":8302662,"src":"Sun_Lounge_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302662.html","width":130,"caption":"\"Stonewell\" Tranwell Woods","height":87});
															thumbnails[7853318] = clik.newPhoto({"id":7853318,"src":"Middleton_Hall_now_8_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853318.html","width":130,"caption":"Middleton Hall Main Hallway","height":98});
															thumbnails[4924833] = clik.newPhoto({"id":4924833,"src":"Birney_Grange_01_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4924833.html","width":130,"caption":"Birney Grange, Stanfordham","height":98});
															thumbnails[4925789] = clik.newPhoto({"id":4925789,"src":"Masterbedroom_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925789.html","width":130,"caption":"Newfields, Master Bedroom","height":82});
															thumbnails[8302665] = clik.newPhoto({"id":8302665,"src":"The_Garden_2_thumb.jpg","galleries_id":441663,"server_id":1,"link":"photo_8302665.html","width":130,"caption":"\"Stonewell\" Tranwell Woods - Garden 1","height":87});
															thumbnails[7853320] = clik.newPhoto({"id":7853320,"src":"Middleton_Hall_now_5_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853320.html","width":130,"caption":"Middleton Hall Main Lounge","height":98});
															thumbnails[4925266] = clik.newPhoto({"id":4925266,"src":"Birney_Grange_021_thumb.jpg","galleries_id":280371,"server_id":1,"link":"photo_4925266.html","width":130,"caption":"Birney Grange, Stanfordham","height":98});
															thumbnails[4925795] = clik.newPhoto({"id":4925795,"src":"Field-House-Close-Cinema-Ro_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925795.html","width":130,"caption":"Newfields, Cinema Room","height":62});
															thumbnails[7853322] = clik.newPhoto({"id":7853322,"src":"Middleton_Hall_now_4_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853322.html","width":130,"caption":"Middleton Hall Stairway","height":173});
															thumbnails[4925884] = clik.newPhoto({"id":4925884,"src":"CRW_7542mid1_thumb.jpg","galleries_id":280411,"server_id":1,"link":"photo_4925884.html","width":130,"caption":"Newfields, Garages and Driveway","height":86});
															thumbnails[7853323] = clik.newPhoto({"id":7853323,"src":"Middleton_Hall_now_3_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853323.html","width":130,"caption":"Middleton Hall Fireplace","height":173});
															thumbnails[7853326] = clik.newPhoto({"id":7853326,"src":"Middleton_Hall_now_1_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853326.html","width":130,"caption":"Middleton Hall Stairway 2","height":173});
															thumbnails[7853328] = clik.newPhoto({"id":7853328,"src":"Middleton_Hall_now_6_thumb.JPG","galleries_id":420989,"server_id":1,"link":"photo_7853328.html","width":130,"caption":"Middleton Hall Main Lounge 2","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[280371] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birney Grange, Ponteland NE15 9RB","link":"section155011_280371.html","maxRecords":0.0,"photoIDs":[4925267.0,4925268.0,4925269.0,4925270.0,4925446.0,4925448.0,4924833.0,4925266.0],"skipIndex":0,"section_code":"section155011","featured_images":"4925448,4925446,4925270,4925269,4925268,4925267,4925266,4924833","id":280371,"singleSection":false});				  						galleries[438482] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bullers Green, Morpeth","link":"section155011_438482.html","maxRecords":0.0,"photoIDs":[8224762.0,8224791.0,8224792.0,8224789.0],"skipIndex":0,"section_code":"section155011","featured_images":"8224792,8224791,8224789,8224762","id":438482,"singleSection":false});				  						galleries[118513] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Burgham Park, Morpeth, Northumberland","link":"section155011_118513.html","maxRecords":0.0,"photoIDs":[1764096.0,1764099.0,1764106.0,1764112.0,1764115.0],"skipIndex":0,"section_code":"section155011","featured_images":"1764115,1764096","id":118513,"singleSection":false});				  						galleries[125815] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Castle Field, Warkworth, Northumberland","link":"section155011_125815.html","maxRecords":0.0,"photoIDs":[1871808.0,1871809.0,1871812.0,1871813.0,1871814.0,1871815.0,1871816.0,1871817.0,1871818.0],"skipIndex":0,"section_code":"section155011","featured_images":1871818.0,"id":125815,"singleSection":false});				  						galleries[427002] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Iolair, Coldstream, Berwick","link":"section155011_427002.html","maxRecords":0.0,"photoIDs":[7922581.0,7922582.0,7922587.0,7922592.0,7922593.0,7922573.0,7922576.0],"skipIndex":0,"section_code":"section155011","featured_images":"7922593,7922592,7922587,7922582,7922581,7922576,7922573","id":427002,"singleSection":false});				  						galleries[420986] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Middleton Hall - Lakeside Cottage","link":"section155011_420986.html","maxRecords":0.0,"photoIDs":[7831533.0,7831540.0,7831547.0,7831572.0,7831577.0,7831597.0,7831634.0],"skipIndex":0,"section_code":"section155011","featured_images":"7831634,7831597,7831577,7831572,7831547,7831540,7831533","id":420986,"singleSection":false});				  						galleries[420985] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Middleton Hall - The Boathouse","link":"section155011_420985.html","maxRecords":0.0,"photoIDs":[7793126.0,7793128.0,7793187.0,7793224.0,7793229.0,7793230.0,7793232.0,7793226.0],"skipIndex":0,"section_code":"section155011","featured_images":"7793232,7793230,7793229,7793226,7793224,7793187,7793128,7793126","id":420985,"singleSection":false});				  						galleries[420989] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Middleton Hall, Northumberland","link":"section155011_420989.html","maxRecords":0.0,"photoIDs":[8224722.0,8224724.0,7862922.0,7862924.0,7862925.0,7862926.0,7862927.0,7862929.0,7862930.0,7862932.0,7862933.0,8224672.0,7853314.0,7853309.0,7853318.0,7853320.0,7853322.0,7853323.0,7853326.0,7853328.0],"skipIndex":0,"section_code":"section155011","featured_images":"8224724,8224722,8224672,7862933,7862932,7862930,7862929,7862927,7862926,7862925","id":420989,"singleSection":false});				  						galleries[125816] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NEAB AQA, Harrogate","link":"section155011_125816.html","maxRecords":0.0,"photoIDs":[1871800.0,1871801.0,1871802.0,1871803.0],"skipIndex":0,"section_code":"section155011","featured_images":1871801.0,"id":125816,"singleSection":false});				  						galleries[280411] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Newfields, Hepscott, Morpeth","link":"section155011_280411.html","maxRecords":0.0,"photoIDs":[4925745.0,4925748.0,4925773.0,4925776.0,4925798.0,4925802.0,4925805.0,4925809.0,4925850.0,4925852.0,4925928.0,4925791.0,4925789.0,4925795.0,4925884.0],"skipIndex":0,"section_code":"section155011","featured_images":"4925928,4925884,4925852,4925850,4925809,4925805,4925802,4925798,4925795,4925791","id":280411,"singleSection":false});				  						galleries[441663] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stonewell, Tranwell Woods","link":"section155011_441663.html","maxRecords":0.0,"photoIDs":[8302682.0,8302688.0,8302692.0,8302693.0,8302659.0,8302661.0,8302662.0,8302665.0],"skipIndex":0,"section_code":"section155011","featured_images":"8302693,8302692,8302688,8302682,8302665,8302662,8302661,8302659","id":441663,"singleSection":false});				  						galleries[125813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Grove, Dipe Lane, Sunderland","link":"section155011_125813.html","maxRecords":0.0,"photoIDs":[1871804.0,1871805.0,1871806.0,1871807.0],"skipIndex":0,"section_code":"section155011","featured_images":1871807.0,"id":125813,"singleSection":false});				  						galleries[354124] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Irish House","link":"section155011_354124.html","maxRecords":0.0,"photoIDs":[6409175.0,6409194.0,6409199.0,6409203.0,6409201.0],"skipIndex":0,"section_code":"section155011","featured_images":"6409203,6409201,6409199,6409194,6409175","id":354124,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[232622] = '1764096';
imageSets[1] = '7922593,7922592,7922587,7922581,7862933,7862932,7862930,7862929,7862927,7862926,7862925,7862924,7862922,7793187,7793126,1871818,1871817,1871816,1871815,1871814,1871813,1871812,1871809,1871808,1871807,1871806,1871804,1764106,1764096,7922573,7853314,7922576,4925266';
imageSets[2] = '1871818,1871807,1871801,1764115,1764096';
imageSets[3] = '1764096';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/DavidFleming/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/DavidFleming/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 += 'section155011.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 && 'section155011' != '') {
					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 = 'D M Fleming Building Design: ' + 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;
	}
}

			

