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[1847858]=new thumbnail(1847858,"124399","Storm at Norman's Bay, East Sussex<br>\r\n<br>\r\n","norman'sbay1_thumb.jpg",130,131,1);thumbnails[1847083]=new thumbnail(1847083,"124482","Piccadilly Station - Manchester<br>\r\n<br>\r\n","piccadillystation_thumb.jpg",130,86,1);thumbnails[1847861]=new thumbnail(1847861,"124402","Pentewan beach sunrise","pentewanbeach_thumb.jpg",130,131,1);thumbnails[1847864]=new thumbnail(1847864,"124402","Portwrinkle beach and harbour","portwrinklerockandsea study2_thumb.jpg",130,131,1);thumbnails[1847867]=new thumbnail(1847867,"124402","Portwrinkle rock and sea study","portwrinklerockandseastudy_thumb.jpg",130,131,1);thumbnails[1847873]=new thumbnail(1847873,"124373","The Lowry","lowrylandscape_thumb.jpg",130,86,1);thumbnails[1847877]=new thumbnail(1847877,"124373","Salford Quay Bridge","salfordquaybridge_thumb.jpg",130,86,1);thumbnails[1848898]=new thumbnail(1848898,"124483","","canalsidebridge-stockport_thumb.jpg",130,90,1);thumbnails[1848900]=new thumbnail(1848900,"124457","","portraitgallerysteps_thumb.jpg",130,195,1);thumbnails[1848902]=new thumbnail(1848902,"124451","The last harvest","chalgravewheatfield_thumb.jpg",130,130,1);thumbnails[1848924]=new thumbnail(1848924,"124399","SM360 - Fishing boat on the shore at Worthing","SM360_thumb.jpg",130,87,1);thumbnails[1848927]=new thumbnail(1848927,"124399","SM360 fishing boat at Worthing","sm360interior_thumb.jpg",130,87,1);thumbnails[1851220]=new thumbnail(1851220,"124453","Lone tree at Brimham Rocks","brimhamrocks1_thumb.jpg",130,195,1);thumbnails[1851842]=new thumbnail(1851842,"124451","Bales in the mist","balesinthemist_thumb.jpg",130,131,1);thumbnails[1851844]=new thumbnail(1851844,"124403","Bennetts Cross - Dartmoor","bennettscross_thumb.jpg",130,170,1);thumbnails[1851845]=new thumbnail(1851845,"124403","River Dart study","riverdartstudy_thumb.jpg",130,195,1);thumbnails[1851846]=new thumbnail(1851846,"124451","Pines in the mist","hernemanorfarm_thumb.jpg",130,75,1);thumbnails[1851848]=new thumbnail(1851848,"124451","Three bales and three trees","hernemanorfarm0_thumb.jpg",130,43,1);thumbnails[1851849]=new thumbnail(1851849,"124451","Bales at Herne Manor Farm","hernemanorfarm2_thumb.jpg",130,43,1);thumbnails[1875048]=new thumbnail(1875048,"124403","Surf board marker at Bigbury Bay. ","Surf board at Bigbury Bay_thumb.jpg",130,130,1);thumbnails[3156868]=new thumbnail(3156868,"124453","East Gill Force 1","eastgillforce1_thumb.jpg",130,133,1);thumbnails[3157771]=new thumbnail(3157771,"124402","Portwrinkle Rock and sea study toned","portwrinklebeachtoned_thumb.jpg",130,131,1);thumbnails[3157773]=new thumbnail(3157773,"141913","Seahouses approaching storm","seahousesapproachingstorm_thumb.jpg",130,133,1);thumbnails[1851222]=new thumbnail(1851222,"124453","Study - Brimham Rocks","brimhamrocks2_thumb.jpg",130,195,1);thumbnails[1851257]=new thumbnail(1851257,"124451","Eversholt wheatfield","eversholtfield_thumb.jpg",130,87,1);thumbnails[1851875]=new thumbnail(1851875,"124403","Bigbury Bay rock study","bigburybayrocks_thumb.jpg",130,87,1);thumbnails[1853102]=new thumbnail(1853102,"124403","Benches at Beer","benchesatbeer_thumb.jpg",130,72,1);thumbnails[1853116]=new thumbnail(1853116,"124728","North of Harlech","northofharlech1_thumb.jpg",130,87,1);thumbnails[1853309]=new thumbnail(1853309,"124745","Ambulance","Ambulance_thumb.jpg",130,88,1);thumbnails[1853333]=new thumbnail(1853333,"124729","Open air museum","dorset1_thumb.jpg",130,195,1);thumbnails[1875027]=new thumbnail(1875027,"124406","Seated figure in cemetery","seatedfigureincemetry_thumb.jpg",130,73,1);thumbnails[2010973]=new thumbnail(2010973,"124618","Aldeburgh architectural study","aldeburgh1_thumb.jpg",130,173,1);thumbnails[2010980]=new thumbnail(2010980,"124399","Worthing beach","Worthingbeach_thumb.jpg",130,130,1);thumbnails[2011032]=new thumbnail(2011032,"124618","Aldburgh to London ","aldburghlondonsign_thumb.jpg",130,173,1);thumbnails[2011083]=new thumbnail(2011083,"124729","Harbour","harbour_thumb.jpg",130,128,1);thumbnails[2136184]=new thumbnail(2136184,"141913","Seahouses storm","Seahouses_storm_thumb.jpg",130,138,1);thumbnails[3156869]=new thumbnail(3156869,"124453","East Gill Force study","eastgillforcestudy_thumb.jpg",130,133,1);thumbnails[3156871]=new thumbnail(3156871,"124453","Hard Draw Force 3","harddrawforce3_thumb.jpg",130,134,1);thumbnails[3157469]=new thumbnail(3157469,"124404","Keel of the invincible - Faversham, kent","keeloftheinvinciblefavershamkent_thumb.jpg",130,134,1);thumbnails[4794847]=new thumbnail(4794847,"141913","Dunstanburgh and wave","dunstanburgh_and_wave_thumb.jpg",130,130,1);thumbnails[4794950]=new thumbnail(4794950,"124404","Seasalter 10","Seasalter_10_thumb.jpg",130,130,1);thumbnails[6042635]=new thumbnail(6042635,"124402","Gwithian beach","Gwithian_beach_thumb.jpg",130,86,1);thumbnails[6051780]=new thumbnail(6051780,"124402","St Michael's Mount1 B&W","St_Michaels_Mount1_BW_thumb.jpg",130,87,1);thumbnails[1851876]=new thumbnail(1851876,"124403","Coombestone Tor","coombestonetor_thumb.jpg",130,87,1);thumbnails[1852060]=new thumbnail(1852060,"124403","Wheal Betsy, Dartmoor","whealbetsyportrait_thumb.jpg",130,187,1);thumbnails[1853103]=new thumbnail(1853103,"124728","Betsy-y-coed","betsy-y-coed_thumb.jpg",130,183,1);thumbnails[1853117]=new thumbnail(1853117,"124728","North of Harlech","northofharlech2_thumb.jpg",130,92,1);thumbnails[1853310]=new thumbnail(1853310,"124745","American GI platoon","americanplatoon_thumb.jpg",130,89,1);thumbnails[1875026]=new thumbnail(1875026,"124406","Minding the store","mindingthestore_thumb.jpg",130,194,1);thumbnails[2010974]=new thumbnail(2010974,"124618","Aldeburgh architectural study","aldeburgh2_thumb.jpg",130,173,1);thumbnails[2011033]=new thumbnail(2011033,"124618","Southwold boat study","boatdetail_thumb.jpg",130,173,1);thumbnails[2011084]=new thumbnail(2011084,"124729","Lyme Regis - sea study","lymeregisseastudy_thumb.jpg",130,130,1);thumbnails[2136182]=new thumbnail(2136182,"141913","Seahouses shoreline","Seahouses_shore2_thumb.jpg",130,138,1);thumbnails[3157470]=new thumbnail(3157470,"124403","Passing storm - Dartmoor","passingstormdartmoor_thumb.jpg",130,103,1);thumbnails[3446058]=new thumbnail(3446058,"141913","Lindisfarne-1","Lindisfarne-1_thumb.jpg",130,130,1);thumbnails[4794848]=new thumbnail(4794848,"141913","Seahouses shore No4","Seahouses_shore4_thumb.jpg",130,130,1);thumbnails[4794951]=new thumbnail(4794951,"124404","Seasalter 2","Seasalter_2_thumb.jpg",130,130,1);thumbnails[6042628]=new thumbnail(6042628,"124402","Marazion Bay","Marazion_Bay_thumb.jpg",130,130,1);thumbnails[6042636]=new thumbnail(6042636,"124402","St Michael's Mount","St_Michaels_Mount_thumb.jpg",130,87,1);thumbnails[6051781]=new thumbnail(6051781,"124403","Stone circle, Dartmoor, Devon","Stone_circle_thumb.jpg",130,87,1);thumbnails[1851224]=new thumbnail(1851224,"124453","brimhamrocks4","brimhamrocks4_thumb.jpg",130,195,1);thumbnails[1851259]=new thumbnail(1851259,"124451","Fancott lake study 2","fancottlake2_thumb.jpg",130,87,1);thumbnails[1853104]=new thumbnail(1853104,"124728","Betsy-y-coed","betsy-y-coed1_thumb.jpg",130,87,1);thumbnails[1853311]=new thumbnail(1853311,"124745","American truck","americantruck_thumb.jpg",130,88,1);thumbnails[1853312]=new thumbnail(1853312,"124745","Despatch rider","despatchrider_thumb.jpg",130,89,1);thumbnails[1853354]=new thumbnail(1853354,"124745","Royal Enfields","royalenfields_thumb.jpg",130,193,1);thumbnails[1875028]=new thumbnail(1875028,"124406","The wallpaper printer","thewallpaperprinter_thumb.jpg",130,177,1);thumbnails[2010975]=new thumbnail(2010975,"124618","Aldeburgh fishing boat","aldeburgh3_thumb.jpg",130,173,1);thumbnails[2010981]=new thumbnail(2010981,"124399","Worthing fishing boat","worthingfishingboat_thumb.jpg",130,193,1);thumbnails[2011034]=new thumbnail(2011034,"124729","Lyme Regis Dinghy","dinghy_thumb.jpg",130,195,1);thumbnails[2136183]=new thumbnail(2136183,"141913","Seahouses shoreline","Seahouses_shore4-1_thumb.jpg",130,139,1);thumbnails[3157471]=new thumbnail(3157471,"124402","Pentewan beach 2","pentewanbeach2_thumb.jpg",130,133,1);thumbnails[4794952]=new thumbnail(4794952,"124404","Seasalter 6","Seasalter_6_thumb.jpg",130,130,1);thumbnails[6042629]=new thumbnail(6042629,"124402","Perranuthnoe beach study","Perranuthnoe_beach_study_thumb.jpg",130,87,1);thumbnails[1851225]=new thumbnail(1851225,"124453","brimhamrocks5","brimhamrocks5_thumb.jpg",130,196,1);thumbnails[1851260]=new thumbnail(1851260,"124402","Portwrinkle rock and sea study","portwrinklebeach3_thumb.jpg",130,130,1);thumbnails[1851878]=new thumbnail(1851878,"124403","River Dart study - Dartmoor","Dartmeet4stones_thumb.jpg",130,195,1);thumbnails[1853105]=new thumbnail(1853105,"124728","North of Harlech","northofharlech_thumb.jpg",130,87,1);thumbnails[1853355]=new thumbnail(1853355,"124745","The MPs","themps_thumb.jpg",130,193,1);thumbnails[2010976]=new thumbnail(2010976,"124618","Aldeburgh fishing boat","aldeburgh4_thumb.jpg",130,173,1);thumbnails[2010982]=new thumbnail(2010982,"124399","Worthing sea groyne","worthingseagroyne_thumb.jpg",130,195,1);thumbnails[2011035]=new thumbnail(2011035,"124618","Southwold - Rope ampersan","ropeampersan_thumb.jpg",130,173,1);thumbnails[2011085]=new thumbnail(2011085,"124729","Lyme regis - Jurassic beach","tortoisepatternedstone_thumb.jpg",130,195,1);thumbnails[3157472]=new thumbnail(3157472,"124402","Portwrinkle study","portwrinklestudy_thumb.jpg",130,74,1);thumbnails[3157774]=new thumbnail(3157774,"141913","Seahouses outgoing tide","seahousesoutgoingtide_thumb.jpg",130,134,1);thumbnails[1851226]=new thumbnail(1851226,"124453","brimhamrocks6","brimhamrocks6_thumb.jpg",130,195,1);thumbnails[1851261]=new thumbnail(1851261,"124402","Portwrinkle rock and sea study","portwrinklebeach5_thumb.jpg",130,131,1);thumbnails[1851879]=new thumbnail(1851879,"124403","Lydeford Gorge cascade","Lydeford gorge cascade_thumb.jpg",130,195,1);thumbnails[1853106]=new thumbnail(1853106,"124728","Swallowfalls, Betsy-Y-Coed","swallowfalls_thumb.jpg",130,183,1);thumbnails[1853313]=new thumbnail(1853313,"124745","Moving out","movingout_thumb.jpg",130,88,1);thumbnails[1853356]=new thumbnail(1853356,"124745","The Wing Commander","wingcommander_thumb.jpg",130,193,1);thumbnails[2010977]=new thumbnail(2010977,"124618","Aldeburgh fishing boat","aldeburgh5_thumb.jpg",130,98,1);thumbnails[2010983]=new thumbnail(2010983,"124399","Worthing beach shelter","worthingshelter_thumb.jpg",130,195,1);thumbnails[2011036]=new thumbnail(2011036,"124729","Lyme regis - Sea and rock study","seaandrocksstudy_thumb.jpg",130,195,1);thumbnails[3157775]=new thumbnail(3157775,"141913","Seahouses pebbles","seahousespebbles_thumb.jpg",130,133,1);thumbnails[6042630]=new thumbnail(6042630,"124402","Wheal Coates","Wheal_Coates_thumb.jpg",130,130,1);thumbnails[1848905]=new thumbnail(1848905,"124453","East Gill Force","eastgillforce2_thumb.jpg",130,130,1);thumbnails[1853352]=new thumbnail(1853352,"124745","American truck","americantruck2_thumb.jpg",130,193,1);thumbnails[3157776]=new thumbnail(3157776,"141913","Seahouses tidal pools","seahousestidalpools_thumb.jpg",130,133,1);thumbnails[1848906]=new thumbnail(1848906,"124453","Hard Draw Force","harddrawforce2_thumb.jpg",130,130,1);thumbnails[1853353]=new thumbnail(1853353,"124745","Despatch riders","despatchriders_thumb.jpg",130,193,1);thumbnails[3157777]=new thumbnail(3157777,"124403","Stones of Merrivale - Dartmoor","stonesofmerrivale_thumb.jpg",130,103,1);thumbnails[1848907]=new thumbnail(1848907,"124453","Hard Draw Force","hardrawforce_thumb.jpg",130,130,1);thumbnails[3157778]=new thumbnail(3157778,"124404","The Invincible - Faversham, kent","theinvinciblefavershamkent1_thumb.jpg",130,131,1);thumbnails[4794883]=new thumbnail(4794883,"141913","Rhouting Linn","Rhouting_Linn_thumb.jpg",130,130,1);thumbnails[4794884]=new thumbnail(4794884,"141913","Seahouses beach and reflections","Seahouses_beach_and_reflections_thumb.jpg",130,130,1);thumbnails[4794885]=new thumbnail(4794885,"141913","Seahouses foam","Seahouses_foam013_thumb.jpg",130,130,1);thumbnails[4794886]=new thumbnail(4794886,"124404","Seasalter 1","Seasalter_1_thumb.jpg",130,130,1);thumbnails[4794887]=new thumbnail(4794887,"124404","Seasalter 3","Seasalter_3_thumb.jpg",130,130,1);thumbnails[4794888]=new thumbnail(4794888,"124404","Seasalter 7","Seasalter_7_thumb.jpg",130,130,1);thumbnails[4794889]=new thumbnail(4794889,"141913","Towards Lindisfarne023","Towards_Lindisfarne023_thumb.jpg",130,130,1);thumbnails[1847071]=new thumbnail(1847071,"124316","A portrait of <br>\r\nBob Taylor - GI Joe <br>\r\nRe-enactor extraordinary","gibobtaylor_thumb.jpg",130,132,1);thumbnails[1853120]=new thumbnail(1853120,"124316","The beachcomber at Beer","thebeachcomber_thumb.jpg",130,134,1);thumbnails[1846975]=new thumbnail(1846975,"124290","Rapids on the River Wye","rapidsriverwye2_thumb.jpg",130,131,1);thumbnails[1848933]=new thumbnail(1848933,"124290","River Wye rapids- Symonds Yat","therapids-riverwye_thumb.jpg",130,130,1);thumbnails[1848938]=new thumbnail(1848938,"124290","","thewatermargins-riverwye_thumb.jpg",130,130,1);thumbnails[4794876]=new thumbnail(4794876,"124290","Forest of Dean 1","Forest_of_Dean_1_thumb.jpg",130,130,1);thumbnails[4794943]=new thumbnail(4794943,"124290","Forest of Dean 6","Forest_of_Dean_6_thumb.jpg",130,130,1);thumbnails[4794877]=new thumbnail(4794877,"124290","Forest of Dean 2","Forest_of_Dean_1017_thumb.jpg",130,130,1);thumbnails[4794878]=new thumbnail(4794878,"124290","Forest of Dean 3","Forest_of_Dean_2_thumb.jpg",130,130,1);thumbnails[4794879]=new thumbnail(4794879,"124290","Forest of Dean 4","Forest_of_Dean_2018_thumb.jpg",130,130,1);thumbnails[4794880]=new thumbnail(4794880,"124290","Forest of Dean 5","Forest_of_Dean_2b_thumb.jpg",130,130,1);thumbnails[4794881]=new thumbnail(4794881,"124290","Forest of Dean 6","Forest_of_Dean_4_thumb.jpg",130,130,1);thumbnails[4794882]=new thumbnail(4794882,"124290","Forest of Dean 7","Forest_of_Dean_5_thumb.jpg",130,130,1);var galleries=new Object();galleries[124373]=new gallery(124373,"1847877,1847873","Architecture","gallery",[1847873,1847877]);galleries[124451]=new gallery(124451,"1848902","Bedfordshire","gallery",[1848902,1851842,1851846,1851848,1851849,1851257,1851259]);galleries[124745]=new gallery(124745,"1853313","Chiltern Open Air Museum","gallery",[1853309,1853310,1853311,1853312,1853354,1853355,1853313,1853356,1853352,1853353]);galleries[124402]=new gallery(124402,"6051780,6042636,6042635,6042630,6042629,6042628,3157771,3157472,3157471,1851261","Cornwall","gallery",[1847861,1847864,1847867,3157771,6042635,6051780,6042628,6042636,3157471,6042629,1851260,3157472,1851261,6042630]);galleries[124403]=new gallery(124403,"1875048","Devon","gallery",[1851844,1851845,1875048,1851875,1853102,1851876,1852060,3157470,6051781,1851878,1851879,3157777]);galleries[124729]=new gallery(124729,"2011085,2011084,2011083,2011036,2011034,1853333","Dorset","gallery",[1853333,2011083,2011084,2011034,2011085,2011036]);galleries[124399]=new gallery(124399,"2010983,2010982,2010981,2010980,1848927,1848924,1847858","East Sussex","gallery",[1847858,1848924,1848927,2010980,2010981,2010982,2010983]);galleries[124405]=new gallery(124405,"1853313","Events","gallery",[]);galleries[124404]=new gallery(124404,"4794952,4794951,4794950,4794888,4794887,4794886,3157778,3157469","Kent","gallery",[3157469,4794950,4794951,4794952,3157778,4794886,4794887,4794888]);galleries[124398]=new gallery(124398,"2136184,1875048,1848902","Landscapes","gallery",[]);galleries[124457]=new gallery(124457,"1848900","London","gallery",[1848900]);galleries[124482]=new gallery(124482,"1847083","Manchester","gallery",[1847083]);galleries[124728]=new gallery(124728,"1853117,1853116,1853106,1853105,1853104,1853103","North wales","gallery",[1853116,1853103,1853117,1853104,1853105,1853106]);galleries[124453]=new gallery(124453,"3156871,3156869,3156868,1851226,1851225,1851224,1851222,1851220,1848907,1848906","North Yorkshire","gallery",[1851220,3156868,1851222,3156869,3156871,1851224,1851225,1851226,1848905,1848906,1848907]);galleries[141913]=new gallery(141913,"2136184","Northumberland","gallery",[3157773,2136184,4794847,2136182,3446058,4794848,2136183,3157774,3157775,3157776,4794883,4794884,4794885,4794889]);galleries[124483]=new gallery(124483,"1848898","Stockport","gallery",[1848898]);galleries[124618]=new gallery(124618,"2011035,2011033,2011032,2010977,2010976,2010975,2010974,2010973","Suffolk","gallery",[2010973,2011032,2010974,2011033,2010975,2010976,2011035,2010977]);galleries[124406]=new gallery(124406,"1875027","Travel","gallery",[1875027,1875026,1875028]);galleries[124316]=new gallery(124316,"1847071","Portraits","gallery",[1847071,1853120]);galleries[124317]=new gallery(124317,"1848900,1848898,1847083","Cityscapes","gallery",[]);galleries[124290]=new gallery(124290,"4794943,4794882,4794881,4794880,4794879,4794878,4794877,4794876,1848938,1848933","Herefordshire","gallery",[1846975,1848933,1848938,4794876,4794943,4794877,4794878,4794879,4794880,4794881,4794882]);var imageSets=new Object();imageSets[1]="6051781,6051780,6042636,6042635,6042630,6042629,6042628,4794952,4794951,4794950,4794943,4794889,4794888,4794887,4794886,4794885,4794884,4794883,4794882,4794881,4794880,4794879,4794878,4794877,4794876,4794848,4794847,3446058,3157778,3157777,3157776,3157775,3157774,3157773,3157771,3157472,3157471,3157470,3157469,3156871,3156869,3156868,2136184,2136183,2136182,2011085,2011084,2011083,2011036,2011035";imageSets[2]="2136184,1875048,1875027,1853313,1848902,1847071";imageSets[3]="6051781,6051780,6042636,6042635,6042630,6042629,6042628,4794952,4794951,4794950,4794943,4794889,4794888,4794887,4794886,4794885,4794884,4794883,4794882,4794881,4794880,4794879,4794878,4794877,4794876,4794848,4794847,3446058,3157778,3157777,3157776,3157775,3157774,3157773,3157771,3157472,3157471,3157470,3157469,3156871,3156869,3156868,2136184,2136183,2136182,2011085,2011084,2011083,2011036,2011035";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/MarkBurley/images";break}switch(a){case 1:b="http://www1.clikpic.com/MarkBurley/images";break}switch(a){case 2:b="http://admin.clikpic.com/MarkBurley/images";break}switch(a){case 24:b="http://tpc15/clikpic/MarkBurley/images";break}switch(a){case 4:b="http://www.clikchurch.com/MarkBurley/images";break}switch(a){case 5:b="http://www2.clikpic.com/MarkBurley/images";break}switch(a){case 22:b="http://tpc5/clikpic/MarkBurley/images";break}switch(a){case 23:b="http://tpc10/clikpic/MarkBurley/images";break}switch(a){case 25:b="http://tpc16/clikpic/MarkBurley/images";break}switch(a){case 15:b="http://www3.clikpic.com/MarkBurley/images";break}switch(a){case 18:b="http://www4.clikpic.com/MarkBurley/images";break}switch(a){case 19:b="http://www5.clikpic.com/MarkBurley/images";break}switch(a){case 31:b="http://www7.clikpic.com/MarkBurley/images";break}switch(a){case 32:b="http://admin2.clikpic.com/MarkBurley/images";break}switch(a){case 33:b="http://www8.clikpic.com/MarkBurley/images";break}switch(a){case 34:b="http://www9.clikpic.com/MarkBurley/images";break}switch(a){case 35:b="http://admin3.clikpic.com/MarkBurley/images";break}switch(a){case 37:b="http://admin4.clikpic.com/MarkBurley/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="Mark Burley: "+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="MARKBURLEY">';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+'")'})}}};