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[5088912]=new thumbnail(5088912,"","Aluminium Frame","framed_mounted_pictures_tags_thumb.jpg",130,149,18);thumbnails[5889110]=new thumbnail(5889110,"","Scotlands Landscapes Scottish Borders Guestbook","Scotlands_Landscapes_Scottish_Borders_guestbook_thumb.jpg",130,137,18);thumbnails[5914465]=new thumbnail(5914465,"","Scotlands Landscapes Scottish Borders Checkout","Scotlands_Landscapes_Scottish_Borders_checkout_thumb.jpg",130,115,18);thumbnails[5914484]=new thumbnail(5914484,"","Scotlands Landscapes Scottish Borders Get in Touch","Scotlands_Landscapes_Scottish_Borders_get_in_touch_thumb.jpg",130,61,18);thumbnails[5917744]=new thumbnail(5917744,"","Scotlands Landscapes Scottish Borders Prices","Scotlands_Landscapes_Scottish_Borders_Prices_thumb.jpg",130,69,18);thumbnails[6111098]=new thumbnail(6111098,"","News Coming Soon Scotlands Landscapes Scottish Borders","new_arrivals_scotlands_landscapes_scottish_borders_thumb.jpg",130,80,18);thumbnails[6403498]=new thumbnail(6403498,"","","roni_thumb.jpg",130,125,18);thumbnails[6520451]=new thumbnail(6520451,"","","email_and_sig_thumb.jpg",130,54,18);thumbnails[6520679]=new thumbnail(6520679,"","","email_thumb.jpg",130,25,18);thumbnails[6593399]=new thumbnail(6593399,"","Limited Edition Prints. Scotland's Landscapes, Scottish Borders","Grantshouse_closed_scotlands_landscapes_scottish_borders_thumb.jpg",130,139,18);thumbnails[6520975]=new thumbnail(6520975,"341786","<strong>*NEW ADDITION*</strong><br>SCOTT'S VIEW<br>BEMERSYDE","Scotts_View_Bemersyde_Melrose_thumb.jpg",130,96,18);thumbnails[6520978]=new thumbnail(6520978,"341786","<strong>*NEW ADDITION*</strong><br>HARBOUR NIGHTS<br>DUNBAR","harbour_nights_dunbar_66AFD3B8-1D09-001F-993DDCDEB0505FDE_thumb.jpg",130,96,18);thumbnails[6520985]=new thumbnail(6520985,"341786","<strong>*NEW ADDITION*</strong><br>CO'PATH, COVE &<br>DUNGLASS SCENES","Scenes_from_Cockburnspath_Cove__Dunglass_thumb.jpg",130,96,18);thumbnails[6520988]=new thumbnail(6520988,"341786","<strong>*NEW ADDITION*</strong><br>BEST SEAT IN THE HOUSE. JOHN MUIR","Best_Seat_in_the_house_John_Muir_thumb.jpg",130,96,18);thumbnails[6090428]=new thumbnail(6090428,"341786","<strong>BASS ROCK AT DUSK</strong><br>EAST LOTHIAN","Bass_Rock_at_Dusk_East_Lothian_thumb.jpg",130,96,18);thumbnails[6090398]=new thumbnail(6090398,"341786","<strong>ACROSS THE BAY</strong><br>COLDINGHAM","Across_the_Bay_Coldingham_Sands_thumb.jpg",130,96,18);thumbnails[6090414]=new thumbnail(6090414,"341786","<strong>BEACH HUTS</strong><br>COLDINGHAM BAY","Beach_Huts_Coldingham_Bay_thumb.jpg",130,96,18);thumbnails[6090418]=new thumbnail(6090418,"341786","<strong>GUIDING LIGHT</strong><br>ST ABBS","Guiding_Light_St_Abbs_0908395D-1D09-001F-9942BBF112BB7C39_thumb.jpg",130,96,18);thumbnails[6090419]=new thumbnail(6090419,"341786","<strong>ST ABBS HARBOUR</strong><br>BERWICKSHIRE","St_Abbs_Harbour_thumb.jpg",130,96,18);thumbnails[6090421]=new thumbnail(6090421,"341786","<strong>SCENES OF ST ABBS</strong><br>SCOTTISH BORDERS","Scenes_from_St_Abbs_thumb.jpg",130,96,18);thumbnails[6090422]=new thumbnail(6090422,"341786","<strong>ON THE BEACH </strong><br>EYEMOUTH","On_the_Beach_Eyemouth_0909295B-1D09-001F-998DBB6F513787CC_thumb.jpg",130,96,18);thumbnails[6090424]=new thumbnail(6090424,"341786","<strong>HOUSE OF SECRETS</strong><br>EYEMOUTH","House_of_Secrets_Eyemouth_09096C40-1D09-001F-9963F1DAFA1BF8D5_thumb.jpg",130,96,18);thumbnails[6090426]=new thumbnail(6090426,"341786","<strong>BY THE BAY</strong><br>EYEMOUTH","By_the_Bay_Eyemouth_0909A4C5-1D09-001F-99B19B0060986E81_thumb.jpg",130,96,18);thumbnails[6090427]=new thumbnail(6090427,"341786","<strong>GUNSGREEN HOUSE</strong><br>EYEMOUTH HARBOUR","Gunsgreen_House_Eyemouth_Harbour_0909F6BD-1D09-001F-99FBE91DE7B4DCEE_thumb.jpg",130,114,18);thumbnails[6530798]=new thumbnail(6530798,"281961","<strong>*NEW ADDITION*</strong><br>LUMINOSITY<br>BARNS NESS","Luminosity_Barns_Ness_thumb.jpg",130,96,18);thumbnails[4964516]=new thumbnail(4964516,"281961","<strong>TRANQUILLITY</strong><br>BARNS NESS","Tranquillity_Barns_Ness_thumb.jpg",130,96,18);thumbnails[4971698]=new thumbnail(4971698,"281961","<strong>SILENT SLUMBER</strong><br>BARNS NESS","Silent_Slumber_Barns_Ness_thumb.jpg",130,96,18);thumbnails[5883106]=new thumbnail(5883106,"281961","<strong>MORNING LIGHT</strong><br>BARNS NESS","Morning_Light_Barns_Ness_thumb.jpg",130,114,18);thumbnails[4964369]=new thumbnail(4964369,"281961","<strong>PEACEFUL WATERS</strong><br>BARNS NESS","Peaceful_Waters_Barns_Ness_thumb.jpg",130,96,18);thumbnails[4964431]=new thumbnail(4964431,"281961","<strong>BARNS NESS</strong><br>IN SPRING","Barns_Ness_In_Spring_thumb.jpg",130,96,18);thumbnails[6521655]=new thumbnail(6521655,"281929","<strong>*NEW ADDITION*</strong><br>WHAT'S THE CATCH?<br>COVE HARBOUR","Whats_the_Catch_Cove_thumb.jpg",130,114,18);thumbnails[6521661]=new thumbnail(6521661,"281929","<strong>*NEW ADDITION*</strong><br>NIGHT SERVICE<br>DUNGLASS CHURCH","night_service_Dunglass_thumb.jpg",130,96,18);thumbnails[6521665]=new thumbnail(6521665,"281929","<strong>*NEW ADDITION*</strong><br>CENTREPIECE<br>COCKBURNSPATH","Centrepiece_Cockburnspath_thumb.jpg",130,96,18);thumbnails[6316442]=new thumbnail(6316442,"281929","<strong>PARADISE COVE</strong><br>COVE HARBOUR","Paradise_Cove_Cove_Harbour_thumb.jpg",130,96,18);thumbnails[4985897]=new thumbnail(4985897,"281929","<strong>THANKSGIVING</strong><br>COVE","Thanksgiving_Cove_thumb.jpg",130,96,18);thumbnails[5883078]=new thumbnail(5883078,"281929","<strong>SHEPHERD'S DELIGHT</strong><br>OLD CAMBUS","Shepherds_Delight_Old_Cambus_thumb.jpg",130,96,18);thumbnails[6163838]=new thumbnail(6163838,"281929","<strong>FEEDING TIME</strong><br>OLD CAMBUS","feeding_time_old_cambus_thumb.jpg",130,96,18);thumbnails[5848870]=new thumbnail(5848870,"281929","<strong>OCEAN DREAM</strong><br>OLD CAMBUS","Ocean_Dream_Old_Cambus_thumb.jpg",130,96,18);thumbnails[4965395]=new thumbnail(4965395,"281929","<strong>ROAD TO DOWLAW</strong><br>SCOTTISH BORDERS","Road_To_Dowlaw_Scottish_Borders_thumb.jpg",130,96,18);thumbnails[4965400]=new thumbnail(4965400,"281929","<strong>SPRING GATEWAY</strong><br>COCKBURNSPATH","Spring_Gateway_Cockburnspath_thumb.jpg",130,96,18);thumbnails[5194207]=new thumbnail(5194207,"281929","<strong>ST HELEN'S CHURCH</strong><br>COCKBURNSPATH","St_Helens_Church_Cockburnspath_thumb.jpg",130,96,18);thumbnails[4965459]=new thumbnail(4965459,"281929","<strong>COVE HARBOUR</strong><br>SCOTTISH BORDERS","Cove_Harbour_thumb.jpg",130,96,18);thumbnails[4972595]=new thumbnail(4972595,"281929","<strong>DUNGLASS COLLEGIATE CHURCH</strong>","Dunglass_Collegiate_Church_thumb.jpg",130,96,18);thumbnails[4965458]=new thumbnail(4965458,"281929","<strong>FIELDS OF GOLD</strong><br>COVE TO PEASE BAY","Fields_Of_Gold_Cove_to_Pease_Bay_thumb.jpg",130,96,18);thumbnails[4965472]=new thumbnail(4965472,"281929","<strong>FISHERMAN'S REST</strong><br>COVE","Fishermans_Rest_Cove_thumb.jpg",130,96,18);thumbnails[5799882]=new thumbnail(5799882,"281929","<strong>EVENING SUN</strong><br>OLD CAMBUS","Evening_Sun_Old_Cambus_thumb.jpg",130,96,18);thumbnails[5582831]=new thumbnail(5582831,"281929","<strong>PEASE BAY</strong> <br>BERWICKSHIRE","Pease_Bay_Berwickshire_thumb.jpg",130,96,18);thumbnails[5178233]=new thumbnail(5178233,"281929","<strong>COUNTRY WORKSHOP</strong><br>Nr COCKBURNSPATH","country_workshop_nr_Cockburnspath_thumb.jpg",130,96,18);thumbnails[4965399]=new thumbnail(4965399,"281929","<strong>AUTUMN IDYLL</strong><br>COCKBURNSPATH","Autumn_Idyll_Cockburnspath_thumb.jpg",130,114,18);thumbnails[5799748]=new thumbnail(5799748,"281929","<strong>COCKBURNSPATH</strong><br>TOWER","Cockburnspath_Tower_Berwickshire_thumb.jpg",130,96,18);thumbnails[4965462]=new thumbnail(4965462,"281929","<strong>AT SUNSET</strong><br>COVE","At_Sunset_Cove_thumb.jpg",130,96,18);thumbnails[4965387]=new thumbnail(4965387,"281929","<strong>BEFORE THE STORM</strong><br>COCKBURNSPATH","Before_The_Storm_Cockburnspath_thumb.jpg",130,96,18);thumbnails[5300757]=new thumbnail(5300757,"281929","<strong>DUNGLASS BEACH</strong><br>NR COCKBURNSPATH","Dunglass_Beach_nr_Cockburnspath_thumb.jpg",130,96,18);thumbnails[5178377]=new thumbnail(5178377,"281929","<strong>PATH TO <br>DUNGLASS CHAPEL</strong>","path_to_Dunglass_Chapel_thumb.jpg",130,96,18);thumbnails[6523274]=new thumbnail(6523274,"281929","<strong>SIMPLE PLEASURES</strong><br>COCKBURNSPATH","Simple_Pleasures_Cockburnspath_thumb.jpg",130,96,18);thumbnails[4996367]=new thumbnail(4996367,"281929","<strong>SMUGGLERS' COVE</strong><br>COVE HARBOUR","Smugglers_Cove_Cove_Harbour_thumb.jpg",130,96,18);thumbnails[6523304]=new thumbnail(6523304,"281929","<strong>WINTER RAINBOW</strong><br>NR COCKBURNSPATH","Winter_Rainbow_nr_Cockburnspath_thumb.jpg",130,114,18);thumbnails[6446671]=new thumbnail(6446671,"282208","<strong>*NEW ADDITION*</strong><br>OVERVIEW<br>ST ABBS","Overview_St_Abbs_thumb.jpg",130,96,18);thumbnails[4965427]=new thumbnail(4965427,"282208","<strong>SERENITY</strong><br>COLDINGHAM BAY","Serenity_Coldingham_Bay_thumb.jpg",130,96,18);thumbnails[5293521]=new thumbnail(5293521,"282208","<strong>SUMMER SANDS</strong><br>COLDINGHAM BAY","Summer_Sands_Coldingham_Bay_thumb.jpg",130,96,18);thumbnails[5952587]=new thumbnail(5952587,"282208","<strong>COASTAL CHARM</strong><br>ST ABBS","Coastal_Charm_St_Abbs_thumb.jpg",130,96,18);thumbnails[5901010]=new thumbnail(5901010,"282208","<strong>GUIDING LIGHT</strong><br>ST ABBS HEAD","Guiding_Light_St_Abbs_thumb.jpg",130,96,18);thumbnails[5076708]=new thumbnail(5076708,"282208","<strong>GONE FISHING</strong><br>ST ABBS","Gone_Fishing_St_Abbs_thumb.jpg",130,96,18);thumbnails[5076709]=new thumbnail(5076709,"282208","<strong>VILLAGE LIFE</strong><br>ST ABBS","Village_Life_St_Abbs_thumb.jpg",130,96,18);thumbnails[4966400]=new thumbnail(4966400,"282208","<strong>SPLASH OF COLOUR</strong><br>ST ABBS HARBOUR","Splash_Of_Colour_St_Abbs_Harbour_thumb.jpg",130,96,18);thumbnails[4965436]=new thumbnail(4965436,"282208","<strong>ACROSS THE BAY</strong><br>COLDINGHAM","Across_The_Bay_Coldingham_thumb.jpg",130,96,18);thumbnails[4966505]=new thumbnail(4966505,"282208","<strong>ST ABBS HARBOUR</strong><br>SCOTTISH BORDERS","St_Abbs_Harbour_Scottish_Borders_thumb.jpg",130,96,18);thumbnails[4965423]=new thumbnail(4965423,"282208","<strong>BEACH HUTS</strong><br>COLDINGHAM BAY","Beach_Huts_Coldingham_Bay__thumb.jpg",130,96,18);thumbnails[4965433]=new thumbnail(4965433,"282208","<strong>VIEW TO ST ABBS</strong><br>COLDINGHAM BAY","View_To_St_Abbs_Coldingham_Bay_thumb.jpg",130,96,18);thumbnails[4965431]=new thumbnail(4965431,"282208","<strong>SECLUSION</strong><br>COLDINGHAM SANDS","Seclusion_Coldingham_Sands_thumb.jpg",130,96,18);thumbnails[4966513]=new thumbnail(4966513,"282208","<strong>CLIFFTOP TRAIL</strong><br>ST ABBS","Clifftop_Trail_St_Abbs_thumb.jpg",130,96,18);thumbnails[6419019]=new thumbnail(6419019,"354433","<strong>SILENT QUAY</strong><br>DUNBAR HARBOUR","silent_quay_dunbar1_thumb.jpg",130,96,18);thumbnails[6418933]=new thumbnail(6418933,"354433","<strong>TOLBOOTH</strong><br>DUNBAR","Toldbooth_Dunbar_thumb.jpg",130,114,18);thumbnails[6418923]=new thumbnail(6418923,"354433","<strong>LAMER STREET</strong><br>DUNBAR","lamer_street_dunbar1_thumb.jpg",130,96,18);thumbnails[6234879]=new thumbnail(6234879,"354433","<strong>HARBOUR NIGHTS</strong><br>DUNBAR","Harbour_Nights_Dunbar_thumb.jpg",130,114,18);thumbnails[6419538]=new thumbnail(6419538,"354433","<strong>THE SENTINEL</strong><br>DUNBAR CASTLE","the_sentinel_dunbar_castle_thumb.jpg",130,96,18);thumbnails[6419557]=new thumbnail(6419557,"354433","<strong>SUMMER MOORINGS</strong><br>DUNBAR","summer_moorings_dunbar_thumb.jpg",130,114,18);thumbnails[6419045]=new thumbnail(6419045,"354433","<strong>DUNBAR</strong><br>PARISH CHURCH","dunbar_parish_church_thumb.jpg",130,96,18);thumbnails[6419607]=new thumbnail(6419607,"354433","<strong>EAST BEACH</strong><br>DUNBAR","east_beach_dunbar_thumb.jpg",130,114,18);thumbnails[6419544]=new thumbnail(6419544,"354433","<strong>SIGN OF THE TIMES</strong><br>DUNBAR","sign_of_the_times_Dunbar_thumb.jpg",130,114,18);thumbnails[6419652]=new thumbnail(6419652,"354433","<strong>SUNDOWN</strong><br>ON SHORE STREET","sundown_on_shore_street_thumb.jpg",130,96,18);thumbnails[6419664]=new thumbnail(6419664,"354433","<strong>OLD HARBOUR</strong><br>DUNBAR","old_harbour_dunbar_thumb.jpg",130,114,18);thumbnails[6521696]=new thumbnail(6521696,"282213","<strong>*NEW ADDITION*</strong><br>AIR DRIED<br>NORTH BERWICK","air_dried_north_berwick_thumb.jpg",130,96,18);thumbnails[6521708]=new thumbnail(6521708,"282213","<strong>*NEW ADDITION*</strong><br>REST AWHILE<br>TYNINGHAME","rest_awhile_tyninghame_thumb.jpg",130,96,18);thumbnails[6521711]=new thumbnail(6521711,"282213","<strong>*NEW ADDITION*</strong><br>STILLNESS<br>PORT SETON","stillness_port_seton_thumb.jpg",130,96,18);thumbnails[6523938]=new thumbnail(6523938,"282213","<strong>*NEW ADDITION*</strong><br>OLDHAMSTOCKS<br>PARISH CHURCH","Oldhamstocks_Parish_Church_thumb.jpg",130,114,18);thumbnails[6120886]=new thumbnail(6120886,"282213","<strong>PITCOX IN BLOOM</strong><br>EAST LOTHIAN","Pitcox_in_Bloom_East_Lothian_thumb.jpg",130,96,18);thumbnails[5299079]=new thumbnail(5299079,"282213","<strong>BASS ROCK</strong><br>AT DUSK","Bass_Rock_at_Dusk_thumb.jpg",130,96,18);thumbnails[6163824]=new thumbnail(6163824,"282213","<strong>COUNTRY LIVING</strong><br>DIRLETON","Country_Living_Dirleton_thumb.jpg",130,96,18);thumbnails[4966202]=new thumbnail(4966202,"282213","<strong>JOHN MUIR</strong><br>OASIS","John_Muir_Oasis_thumb.jpg",130,96,18);thumbnails[6110906]=new thumbnail(6110906,"282213","<strong>UNDER THE BRIDGE</strong><br>EAST LINTON","Under_the_Bridge_East_Linton_thumb.jpg",130,96,18);thumbnails[5570820]=new thumbnail(5570820,"282213","<strong>WINTER MOON</strong><br>JOHN MUIR PARK","Winter_Moon_John_Muir_thumb.jpg",130,96,18);thumbnails[6110909]=new thumbnail(6110909,"282213","<strong>WONDERLAND</strong><br>EAST LINTON","Wonderland_East_Linton_thumb.jpg",130,96,18);thumbnails[6110911]=new thumbnail(6110911,"282213","<strong>OLD TYNE BRIDGE</strong><br>EAST LINTON","Old__Tyne_Bridge_East_Linton_thumb.jpg",130,96,18);thumbnails[6110912]=new thumbnail(6110912,"282213","<strong>HIDDEN GEM</strong><br>EAST LINTON","Hidden_Gem_East_Linton_thumb.jpg",130,96,18);thumbnails[6111041]=new thumbnail(6111041,"282213","<strong>BIRTH OF THE SALTIRE</strong><br>ATHELSTANEFORD","birth_of_the_saltire_athelstaneford_thumb.jpg",130,96,18);thumbnails[5570572]=new thumbnail(5570572,"282213","<strong>FROZEN IN TIME</strong><br>JOHN MUIR PARK","Frozen_in_Time_John_Muir_thumb.jpg",130,96,18);thumbnails[4966221]=new thumbnail(4966221,"282213","<strong>BELHAVEN BRIDGE</strong><br>NEAR DUNBAR","Belhaven_Bridge_thumb.jpg",130,96,18);thumbnails[4966215]=new thumbnail(4966215,"282213","<strong>JOHN MUIR IN SPRING</strong><br>NEAR DUNBAR","John_Muir_In_Spring_thumb.jpg",130,96,18);thumbnails[4966224]=new thumbnail(4966224,"282213","<strong>ROAD TO BELHAVEN</strong><br>NEAR DUNBAR","Road_To_Belhaven_thumb.jpg",130,96,18);thumbnails[6163819]=new thumbnail(6163819,"282213","<strong>TITHE BARN</strong><br>WHITEKIRK","Tithe_Barn_Whitekirk_thumb.jpg",130,96,18);thumbnails[4966176]=new thumbnail(4966176,"282213","<strong>BEST SEAT IN THE HOUSE</strong>","Best_Seat_In_The_House_thumb.jpg",130,96,18);thumbnails[6163829]=new thumbnail(6163829,"282213","<strong>SALTOUN CHURCH</strong><br>EAST LOTHIAN","Saltoun_Church_East_Lothian_thumb.jpg",130,114,18);thumbnails[6163811]=new thumbnail(6163811,"282213","<strong>DIRLETON</strong><br>PARISH KIRK","Dirleton_Parish_Kirk_East_Lothian_thumb.jpg",130,96,18);thumbnails[6163833]=new thumbnail(6163833,"282213","<strong>FARM STEADING</strong><br>NEAR TANTALLON","Farm_Steading_near_Tantallon_thumb.jpg",130,96,18);thumbnails[6521673]=new thumbnail(6521673,"282209","<strong>*NEW ADDITION*</strong><br>SECRETS OF THE PAST<br>EYEMOUTH","secrets_of_the_past_thumb.jpg",130,96,18);thumbnails[6521688]=new thumbnail(6521688,"282209","<strong>*NEW ADDITION*</strong><br>SEEDS OF HOPE<br>GRANTSHOUSE","seeds_of_hope_grantshouse_thumb.jpg",130,96,18);thumbnails[6521681]=new thumbnail(6521681,"282209","<strong>*NEW ADDITION*</strong><br>END OF AN ERA<br>AYTON","end_of_an_era_ayton_thumb.jpg",130,114,18);thumbnails[6521690]=new thumbnail(6521690,"282209","<strong>*NEW ADDITION*</strong><br>MULTICOLOURED<br>BURNMOUTH","Multicoloured_Burnmouth_thumb.jpg",130,96,18);thumbnails[6523033]=new thumbnail(6523033,"282209","<strong>*NEW ADDITION*</strong><br>BREAK TIME<br>GRANTSHOUSE","break_time_grantshouse_thumb.jpg",130,96,18);thumbnails[6521693]=new thumbnail(6521693,"282209","<strong>*NEW ADDITION*</strong><br>HOLD THE LINE<br>RESTON","hold_the_line_reston_thumb.jpg",130,96,18);thumbnails[4966281]=new thumbnail(4966281,"282209","<strong>LABRADOR CLIFFS</strong><br>EYEMOUTH","Labrador_Cliffs_Eyemouth_2010_thumb.jpg",130,96,18);thumbnails[5883172]=new thumbnail(5883172,"282209","<strong>HOUSE OF SECRETS</strong><br>EYEMOUTH","House_of_Secrets_Eyemouth_thumb.jpg",130,96,18);thumbnails[5988175]=new thumbnail(5988175,"282209","<strong>BY THE BAY</strong><br>EYEMOUTH","By_the_Bay_Eyemouth_thumb.jpg",130,96,18);thumbnails[6186781]=new thumbnail(6186781,"282209","<strong>MOORED</strong><br>EYEMOUTH HARBOUR","Moored_Eyemouth_Harbour_thumb.jpg",130,96,18);thumbnails[4966286]=new thumbnail(4966286,"282209","<strong>ON THE BEACH</strong><br>EYEMOUTH","On_The_Beach_Eyemouth_thumb.jpg",130,96,18);thumbnails[6026824]=new thumbnail(6026824,"282209","<strong>MORNING WALK</strong><br>EYEMOUTH BEACH","Morning_Walk_Eyemouth_Beach_thumb.jpg",130,96,18);thumbnails[4966287]=new thumbnail(4966287,"282209","<strong>HARBOUR BUSTLE</strong><br>EYEMOUTH","Harbour_Bustle_Eyemouth_thumb.jpg",130,96,18);thumbnails[4966283]=new thumbnail(4966283,"282209","<strong>EYEMOUTH HARBOUR</strong><br>SCOTTISH BORDERS","Eyemouth_Harbour_Scottish_Borders_thumb.jpg",130,96,18);thumbnails[4979639]=new thumbnail(4979639,"282209","<strong>GUNSGREEN HOUSE</strong><br>EYEMOUTH HARBOUR","Gunsgreen_House_Eyemouth_Harbour_NEW_thumb.jpg",130,114,18);thumbnails[4966304]=new thumbnail(4966304,"282210","<strong>EVENING LANDING</strong><br>THORNTONLOCH","Evening_Landing_Thorntonloch_thumb.jpg",130,96,18);thumbnails[4966294]=new thumbnail(4966294,"282210","<strong>NATURE'S SUNDIAL</strong><br>SKATERAW","Natures_Sundial_Skateraw_thumb.jpg",130,96,18);thumbnails[4966296]=new thumbnail(4966296,"282210","<strong>SUMMERTIME</strong><br>SKATERAW","Summertime_Skateraw_thumb.jpg",130,96,18);thumbnails[5313092]=new thumbnail(5313092,"282210","<strong>ANNA'S WALK</strong><br>THORNTON BAY","Annas_Walk_Thornton_Bay_thumb.jpg",130,96,18);thumbnails[4966292]=new thumbnail(4966292,"282210","<strong>OLD LIMEKILNS</strong><br>SKATERAW","Old_Limekilns_Skateraw_thumb.jpg",130,96,18);thumbnails[6232287]=new thumbnail(6232287,"282210","<strong>THE BEACH</strong><br>THORNTONLOCH","The_Beach_Thorntonloch_thumb.jpg",130,96,18);thumbnails[4966299]=new thumbnail(4966299,"282210","<strong>ANN'S BRIDGE</strong><br>SKATERAW","Anns_Bridge_Skateraw_thumb.jpg",130,96,18);thumbnails[4966291]=new thumbnail(4966291,"282210","<strong>SKATERAW BEACH</strong><br>EAST LOTHIAN","Skateraw_Beach_East_Lothian_thumb.jpg",130,96,18);thumbnails[4966303]=new thumbnail(4966303,"282210","<strong>ON VACATION</strong><br>THORNTONLOCH","On_Vacation_Thorntonloch_thumb.jpg",130,96,18);thumbnails[6521716]=new thumbnail(6521716,"289633","<strong>*NEW ADDITION*</strong><br>SCOTT'S VIEW<br>BEMERSYDE","Scotts_View_Bemersyde_thumb.jpg",130,96,18);thumbnails[6110963]=new thumbnail(6110963,"289633","<strong>HEAVEN SCENT</strong><br>LABRADOR RETRIEVER","Heaven_Scent_thumb.jpg",130,96,18);thumbnails[5124987]=new thumbnail(5124987,"289633","<strong>BLACK BEAUTY</strong><br>LABRADOR RETRIEVER","Black_Beauty_thumb.jpg",130,96,18);thumbnails[5124997]=new thumbnail(5124997,"289633","<strong>HAPPINESS IS ..</strong>","Happiness_Is_thumb.jpg",130,96,18);thumbnails[5125005]=new thumbnail(5125005,"289633","<strong>ON THE SCENT</strong><br>BLACK LABRADOR","On_The_Scent_thumb.jpg",130,96,18);thumbnails[5125012]=new thumbnail(5125012,"289633","<strong>BEST FRIEND</strong><br>BLACK LABRADOR","Best_Friend_thumb.jpg",130,96,18);var galleries=new Object();galleries[341786]=new gallery(341786,"6520988,6520985,6520978,6520975,6090428,6090427,6090426,6090424,6090422,6090421","Postcards","section408688",[6520975,6520978,6520985,6520988,6090428,6090398,6090414,6090418,6090419,6090421,6090422,6090424,6090426,6090427]);galleries[281961]=new gallery(281961,"5883106,4971698,4964516,4964431,4964369","Barns Ness<br>Lighthouse","gallery",[6530798,4964516,4971698,5883106,4964369,4964431]);galleries[281929]=new gallery(281929,"5883078,5848870,5799882,5799748,5300757,4996367,4985897,4972595,4965472,4965462,4965459,4965458,4965399,4965395,4965387","Cockburnspath,<br>Cove & Dunglass","gallery",[6521655,6521661,6521665,6316442,4985897,5883078,6163838,5848870,4965395,4965400,5194207,4965459,4972595,4965458,4965472,5799882,5582831,5178233,4965399,5799748,4965462,4965387,5300757,5178377,6523274,4996367,6523304]);galleries[282208]=new gallery(282208,"5952587,5901010,4966513,4966505,4966400,4965436,4965433,4965431,4965427,4965423","Coldingham<br>& St Abbs","gallery",[6446671,4965427,5293521,5952587,5901010,5076708,5076709,4966400,4965436,4966505,4965423,4965433,4965431,4966513]);galleries[354433]=new gallery(354433,"6419664,6419652,6419607,6419557,6419544,6419538,6419045,6419019,6418933,6418923","DUNBAR","gallery",[6419019,6418933,6418923,6234879,6419538,6419557,6419045,6419607,6419544,6419652,6419664]);galleries[282213]=new gallery(282213,"6111041,6110911,6110909,6110906,5570820,5570572,5299079,4966224,4966221,4966215,4966202,4966176","East<br>Lothian","gallery",[6521696,6521708,6521711,6523938,6120886,5299079,6163824,4966202,6110906,5570820,6110909,6110911,6110912,6111041,5570572,4966221,4966215,4966224,6163819,4966176,6163829,6163811,6163833]);galleries[282209]=new gallery(282209,"6026824,5988175,5883172,4966287,4966286,4966283,4966281","Eyemouth<br>Region","gallery",[6521673,6521688,6521681,6521690,6523033,6521693,4966281,5883172,5988175,6186781,4966286,6026824,4966287,4966283,4979639]);galleries[282210]=new gallery(282210,"5313092,4966304,4966296,4966294,4966292,4966291","Skateraw &<br>Thorntonloch","gallery",[4966304,4966294,4966296,5313092,4966292,6232287,4966299,4966291,4966303]);galleries[289633]=new gallery(289633,"6521716,6110963,5125012,5125005,5124997,5124987","Labradors &<br>Other Areas","gallery",[6521716,6110963,5124987,5124997,5125005,5125012]);var imageSets=new Object();imageSets[233497]="6520985,6520978,6110963,6090398,5917744,5914484,5914465,5889110,5582831,5088912";imageSets[233078]="6111041,6110911,6110909,6110906,6026824,5988175,5952587,5901010,5883172,5883106,5883078,5848870,5799882,5799748,5570820,5570572,5313092,5300757,5299079,4996367,4985897,4972595,4971698,4965472,4965462,4965459,4965458,4965427,4965423,4965399,4965395,4965387,4964516,4964431,4964369";imageSets[1]="6530798,6521716,6521711,6521708,6521696,6521693,6521690,6521688,6521681,6521673,6521665,6521661,6521655,6520975,6446671,6419664,6419607,6419557,6419544,6419538,6419045,6419019,6418933,6418923,6316442,6234879,6232287,6163838,6026824,5988175,5952587,5901010,5883172,5883106,5883078,5848870,5799882,5570820,5313092,5300757,5299079,5293521,5076708,4996367,4985897,4971698,4966299,4965472,4965462,4965459,4965458,4965427,4965423,4965399,4965387,4964516,4964431,4964369";imageSets[2]="6111041,6110911,6110909,6110906,6026824,5988175,5952587,5901010,5883172,5883106,5883078,5848870,5799882,5799748,5570820,5570572,5313092,5300757,5299079,4996367,4985897,4972595,4971698,4966513,4966505,4966400,4966304,4966296,4966294,4966292,4966291,4966287,4966286,4966283,4966281,4966224,4966221,4966215,4966202,4966176,4965472,4965462,4965459,4965458,4965436,4965433,4965431,4965427,4965423,4965399,4965395,4965387,4964516,4964431,4964369";imageSets[3]="6111041,6110911,6110909,6110906,6026824,5988175,5952587,5901010,5883172,5883106,5883078,5848870,5799882,5799748,5570820,5570572,5313092,5300757,5299079,4996367,4985897,4972595,4971698,4965472,4965462,4965459,4965458,4965427,4965423,4965399,4965395,4965387,4964516,4964431,4964369";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 21:b="http://www6.clikpic.com/scottish_borders/images";break}switch(a){case 1:b="http://www1.clikpic.com/scottish_borders/images";break}switch(a){case 2:b="http://admin.clikpic.com/scottish_borders/images";break}switch(a){case 24:b="http://tpc15/clikpic/scottish_borders/images";break}switch(a){case 4:b="http://www.clikchurch.com/scottish_borders/images";break}switch(a){case 5:b="http://www2.clikpic.com/scottish_borders/images";break}switch(a){case 22:b="http://tpc5/clikpic/scottish_borders/images";break}switch(a){case 23:b="http://tpc10/clikpic/scottish_borders/images";break}switch(a){case 25:b="http://tpc16/clikpic/scottish_borders/images";break}switch(a){case 15:b="http://www3.clikpic.com/scottish_borders/images";break}switch(a){case 18:b="http://www4.clikpic.com/scottish_borders/images";break}switch(a){case 19:b="http://www5.clikpic.com/scottish_borders/images";break}switch(a){case 31:b="http://www7.clikpic.com/scottish_borders/images";break}switch(a){case 32:b="http://admin2.clikpic.com/scottish_borders/images";break}switch(a){case 33:b="http://www8.clikpic.com/scottish_borders/images";break}switch(a){case 34:b="http://www9.clikpic.com/scottish_borders/images";break}switch(a){case 35:b="http://admin3.clikpic.com/scottish_borders/images";break}switch(a){case 37:b="http://admin4.clikpic.com/scottish_borders/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="'+escape(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="Scotland's Landscapes, Scottish Borders: "+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 your cart. Thank you.").show()}else{$("#paymentConfirm").text("Item added to your cart. Thank you.").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><em>Ref:</em> </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><em>An original work by: <span style="font-weight:lighter;">Roni Butcher</span></em> </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:</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><br><br><strong>SELECT & BUY THIS PRINT ONLINE:</strong></p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="SCOTTISH_BORDERS">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View my cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to your cart. Thank you.</div>';b=b+"</div>";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+'")'})}}};