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[1910]=new thumbnail(1910,"109247","<strong>Bauchaille Etive Mor<strong>","Bauchaille Etive Mor_1_thumb.jpg",130,87,1);thumbnails[1992]=new thumbnail(1992,"109247","<strong>Tree In Stone<strong>","Rannoch Moor Stone Mono 1_thumb.jpg",130,87,1);thumbnails[240184]=new thumbnail(240184,"109247","<strong>Callanish Stones<strong>","Callanish Stones_thumb.jpg",130,87,1);thumbnails[2464]=new thumbnail(2464,"109247","<strong>Huts Lindisfarne<strong>","lindisfarne huts 2_thumb.jpg",130,87,1);thumbnails[2463]=new thumbnail(2463,"109247","<strong>Beach Rocks<strong>","Devon Rock mono_thumb.jpg",130,87,1);thumbnails[1320508]=new thumbnail(1320508,"109247","<strong>The Cheesewrings<strong>","Cheesrings Bodmin Moor_thumb.jpg",130,87,1);thumbnails[1320517]=new thumbnail(1320517,"109247","<strong>Lochan Rannoch<strong>","Lochan Rannoch mono 1_1_thumb.jpg",130,87,1);thumbnails[2210758]=new thumbnail(2210758,"109247","<strong>Laig Bay<strong>","Eigg hdr2 split tone_thumb.jpg",130,87,1);thumbnails[2193]=new thumbnail(2193,"109247","<strong>Durdle Door<strong>","Durdle Door_thumb.jpg",130,87,1);thumbnails[241486]=new thumbnail(241486,"109247","<strong>Druridge Bay<strong>","Drurridge bay_thumb.jpg",130,85,1);thumbnails[2699254]=new thumbnail(2699254,"109247","<strong>Dead Vlei Namibia<strong>","Dead Vlei 4_thumb.jpg",130,87,1);thumbnails[2699256]=new thumbnail(2699256,"109247","<strong>West Beach Berneray<strong>","Bernaray 38 MONO_thumb.jpg",130,87,1);thumbnails[274643]=new thumbnail(274643,"109104","<strong>Rum from Laig Bay<strong> ","Rum from Laig Bay_thumb.jpg",130,87,1);thumbnails[1913]=new thumbnail(1913,"109104","<strong>Loch Ard<strong>","Loch Ard_thumb.jpg",130,87,1);thumbnails[1912]=new thumbnail(1912,"109104","<strong>Winter Morning<strong>","Winter Morning_thumb.jpg",130,87,1);thumbnails[1599599]=new thumbnail(1599599,"109104","<strong>Bauchaille Etive Mor<strong>","BAUCHAILLE ETIVE MOR_thumb.jpg",130,87,1);thumbnails[3259428]=new thumbnail(3259428,"109104","<strong>Glen Dochart<strong>","Glen Dochart_thumb.jpg",130,87,1);thumbnails[1609512]=new thumbnail(1609512,"109104","<strong>After the Rain<strong>","Luskyntyre 6_thumb.jpg",130,87,1);thumbnails[3259396]=new thumbnail(3259396,"109104","<strong>Dead Tree<strong>","Dead Tree_thumb.jpg",130,87,1);thumbnails[2083]=new thumbnail(2083,"109104","<strong>Tree Rannoch<strong>","Rannoch Tree 2 best_thumb.jpg",130,87,1);thumbnails[1871997]=new thumbnail(1871997,"109104","<strong>Dales Tree<strong>","Dales Tree 5_thumb.jpg",130,87,1);thumbnails[2699241]=new thumbnail(2699241,"109104","<strong>Frosty Rannoch<strong>","Frosty Rannoch 1_thumb.jpg",130,87,1);thumbnails[2699244]=new thumbnail(2699244,"109104","<strong>Mist on the Moor<strong>","Misty Mountains 41_thumb.jpg",130,87,1);thumbnails[2140228]=new thumbnail(2140228,"109104","<strong>Luskentyre<strong>","Luskintyre_thumb.jpg",130,87,1);thumbnails[1599641]=new thumbnail(1599641,"162109","<strong>Bluebells<strong>","Bluebell wood_thumb.jpg",130,87,1);thumbnails[1923]=new thumbnail(1923,"162109","<strong>Rannoch Moor<strong>","Rannoch Coloured 2_thumb.jpg",130,87,1);thumbnails[1988]=new thumbnail(1988,"162109","<strong>Bluebell Wood<strong>","bluebell wood 2_thumb.jpg",130,87,1);thumbnails[514393]=new thumbnail(514393,"162109","<strong>Madonna With Roses<strong>","Madonna With Roses_thumb.jpg",130,87,1);thumbnails[2191]=new thumbnail(2191,"162109","<strong>Washing Line<strong>","washing line_thumb.jpg",130,90,1);thumbnails[241677]=new thumbnail(241677,"162109","<strong>Rannoch Tree<strong>","Rannoch Tree flood 2_thumb.jpg",130,87,1);thumbnails[1871999]=new thumbnail(1871999,"162109","<strong>Gondolas<strong>","Gondolas mod_thumb.jpg",130,87,1);thumbnails[43598]=new thumbnail(43598,"162109","<strong>Venice Sunset<strong>","Venice Domes Sunset with mask_thumb.jpg",130,87,1);thumbnails[2705561]=new thumbnail(2705561,"162109","<strong>Beech Trees<strong>","Beech Trees_thumb.jpg",130,87,1);thumbnails[4868721]=new thumbnail(4868721,"162109","Autumn Colour","AUTUMN_TREE_2_thumb.jpg",130,87,1);thumbnails[5134749]=new thumbnail(5134749,"162109","Autumn Grasses","Autumn_Grasses_thumb.jpg",130,85,1);thumbnails[1701768]=new thumbnail(1701768,"162118","<strong>Fence in Reeds<strong>","Fence in Reeds_thumb.jpg",130,87,1);thumbnails[2532651]=new thumbnail(2532651,"162118","<strong>Sunset Harris<strong>","Sunset Harris_thumb.jpg",130,87,1);thumbnails[2192]=new thumbnail(2192,"162118","<strong>Old Tyres<strong>","Old Tyres_thumb.jpg",130,87,1);thumbnails[514391]=new thumbnail(514391,"162118","<strong>Fish Painting 2<strong>","Fish Painting 4_thumb.jpg",130,87,1);thumbnails[1919]=new thumbnail(1919,"162118","<strong>Rock Study 1<strong>","pattern3_thumb.jpg",130,88,1);thumbnails[1917]=new thumbnail(1917,"162118","<strong>Rock Study 2<strong>","No 18_thumb.jpg",130,88,1);thumbnails[1915]=new thumbnail(1915,"162118","<strong>Rock Study 6<strong>","No 3_1_thumb.jpg",130,87,1);thumbnails[1914]=new thumbnail(1914,"162118","<strong>Rock Study 4<strong>","extra 2_thumb.jpg",130,85,1);thumbnails[224491]=new thumbnail(224491,"162118","<strong>0ld Bedstead<strong>","Old Bedstead 1_thumb.jpg",130,86,1);thumbnails[109954]=new thumbnail(109954,"162118","<strong>Old Bed<strong>","Old Bedstead 4_thumb.jpg",130,86,1);thumbnails[2715476]=new thumbnail(2715476,"162118","<strong>Car Door With Bullet Holes<strong>","Old Car Detail 3_thumb.jpg",130,87,1);thumbnails[2715482]=new thumbnail(2715482,"162118","<strong>Car Boot With Bullet Holes<strong>","Old Car Detail 10_thumb.jpg",130,87,1);thumbnails[2588530]=new thumbnail(2588530,"164810","<strong>Blackrock Cottage<strong>","Blackrock Cottage 2_thumb.jpg",130,87,1);thumbnails[2588531]=new thumbnail(2588531,"164810","<strong>Bluebell Wood<strong>","Bluebell Infrared_2656_thumb.jpg",130,87,1);thumbnails[2588532]=new thumbnail(2588532,"164810","<strong>Cows Berneray<strong>","Bernaray Cows_thumb.jpg",130,87,1);thumbnails[2588533]=new thumbnail(2588533,"164810","<strong>Graveyard North Uist<strong>","Bernaray Graveyard_thumb.jpg",130,87,1);thumbnails[2588534]=new thumbnail(2588534,"164810","<strong>Old Cart<strong>","Berneray old cart_thumb.jpg",130,87,1);thumbnails[2588536]=new thumbnail(2588536,"164810","<strong>Sand Patterns<strong>","Berneray Sand Trees 10_thumb.jpg",130,87,1);thumbnails[2715608]=new thumbnail(2715608,"164810","<strong>An Sgurr Eigg<strong>","Eigg infrared 1_thumb.jpg",130,87,1);thumbnails[2715621]=new thumbnail(2715621,"164810","<strong>Old Headstone Eigg<strong>","Eigg Headstone_thumb.jpg",130,87,1);thumbnails[2588537]=new thumbnail(2588537,"164810","<strong>Ribbleshead Viaduct<strong>","Ribbleshead Viaduct 1_thumb.jpg",87,130,1);thumbnails[2588538]=new thumbnail(2588538,"164810","<strong>Fighting For Survival<strong>","Tree in Stone 1_thumb.jpg",87,130,1);thumbnails[5278917]=new thumbnail(5278917,"162122","Flower Study","Flower_Study_thumb.jpg",98,130,1);thumbnails[2532705]=new thumbnail(2532705,"162122","<strong>Tulips<strong>","Tulips-4_thumb.jpg",130,125,1);thumbnails[2034]=new thumbnail(2034,"162122","<strong>Chilli Peppers<strong>","Chilli Peppers_thumb.jpg",130,131,1);thumbnails[1989]=new thumbnail(1989,"162122","<strong>Sunflower<strong>","Sunflower Best1_thumb.jpg",130,132,1);thumbnails[1922]=new thumbnail(1922,"162122","<strong>Poppy Head<strong>","poppy head mono_thumb.jpg",130,118,1);thumbnails[2035]=new thumbnail(2035,"162122","<strong>Teasels<strong>","Teasels 1_thumb.jpg",130,160,1);thumbnails[1602454]=new thumbnail(1602454,"162122","<strong>Sweet Peas<strong>","Sweet Peas 2_thumb.jpg",130,118,1);thumbnails[1602453]=new thumbnail(1602453,"162122","<strong>Sweet Pea<strong>","Sweet Pea_thumb.jpg",130,118,1);thumbnails[1602449]=new thumbnail(1602449,"162122","<strong>Autumn Leaves<strong>","Autumn Leaves_thumb.jpg",130,118,1);thumbnails[1871988]=new thumbnail(1871988,"162122","<strong>Crocus<strong>","Crocus-1_thumb.jpg",130,118,1);thumbnails[2686410]=new thumbnail(2686410,"162122","<strong>Lily<strong>","Lily blur_thumb.jpg",130,87,1);thumbnails[2686439]=new thumbnail(2686439,"162122","<strong>Tulips in Vase<strong>","Tulips Tues 1_thumb.jpg",87,130,1);thumbnails[2702938]=new thumbnail(2702938,"170420","<strong>Interior Namibia<strong>","Interior 16_thumb.jpg",130,87,1);thumbnails[2702966]=new thumbnail(2702966,"170420","<strong>Interior Namibia<strong>","Interior 9_thumb.jpg",130,87,1);thumbnails[2702971]=new thumbnail(2702971,"170420","<strong>Old Bedstead <strong>","Old Bedstead with table_thumb.jpg",130,87,1);thumbnails[2702974]=new thumbnail(2702974,"170420","<strong>Interior Namibia<strong>","Slide 11_thumb.jpg",130,87,1);thumbnails[225122]=new thumbnail(225122,"170420","<strong>Interior Namibia<strong>","Interior pastel th.jpg",130,85,1);thumbnails[2703092]=new thumbnail(2703092,"170420","<strong>Interior Namibia<strong>","No 24_0899 F_thumb.jpg",130,87,1);thumbnails[2703110]=new thumbnail(2703110,"170420","<strong>Interior Namibia<strong>","No 18_0883 F_thumb.jpg",130,87,1);thumbnails[2703114]=new thumbnail(2703114,"170420","<strong>Interior Namibia<strong>","Kolmanskop wall Drawing 2_thumb.jpg",130,87,1);thumbnails[2998703]=new thumbnail(2998703,"170420","<strong>Interior Namibia<strong>","No 19_0884 F_thumb.jpg",130,87,1);thumbnails[2998707]=new thumbnail(2998707,"170420","<strong>Interior Namibia<strong>","Slide 6_thumb.jpg",130,87,1);thumbnails[2705539]=new thumbnail(2705539,"170420","<strong>Interior Berneray<strong>","Berneray Cottage_thumb.jpg",130,87,1);thumbnails[2705543]=new thumbnail(2705543,"170420","<strong>Interior Harris<strong>","Aga with chair best_thumb.jpg",130,87,1);thumbnails[3257018]=new thumbnail(3257018,"198428","<strong>Bernaray 1<strong>","Bernaray 41_thumb.jpg",130,87,1);thumbnails[3257019]=new thumbnail(3257019,"198428","<strong>Bernaray 2<strong>","Bernaray 5_thumb.jpg",130,87,1);thumbnails[3257020]=new thumbnail(3257020,"198428","<strong>berneray 3<strong>","berneray 10_thumb.jpg",130,87,1);thumbnails[3257042]=new thumbnail(3257042,"198428","<strong>Bernaray 4<strong>","Bernaray 1_thumb.jpg",130,87,1);thumbnails[3257043]=new thumbnail(3257043,"198428","<strong>Berneray 5<strong>","Berneray 13_thumb.jpg",130,87,1);thumbnails[3258397]=new thumbnail(3258397,"198428","<strong>Berneray 6<strong>","Berneray 41_thumb.jpg",130,87,1);thumbnails[3257045]=new thumbnail(3257045,"198428","<strong>Berneray 7<strong>","Berneray 16_thumb.jpg",130,87,1);thumbnails[3257046]=new thumbnail(3257046,"198428","<strong>Berneray 8<strong>","Berneray 8_thumb.jpg",130,87,1);thumbnails[3259241]=new thumbnail(3259241,"198428","<strong>Bernaray 9<strong>","Bernaray 2_thumb.jpg",87,130,1);thumbnails[3259242]=new thumbnail(3259242,"198428","<strong>Bernaray 10<strong>","Bernaray 3_thumb.jpg",87,130,1);thumbnails[3259243]=new thumbnail(3259243,"198428","<strong>Berneray 11<strong>","Berneray 14_thumb.jpg",87,130,1);thumbnails[3259244]=new thumbnail(3259244,"198428","<strong>berneray 12<strong>","berneray 9_thumb.jpg",87,130,1);thumbnails[3259401]=new thumbnail(3259401,"198744","<strong>Eigg 1<strong>","Eigg 1_thumb.jpg",130,87,1);thumbnails[3259402]=new thumbnail(3259402,"198744","<strong>Eigg 2<strong>","Eigg 2_thumb.jpg",130,87,1);thumbnails[3259403]=new thumbnail(3259403,"198744","<strong>Eigg 3<strong>","Eigg 3_thumb.jpg",130,87,1);thumbnails[3259404]=new thumbnail(3259404,"198744","<strong>Eigg 4<strong>","Eigg 4_thumb.jpg",130,87,1);thumbnails[3259405]=new thumbnail(3259405,"198744","<strong>Eigg 5<strong>","Eigg 5_thumb.jpg",130,87,1);thumbnails[3259417]=new thumbnail(3259417,"198744","<strong>Eigg 6<strong>","Eigg 6_thumb.jpg",130,87,1);thumbnails[3259418]=new thumbnail(3259418,"198744","<strong>Eigg 7<strong>","Eigg 7_thumb.jpg",130,87,1);thumbnails[3259419]=new thumbnail(3259419,"198744","<strong>Eigg 8<strong>","Eigg 8_thumb.jpg",130,87,1);thumbnails[3269760]=new thumbnail(3269760,"198744","<strong>Eigg 10<strong>","Eigg 10_thumb.jpg",87,130,1);thumbnails[3269763]=new thumbnail(3269763,"198744","<strong>Eigg 9<strong>","Eigg 9_thumb.jpg",87,130,1);thumbnails[3269762]=new thumbnail(3269762,"198744","<strong>Eigg 12<strong>","Eigg 12_thumb.jpg",87,130,1);thumbnails[3269761]=new thumbnail(3269761,"198744","<strong>Eigg 11<strong>","Eigg 11_thumb.jpg",87,130,1);thumbnails[6296680]=new thumbnail(6296680,"349313","View looking towards plume of the Eyjallajokull Volcano","_DSC5904_thumb.jpg",130,87,1);thumbnails[6296691]=new thumbnail(6296691,"349313","The Darkness caused by Volcano on the road to Vik","_DSC5903_thumb.jpg",130,87,1);thumbnails[6296695]=new thumbnail(6296695,"349313","Ash from volcano settling on mountain side","_DSC5985_thumb.jpg",130,87,1);thumbnails[6296720]=new thumbnail(6296720,"349313","View showing Plume of the Volcano","P1000208_thumb.jpg",130,87,1);thumbnails[6296724]=new thumbnail(6296724,"349313","Volcanic Dust Cloud","_DSC5938_thumb.jpg",87,130,1);thumbnails[6296729]=new thumbnail(6296729,"349313","Plume of Volcano","_DSC5965_thumb.jpg",87,130,1);thumbnails[6296732]=new thumbnail(6296732,"349313","Mountain covered in volcanic dust","_DSC5990_thumb.jpg",87,130,1);thumbnails[6296735]=new thumbnail(6296735,"349313","Recovery after the fallout","Volcanic_Ash_5_thumb.jpg",87,130,1);thumbnails[6296738]=new thumbnail(6296738,"349313","Iceberg in surf Jokulsarlon","Iceberg_in_Sea_3_thumb.jpg",130,87,1);thumbnails[6296788]=new thumbnail(6296788,"349313","Blue Icebergs","Iceberg_in_Sea_thumb.jpg",130,87,1);thumbnails[6296844]=new thumbnail(6296844,"349313","Iceberg in surf Jokulsarlon","Iceberg_on_beach_2_thumb.jpg",130,87,1);thumbnails[6296872]=new thumbnail(6296872,"349313","Iceberg in surf Jokulsarlon","Iceland_5_1767_thumb.jpg",130,87,1);thumbnails[3953519]=new thumbnail(3953519,"239526","Bauchaille Etive Mor","Bauchaille_Etive_Mor_frame12_thumb.jpg",130,90,1);thumbnails[4868453]=new thumbnail(4868453,"277764","Copse","Tree_Copse_2_mono_brown_lighter_thumb.jpg",130,87,1);thumbnails[3953185]=new thumbnail(3953185,"239526","Callanish","Callanish_Stones_frame_thumb.jpg",130,99,1);thumbnails[4868460]=new thumbnail(4868460,"277764","Misty Treeline","Misty_Treeline_thumb.jpg",130,87,1);thumbnails[3953276]=new thumbnail(3953276,"239526","Devon Shore","Devon_Rock_mono_frame_thumb.jpg",130,99,1);thumbnails[4868462]=new thumbnail(4868462,"277764","St Cyrus","St_Cyrus_thumb.jpg",130,87,1);thumbnails[3953287]=new thumbnail(3953287,"239526","Frosty Rannoch","Frosty_Rannoch_1_frame_thumb.jpg",130,99,1);thumbnails[4868465]=new thumbnail(4868465,"277764","Incoming Tide","Groins_3_thumb.jpg",130,87,1);thumbnails[3953288]=new thumbnail(3953288,"239526","Gondolas","Gondolas_mod_frame_thumb.jpg",130,99,1);thumbnails[4868469]=new thumbnail(4868469,"277764","Mundesley Beach","Mundesley_Beach_thumb.jpg",130,87,1);thumbnails[3953291]=new thumbnail(3953291,"239526","Loch Ard","Loch_Ard_frame_thumb.jpg",130,99,1);thumbnails[4872468]=new thumbnail(4872468,"277764","Southwold Pier","Southwold_Pier_1_thumb.jpg",130,87,1);thumbnails[3953294]=new thumbnail(3953294,"239526","Laig Bay","Rum_from_Laig_Bay_frame_thumb.jpg",130,99,1);thumbnails[4868479]=new thumbnail(4868479,"277764","Winter Morning","_DSC0220_thumb.jpg",130,87,1);thumbnails[3953296]=new thumbnail(3953296,"239526","Winter Morning","Winter_Morning_frame_thumb.jpg",130,99,1);thumbnails[4889983]=new thumbnail(4889983,"277764","Lindisfarne","Lindisafarne_1_thumb.jpg",130,87,1);thumbnails[3953365]=new thumbnail(3953365,"239526","Tulips","Tulips-4_frame_thumb.jpg",130,126,1);thumbnails[5047122]=new thumbnail(5047122,"277764","Beach 4","_DSC3608_thumb.jpg",130,87,1);thumbnails[3953447]=new thumbnail(3953447,"239526","Sweet Pea 1","Sweet_Peas_2_frame_thumb.jpg",130,121,1);thumbnails[5047141]=new thumbnail(5047141,"277764","Beach 2","_DSC4024_thumb.jpg",130,87,1);thumbnails[3953448]=new thumbnail(3953448,"239526","Sweet Pea 2","Sweet_Pea_frame_thumb.jpg",130,121,1);thumbnails[5047123]=new thumbnail(5047123,"277764","Beach 3","_DSC4030_thumb.jpg",130,87,1);thumbnails[5047120]=new thumbnail(5047120,"277764","Beach 1","_DSC3586_thumb.jpg",130,87,1);thumbnails[5047146]=new thumbnail(5047146,"277764","Beach 5","_DSC3592_thumb.jpg",87,130,1);thumbnails[5047169]=new thumbnail(5047169,"277764","Snowdonia View","_DSC4767_thumb.jpg",87,130,1);thumbnails[5047167]=new thumbnail(5047167,"277764","Slate Quarry","_DSC3632_thumb.jpg",87,130,1);thumbnails[5047164]=new thumbnail(5047164,"277764","Sea and Land","_DSC4152_thumb.jpg",87,130,1);thumbnails[5515452]=new thumbnail(5515452,"277764","River in Spate 1","Rumbling_Bridge_2_thumb.jpg",130,87,1);thumbnails[5515432]=new thumbnail(5515432,"277764","River in Spate 2 ","Rumbling_Bridge_1_thumb.jpg",130,87,1);thumbnails[5515446]=new thumbnail(5515446,"277764","River in Spate 3","Rumbling_Bridge_4_thumb.jpg",130,87,1);thumbnails[5515443]=new thumbnail(5515443,"277764","River in Spate 4 ","Rumbling_Bridge_3_thumb.jpg",130,87,1);var galleries=new Object();galleries[109247]=new gallery(109247,"1910","Landscapes Mono","gallery",[1910,1992,240184,2464,2463,1320508,1320517,2210758,2193,241486,2699254,2699256]);galleries[109104]=new gallery(109104,"274643,1913","Landscape Colour","gallery",[274643,1913,1912,1599599,3259428,1609512,3259396,2083,1871997,2699241,2699244,2140228]);galleries[162109]=new gallery(162109,"1599641","Digital","gallery",[1599641,1923,1988,514393,2191,241677,1871999,43598,2705561,4868721,5134749]);galleries[162118]=new gallery(162118,"2532651,1917","Abstract","gallery",[1701768,2532651,2192,514391,1919,1917,1915,1914,224491,109954,2715476,2715482]);galleries[164810]=new gallery(164810,"2588530","Digital Infrared","gallery",[2588530,2588531,2588532,2588533,2588534,2588536,2715608,2715621,2588537,2588538]);galleries[162122]=new gallery(162122,"2686410","Still Life","gallery",[5278917,2532705,2034,1989,1922,2035,1602454,1602453,1602449,1871988,2686410,2686439]);galleries[170420]=new gallery(170420,"225122","Interiors","gallery",[2702938,2702966,2702971,2702974,225122,2703092,2703110,2703114,2998703,2998707,2705539,2705543]);galleries[198428]=new gallery(198428,"3257020","Berneray","gallery",[3257018,3257019,3257020,3257042,3257043,3258397,3257045,3257046,3259241,3259242,3259243,3259244]);galleries[198744]=new gallery(198744,"3259419","Eigg","gallery",[3259401,3259402,3259403,3259404,3259405,3259417,3259418,3259419,3269760,3269763,3269762,3269761]);galleries[349313]=new gallery(349313,"6296680","Iceland *NEW*","gallery",[6296680,6296691,6296695,6296720,6296724,6296729,6296732,6296735,6296738,6296788,6296844,6296872]);galleries[239526]=new gallery(239526,"3953519","Framed Image Samples","gallery",[3953519,3953185,3953276,3953287,3953288,3953291,3953294,3953296,3953365,3953447,3953448]);galleries[277764]=new gallery(277764,"4868460","New Work","gallery",[4868453,4868460,4868462,4868465,4868469,4872468,4868479,4889983,5047122,5047141,5047123,5047120,5047146,5047169,5047167,5047164,5515452,5515432,5515446,5515443]);var imageSets=new Object();imageSets[1]="2699241,2588530,2532705,2532651,2140228,1871999,1701768,1602453,1599641,1599599,274643,241677,241486,240184,225122,43598,2463,2083,1923,1913,1912";imageSets[2]="6296680,4868460,3953519,3259419,3257020,2686410,2588530,2532651,1599641,274643,225122,1917,1913,1910";imageSets[3]="6296872,6296844,6296788,6296738,6296735,6296732,6296729,6296724,6296720,6296695,6296691,6296680,5515452,5515446,5515443,5515432,5278917,5134749,5047169,5047167,5047164,5047146,5047141,5047123,5047122,5047120,4889983,4872468,4868721,4868479,4868469,4868465,4868462,4868460,4868453,3953519,3953448,3953447,3953365,3953296,3953294,3953291,3953288,3953287,3953276,3953185,3269763,3269762,3269761,3269760";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/peterpaterson/images";break}switch(a){case 1:b="http://www1.clikpic.com/peterpaterson/images";break}switch(a){case 2:b="http://admin.clikpic.com/peterpaterson/images";break}switch(a){case 24:b="http://tpc15/clikpic/peterpaterson/images";break}switch(a){case 4:b="http://www.clikchurch.com/peterpaterson/images";break}switch(a){case 5:b="http://www2.clikpic.com/peterpaterson/images";break}switch(a){case 22:b="http://tpc5/clikpic/peterpaterson/images";break}switch(a){case 23:b="http://tpc10/clikpic/peterpaterson/images";break}switch(a){case 25:b="http://tpc16/clikpic/peterpaterson/images";break}switch(a){case 15:b="http://www3.clikpic.com/peterpaterson/images";break}switch(a){case 18:b="http://www4.clikpic.com/peterpaterson/images";break}switch(a){case 19:b="http://www5.clikpic.com/peterpaterson/images";break}switch(a){case 31:b="http://www7.clikpic.com/peterpaterson/images";break}switch(a){case 32:b="http://admin2.clikpic.com/peterpaterson/images";break}switch(a){case 33:b="http://www8.clikpic.com/peterpaterson/images";break}switch(a){case 34:b="http://www9.clikpic.com/peterpaterson/images";break}switch(a){case 35:b="http://admin3.clikpic.com/peterpaterson/images";break}switch(a){case 37:b="http://admin4.clikpic.com/peterpaterson/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="Peter Paterson ARPS EFIAP MPAGB: "+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:</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="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="PETERPATERSON">';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 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 cart</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+'")'})}}};