function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[2984872]=new thumbnail(2984872,"","Credit Card Payment Option","Credt Card Payment_thumb.jpg",130,93,18);thumbnails[5284660]=new thumbnail(5284660,"1853","Into The Snow","Fence-1EDIT-SIZED-LARGE_thumb.jpg",130,179,18);thumbnails[5284662]=new thumbnail(5284662,"1853","Sunset Snow","Fence-EDIT-SIZED-LARGE_BD87A430-1D09-001F-99212E7F56C22D38_thumb.jpg",130,94,18);thumbnails[5284678]=new thumbnail(5284678,"1853","Winter Road","Road-EDIT-SIZED-LARGE_thumb.jpg",130,94,18);thumbnails[5284682]=new thumbnail(5284682,"1853","Final Rays","Sun-Beams-EDIT-SIZED-LARGE_thumb.jpg",130,179,18);thumbnails[3758400]=new thumbnail(3758400,"6678","Flowing Grass","New-Beach-1_thumb.jpg",130,179,18);thumbnails[1760966]=new thumbnail(1760966,"6678","Warm Light","Cliffs COMPLETE SIZED_thumb.jpg",130,179,18);thumbnails[731195]=new thumbnail(731195,"6678","Calm Flood","calm116x12_thumb.jpg",130,179,18);thumbnails[3758294]=new thumbnail(3758294,"6678","Dawn Flow","New-Flow-5_thumb.jpg",130,179,18);thumbnails[3860438]=new thumbnail(3860438,"6678","Incoming Tide","Groyne-LARGE-SIZED-EDIT_thumb.jpg",130,94,18);thumbnails[307810]=new thumbnail(307810,"6678","Poppies","Poppy 7_thumb.jpg",130,86,18);thumbnails[2152739]=new thumbnail(2152739,"6678","Rear View","Beach Huts SIZED LARGE_thumb.jpg",130,94,18);thumbnails[121450]=new thumbnail(121450,"6678","Chilled Tunes","Chilled-Music-2JPG_thumb.jpg",130,92,18);thumbnails[2503976]=new thumbnail(2503976,"6678","Lavender Fields","R EDIT Website_thumb.jpg",130,94,18);thumbnails[2826852]=new thumbnail(2826852,"6678","Flowing Tide","Groyne-1-COLOUR-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[197287]=new thumbnail(197287,"6678","Sunset Reed","Sunset-Reed_thumb.jpg",130,86,18);thumbnails[65748]=new thumbnail(65748,"6678","Sunset Harbour","Sunset-2_thumb.jpg",130,86,18);thumbnails[121452]=new thumbnail(121452,"6678","On The Brink of Sunrise","North-Brink-2_thumb.jpg",130,92,18);thumbnails[3860472]=new thumbnail(3860472,"6678","Tidal Defence","Beach-Large-Sized-Edit_thumb.jpg",130,94,18);thumbnails[121456]=new thumbnail(121456,"6678","Cool Rising","Park-2JPG_thumb.jpg",130,92,18);thumbnails[241742]=new thumbnail(241742,"6678","A Place to Watch","Beach-Huts-2-WIPTIF_thumb.jpg",130,96,18);thumbnails[1968040]=new thumbnail(1968040,"6678","Sky on Fire","Sunset 2 EDIT SIZED_thumb.jpg",130,94,18);thumbnails[4994437]=new thumbnail(4994437,"6678","After The Storm","Wire-Fence-2-EDIT-SIZED-LARGE_thumb.jpg",130,94,18);thumbnails[4943817]=new thumbnail(4943817,"6678","Dew and Mist","Mist-2-SIZED-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[1968033]=new thumbnail(1968033,"6678","Silhouette","Sunset 1 EDITED SIZED_thumb.jpg",130,96,18);thumbnails[3032364]=new thumbnail(3032364,"6678","Into The Trees","Path_thumb.jpg",130,179,18);thumbnails[2503987]=new thumbnail(2503987,"6678","Angry Sky","D EDIT Website_thumb.jpg",130,179,18);thumbnails[3860450]=new thumbnail(3860450,"6678","Carpet of Blue","Bluebells-2-LARGE-SIZED-EDI_thumb.jpg",130,179,18);thumbnails[3460822]=new thumbnail(3460822,"6678","Snow Line","Fence-EDIT-SIZED-LARGE_thumb.jpg",130,179,18);thumbnails[3460778]=new thumbnail(3460778,"6678","Fenland Landscape","Pylon-EDIT-SIZED-LARGE_thumb.jpg",130,94,18);thumbnails[4357322]=new thumbnail(4357322,"6678","Standing Small","Breakwater-2-LARGE-COLOUR_thumb.jpg",130,94,18);thumbnails[4480245]=new thumbnail(4480245,"6678","Harvest Time","Crop_EDIT_thumb.jpg",130,94,18);thumbnails[21571]=new thumbnail(21571,"6678","Lit Beach","Old-Hunstanton-newTIF_thumb.jpg",130,92,18);thumbnails[244938]=new thumbnail(244938,"6678","Empty...","Cliffs-final-editTIF_thumb.jpg",130,92,18);thumbnails[4357360]=new thumbnail(4357360,"6678","A Long While Dead","Posts1-LARGE-COLOUR_thumb.jpg",130,194,18);thumbnails[2650841]=new thumbnail(2650841,"6677","Time and Motion","Ashness-Jetty-11-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[2650837]=new thumbnail(2650837,"6677","Calm Sunrise","Ashness-Fence-2-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[2650829]=new thumbnail(2650829,"6677","Ancient Light","Castlerigg-2-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[1560511]=new thumbnail(1560511,"6677","Ullswater Boathouse","Boathouse_thumb.jpg",130,94,18);thumbnails[1899495]=new thumbnail(1899495,"6677","Rydal Water Triptych","Rydal Triptych_thumb.jpg",130,65,18);thumbnails[2650812]=new thumbnail(2650812,"6677","Calm Evening","Derwent-Water-1-LARGE-EDIT_thumb.jpg",130,179,18);thumbnails[2650792]=new thumbnail(2650792,"6677","Into The Lake","Derwent-Fence-1-LARGE-EDIT_thumb.jpg",130,179,18);thumbnails[1560532]=new thumbnail(1560532,"6677","Early Morning Mood","Ullswater_thumb.jpg",130,179,18);thumbnails[1560529]=new thumbnail(1560529,"6677","Misty Morning","Swans_thumb.jpg",130,94,18);thumbnails[2650745]=new thumbnail(2650745,"6677","Boundary Light","Ashness-Fence-5-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[2650813]=new thumbnail(2650813,"6677","Green & Pleasant Land","Dalehead-1-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[2650711]=new thumbnail(2650711,"6677","Sunset Surprise","Surprise-View-1-SMALL-EDIT_thumb.jpg",130,96,18);thumbnails[2650679]=new thumbnail(2650679,"6677","To The Hills","Grains-Gill-1-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[59053]=new thumbnail(59053,"6677","Ashness Bridge","Ashness-Storm-2_thumb.jpg",130,90,18);thumbnails[1746136]=new thumbnail(1746136,"6677","Ashness Bridge - Again","Ashness 3 WIP Sized_thumb.jpg",130,94,18);thumbnails[1560513]=new thumbnail(1560513,"6677","Reflected Autumn","Lantys-Tarn_thumb.jpg",130,94,18);thumbnails[59107]=new thumbnail(59107,"6677","Reflection","Reflections-6-of-30-sold_thumb.jpg",130,92,18);thumbnails[4698739]=new thumbnail(4698739,"281224","Morning Breeze","Bamburgh-Castle-10-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698836]=new thumbnail(4698836,"281224","Under The Rainbow","Hut-3-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698873]=new thumbnail(4698873,"281224","Powderhouse","Powderhouse-5-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698823]=new thumbnail(4698823,"281224","Reflective Sand","Farne-6-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698717]=new thumbnail(4698717,"281224","Early Morning Colours","Bamburgh-Beach-13-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698765]=new thumbnail(4698765,"281224","Waiting for the Tide","Beadnell-Boats-1-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698832]=new thumbnail(4698832,"281224","The Way Through","Fence-1-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698892]=new thumbnail(4698892,"281224","End of Day","Sunset-17-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698805]=new thumbnail(4698805,"281224","Early Light","Dunstanburgh-5-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698787]=new thumbnail(4698787,"281224","Flown The Nest","Cullernose-Point-2-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698612]=new thumbnail(4698612,"281224","Alone","Bamburgh-Beach-1-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698676]=new thumbnail(4698676,"281224","Left Behind","Bamburgh-Beach-6-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698723]=new thumbnail(4698723,"281224","Dawn Defences","Bamburgh-Castle-7-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698777]=new thumbnail(4698777,"281224","Outgoing","Beadnell-Dawn-6-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698798]=new thumbnail(4698798,"281224","Warm Glow","Dunstanburgh-1-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698878]=new thumbnail(4698878,"281224","Last Light","Sunset-8-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698819]=new thumbnail(4698819,"281224","Island in the Light","Farne-1-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698770]=new thumbnail(4698770,"281224","First Light","Beadnell-Dawn-1-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698810]=new thumbnail(4698810,"281224","Ripples of Time","Dunstanburgh-11-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698830]=new thumbnail(4698830,"281224","Windswept","Farne-17-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698816]=new thumbnail(4698816,"281224","Golden Dunes","Dunstanburgh-12-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698670]=new thumbnail(4698670,"281224","Chased by the Storm","Bamburgh-Beach-3-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698710]=new thumbnail(4698710,"281224","Line of Light","Bamburgh-Beach-8-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698886]=new thumbnail(4698886,"281224","Skipping Stones","Sunset-11-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[4698781]=new thumbnail(4698781,"281224","Silvery Light","Beadnell-Dawn-8-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698826]=new thumbnail(4698826,"281224","Motion of the Tide","Farne-14-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698850]=new thumbnail(4698850,"281224","Fisherman's Retreat","Hut-5-WIP-SIZED_thumb.jpg",130,94,18);thumbnails[4698762]=new thumbnail(4698762,"281224","Warm Sand, Hard Stone","Bamburgh-Castle-13-WIP-SIZED_thumb.jpg",130,179,18);thumbnails[1829077]=new thumbnail(1829077,"6679","Road To Winter","Roadway EDITED_thumb.jpg",130,179,18);thumbnails[3032325]=new thumbnail(3032325,"6679","Old Barn","Field-Barn_thumb.jpg",130,94,18);thumbnails[1829074]=new thumbnail(1829074,"6679","Dividing Line","Wall EDITED_thumb.jpg",130,94,18);thumbnails[1829068]=new thumbnail(1829068,"6679","North Lees in Winter","North Lees EDITED_thumb.jpg",130,179,18);thumbnails[25109]=new thumbnail(25109,"6679","Miller's Dale","Green-Flow-3_thumb.jpg",130,92,18);thumbnails[501264]=new thumbnail(501264,"6679","Stanage Warmth","Stanage 2 WIP_thumb.jpg",130,94,18);thumbnails[1829059]=new thumbnail(1829059,"6679","Stanage Edge","Edge 3 EDITED_thumb.jpg",130,94,18);thumbnails[1829064]=new thumbnail(1829064,"6679","Winter Millpond","Millpond4 EDITED_thumb.jpg",130,94,18);thumbnails[685640]=new thumbnail(685640,"6680","Ribblehead Viaduct","Ribblehead 1 COMP_thumb.jpg",130,179,18);thumbnails[1286293]=new thumbnail(1286293,"6680","East Gill Force","ease gill_thumb.jpg",130,179,18);thumbnails[1502566]=new thumbnail(1502566,"6680","Standing Alone","Tree-Sized-Edit_thumb.jpg",130,179,18);thumbnails[1502563]=new thumbnail(1502563,"6680","Ray of Light","Pavement2-Sized-Edit_thumb.jpg",130,179,18);thumbnails[3276088]=new thumbnail(3276088,"6680","Cold Wind, Warm Light","Barn-&-Road-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[344582]=new thumbnail(344582,"6680","Lovers Walk","Lovers Walk_thumb.jpg",130,98,18);thumbnails[3276131]=new thumbnail(3276131,"6680","Layers of Light","Layers-of-Light-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[1286301]=new thumbnail(1286301,"6680","Catrigg Force","Catrigg Force_thumb.jpg",130,94,18);thumbnails[1381943]=new thumbnail(1381943,"6680","Lonely Barn","Wall and Barn_thumb.jpg",130,86,18);thumbnails[2101435]=new thumbnail(2101435,"6680","Scaleber Force","Scaleber 1COMP_thumb.jpg",130,94,18);thumbnails[1381917]=new thumbnail(1381917,"6680","Field Barns","Barns and Tree_thumb.jpg",130,86,18);thumbnails[344579]=new thumbnail(344579,"6680","Lighting The Way","Lighthouse_thumb.jpg",130,96,18);thumbnails[1502585]=new thumbnail(1502585,"6680","Fallen Leaves","Scaleber-1Sized-Edit_thumb.jpg",130,179,18);thumbnails[214829]=new thumbnail(214829,"19517","Sunrise","Sunrise1_thumb.jpg",130,196,18);thumbnails[214818]=new thumbnail(214818,"19517","Cwm Idwal","Cwm-Idwal_thumb.jpg",130,86,18);thumbnails[214814]=new thumbnail(214814,"19517","Llyn Mymbyr Reflections","Llyn-Mymbyr-2-WIP_thumb.jpg",130,86,18);thumbnails[4979329]=new thumbnail(4979329,"19517","From the Hills","Cwm-Idwal-Stream_thumb.jpg",130,179,18);thumbnails[214825]=new thumbnail(214825,"19517","Trees","TreesJPG2_thumb.jpg",130,196,18);thumbnails[3104220]=new thumbnail(3104220,"19517","Wide Sunrise","Idwal-Sunrise-NEW-EDITED_thumb.jpg",130,94,18);thumbnails[427269]=new thumbnail(427269,"39057","Calm at Dusk","Lough Mask 2 WIP_thumb.jpg",130,184,18);thumbnails[427230]=new thumbnail(427230,"39057","End of Day","Clew Bay 4 WIP_thumb.jpg",130,184,18);thumbnails[427232]=new thumbnail(427232,"39057","Cliffs of Moher","Cliffs 3 WIP_thumb.jpg",130,184,18);thumbnails[427243]=new thumbnail(427243,"39057","Twilight","Lough Mask 1 WIP_thumb.jpg",130,184,18);thumbnails[427212]=new thumbnail(427212,"39057","Clare Sunset","Clew Bay 1 WIP_thumb.jpg",130,92,18);thumbnails[427233]=new thumbnail(427233,"39057","Final Light","Cliffs 4 WIP_thumb.jpg",130,92,18);thumbnails[427271]=new thumbnail(427271,"39057","Last Look Out","Portal Dolmen 1 WIP colour_thumb.jpg",130,92,18);thumbnails[427229]=new thumbnail(427229,"39057","Golden Time","Clew Bay 3 WIP_thumb.jpg",130,92,18);thumbnails[28315]=new thumbnail(28315,"6681","River Thames","Thames-3-01_thumb.jpg",130,86,18);thumbnails[28298]=new thumbnail(28298,"6681","Flights over time","Flight-Through-The-Years-01_thumb.jpg",130,196,18);thumbnails[93052]=new thumbnail(93052,"6681","Greenwich Time","Greenwichedit_thumb.jpg",130,86,18);thumbnails[3276103]=new thumbnail(3276103,"944","Frozen","Ice-Pool-1-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[3276122]=new thumbnail(3276122,"944","Flow","Crook-o-Lune-2-LARGE-EDIT_thumb.jpg",130,94,18);thumbnails[3276124]=new thumbnail(3276124,"944","Fall","Bridge-of-Greet-Water-LARGE_thumb.jpg",130,94,18);thumbnails[3758375]=new thumbnail(3758375,"944","Close Flow","New-Flow-1_thumb.jpg",130,94,18);thumbnails[1863708]=new thumbnail(1863708,"944","Iced Up","Modern 1 EDIT_thumb.jpg",130,94,18);thumbnails[5465]=new thumbnail(5465,"944","Frozen","DSCF0284jpg_thumb.jpg",130,98,18);thumbnails[28293]=new thumbnail(28293,"944","London Eye","Eye 10-01JPG_thumb.jpg",130,86,18);thumbnails[427241]=new thumbnail(427241,"944","Locked","door WIP_thumb.jpg",130,86,18);thumbnails[2098297]=new thumbnail(2098297,"944","Safe Storage","Door Sized Edit_thumb.jpg",130,94,18);thumbnails[28299]=new thumbnail(28299,"944","Girder","Girder-01JPG_thumb.jpg",130,170,18);thumbnails[1889447]=new thumbnail(1889447,"944","Frost Rimmed","Frost1WEB_thumb.jpg",130,179,18);thumbnails[107463]=new thumbnail(107463,"944","Texture","Bark 1 B & W Web_thumb.jpg",130,196,18);thumbnails[1463075]=new thumbnail(1463075,"942","Flowing Past","Beach 6 complete_thumb.jpg",130,179,18);thumbnails[427272]=new thumbnail(427272,"942","Resting Place","Portal Dolmen 3 WIP_thumb.jpg",130,92,18);thumbnails[59067]=new thumbnail(59067,"942","Derwent Boats","Derwent-Boats-at-DawnJPG_thumb.jpg",130,92,18);thumbnails[2650784]=new thumbnail(2650784,"942","Monochrome History","Castlerigg-3-LARGE-EDIT-B-&_thumb.jpg",130,179,18);thumbnails[3586466]=new thumbnail(3586466,"942","Ravages of Tide","Breakwater-1-SIZED-EDIT-BW_thumb.jpg",130,94,18);thumbnails[93051]=new thumbnail(93051,"942","Vanishing Point","Tunnelweb_thumb.jpg",130,86,18);thumbnails[3586489]=new thumbnail(3586489,"942","Mixed Materials","Breakwater-2-SIZED-EDIT-BW_thumb.jpg",130,94,18);thumbnails[21587]=new thumbnail(21587,"942","Sitting Waiting","Rods-01JPG_thumb.jpg",130,86,18);thumbnails[28291]=new thumbnail(28291,"942","Eye Overhead","Eye 8-01JPG_thumb.jpg",130,196,18);thumbnails[3104236]=new thumbnail(3104236,"942","Snowdon In Monochrome","Llyn-Mymbyr-B-&-W_thumb.jpg",130,94,18);thumbnails[344581]=new thumbnail(344581,"942","Monochrome Reflections","Llyn Mymbyr long_thumb.jpg",130,87,18);thumbnails[2098311]=new thumbnail(2098311,"942","Thornham Tree","Stump B&W Sized Edit_thumb.jpg",130,179,18);thumbnails[244946]=new thumbnail(244946,"942","Bridged Rapids","Stainforth-Bridge_thumb.jpg",130,86,18);thumbnails[2650685]=new thumbnail(2650685,"177217","Reaching Out","Ashness-Fence-3-LARGE-EDIT-_thumb.jpg",130,179,18);thumbnails[2845748]=new thumbnail(2845748,"177217","Ever On","Snowdonia_thumb.jpg",130,179,18);thumbnails[2845744]=new thumbnail(2845744,"177217","Boundary","Boundary_thumb.jpg",130,179,18);thumbnails[2650789]=new thumbnail(2650789,"177217","Waiting","Ashness-Jetty-8-SMALL-EDIT-_thumb.jpg",130,176,18);thumbnails[2845755]=new thumbnail(2845755,"177217","Layers","Mam-Tor_thumb.jpg",130,94,18);thumbnails[2845762]=new thumbnail(2845762,"177217","Steps","Yorkshire-Water_thumb.jpg",130,94,18);thumbnails[2845767]=new thumbnail(2845767,"177217","Down","Peak-Gate_thumb.jpg",130,94,18);thumbnails[2845772]=new thumbnail(2845772,"177217","Shadows","Hope-Valley_thumb.jpg",130,94,18);thumbnails[2845780]=new thumbnail(2845780,"177217","Mirror","Lantys-Tarn_1_thumb.jpg",130,179,18);thumbnails[2845787]=new thumbnail(2845787,"177217","Solitude","Lower-Winskill-Farm_thumb.jpg",130,94,18);thumbnails[2031813]=new thumbnail(2031813,"98455","Hathersage Fell","Hathersage Fell Card_thumb.jpg",130,92,18);thumbnails[2031834]=new thumbnail(2031834,"98455","Frozen Reeds","Modern 1 EDIT1_thumb.jpg",130,94,18);thumbnails[2031837]=new thumbnail(2031837,"98455","Morning Mist","Swans_1_thumb.jpg",130,94,18);thumbnails[1420550]=new thumbnail(1420550,"98455","Chilled Music","Chilled Music web_thumb.jpg",130,92,18);thumbnails[1420570]=new thumbnail(1420570,"98455","Poppies","Poppiesweb_thumb.jpg",130,92,18);thumbnails[2044237]=new thumbnail(2044237,"98455","Waiting...","Boat 1 WIP Sized2_thumb.jpg",130,94,18);thumbnails[1420558]=new thumbnail(1420558,"98455","Sunset Reed","Sunset Reedweb_thumb.jpg",130,92,18);thumbnails[1420560]=new thumbnail(1420560,"98455","Beach Huts","Beach Hutsweb_thumb.jpg",130,92,18);thumbnails[1420580]=new thumbnail(1420580,"98455","Gone To Seed","clockweb_thumb.jpg",130,184,18);thumbnails[1420575]=new thumbnail(1420575,"98455","Ready For Harvest","Cropweb_thumb.jpg",130,184,18);thumbnails[1420574]=new thumbnail(1420574,"98455","Welney Calm","Welney Calmweb_thumb.jpg",130,184,18);thumbnails[1420577]=new thumbnail(1420577,"98455","Norfolk Lavender","Lavenderweb_thumb.jpg",130,184,18);thumbnails[1420572]=new thumbnail(1420572,"98455","Winter Trees","Winter Parkweb_thumb.jpg",130,92,18);thumbnails[2031840]=new thumbnail(2031840,"98455","Snowbound","Roadway EDITED1_thumb.jpg",130,179,18);thumbnails[2044218]=new thumbnail(2044218,"98455","Sunshine Flower","Close Up Daffodil1_thumb.jpg",130,179,18);thumbnails[1420565]=new thumbnail(1420565,"98455","Boats at Dawn","Derwent Boats at Dawnweb_thumb.jpg",130,92,18);var galleries=new Object();galleries[1853]=new gallery(1853,"5284678,5284662","New Photos","gallery",[5284660,5284662,5284678,5284682]);galleries[6678]=new gallery(6678,"4943817,3860472,3460778,2826852,2503976,2152739,1968040,1968033,307810,241742,197287,121450,65748,21571","East Anglia","gallery",[3758400,1760966,731195,3758294,3860438,307810,2152739,121450,2503976,2826852,197287,65748,121452,3860472,121456,241742,1968040,4994437,4943817,1968033,3032364,2503987,3860450,3460822,3460778,4357322,4480245,21571,244938,4357360]);galleries[6677]=new gallery(6677,"2650841,2650837,2650829,2650813,2650745,2650679,1746136,1560529,1560513,1560511,59107,59053","The Lake District","gallery",[2650841,2650837,2650829,1560511,1899495,2650812,2650792,1560532,1560529,2650745,2650813,2650711,2650679,59053,1746136,1560513,59107]);galleries[281224]=new gallery(281224,"4698878,4698830,4698826,4698819,4698810,4698798,4698781,4698777,4698770,4698723","Northumberland","gallery",[4698739,4698836,4698873,4698823,4698717,4698765,4698832,4698892,4698805,4698787,4698612,4698676,4698723,4698777,4698798,4698878,4698819,4698770,4698810,4698830,4698816,4698670,4698710,4698886,4698781,4698826,4698850,4698762]);galleries[6679]=new gallery(6679,"3032325,1829074,1829059,501264","The Peak District","gallery",[1829077,3032325,1829074,1829068,25109,501264,1829059,1829064]);galleries[6680]=new gallery(6680,"3276131,3276088,2101435,1381943,1381917,344582","Yorkshire Dales, Moors & Coast","gallery",[685640,1286293,1502566,1502563,3276088,344582,3276131,1286301,1381943,2101435,1381917,344579,1502585]);galleries[19517]=new gallery(19517,"3104220,214818,214814","Wales","gallery",[214829,214818,214814,4979329,214825,3104220]);galleries[39057]=new gallery(39057,"427271,427229","Ireland","gallery",[427269,427230,427232,427243,427212,427233,427271,427229]);galleries[6681]=new gallery(6681,"28315","London","gallery",[28315,28298,93052]);galleries[944]=new gallery(944,"3758375,3276124,3276122,3276103,2098297,1863708,5465","In Close Up","gallery",[3276103,3276122,3276124,3758375,1863708,5465,28293,427241,2098297,28299,1889447,107463]);galleries[942]=new gallery(942,"3586466,3104236,427272,344581,244946,93051,21587","Black and White","gallery",[1463075,427272,59067,2650784,3586466,93051,3586489,21587,28291,3104236,344581,2098311,244946]);galleries[177217]=new gallery(177217,"2845787,2845772,2845767,2845762,2845755","FINE ART","section220431",[2650685,2845748,2845744,2650789,2845755,2845762,2845767,2845772,2845780,2845787]);galleries[98455]=new gallery(98455,"2044237,2031837,2031834,2031813,1420572,1420570,1420565,1420560,1420558,1420550","GREETINGS CARDS","section163556",[2031813,2031834,2031837,1420550,1420570,2044237,1420558,1420560,1420580,1420575,1420574,1420577,1420572,2031840,2044218,1420565]);var imageSets=new Object();imageSets[1]="5284678,5284662,4698878,4698830,4698826,4698819,4698798,4698781,4698777,4698723,3860472,3586489,3460778,3276122,3276088,3104236,3104220,2826852,2650841,2650837,2650829,2650813,2650745,2650679,2503976,2152739,1560529,1560513,1381917,307810,121456";imageSets[2]="5284678,5284662,4943817,4698878,4698830,4698826,4698819,4698810,4698798,4698781,4698777,4698770,4698723,3860472,3758375,3586466,3460778,3276131,3276124,3276122,3276103,3276088,3104236,3104220,3032325,2845787,2845772,2845767,2845762,2845755,2826852,2650841,2650837,2650829,2650813,2650745,2650679,2503976,2152739,2101435,2098297,2044237,2031837,2031834,2031813,1968040,1968033,1863708,1829074,1829059,1746136,1560529,1560513,1560511,1420572,1420570,1420565,1420560,1420558,1420550,1381943,1381917,501264,427272,427271,427229,344582,344581,307810,244946,241742,214818,214814,197287,121450,93051,65748,59107,59053,28315,21587,21571,5465";imageSets[3]="5284682,5284678,5284662,5284660,4994437,4979329,4943817,4698892,4698886,4698878,4698873,4698850,4698836,4698832,4698830,4698826,4698823,4698819,4698816,4698810,4698805,4698798,4698787,4698781,4698777,4698770,4698765,4698762,4698739,4698723,4698717,4698710,4698676,4698670,4698612,4480245,4357360,4357322,3860472,3860450,3860438,3758400,3758375,3758294,3586489,3586466,3460822,3460778,3276131,3276124";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 34:b="http://www9.clikpic.com/pedalist/images";break}switch(a){case 1:b="http://www1.clikpic.com/pedalist/images";break}switch(a){case 2:b="http://admin.clikpic.com/pedalist/images";break}switch(a){case 4:b="http://www.clikchurch.com/pedalist/images";break}switch(a){case 5:b="http://www2.clikpic.com/pedalist/images";break}switch(a){case 15:b="http://www3.clikpic.com/pedalist/images";break}switch(a){case 21:b="http://www6.clikpic.com/pedalist/images";break}switch(a){case 18:b="http://www4.clikpic.com/pedalist/images";break}switch(a){case 19:b="http://www5.clikpic.com/pedalist/images";break}switch(a){case 22:b="http://tpc5/clikpic/pedalist/images";break}switch(a){case 23:b="http://tpc10/clikpic/pedalist/images";break}switch(a){case 24:b="http://tpc15/clikpic/pedalist/images";break}switch(a){case 25:b="http://tpc16/clikpic/pedalist/images";break}switch(a){case 31:b="http://www7.clikpic.com/pedalist/images";break}switch(a){case 32:b="http://admin2.clikpic.com/pedalist/images";break}switch(a){case 33:b="http://www8.clikpic.com/pedalist/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Natural Britain Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal/Credit/Debit Card</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="savafocus@hotmail.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add To Basket" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="savafocus@hotmail.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View Basket" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};