window.thumbnails = {};
															thumbnails[1763243] = clik.newPhoto({"id":1763243,"src":"lindisfarne - balanced3_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_1763243.html","width":130,"caption":"Lindisfarne Castle in the winter sunshine","height":173});
															thumbnails[1769481] = clik.newPhoto({"id":1769481,"src":"shots 027_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1769481.html","width":130,"caption":"Warkworth Castle during a misty sunset","height":98});
															thumbnails[1772428] = clik.newPhoto({"id":1772428,"src":"Pier Lighthouse at dawn_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1772428.html","width":130,"caption":"Sunrise behind Amble pier","height":173});
															thumbnails[1772433] = clik.newPhoto({"id":1772433,"src":"Pier Sunset_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1772433.html","width":130,"caption":"Sunset over Warkworth - viewed from Amble Harbour","height":98});
															thumbnails[1775944] = clik.newPhoto({"id":1775944,"src":"Amble Lighthouse waves_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775944.html","width":130,"caption":"Amble Pier Storm 1.","height":173});
															thumbnails[1775948] = clik.newPhoto({"id":1775948,"src":"Amble Pier Storm_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775948.html","width":130,"caption":"Waves crash across the pier.","height":98});
															thumbnails[1775951] = clik.newPhoto({"id":1775951,"src":"coquet evening_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775951.html","width":130,"caption":"Sunset on the River Coquet with Warkworth Castle in the background.","height":173});
															thumbnails[1775964] = clik.newPhoto({"id":1775964,"src":"Coquet Sunset1_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775964.html","width":130,"caption":"Coquet Sunset","height":173});
															thumbnails[1775966] = clik.newPhoto({"id":1775966,"src":"Evening Lighthouse_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775966.html","width":130,"caption":"Coquet Island Lighthouse.","height":173});
															thumbnails[1775969] = clik.newPhoto({"id":1775969,"src":"Marina Boats_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1775969.html","width":130,"caption":"Amble Boats","height":98});
															thumbnails[1775975] = clik.newPhoto({"id":1775975,"src":"Bamburgh Sands1_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1775975.html","width":130,"caption":"Bamburgh Sands.","height":173});
															thumbnails[1775978] = clik.newPhoto({"id":1775978,"src":"Bamburgh Beach_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1775978.html","width":130,"caption":"Bamburgh Beach Sunrise.","height":173});
															thumbnails[1775982] = clik.newPhoto({"id":1775982,"src":"Alnmouth Cross 1_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1775982.html","width":130,"caption":"Alnmouth Cross 1.","height":98});
															thumbnails[1775985] = clik.newPhoto({"id":1775985,"src":"Alnmouth Cross 2_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1775985.html","width":130,"caption":"Alnmouth Cross 2.","height":173});
															thumbnails[1775987] = clik.newPhoto({"id":1775987,"src":"Alnmouth Cross 3_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1775987.html","width":130,"caption":"River Aln and Cross.","height":98});
															thumbnails[1775988] = clik.newPhoto({"id":1775988,"src":"Alnmouth Village_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1775988.html","width":130,"caption":"Alnmouth Village.","height":98});
															thumbnails[1775991] = clik.newPhoto({"id":1775991,"src":"Alnmouth Beach_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1775991.html","width":130,"caption":"Alnmouth Dawn.","height":173});
															thumbnails[1788069] = clik.newPhoto({"id":1788069,"src":"Dolphinton1_thumb.jpg","galleries_id":120231,"server_id":18,"link":"photo_1788069.html","width":130,"caption":"Dolphinton 1.","height":173});
															thumbnails[1788075] = clik.newPhoto({"id":1788075,"src":"Talla Reflection1_thumb.jpg","galleries_id":120230,"server_id":18,"link":"photo_1788075.html","width":130,"caption":"Talla Reflection 1.","height":98});
															thumbnails[1788082] = clik.newPhoto({"id":1788082,"src":"Talla view2_thumb.jpg","galleries_id":120230,"server_id":18,"link":"photo_1788082.html","width":130,"caption":"Talla View.","height":173});
															thumbnails[1788089] = clik.newPhoto({"id":1788089,"src":"Above Talla1_thumb.jpg","galleries_id":120230,"server_id":18,"link":"photo_1788089.html","width":130,"caption":"Above Talla.","height":173});
															thumbnails[1789547] = clik.newPhoto({"id":1789547,"src":"Edlingham Castle_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1789547.html","width":130,"caption":"Edlingham Sunset","height":173});
															thumbnails[1789553] = clik.newPhoto({"id":1789553,"src":"Edlingham sky_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1789553.html","width":130,"caption":"Edlingham Sky.","height":98});
															thumbnails[1789557] = clik.newPhoto({"id":1789557,"src":"Frosty Edlingham 1_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1789557.html","width":130,"caption":"Frosty Edlingham","height":173});
															thumbnails[1789566] = clik.newPhoto({"id":1789566,"src":"Durham Cathedral_thumb.jpg","galleries_id":120316,"server_id":18,"link":"photo_1789566.html","width":130,"caption":"Durham Cathedral","height":98});
															thumbnails[1789573] = clik.newPhoto({"id":1789573,"src":"Eden Valley Church_thumb.jpg","galleries_id":120316,"server_id":18,"link":"photo_1789573.html","width":130,"caption":"Eden Castle Church","height":173});
															thumbnails[1789577] = clik.newPhoto({"id":1789577,"src":"Caistron Bullrushes_thumb.jpg","galleries_id":120321,"server_id":18,"link":"photo_1789577.html","width":130,"caption":"Caistron Bullrushes","height":173});
															thumbnails[1789580] = clik.newPhoto({"id":1789580,"src":"Caistron Lake_thumb.jpg","galleries_id":120321,"server_id":18,"link":"photo_1789580.html","width":130,"caption":"Caistron Lake at Sunset","height":98});
															thumbnails[1789596] = clik.newPhoto({"id":1789596,"src":"Misty Couple2_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_1789596.html","width":130,"caption":"Misty Couple","height":173});
															thumbnails[1793840] = clik.newPhoto({"id":1793840,"src":"Berwick via Tweedmouth Bridge_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_1793840.html","width":130,"caption":"Berwick and lower bridge","height":98});
															thumbnails[1793866] = clik.newPhoto({"id":1793866,"src":"Debdon Gate_thumb.jpg","galleries_id":120321,"server_id":18,"link":"photo_1793866.html","width":130,"caption":"Debdon Gate","height":98});
															thumbnails[1799092] = clik.newPhoto({"id":1799092,"src":"Yellow Field_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_1799092.html","width":130,"caption":"Yellow, Green and Blue.","height":98});
															thumbnails[1799094] = clik.newPhoto({"id":1799094,"src":"robin_thumb.jpg","galleries_id":120324,"server_id":18,"link":"photo_1799094.html","width":130,"caption":"Robin.","height":173});
															thumbnails[1799102] = clik.newPhoto({"id":1799102,"src":"sea and sky_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_1799102.html","width":130,"caption":"Sea and Sky","height":98});
															thumbnails[1808585] = clik.newPhoto({"id":1808585,"src":"Boulmer Boats_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1808585.html","width":130,"caption":"fishing boats at rest off Boulmer shore.","height":173});
															thumbnails[1808592] = clik.newPhoto({"id":1808592,"src":"Warkworth winter sunshine_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1808592.html","width":130,"caption":"Warkworth winter sunshine","height":98});
															thumbnails[1808600] = clik.newPhoto({"id":1808600,"src":"Dunstanburgh reflection_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1808600.html","width":130,"caption":"Dunstanburgh reflection","height":98});
															thumbnails[1808611] = clik.newPhoto({"id":1808611,"src":"Edlingham clouds_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_1808611.html","width":130,"caption":"Edlingham Clouds","height":173});
															thumbnails[1808625] = clik.newPhoto({"id":1808625,"src":"Rumbling Kern_thumb.jpg","galleries_id":119422,"server_id":18,"link":"photo_1808625.html","width":130,"caption":"Rumbling Kern","height":173});
															thumbnails[1809908] = clik.newPhoto({"id":1809908,"src":"Edinburgh spires_thumb.jpg","galleries_id":121636,"server_id":18,"link":"photo_1809908.html","width":130,"caption":"Edinburgh Spires","height":173});
															thumbnails[1819644] = clik.newPhoto({"id":1819644,"src":"Linshiels Stile_thumb.jpg","galleries_id":120321,"server_id":18,"link":"photo_1819644.html","width":130,"caption":"Linshiels Stile","height":98});
															thumbnails[1823632] = clik.newPhoto({"id":1823632,"src":"Alwinton snow1_thumb.jpg","galleries_id":120321,"server_id":18,"link":"photo_1823632.html","width":130,"caption":"Alwinton snow","height":98});
															thumbnails[1823634] = clik.newPhoto({"id":1823634,"src":"Dunstanburgh Dawn1_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1823634.html","width":130,"caption":"Dunstanburgh Pink","height":173});
															thumbnails[1823645] = clik.newPhoto({"id":1823645,"src":"Alnwick Castle frost_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1823645.html","width":130,"caption":"Alnwick Castle Frost","height":98});
															thumbnails[1834359] = clik.newPhoto({"id":1834359,"src":"Dunstanburgh morning waves1_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1834359.html","width":130,"caption":"Dunstanburgh dawn light ","height":98});
															thumbnails[1834379] = clik.newPhoto({"id":1834379,"src":"Dunstanburgh Waves1_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1834379.html","width":130,"caption":"Dunstanburgh waves.","height":98});
															thumbnails[1834406] = clik.newPhoto({"id":1834406,"src":"Dunstanburgh tide dawn1_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1834406.html","width":130,"caption":"Dunstanburgh Dawn Tide","height":173});
															thumbnails[1834409] = clik.newPhoto({"id":1834409,"src":"Dunstanburgh Point1_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1834409.html","width":130,"caption":"Dunstanburgh Point","height":173});
															thumbnails[1842840] = clik.newPhoto({"id":1842840,"src":"Bamburgh  2_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1842840.html","width":130,"caption":"Bamburgh Castle and steam","height":173});
															thumbnails[1870603] = clik.newPhoto({"id":1870603,"src":"Holburn Tree_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_1870603.html","width":130,"caption":"Holburn Tree","height":98});
															thumbnails[1870604] = clik.newPhoto({"id":1870604,"src":"Lindisfarne fence_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_1870604.html","width":130,"caption":"Lindisfarne Fence","height":98});
															thumbnails[1870606] = clik.newPhoto({"id":1870606,"src":"Tweed View_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_1870606.html","width":130,"caption":"Tweed View","height":98});
															thumbnails[1870609] = clik.newPhoto({"id":1870609,"src":"Bamburgh Sunshine_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1870609.html","width":130,"caption":"Bamburgh Sunshine","height":173});
															thumbnails[1870622] = clik.newPhoto({"id":1870622,"src":"Bowden Doors_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_1870622.html","width":130,"caption":"Bowden Doors","height":98});
															thumbnails[1899691] = clik.newPhoto({"id":1899691,"src":"Shilbottle Sunset_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1899691.html","width":130,"caption":"Shilbottle Sunset","height":98});
															thumbnails[1951469] = clik.newPhoto({"id":1951469,"src":"Amble sunrise_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1951469.html","width":130,"caption":"Amble Sunrise.","height":98});
															thumbnails[1951472] = clik.newPhoto({"id":1951472,"src":"Bamburgh Village_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1951472.html","width":130,"caption":"Bamburgh Village","height":98});
															thumbnails[1951480] = clik.newPhoto({"id":1951480,"src":"Battle Monument_thumb..jpg","galleries_id":120315,"server_id":18,"link":"photo_1951480.html","width":130,"caption":"Battle monument, Lemmington","height":173});
															thumbnails[1951497] = clik.newPhoto({"id":1951497,"src":"Edlingham Church_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1951497.html","width":130,"caption":"Edlingham Church","height":98});
															thumbnails[1951501] = clik.newPhoto({"id":1951501,"src":"Embleton Bay_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_1951501.html","width":130,"caption":"Embleton Bay","height":98});
															thumbnails[1951514] = clik.newPhoto({"id":1951514,"src":"Linhope Spout 1_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_1951514.html","width":130,"caption":"Linhope Spout (1)","height":173});
															thumbnails[1951547] = clik.newPhoto({"id":1951547,"src":"Linhope Spout 2_thumb..jpg","galleries_id":125738,"server_id":18,"link":"photo_1951547.html","width":130,"caption":"Linhope Spout(2)","height":173});
															thumbnails[1951552] = clik.newPhoto({"id":1951552,"src":"Returning Home_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_1951552.html","width":130,"caption":"Returning Home.","height":98});
															thumbnails[1951565] = clik.newPhoto({"id":1951565,"src":"Warkworth Daffodils_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1951565.html","width":130,"caption":"Warkworth Daffodils.","height":98});
															thumbnails[1960216] = clik.newPhoto({"id":1960216,"src":"Bamburgh Beach1_thumb.jpg","galleries_id":119106,"server_id":18,"link":"photo_1960216.html","width":130,"caption":"Bamburgh Beach.","height":173});
															thumbnails[1960240] = clik.newPhoto({"id":1960240,"src":"Berwick from Tweedmouth_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_1960240.html","width":130,"caption":"Berwick from Tweedmouth.","height":98});
															thumbnails[1960247] = clik.newPhoto({"id":1960247,"src":"Cheviot Storm_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_1960247.html","width":130,"caption":"Cheviot Storm.","height":98});
															thumbnails[1960250] = clik.newPhoto({"id":1960250,"src":"Simonside Hills from Fontburn_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_1960250.html","width":130,"caption":"Simonside Hills.","height":98});
															thumbnails[1991340] = clik.newPhoto({"id":1991340,"src":"Alnwick snow_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1991340.html","width":130,"caption":"Alnwick Snow","height":173});
															thumbnails[1991344] = clik.newPhoto({"id":1991344,"src":"Snow Lion_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1991344.html","width":130,"caption":"Lion Bridge and Alnwick Castle","height":98});
															thumbnails[1991348] = clik.newPhoto({"id":1991348,"src":"Snowy Castle_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1991348.html","width":130,"caption":"Snowy Reflection","height":98});
															thumbnails[1991353] = clik.newPhoto({"id":1991353,"src":"Snowy Pastures_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_1991353.html","width":130,"caption":"Castle and sheep","height":98});
															thumbnails[1991378] = clik.newPhoto({"id":1991378,"src":"Warkworth Village snow_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1991378.html","width":130,"caption":"Warkworth winter scene","height":98});
															thumbnails[1991381] = clik.newPhoto({"id":1991381,"src":"Winter Castle_thumb.jpg","galleries_id":119102,"server_id":18,"link":"photo_1991381.html","width":130,"caption":"Winter Castle","height":98});
															thumbnails[2393229] = clik.newPhoto({"id":2393229,"src":"Manderston, Duns_thumb.jpg","galleries_id":121636,"server_id":18,"link":"photo_2393229.html","width":130,"caption":"Manderston. Near Duns.","height":98});
															thumbnails[2393242] = clik.newPhoto({"id":2393242,"src":"Melrose Abbey_thumb.jpg","galleries_id":121636,"server_id":18,"link":"photo_2393242.html","width":130,"caption":"Melrose Abbey.","height":173});
															thumbnails[2393245] = clik.newPhoto({"id":2393245,"src":"Scott's View, Scottish Borders_thumb.jpg","galleries_id":121636,"server_id":18,"link":"photo_2393245.html","width":130,"caption":"Scott's View, Nr Melrose","height":98});
															thumbnails[2420006] = clik.newPhoto({"id":2420006,"src":"Floors Castle, Kelso_thumb.jpg","galleries_id":121636,"server_id":18,"link":"photo_2420006.html","width":130,"caption":"Floors Castle, Kelso","height":98});
															thumbnails[2657889] = clik.newPhoto({"id":2657889,"src":"Coquet Waves4_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_2657889.html","width":130,"caption":"","height":98});
															thumbnails[2657896] = clik.newPhoto({"id":2657896,"src":"Sunflowers 1_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_2657896.html","width":130,"caption":"Sunflowers 1","height":173});
															thumbnails[2657906] = clik.newPhoto({"id":2657906,"src":"Sunflowers 2_thumb.jpg","galleries_id":120325,"server_id":18,"link":"photo_2657906.html","width":130,"caption":"","height":98});
															thumbnails[2879719] = clik.newPhoto({"id":2879719,"src":"Crag Lough Reflection_thumb.jpg","galleries_id":178803,"server_id":18,"link":"photo_2879719.html","width":129,"caption":"Crag Lough Reflection","height":97});
															thumbnails[2879721] = clik.newPhoto({"id":2879721,"src":"Crag Lough Sunset_thumb.jpg","galleries_id":178803,"server_id":18,"link":"photo_2879721.html","width":129,"caption":"Crag Lough Sunset","height":97});
															thumbnails[2879722] = clik.newPhoto({"id":2879722,"src":"Crag Lough Symmetry_thumb.jpg","galleries_id":178803,"server_id":18,"link":"photo_2879722.html","width":129,"caption":"Crag Lough Symmetry","height":173});
															thumbnails[2879733] = clik.newPhoto({"id":2879733,"src":"St Mary's Lighthouse_thumb.jpg","galleries_id":178804,"server_id":18,"link":"photo_2879733.html","width":129,"caption":"St Mary's Lighthouse - Tynemouth","height":97});
															thumbnails[3238174] = clik.newPhoto({"id":3238174,"src":"Cheviot snow and clouds_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_3238174.html","width":130,"caption":"Snow capped Cheviots","height":98});
															thumbnails[3238176] = clik.newPhoto({"id":3238176,"src":"Edlingham view_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_3238176.html","width":130,"caption":"Edlingham Castle and Church","height":98});
															thumbnails[3238182] = clik.newPhoto({"id":3238182,"src":"Cheviot View_thumb.jpg","galleries_id":125738,"server_id":18,"link":"photo_3238182.html","width":130,"caption":"Snow across the fields","height":98});
															thumbnails[4968533] = clik.newPhoto({"id":4968533,"src":"Fishing_boat_thumb.jpg","galleries_id":282422,"server_id":18,"link":"photo_4968533.html","width":130,"caption":"Following the Boat","height":87});
															thumbnails[4968563] = clik.newPhoto({"id":4968563,"src":"Lochgoilhead_dawn_thumb.jpg","galleries_id":282422,"server_id":18,"link":"photo_4968563.html","width":130,"caption":"Lochgoilhead from Castle Carrick","height":87});
															thumbnails[4968567] = clik.newPhoto({"id":4968567,"src":"Carrick_Castle_thumb.jpg","galleries_id":282422,"server_id":18,"link":"photo_4968567.html","width":130,"caption":"Castle Carrick","height":195});
															thumbnails[4968571] = clik.newPhoto({"id":4968571,"src":"Sunbathing_thumb.jpg","galleries_id":282422,"server_id":18,"link":"photo_4968571.html","width":130,"caption":"Sunbathing","height":87});
															thumbnails[5140755] = clik.newPhoto({"id":5140755,"src":"Admiring_the_View_-_Brizlee_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_5140755.html","width":130,"caption":"Admiring the view - Brizlee","height":98});
															thumbnails[5140760] = clik.newPhoto({"id":5140760,"src":"Megget_Head_-_Clouds_1_thumb.jpg","galleries_id":120231,"server_id":18,"link":"photo_5140760.html","width":130,"caption":"Clouds over Megget","height":195});
															thumbnails[5140764] = clik.newPhoto({"id":5140764,"src":"Bamburgh_Dawn_View_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_5140764.html","width":130,"caption":"Dawn - From Holy Island","height":87});
															thumbnails[5140778] = clik.newPhoto({"id":5140778,"src":"Brizlee_View_thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_5140778.html","width":130,"caption":"View from Brizlee","height":173});
															thumbnails[5140784] = clik.newPhoto({"id":5140784,"src":"Coquet_Storm_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_5140784.html","width":130,"caption":"Coquet Storm","height":173});
															thumbnails[5140787] = clik.newPhoto({"id":5140787,"src":"Lindisfarne_Dawn_thumb.jpg","galleries_id":119108,"server_id":18,"link":"photo_5140787.html","width":130,"caption":"Lindisfarne Dawn","height":173});
															thumbnails[5140791] = clik.newPhoto({"id":5140791,"src":"Peebles_-_Autumn_Colours_thumb.jpg","galleries_id":120231,"server_id":18,"link":"photo_5140791.html","width":130,"caption":"Autumn Colours - Peebles","height":195});
															thumbnails[6027186] = clik.newPhoto({"id":6027186,"src":"Ullswater_-_Spring_Snow_thumb.JPG","galleries_id":338992,"server_id":18,"link":"photo_6027186.html","width":130,"caption":"Ullwater - late snow on the hills","height":87});
															thumbnails[6027188] = clik.newPhoto({"id":6027188,"src":"Touching_the_hills_-_Ullswater_thumb.JPG","galleries_id":338992,"server_id":18,"link":"photo_6027188.html","width":130,"caption":"Dawn sun on the hills - Ullswater","height":87});
															thumbnails[7311325] = clik.newPhoto({"id":7311325,"src":"A_Hard_Road_to_follow._thumb.jpg","galleries_id":120315,"server_id":18,"link":"photo_7311325.html","width":130,"caption":"Deep snow above Alnwick","height":195});
															thumbnails[7311327] = clik.newPhoto({"id":7311327,"src":"Amble_Snow_1_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_7311327.html","width":130,"caption":"The snowy coast","height":195});
															thumbnails[7311331] = clik.newPhoto({"id":7311331,"src":"Amble_Snow_2_thumb.jpg","galleries_id":119104,"server_id":18,"link":"photo_7311331.html","width":130,"caption":"Snow and storm clouds","height":87});
															thumbnails[7311334] = clik.newPhoto({"id":7311334,"src":"Dunstanburgh_Evening_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_7311334.html","width":130,"caption":"The final rays of the sun on Dunstanburgh Castle","height":87});
															thumbnails[7392303] = clik.newPhoto({"id":7392303,"src":"Approaching_tide_-_Dunstanburg_thumb.jpg","galleries_id":119101,"server_id":18,"link":"photo_7392303.html","width":130,"caption":"Afternoon tide - Dunstanburgh","height":87});
															thumbnails[7580512] = clik.newPhoto({"id":7580512,"src":"Bassenthwaite_Dawn_thumb.jpg","galleries_id":338992,"server_id":18,"link":"photo_7580512.html","width":130,"caption":"Bassenthwaite Dawn","height":87});
															thumbnails[7580526] = clik.newPhoto({"id":7580526,"src":"Crummock_Water_mists_thumb.jpg","galleries_id":338992,"server_id":18,"link":"photo_7580526.html","width":130,"caption":"Mist over Crummock Water","height":87});
															thumbnails[7580533] = clik.newPhoto({"id":7580533,"src":"Crummock_Water_Island_thumb.jpg","galleries_id":338992,"server_id":18,"link":"photo_7580533.html","width":130,"caption":"Crummock Water Island","height":195});
															thumbnails[7580540] = clik.newPhoto({"id":7580540,"src":"Ennerdale_clouds_thumb.jpg","galleries_id":338992,"server_id":18,"link":"photo_7580540.html","width":130,"caption":"Ennerdale Clouds","height":173});
															thumbnails[7580553] = clik.newPhoto({"id":7580553,"src":"Ennerdale_Crags_2_thumb.jpg","galleries_id":338992,"server_id":18,"link":"photo_7580553.html","width":130,"caption":"Ennerdale - Crag Fell","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[119422] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Alnmouth to Craster","link":"gallery_119422.html","maxRecords":0.0,"photoIDs":[1775982.0,1775985.0,1775987.0,1775988.0,1775991.0,1808585.0,1808625.0],"skipIndex":0,"section_code":"gallery","featured_images":"1808625,1808585,1775991,1775988,1775987,1775985,1775982","id":119422,"singleSection":false});				  						galleries[120315] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Alnwick and surrounds","link":"gallery_120315.html","maxRecords":0.0,"photoIDs":[1789547.0,1789553.0,1789557.0,1823645.0,1951480.0,1951497.0,1991340.0,1991344.0,1991348.0,1991353.0,3238176.0,5140755.0,5140778.0,7311325.0],"skipIndex":0,"section_code":"gallery","featured_images":"7311325,5140778,5140755,3238176,1991353,1991348,1991344,1991340,1951497,1951480","id":120315,"singleSection":false});				  						galleries[119104] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Amble","link":"gallery_119104.html","maxRecords":0.0,"photoIDs":[1772428.0,1772433.0,1775944.0,1775948.0,1775951.0,1775964.0,1775966.0,1775969.0,1951469.0,1951552.0,2657889.0,5140784.0,7311327.0,7311331.0],"skipIndex":0,"section_code":"gallery","featured_images":"7311331,7311327,5140784,2657889,1951552,1951469,1775969,1775966,1775964,1775951","id":119104,"singleSection":false});				  						galleries[120324] = clik.newGallery({"parentGallery":118317,"usePopups":false,"title":"Animals and things","link":"gallery_120324.html","maxRecords":0.0,"photoIDs":[1799094.0],"skipIndex":0,"section_code":"gallery","featured_images":1799094.0,"id":120324,"singleSection":false});				  						galleries[119106] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Bamburgh","link":"gallery_119106.html","maxRecords":0.0,"photoIDs":[1775975.0,1775978.0,1842840.0,1870609.0,1951472.0,1960216.0],"skipIndex":0,"section_code":"gallery","featured_images":"1960216,1951472,1870609,1842840,1775978,1775975","id":119106,"singleSection":false});				  						galleries[120316] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"County Durham","link":"gallery_120316.html","maxRecords":0.0,"photoIDs":[1789566.0,1789573.0],"skipIndex":0,"section_code":"gallery","featured_images":"1789573,1789566","id":120316,"singleSection":false});				  						galleries[119101] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Dunstanburgh and Embleton","link":"gallery_119101.html","maxRecords":0.0,"photoIDs":[1808600.0,1823634.0,1834359.0,1834379.0,1834406.0,1834409.0,1951501.0,7311334.0,7392303.0],"skipIndex":0,"section_code":"gallery","featured_images":"7392303,7311334,1951501,1834409,1834406,1834379,1834359,1823634,1808600","id":119101,"singleSection":false});				  						galleries[121636] = clik.newGallery({"parentGallery":118423,"usePopups":false,"title":"Eastern Borders and Lothian","link":"gallery_121636.html","maxRecords":0.0,"photoIDs":[1809908.0,2393229.0,2393242.0,2393245.0,2420006.0],"skipIndex":0,"section_code":"gallery","featured_images":"2420006,2393245,2393242,2393229,1809908","id":121636,"singleSection":false});				  						galleries[119108] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Holy Island and Berwick","link":"gallery_119108.html","maxRecords":0.0,"photoIDs":[1763243.0,1793840.0,1870604.0,1870606.0,1960240.0,5140764.0,5140787.0],"skipIndex":0,"section_code":"gallery","featured_images":"5140787,5140764,1960240,1870606,1870604,1793840,1763243","id":119108,"singleSection":false});				  						galleries[338992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lake District","link":"gallery_338992.html","maxRecords":0.0,"photoIDs":[6027186.0,6027188.0,7580512.0,7580526.0,7580533.0,7580540.0,7580553.0],"skipIndex":0,"section_code":"gallery","featured_images":"7580553,7580540,7580526","id":338992,"singleSection":false});				  						galleries[119100] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Northumberland","link":"gallery_119100.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7392303,7311334,7311331,7311327,7311325,5140787,5140784,5140778,5140764,5140755","id":119100,"singleSection":false});				  						galleries[120325] = clik.newGallery({"parentGallery":118317,"usePopups":false,"title":"Others (people and abstract)","link":"gallery_120325.html","maxRecords":0.0,"photoIDs":[1789596.0,1799092.0,1799102.0,1808611.0,2657896.0,2657906.0],"skipIndex":0,"section_code":"gallery","featured_images":"2657906,2657896,1808611,1799102,1799092,1789596","id":120325,"singleSection":false});				  						galleries[120321] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Rothbury and Upper Coquetdale","link":"gallery_120321.html","maxRecords":0.0,"photoIDs":[1789577.0,1789580.0,1793866.0,1819644.0,1823632.0],"skipIndex":0,"section_code":"gallery","featured_images":"1823632,1819644,1793866,1789580,1789577","id":120321,"singleSection":false});				  						galleries[282422] = clik.newGallery({"parentGallery":118423,"usePopups":false,"title":"Scotland - other","link":"gallery_282422.html","maxRecords":0.0,"photoIDs":[4968533.0,4968563.0,4968567.0,4968571.0],"skipIndex":0,"section_code":"gallery","featured_images":"4968571,4968567,4968563,4968533","id":282422,"singleSection":false});				  						galleries[118423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scottish Borders","link":"gallery_118423.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5140791,5140760,4968571,4968567,4968563,4968533,2420006,2393245,2393242,2393229","id":118423,"singleSection":false});				  						galleries[120230] = clik.newGallery({"parentGallery":118423,"usePopups":false,"title":"Talla and Megget","link":"gallery_120230.html","maxRecords":0.0,"photoIDs":[1788075.0,1788082.0,1788089.0],"skipIndex":0,"section_code":"gallery","featured_images":"1788089,1788082,1788075","id":120230,"singleSection":false});				  						galleries[178804] = clik.newGallery({"parentGallery":118317,"usePopups":false,"title":"Tyne and Newcastle","link":"gallery_178804.html","maxRecords":0.0,"photoIDs":[2879733.0],"skipIndex":0,"section_code":"gallery","featured_images":2879733.0,"id":178804,"singleSection":false});				  						galleries[178803] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Tynedale and Hadrian's Wall","link":"gallery_178803.html","maxRecords":0.0,"photoIDs":[2879719.0,2879721.0,2879722.0],"skipIndex":0,"section_code":"gallery","featured_images":"2879722,2879721,2879719","id":178803,"singleSection":false});				  						galleries[119102] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Warkworth","link":"gallery_119102.html","maxRecords":0.0,"photoIDs":[1769481.0,1808592.0,1899691.0,1951565.0,1991378.0,1991381.0],"skipIndex":0,"section_code":"gallery","featured_images":"1991381,1991378,1951565,1899691,1808592,1769481","id":119102,"singleSection":false});				  						galleries[120231] = clik.newGallery({"parentGallery":118423,"usePopups":false,"title":"Western Borders","link":"gallery_120231.html","maxRecords":0.0,"photoIDs":[1788069.0,5140760.0,5140791.0],"skipIndex":0,"section_code":"gallery","featured_images":"5140791,5140760,1788069","id":120231,"singleSection":false});				  						galleries[125738] = clik.newGallery({"parentGallery":119100,"usePopups":false,"title":"Wooler, Cheviots and inland","link":"gallery_125738.html","maxRecords":0.0,"photoIDs":[1870603.0,1870622.0,1951514.0,1951547.0,1960247.0,1960250.0,3238174.0,3238182.0],"skipIndex":0,"section_code":"gallery","featured_images":"3238182,3238174,1960250,1960247,1951547,1951514,1870622,1870603","id":125738,"singleSection":false});				  						galleries[118317] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Various","link":"gallery_118317.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2879733,2657906,2657896,1808611,1799102,1799094,1799092,1789596","id":118317,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7580540,7580526,1823634';
imageSets[2] = '7580553,7580540,7580526';
imageSets[3] = '7580553,7580540,7580533,7580526,7580512,7392303,7311334,7311331,7311327,7311325,6027188,6027186,5140791,5140787,5140784,5140778,5140764,5140760,5140755,4968571,4968567,4968563,4968533,3238182,3238176,3238174,2879733,2879722,2879721,2879719,2657906,2657896,2657889,2420006,2393245,2393242,2393229,1991381,1991378,1991353,1991348,1991344,1991340,1960250,1960247,1960240,1960216,1951565,1951552,1951547';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ianelliswilliams/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ianelliswilliams/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 && backgrounds[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 = 'NORTHUMBRIAN FUSION - \"poetry and pictures\": ' + 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.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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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 += '<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;
	}
}

			

