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[5175811]=new thumbnail(5175811,"241070","Who needs daylight?","_MG_0291a_thumb.jpg",130,87,18);thumbnails[5175832]=new thumbnail(5175832,"241070","last of the evening sun","_MG_0249a_thumb.jpg",130,87,18);thumbnails[5175839]=new thumbnail(5175839,"241070","Evening sun reflects off the new structure","_MG_0183a_thumb.jpg",130,87,18);thumbnails[5175842]=new thumbnail(5175842,"241070","","_MG_0284a_thumb.jpg",130,88,18);thumbnails[5175843]=new thumbnail(5175843,"241070","fast work","_MG_0241a_thumb.jpg",130,87,18);thumbnails[5050662]=new thumbnail(5050662,"241070","Steel Number 1","_MG_8996b_thumb.jpg",130,87,18);thumbnails[4675691]=new thumbnail(4675691,"241070","Compound taking shape","_MG_6613a_1_thumb.jpg",130,87,18);thumbnails[4675923]=new thumbnail(4675923,"241070","Ready & waiting","_MG_6346a_thumb.jpg",130,87,18);thumbnails[4675617]=new thumbnail(4675617,"241070","The compound takes shape","_MG_6285a_thumb.jpg",130,195,18);thumbnails[4675753]=new thumbnail(4675753,"241070","New Struts","_MG_6315a_thumb.jpg",130,195,18);thumbnails[4675823]=new thumbnail(4675823,"241070","Time to duck","_MG_6238a_thumb.jpg",130,205,18);thumbnails[4556637]=new thumbnail(4556637,"241070","Preparing for new struts","_MG_5579a_thumb.jpg",130,104,18);thumbnails[4556645]=new thumbnail(4556645,"241070","Any old iron...","_MG_5131a_thumb.jpg",130,87,18);thumbnails[4556657]=new thumbnail(4556657,"241070","Cutting the head off a rusty bolt","_MG_5541a_thumb.jpg",130,195,18);thumbnails[4230735]=new thumbnail(4230735,"241070","Self Portrait","_MG_4867a_thumb.jpg",130,132,18);thumbnails[4246870]=new thumbnail(4246870,"241070","Going...going...","_MG_4836a_thumb.jpg",130,295,18);thumbnails[2278069]=new thumbnail(2278069,"241070","Under the pier -Weston Super Mare","pier-1_thumb.jpg",130,92,18);thumbnails[2278072]=new thumbnail(2278072,"241070","Weston Super Mare Pier","pier-2_thumb.jpg",130,92,18);thumbnails[2278083]=new thumbnail(2278083,"241070","A section of pier","pier-4_thumb.jpg",130,92,18);thumbnails[1600936]=new thumbnail(1600936,"69165","Mark, Church of the Holy Cross","Mark-church-window_thumb.jpg",130,153,18);thumbnails[1478473]=new thumbnail(1478473,"68138","Jelly Antler - Calcocera viscosa","_MG_6716_thumb.jpg",130,87,18);thumbnails[1478481]=new thumbnail(1478481,"68138","Tiny, new and perfect.","_MG_6724_thumb.jpg",130,87,18);thumbnails[1478484]=new thumbnail(1478484,"68138","Mystery fungi","_MG_6725a_1_thumb.jpg",130,116,18);thumbnails[1478485]=new thumbnail(1478485,"68138","Common Stinkhorn - after the slime has gone.","_MG_6739_thumb.jpg",130,195,18);thumbnails[1478486]=new thumbnail(1478486,"68138","Tiny mushrooms - Mycena stipata","_MG_6748_thumb.jpg",130,87,18);thumbnails[1478488]=new thumbnail(1478488,"68138","Tiny mushrooms by natural light - Mycena stipata","_MG_6749_thumb.jpg",130,87,18);thumbnails[1478489]=new thumbnail(1478489,"68138","cluster of Porcelain fungi on the trunk of a beech tree","_MG_6765_thumb.jpg",130,87,18);thumbnails[1478491]=new thumbnail(1478491,"68138","Porcelain Fungi - colour","_MG_6786_thumb.jpg",130,87,18);thumbnails[1478492]=new thumbnail(1478492,"68138","Porcelain fungi ","_MG_6797a_thumb.jpg",130,195,18);thumbnails[1478591]=new thumbnail(1478591,"68138","A relatively new Stinkhorn - yet to turn to smelly slime.","_MG_6692a-l_thumb.jpg",130,165,18);thumbnails[1478592]=new thumbnail(1478592,"68138","Common Stinkhorn","_MG_6702a-l_thumb.jpg",130,209,18);thumbnails[1478619]=new thumbnail(1478619,"68138","Mycena cineralla - Arched bonnet","_MG_6733a-l_thumb.jpg",130,195,18);thumbnails[1478496]=new thumbnail(1478496,"89590","Ted - the montage","Ted-montage-1_thumb.jpg",130,92,18);thumbnails[1259392]=new thumbnail(1259392,"89590","Ted 1","ted-1_thumb.jpg",130,125,18);thumbnails[961816]=new thumbnail(961816,"69165","Windblown Chestnuts in Bloom","Jubilee-Chestnuts2_thumb.jpg",130,87,18);thumbnails[962728]=new thumbnail(962728,"69165","Beneath the trees","Mark-bench_thumb.jpg",130,87,18);thumbnails[963282]=new thumbnail(963282,"69165","Abbot's Causeway","Abbot's-Causeway_thumb.jpg",130,87,18);thumbnails[905052]=new thumbnail(905052,"69141","Jack #2","Jack-2-1994b_thumb.jpg",130,94,18);thumbnails[905055]=new thumbnail(905055,"69141","Jack #3","Jack-3-2067a_2_thumb.jpg",130,107,18);thumbnails[906115]=new thumbnail(906115,"69165","The Mark Yeo","Mark-Yeo_thumb.jpg",130,129,18);thumbnails[1091201]=new thumbnail(1091201,"69141","Jack - 40 winks","Jack-8_2144a_thumb.jpg",130,80,18);thumbnails[888433]=new thumbnail(888433,"68138","Two spots","Moss-Ladybird_thumb.jpg",130,87,18);thumbnails[902495]=new thumbnail(902495,"68990","","Joy-1_thumb.jpg",130,87,18);thumbnails[902550]=new thumbnail(902550,"68990","","Joy-2_thumb.jpg",130,90,18);thumbnails[902932]=new thumbnail(902932,"68990","","joy-3_thumb.jpg",130,146,18);thumbnails[906085]=new thumbnail(906085,"69165","The Church of the Holy Cross, Mark.","St-Marks-Mark_thumb.jpg",130,87,18);thumbnails[963283]=new thumbnail(963283,"69165","Abbot's Causeway II","Abbot's-CausewayII_thumb.jpg",130,87,18);thumbnails[1017778]=new thumbnail(1017778,"","Chris Abbott","me_thumb.jpg",130,98,18);thumbnails[4556828]=new thumbnail(4556828,"241070","covers off and looking good","_MG_5486a_thumb.jpg",130,83,18);thumbnails[4675510]=new thumbnail(4675510,"241070","Farewell to the canopy","_MG_4450c_thumb.jpg",130,87,18);thumbnails[6270845]=new thumbnail(6270845,"348505","6896 BW","_MG_6896_BW_thumb.jpg",130,121,18);thumbnails[6270861]=new thumbnail(6270861,"348505","6896HC","_MG_6896HC_thumb.jpg",130,121,18);thumbnails[6270862]=new thumbnail(6270862,"348505","6899HC","_MG_6899HC_thumb.jpg",130,111,18);thumbnails[6270863]=new thumbnail(6270863,"348505","6918 BW","_MG_6918__BW_thumb.jpg",130,87,18);thumbnails[6270864]=new thumbnail(6270864,"348505","6918 HC","_MG_6918HC_thumb.jpg",130,87,18);thumbnails[6270866]=new thumbnail(6270866,"348505","6946 BW","_MG_6946_BW_thumb.jpg",130,154,18);thumbnails[6270882]=new thumbnail(6270882,"348505","6947 HC","_MG_6947HC_thumb.jpg",130,166,18);thumbnails[6270883]=new thumbnail(6270883,"348505","6961 BW","_MG_6961_BW_thumb.jpg",130,203,18);thumbnails[6270888]=new thumbnail(6270888,"348505","6961 HC","_MG_6961HC_thumb.jpg",130,203,18);thumbnails[6270889]=new thumbnail(6270889,"348505","6964 HC","_MG_6964HC_thumb.jpg",130,99,18);thumbnails[6270893]=new thumbnail(6270893,"348505","7038 HC","_MG_7038HC_thumb.jpg",130,178,18);thumbnails[6270896]=new thumbnail(6270896,"348505","7066HC","_MG_7066HC_thumb.jpg",130,187,18);thumbnails[6270897]=new thumbnail(6270897,"348505","7085 HC_1","_MG_7085HC_1_thumb.jpg",130,213,18);thumbnails[6270899]=new thumbnail(6270899,"348505","7088 BW","_MG_7088_BW_thumb.jpg",130,195,18);thumbnails[6270901]=new thumbnail(6270901,"348505","7088 HC","_MG_7088HC_thumb.jpg",130,195,18);thumbnails[6270903]=new thumbnail(6270903,"348505","7095 BW","_MG_7095_BW_thumb.jpg",130,195,18);thumbnails[6270906]=new thumbnail(6270906,"348505","7095 HC","_MG_7095HC_thumb.jpg",130,195,18);thumbnails[6270907]=new thumbnail(6270907,"348505","7113_s_ok2 BW","_MG_7113_s_ok2_BW_thumb.jpg",130,138,18);thumbnails[6270909]=new thumbnail(6270909,"348505","7113HC","_MG_7113HC_thumb.jpg",130,152,18);thumbnails[6270910]=new thumbnail(6270910,"348505","7114HC","_MG_7114HC_thumb.jpg",130,178,18);thumbnails[6270915]=new thumbnail(6270915,"348505","7128HC","_MG_7128HC_thumb.jpg",130,195,18);thumbnails[6270917]=new thumbnail(6270917,"348505","7204HC","_MG_7204HC_thumb.jpg",130,195,18);thumbnails[6270919]=new thumbnail(6270919,"348505","7204 HC BW","_MG_7204HC_BW_thumb.jpg",130,195,18);thumbnails[6270921]=new thumbnail(6270921,"348505","7207 HC","_MG_7207HC_thumb.jpg",130,211,18);thumbnails[6270922]=new thumbnail(6270922,"348505","7207HC BW","_MG_7207HC_BW_thumb.jpg",130,211,18);thumbnails[6270923]=new thumbnail(6270923,"348505","7217HC BW","_MG_7217HC_BW_thumb.jpg",130,92,18);thumbnails[3984644]=new thumbnail(3984644,"241070","Scaffolding prepares the way for work to begin.","_MG_2277a_thumb.jpg",130,87,18);thumbnails[3984656]=new thumbnail(3984656,"241070","Scaffolding at the end of the pier","_MG_2276a_thumb.jpg",130,87,18);thumbnails[3984734]=new thumbnail(3984734,"241070","A new lease of life","_MG_3715a_thumb.jpg",130,211,18);thumbnails[3984738]=new thumbnail(3984738,"241070","Preparation area","_MG_2297a_thumb.jpg",130,195,18);thumbnails[3984748]=new thumbnail(3984748,"241070","The assembled piles are dragged down the beach to the waiting barge","_MG_2299a_thumb.jpg",130,87,18);thumbnails[3984754]=new thumbnail(3984754,"241070","The crane on the barge is positioning a new pile","_MG_2330a_thumb.jpg",130,87,18);thumbnails[3984756]=new thumbnail(3984756,"241070","The new piles are trimmed","_MG_2254b_thumb.jpg",130,87,18);thumbnails[3984767]=new thumbnail(3984767,"241070","Work on the piles for the new observation tower","_MG_3451a_1_thumb.jpg",130,195,18);thumbnails[3984771]=new thumbnail(3984771,"241070","Installing the piles for the tower.","_MG_3470a_1_thumb.jpg",130,195,18);thumbnails[3984790]=new thumbnail(3984790,"241070","A pile is lifted into place","_MG_3471a_1_thumb.jpg",130,195,18);thumbnails[4002240]=new thumbnail(4002240,"241070","Too Tall","_MG_3538a_thumb.jpg",130,191,18);thumbnails[4002294]=new thumbnail(4002294,"241070","Just right!","_MG_3550a_thumb.jpg",130,195,18);thumbnails[3984793]=new thumbnail(3984793,"241070","Another big boy's toy","_MG_3517a_1_thumb.jpg",130,87,18);thumbnails[3984804]=new thumbnail(3984804,"241070","A thoroughly modern henge","_MG_3806a_thumb.jpg",130,90,18);thumbnails[3984820]=new thumbnail(3984820,"241070","The view at low tide","_MG_3828a_thumb.jpg",130,87,18);thumbnails[3984828]=new thumbnail(3984828,"241070","The piles for the new observation tower","_MG_3815a_thumb.jpg",130,87,18);thumbnails[3984831]=new thumbnail(3984831,"241070","The new piles - looking North","_MG_3836b_thumb.jpg",130,87,18);thumbnails[3984833]=new thumbnail(3984833,"241070","The piles for the observation tower","_MG_3845a_thumb.jpg",130,195,18);thumbnails[4002128]=new thumbnail(4002128,"241070","The new and the old","_MG_3894a_1_thumb.jpg",130,87,18);thumbnails[4125801]=new thumbnail(4125801,"241070","Under the boardwalk","_MG_4265a_thumb.jpg",130,87,18);thumbnails[4125770]=new thumbnail(4125770,"241070","Bird's eye view","Panorama1-aerial3_thumb.jpg",130,87,18);thumbnails[4125986]=new thumbnail(4125986,"241070","Drilling rig","_MG_4176a_thumb.jpg",130,87,18);thumbnails[4138445]=new thumbnail(4138445,"241070","Drilling is a messy business","_MG_4345a2_thumb.jpg",130,87,18);thumbnails[2273757]=new thumbnail(2273757,"68139","Ginko","_MG_9798b_s_thumb.jpg",130,87,18);thumbnails[2029205]=new thumbnail(2029205,"68139","Blossom and blue sky - perfect","_MG_9252a_thumb.jpg",130,202,18);thumbnails[888427]=new thumbnail(888427,"68139","Roses ","Rose1_thumb.jpg",130,193,18);thumbnails[5050500]=new thumbnail(5050500,"68135","Home Time","_MG_9803a_thumb.jpg",130,87,18);thumbnails[5050585]=new thumbnail(5050585,"68135","Just because it's been done before...","_MG_9785a_thumb.jpg",130,75,18);thumbnails[5050616]=new thumbnail(5050616,"68135","Chain Chain Chain","_MG_9801a_thumb.jpg",130,87,18);thumbnails[3477752]=new thumbnail(3477752,"68135","Cheddar TIC","Cheddar-TIC_thumb.jpg",130,195,18);thumbnails[3477952]=new thumbnail(3477952,"68135","'Ere be dragons","ere-be-dragons_thumb.jpg",130,195,18);thumbnails[3478105]=new thumbnail(3478105,"68135","Stairway to...","stairs_thumb.jpg",130,87,18);thumbnails[3478108]=new thumbnail(3478108,"68135","What on earth is this","glass-tree_thumb.jpg",130,195,18);thumbnails[3478113]=new thumbnail(3478113,"68135","The tap.","tap_thumb.jpg",130,197,18);thumbnails[2251789]=new thumbnail(2251789,"68135","Misty morning on Weston Beach","_MG_0034a_1_thumb.jpg",130,112,18);thumbnails[2251797]=new thumbnail(2251797,"68135","Weston-Super-Mare Winter Gardens","winter-gardens-triptych_thumb.jpg",130,56,18);thumbnails[1360620]=new thumbnail(1360620,"68135","Arc of Angels (B&W)","angels_MG_6373b_BW_thumb.jpg",130,226,18);thumbnails[1360789]=new thumbnail(1360789,"68135","Arc of Angels II","angels_MG_6373_colour_thumb.jpg",130,162,18);thumbnails[2316313]=new thumbnail(2316313,"68135","First Direct 5 to 9 in focus - competition finalist","working-late-for-web_thumb.jpg",130,81,18);thumbnails[888513]=new thumbnail(888513,"68135","Guardian","lighthouse2_thumb.jpg",130,180,18);thumbnails[889559]=new thumbnail(889559,"68135","Cheesegrater","Centrepoint_thumb.jpg",130,294,18);thumbnails[889561]=new thumbnail(889561,"68135","Covent Garden Market, London","Covent-Garden_thumb.jpg",130,151,18);thumbnails[889564]=new thumbnail(889564,"68135","Telephone Box, Covent Garden, London","CG-telephone-Box_thumb.jpg",130,186,18);thumbnails[889566]=new thumbnail(889566,"68135","Vanishing point","Centrepoint-2_thumb.jpg",130,180,18);thumbnails[899565]=new thumbnail(899565,"68135","By the pier","BoS-Seafront-by-Pier_thumb.jpg",130,198,18);thumbnails[899567]=new thumbnail(899567,"68135","From under the pier","Jessica-BoS-Pier1_thumb.jpg",130,90,18);thumbnails[1149797]=new thumbnail(1149797,"68135","Are you sure this is where you left the train?","railway_thumb.jpg",130,195,18);thumbnails[1149822]=new thumbnail(1149822,"68135","Leaning Tower of Burnham on Sea","St-Andrews_thumb.jpg",130,194,18);thumbnails[1159205]=new thumbnail(1159205,"68135","Burnham Pavillion 2","pavillion-2_thumb.jpg",130,94,18);thumbnails[1159210]=new thumbnail(1159210,"68135","Pavillion pillars","Pavillion-pillars_thumb.jpg",130,90,18);thumbnails[1360749]=new thumbnail(1360749,"68135","Arc of Angels (colour)","angels_MG_6373b_colour_thumb.jpg",130,226,18);thumbnails[4141094]=new thumbnail(4141094,"68135","Grenoble","Grenoble_thumb.jpg",130,195,18);thumbnails[3586203]=new thumbnail(3586203,"68136","Berrow Dunes","_MG_2096-final-2_thumb.jpg",130,87,18);thumbnails[3586250]=new thumbnail(3586250,"68136","The Beach(?) Tree","_MG_2177-final_thumb.jpg",130,87,18);thumbnails[3586304]=new thumbnail(3586304,"68136","Berrow beach tree II","_MG_2149a_thumb.jpg",130,87,18);thumbnails[3478089]=new thumbnail(3478089,"68136","The Gorge, some noisy Jackdaws, a peregrine falcon... and me.","Cheddar-Gorge_thumb.jpg",130,82,18);thumbnails[3478100]=new thumbnail(3478100,"68136","The long and windy road?","Gorge-2_thumb.jpg",130,207,18);thumbnails[2029242]=new thumbnail(2029242,"68136","Mooring","_MG_9279b_thumb.jpg",130,195,18);thumbnails[2029248]=new thumbnail(2029248,"68136","Textures","_MG_9301a_thumb.jpg",130,131,18);thumbnails[2029256]=new thumbnail(2029256,"68136","The last mooring","_MG_9319a_thumb.jpg",130,187,18);thumbnails[2029261]=new thumbnail(2029261,"68136","On the ropes","_MG_9322a_1_thumb.jpg",130,86,18);thumbnails[2029266]=new thumbnail(2029266,"68136","High and Dry 1","_MG_9352a_thumb.jpg",130,67,18);thumbnails[2029267]=new thumbnail(2029267,"68136","High & Dry 2","_MG_9354a_thumb.jpg",130,63,18);thumbnails[2029277]=new thumbnail(2029277,"68136","The far bank","_MG_9392a_thumb.jpg",130,200,18);thumbnails[2029279]=new thumbnail(2029279,"68136","Tidal Gates","_MG_9397a_thumb.jpg",130,209,18);thumbnails[1743882]=new thumbnail(1743882,"68136","Burnham sea defences at dawn","sea_wall_3_thumb.jpg",130,87,18);thumbnails[1150572]=new thumbnail(1150572,"68136","The Nornen","B&W-Nornen-1-s_thumb.jpg",130,85,18);thumbnails[1150675]=new thumbnail(1150675,"68136","Nornen 2 2x1 ratio","B&W-Norlen-BW-s-cropped_thumb.jpg",130,65,18);thumbnails[1151258]=new thumbnail(1151258,"68136","Nornen 6","nornen-6d_thumb.jpg",130,86,18);thumbnails[1151263]=new thumbnail(1151263,"68136","The Nornen - a Norwegian Barque which was parked here in 1897. ","nornen-4c-letterbox-4web_thumb.jpg",130,65,18);thumbnails[1152724]=new thumbnail(1152724,"68136","Nornen 8 in moody black & white","B&W-Nornen-8-us_thumb.jpg",130,69,18);thumbnails[1152730]=new thumbnail(1152730,"68136","Nornen 8","Nornen-8-us_thumb.jpg",130,69,18);thumbnails[1152883]=new thumbnail(1152883,"68136","The wreck of the Nornen on Berrow Beach, Somerset. ","nornen-6b-clr_thumb.jpg",130,84,18);thumbnails[888389]=new thumbnail(888389,"68136","Great Wood, The Quantocks, Somerset","Great-Wood_thumb.jpg",130,96,18);thumbnails[888401]=new thumbnail(888401,"68136","Tealham Moor","Mark-Moor_thumb.jpg",130,72,18);thumbnails[888421]=new thumbnail(888421,"68136","Cracked Willow L","split-willow-landscape-b_thumb.jpg",130,84,18);thumbnails[888449]=new thumbnail(888449,"68136","On the beech","Mendip beeches_thumb.jpg",130,195,18);thumbnails[888453]=new thumbnail(888453,"68136","1 moo 3","3-Cows-reflected_thumb.jpg",130,120,18);thumbnails[888472]=new thumbnail(888472,"68136","Sentinel","Lighthouse_thumb.jpg",130,183,18);thumbnails[888507]=new thumbnail(888507,"68136","Storm warning","panoramic-Burnham_thumb.jpg",130,49,18);thumbnails[899359]=new thumbnail(899359,"68136","Nyland Gate","Nyland-Gate_thumb.jpg",130,48,18);thumbnails[899362]=new thumbnail(899362,"68136","Reclaimed 1","Reclaimed-1_thumb.jpg",130,59,18);thumbnails[899562]=new thumbnail(899562,"68136","Quantock wood","Quantock-wood-p_thumb.jpg",130,173,18);thumbnails[899563]=new thumbnail(899563,"68136","Quantock wood 2","Quantock-wood-tri_thumb.jpg",130,92,18);thumbnails[899564]=new thumbnail(899564,"68136","Beneath the pier","Under-BoS-Pier_thumb.jpg",130,174,18);thumbnails[919600]=new thumbnail(919600,"68136","Trapezia","pylon_thumb.jpg",130,173,18);thumbnails[1149775]=new thumbnail(1149775,"68136","Timelines (Kilve Beach)","kilve_thumb.jpg",130,225,18);thumbnails[1152373]=new thumbnail(1152373,"68136","Nornen 7","Nornen-7b_thumb.jpg",130,76,18);thumbnails[1158844]=new thumbnail(1158844,"68136","The Burnham lighthouses","beach-lighthouse-p_thumb.jpg",130,173,18);thumbnails[1778101]=new thumbnail(1778101,"68136","Uphill Beach","Uphill_beach_thumb.jpg",130,195,18);thumbnails[2029236]=new thumbnail(2029236,"68136","Highbridge Clyce on the River Brue","_MG_9263a_1_thumb.jpg",130,73,18);thumbnails[2316523]=new thumbnail(2316523,"68137","take two young ladies and one big beach...","handstands-web_thumb.jpg",130,80,18);thumbnails[2316665]=new thumbnail(2316665,"68137","One giant leap","leap-web_thumb.jpg",130,109,18);thumbnails[1930657]=new thumbnail(1930657,"68137","There's nothing better than sunshine and a good book...","Bookworm_thumb.jpg",130,98,18);thumbnails[1105577]=new thumbnail(1105577,"68137","Chloe","Chloe_thumb.jpg",130,87,18);thumbnails[1105581]=new thumbnail(1105581,"68137","Tiger Tiger... Panther Panther","Chloe_2b_thumb.jpg",130,87,18);thumbnails[907371]=new thumbnail(907371,"68137","Jack in Black & White","Jack-3-2067a_21_thumb.jpg",130,107,18);thumbnails[4140340]=new thumbnail(4140340,"68137","Billy","_MG_2398_thumb.jpg",130,191,18);thumbnails[4140342]=new thumbnail(4140342,"68137","Billy","_MG_2360_thumb.jpg",130,186,18);thumbnails[4140397]=new thumbnail(4140397,"68137","Billy","_MG_2551_thumb.jpg",130,124,18);thumbnails[4140398]=new thumbnail(4140398,"68137","Billy","_MG_2464_thumb.jpg",130,87,18);thumbnails[4140458]=new thumbnail(4140458,"68137","","H-L-06_thumb.jpg",130,125,18);thumbnails[4140462]=new thumbnail(4140462,"68137","","H-L-05b_thumb.jpg",130,195,18);thumbnails[937489]=new thumbnail(937489,"62051","Patience","Swan-nesting_thumb.jpg",130,105,18);var galleries=new Object();galleries[348505]=new gallery(348505,"6270923,6270922,6270921,6270919,6270917,6270915,6270910,6270909,6270907,6270906","F portraits ","gallery",[6270845,6270861,6270862,6270863,6270864,6270866,6270882,6270883,6270888,6270889,6270893,6270896,6270897,6270899,6270901,6270903,6270906,6270907,6270909,6270910,6270915,6270917,6270919,6270921,6270922,6270923]);galleries[68990]=new gallery(68990,"902932,902550,902495","Joy Rasmussen - Artist","section98013",[902495,902550,902932]);galleries[69165]=new gallery(69165,"1600936","Mark - Somerset","gallery",[1600936,961816,962728,963282,906115,906085,963283]);galleries[89590]=new gallery(89590,"1478496","Ted's gallery","section98013",[1478496,1259392]);galleries[241070]=new gallery(241070,"4675923,4675823,4675753,4675691,4675617,4675510,4556637,4246870","The Grand Pier - Weston-super-Mare","gallery",[5175811,5175832,5175839,5175842,5175843,5050662,4675691,4675923,4675617,4675753,4675823,4556637,4556645,4556657,4230735,4246870,2278069,2278072,2278083,4556828,4675510,3984644,3984656,3984734,3984738,3984748,3984754,3984756,3984767,3984771,3984790,4002240,4002294,3984793,3984804,3984820,3984828,3984831,3984833,4002128,4125801,4125770,4125986,4138445]);galleries[69141]=new gallery(69141,"1091201,905055,905052","The Jack Gallery","section98013",[905052,905055,1091201]);galleries[68138]=new gallery(68138,"1478492","Tiny things","gallery",[1478473,1478481,1478484,1478485,1478486,1478488,1478489,1478491,1478492,1478591,1478592,1478619,888433]);galleries[69140]=new gallery(69140,"1478496","Treasures","section98013",[]);galleries[81326]=new gallery(81326,"","Tornado","gallery",[]);galleries[68139]=new gallery(68139,"2273757","Flora","gallery",[2273757,2029205,888427]);galleries[68135]=new gallery(68135,"5050500,3477752,2251789,1360749","Urban Landscapes","gallery",[5050500,5050585,5050616,3477752,3477952,3478105,3478108,3478113,2251789,2251797,1360620,1360789,2316313,888513,889559,889561,889564,889566,899565,899567,1149797,1149822,1159205,1159210,1360749,4141094]);galleries[68136]=new gallery(68136,"3586250,3586203,1778101,1149775,888472,888453","Rural Landscapes","gallery",[3586203,3586250,3586304,3478089,3478100,2029242,2029248,2029256,2029261,2029266,2029267,2029277,2029279,1743882,1150572,1150675,1151258,1151263,1152724,1152730,1152883,888389,888401,888421,888449,888453,888472,888507,899359,899362,899562,899563,899564,919600,1149775,1152373,1158844,1778101,2029236]);galleries[68137]=new gallery(68137,"2316665,2316523,1930657,1105577","Portraits","gallery",[2316523,2316665,1930657,1105577,1105581,907371,4140340,4140342,4140397,4140398,4140458,4140462]);galleries[62051]=new gallery(62051,"937489","Fauna","gallery",[937489]);galleries[68134]=new gallery(68134,"1600936","Somerset Villages","gallery",[]);var imageSets=new Object();imageSets[1]="5050500,4675923,4675823,4675753,4675691,4675617,4675510,4556637,4246870,3586250,3586203,3477752,2316665,2278069,2273757,2251797,2251789,1930657,1778101,1600936,1478492,1360620,1152883,1149775,1091201";imageSets[2]="5050500,4675923,4675823,4675753,4675691,4675617,4675510,4556637,4246870,3586250,3586203,3477752,2316665,2316523,2273757,2251789,1930657,1778101,1600936,1478496,1478492,1360749,1149775,1105577,937489,888472,888453";imageSets[3]="4675923,4675823,4675753,4675691,4675617,4675510,4556637";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/chrisabbott/images";break}switch(a){case 1:b="http://www1.clikpic.com/chrisabbott/images";break}switch(a){case 2:b="http://admin.clikpic.com/chrisabbott/images";break}switch(a){case 24:b="http://tpc15/clikpic/chrisabbott/images";break}switch(a){case 4:b="http://www.clikchurch.com/chrisabbott/images";break}switch(a){case 5:b="http://www2.clikpic.com/chrisabbott/images";break}switch(a){case 22:b="http://tpc5/clikpic/chrisabbott/images";break}switch(a){case 23:b="http://tpc10/clikpic/chrisabbott/images";break}switch(a){case 25:b="http://tpc16/clikpic/chrisabbott/images";break}switch(a){case 15:b="http://www3.clikpic.com/chrisabbott/images";break}switch(a){case 18:b="http://www4.clikpic.com/chrisabbott/images";break}switch(a){case 19:b="http://www5.clikpic.com/chrisabbott/images";break}switch(a){case 31:b="http://www7.clikpic.com/chrisabbott/images";break}switch(a){case 32:b="http://admin2.clikpic.com/chrisabbott/images";break}switch(a){case 33:b="http://www8.clikpic.com/chrisabbott/images";break}switch(a){case 34:b="http://www9.clikpic.com/chrisabbott/images";break}switch(a){case 35:b="http://admin3.clikpic.com/chrisabbott/images";break}switch(a){case 37:b="http://admin4.clikpic.com/chrisabbott/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="Chris Abbott 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;resizePhotoInfo();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="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="CHRIS.ABBOTT5@VIRGIN.NET">';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 cart" 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="CHRIS.ABBOTT5@VIRGIN.NET">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" 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+'")'})}}};