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[3770841]=new thumbnail(3770841,"230041","One-man show at The Ropewalk Gallery. Feb/March 09.","Ropewalk2_thumb.jpg",130,87,15);thumbnails[3770845]=new thumbnail(3770845,"230041","One -man show at The Ropewalk Gallery.","ropewalk_panorama_thumb.jpg",130,65,15);thumbnails[4504416]=new thumbnail(4504416,"225788","Gala Belisha","_MG_5402gala_belisha_thumb.jpg",130,130,15);thumbnails[3723297]=new thumbnail(3723297,"225788","Swimming Lines","SwimmingLines_thumb.jpg",130,130,15);thumbnails[3723313]=new thumbnail(3723313,"225788","No Parking","NoParking_thumb.jpg",130,130,15);thumbnails[3723662]=new thumbnail(3723662,"225788","Liquid Gold","LiquidGold_thumb.jpg",130,130,15);thumbnails[3723677]=new thumbnail(3723677,"225788","Blue Tower","BlueTower_thumb.jpg",130,130,15);thumbnails[3723920]=new thumbnail(3723920,"225788","Blue Stairway","BlueStairway_thumb.jpg",130,130,15);thumbnails[3723924]=new thumbnail(3723924,"225788","Break Glass For Key","BreakGlassForKey_thumb.jpg",130,130,15);thumbnails[3723926]=new thumbnail(3723926,"225788","Waterlines","waterlines_thumb.jpg",130,130,15);thumbnails[3723929]=new thumbnail(3723929,"225788","Floorlight","floorlight_thumb.jpg",130,130,15);thumbnails[3723945]=new thumbnail(3723945,"225788","Fence Teeth","Fenceteeth_thumb.jpg",130,130,15);thumbnails[3723980]=new thumbnail(3723980,"225788","Lock Light","Locklight_thumb.jpg",130,130,15);thumbnails[3723989]=new thumbnail(3723989,"225788","Red Light Area","Redlightzone_thumb.jpg",130,130,15);thumbnails[3723993]=new thumbnail(3723993,"225788","Ripple","Ripple_thumb.jpg",130,130,15);thumbnails[3768941]=new thumbnail(3768941,"225788","Mudbottle","Mudbottle1_thumb.jpg",130,130,15);thumbnails[3771376]=new thumbnail(3771376,"225788","Beachbend","Beach_Bend_thumb.jpg",130,130,15);thumbnails[3771748]=new thumbnail(3771748,"225788","Blue Angle","Blue_Angle1_thumb.jpg",130,130,15);thumbnails[3771755]=new thumbnail(3771755,"225788","Window Angles","Window_Angles_thumb.jpg",130,130,15);thumbnails[3772504]=new thumbnail(3772504,"225788","Tiles and Timber","Tiles_and_Timber_square4print_thumb.jpg",130,130,15);thumbnails[3777969]=new thumbnail(3777969,"225788","Rustangle","Rustangle24print_thumb.jpg",130,130,15);thumbnails[3801402]=new thumbnail(3801402,"225788","Red Slide","Red_Slide4print_thumb.jpg",130,130,15);thumbnails[3801409]=new thumbnail(3801409,"225788","Singapore Architecture","Singapore_Sky_Buildings4print_thumb.jpg",130,130,15);thumbnails[3849719]=new thumbnail(3849719,"225788","Square Wire","Squarewire_thumb.jpg",130,130,15);thumbnails[3849721]=new thumbnail(3849721,"225788","Water Lines","Waterline_thumb.jpg",130,130,15);thumbnails[3849728]=new thumbnail(3849728,"225788","Bottle Line","The_Bottle_Line_thumb.jpg",130,130,15);thumbnails[3939190]=new thumbnail(3939190,"225788","Yellow Angles","Yellow_angles_thumb.jpg",130,130,15);thumbnails[3939191]=new thumbnail(3939191,"225788","Bin Lines","Bin_Lines4prints_thumb.jpg",130,130,15);thumbnails[3939195]=new thumbnail(3939195,"225788","Grate Angles","Grate_Angle4print_thumb.jpg",130,130,15);thumbnails[3999973]=new thumbnail(3999973,"225788","Mondrian Windows","Mondrian_Windows_thumb.jpg",130,130,15);thumbnails[3999993]=new thumbnail(3999993,"225788","Mondrian Light?","Mondrian_Light_thumb.jpg",130,130,15);thumbnails[4000094]=new thumbnail(4000094,"225788",'Mondrian at "The Deep"',"Mondrian_at_The_Deep4print_thumb.jpg",130,130,15);thumbnails[4139407]=new thumbnail(4139407,"225788","Green Timetable","Green_Timetable_thumb.jpg",130,130,15);thumbnails[4139412]=new thumbnail(4139412,"225788","Red Centre","Red_Centre_thumb.jpg",130,130,15);thumbnails[4506544]=new thumbnail(4506544,"225788","Meshgreen 2","_MG_5000meshgreen2phase2_thumb.jpg",130,130,15);thumbnails[5127489]=new thumbnail(5127489,"225788","Prop Yellow","_MG_6497Prop_Yellow_thumb.jpg",130,130,15);thumbnails[5127491]=new thumbnail(5127491,"225788","Waterpole","_MG_7834Waterpolephase2_thumb.jpg",130,130,15);thumbnails[5127494]=new thumbnail(5127494,"225788","Window Foam","_MG_7538Window_Lather_thumb.jpg",130,130,15);thumbnails[5127499]=new thumbnail(5127499,"225788","Cafe Sun","_MG_6875Cafe_Sun_2_thumb.jpg",130,130,15);thumbnails[5159764]=new thumbnail(5159764,"225788","Blue Bowline","Nš_15_Blue_Bowline_thumb.jpg",130,130,15);thumbnails[5159815]=new thumbnail(5159815,"225788","Stepcurve","_MG_6151Stepcurve_thumb.jpg",130,130,15);thumbnails[5191434]=new thumbnail(5191434,"225788","Pool corner","_MG_6348Pool_Corner_thumb.jpg",130,130,15);thumbnails[3723286]=new thumbnail(3723286,"225788","Boatstains","Boatstains_thumb.jpg",130,130,15);thumbnails[3768932]=new thumbnail(3768932,"225788","Yellow Ladders","Yellow_Ladders_thumb.jpg",130,130,15);thumbnails[5127487]=new thumbnail(5127487,"225788","Junction","_MG_7875Junctionphase2_thumb.jpg",130,130,15);thumbnails[4139365]=new thumbnail(4139365,"225789","Banburgh Castle","MG_3888_thumb.jpg",130,65,15);thumbnails[4139375]=new thumbnail(4139375,"225789","Banburgh Beach","MG_3933_thumb.jpg",130,195,15);thumbnails[4139381]=new thumbnail(4139381,"225789","Farne Isle Horizon","Distant_Farnes_thumb.jpg",130,87,15);thumbnails[4139397]=new thumbnail(4139397,"225789","Banburgh Beach Light","_MG_3883_thumb.jpg",130,65,15);thumbnails[3729695]=new thumbnail(3729695,"225789","Humber Winter Sunset","MG_0201_thumb.jpg",130,87,15);thumbnails[3724136]=new thumbnail(3724136,"225789","Lightposts","Lighthouse_postsre-touch_thumb.jpg",130,196,15);thumbnails[3724154]=new thumbnail(3724154,"225789","Morning Mist","Morning_Mist_4print_thumb.jpg",130,65,15);thumbnails[3724159]=new thumbnail(3724159,"225789","Yachtscape","yachtscape11309_thumb.jpg",130,87,15);thumbnails[3724178]=new thumbnail(3724178,"225789","The Boy and The Bus","TheBoyandTheBus_thumb.jpg",130,130,15);thumbnails[3724179]=new thumbnail(3724179,"225789","Swan Lake","SwanLake_thumb.jpg",130,87,15);thumbnails[3724403]=new thumbnail(3724403,"225789","Tor Line","TorLine_thumb.jpg",130,87,15);thumbnails[3724407]=new thumbnail(3724407,"225789","Beach Swirl","Beach_Skyswirl4_thumb.jpg",130,130,15);thumbnails[3724422]=new thumbnail(3724422,"225789","Balloonglow","balloonglow_thumb.jpg",130,87,15);thumbnails[3729531]=new thumbnail(3729531,"225789","Peninsula Beach","2EO9931_thumb.jpg",130,195,15);thumbnails[3771814]=new thumbnail(3771814,"225789","Which Way Next??? ","Which_Way_Next_thumb.jpg",130,87,15);thumbnails[3772481]=new thumbnail(3772481,"225789","Beverley Minster sunset","Beverley_Minster_Sunset_thumb.jpg",130,195,15);thumbnails[3772488]=new thumbnail(3772488,"225789","Windows","Windows_thumb.jpg",130,130,15);thumbnails[3772497]=new thumbnail(3772497,"225789","Westwood Tree","Westwood_treeMk2SQ_thumb.jpg",130,130,15);thumbnails[3777966]=new thumbnail(3777966,"225789","Ready For Take-off","Gull_Taking_Off_thumb.jpg",130,130,15);thumbnails[3801414]=new thumbnail(3801414,"225789","Over and Under","Over_and_Under4print_thumb.jpg",130,130,15);thumbnails[3801417]=new thumbnail(3801417,"225789","Roof Beach","Roofbeach2_thumb.jpg",130,130,15);thumbnails[3807001]=new thumbnail(3807001,"225789","Expanse Reflected","Reflected_Expanse_thumb.jpg",130,199,15);thumbnails[3807014]=new thumbnail(3807014,"225789","Saltaire","Saltaire_West_Yorkshire_thumb.jpg",130,195,15);thumbnails[3807017]=new thumbnail(3807017,"225789","Morning Mist","Morning_Mist_Holderness_thumb.jpg",130,96,15);thumbnails[3807025]=new thumbnail(3807025,"225789","Threshing Machine View","_2EO8061pano_thumb.jpg",130,56,15);thumbnails[3807029]=new thumbnail(3807029,"225789","Wetlands Sunset","_MG_0081-Edit4print-1_thumb.jpg",130,88,15);thumbnails[3807034]=new thumbnail(3807034,"225789","Ramson Woods","Ramson_Woods_Castle_Howard_thumb.jpg",130,195,15);thumbnails[3807043]=new thumbnail(3807043,"225789","Square Tree","Squaretree_thumb.jpg",130,148,15);thumbnails[3807045]=new thumbnail(3807045,"225789","Beach Figures","jachowieethan_thumb.jpg",130,195,15);thumbnails[3810494]=new thumbnail(3810494,"225789","Seaside Blue Notes","Bluenotes_Withernsea_thumb.jpg",130,175,15);thumbnails[3810508]=new thumbnail(3810508,"225789","Skylines","Beachangler_Kilnsea_thumb.jpg",130,175,15);thumbnails[4218852]=new thumbnail(4218852,"225789","Summer Poppies","_MG_4376Holderness_Poppies4print_thumb.jpg",130,130,15);thumbnails[4528607]=new thumbnail(4528607,"225789","Deep Dawn","_MG_5669Deep_Sun_thumb.jpg",130,195,15);thumbnails[3999980]=new thumbnail(3999980,"225789","Reflective Perspective","Mondrian_Perspective_Nš2_thumb.jpg",130,130,15);thumbnails[3724141]=new thumbnail(3724141,"233588","Figures In The Mist","Bridge_Figures_4RPS_thumb.jpg",130,87,15);thumbnails[3724418]=new thumbnail(3724418,"233588","Bridge Shadow","Bridge_Shadow_11309_thumb.jpg",130,87,15);thumbnails[3729528]=new thumbnail(3729528,"233588","Dawn at The Humber Bridge","Humber_ridgeDawn_thumb.jpg",130,87,15);thumbnails[3837397]=new thumbnail(3837397,"233588","Humber Bridge Bird","bridgebirdSQ_thumb.jpg",130,130,15);thumbnails[3837409]=new thumbnail(3837409,"233588","Humber Bridge Shadow","Humber_ShadowSQ_thumb.jpg",130,130,15);thumbnails[3837412]=new thumbnail(3837412,"233588","The Bridge Figure.","Bridgefigure4_thumb.jpg",130,87,15);thumbnails[3837413]=new thumbnail(3837413,"233588","The Yacht and The Bridge","bridgeorama_4_card_thumb.jpg",130,61,15);thumbnails[3837420]=new thumbnail(3837420,"233588","The Photographer and The Bridge","Photographer_and_Bridge_thumb.jpg",130,195,15);thumbnails[3837424]=new thumbnail(3837424,"233588","Bridge and Humber Pilot.","Bridgeboat_thumb.jpg",130,130,15);thumbnails[3849445]=new thumbnail(3849445,"233588","Bridge figures","bridgefigures2_thumb.jpg",130,195,15);thumbnails[3849733]=new thumbnail(3849733,"233588","The Bridge.","the_bridge_thumb.jpg",130,195,15);thumbnails[3849734]=new thumbnail(3849734,"233588","The Bridge from Barton","HumberBridgefromBarton_thumb.jpg",130,195,15);thumbnails[4218786]=new thumbnail(4218786,"233588","Bridge Mist ","Bridge_Mist26309_thumb.jpg",130,130,15);thumbnails[4218806]=new thumbnail(4218806,"233588","Bridge with Gull Nš 2","Humber_Bridge_Shadow__Gull4print_thumb.jpg",130,87,15);thumbnails[4218808]=new thumbnail(4218808,"233588","Bridge with Gull","Bridgeshadow5_thumb.jpg",130,130,15);thumbnails[4139402]=new thumbnail(4139402,"263082","Wold Sky","Woldsky_thumb.jpg",130,130,15);thumbnails[3880640]=new thumbnail(3880640,"263082","Sunlit Oilseed Rape","Rape_Horizon_4print_thumb.jpg",130,87,15);thumbnails[3880859]=new thumbnail(3880859,"263082","Tree Among The Rape","Rape_Tree_4print_thumb.jpg",130,195,15);thumbnails[3880872]=new thumbnail(3880872,"263082","Furrows-on-The-Wolds","Wolds_Furrows_4print_thumb.jpg",130,130,15);thumbnails[3801426]=new thumbnail(3801426,"263082","Larks-on-The-Wolds","Larks-on-The-Wolds4print_thumb.jpg",130,130,15);thumbnails[3801434]=new thumbnail(3801434,"263082","Wolds View","Wold_View4print_thumb.jpg",130,130,15);thumbnails[3939187]=new thumbnail(3939187,"263082","Wolds","Wold_Sunlight_4print_thumb.jpg",130,130,15);thumbnails[4218809]=new thumbnail(4218809,"263082","Yorkshire Wolds Tracks","Tramlines-on-The-Wolds_22_thumb.jpg",130,130,15);thumbnails[4528420]=new thumbnail(4528420,"263082","Woldforms","_MG_5056Woldforms_thumb.jpg",130,130,15);thumbnails[4528426]=new thumbnail(4528426,"263082","Woldforms3","_MG_5073Woldforms10_thumb.jpg",130,130,15);thumbnails[4528433]=new thumbnail(4528433,"263082","Woldforms2","_MG_5075Woldforms3phase2_thumb.jpg",130,130,15);thumbnails[4528448]=new thumbnail(4528448,"263082","Woldforms 6","_MG_5158Woldforms4phase2_thumb.jpg",130,130,15);thumbnails[4528456]=new thumbnail(4528456,"263082","Woldforms 7","_MG_5151Woldforms7phase21_thumb.jpg",130,130,15);thumbnails[4537197]=new thumbnail(4537197,"263082","Ears-on-The-Wolds","_MG_5134Wheatears_thumb.jpg",130,130,15);thumbnails[4537201]=new thumbnail(4537201,"263082","Woldforms 11","_MG_5034Woldforms11_thumb.jpg",130,130,15);thumbnails[4537207]=new thumbnail(4537207,"263082","Woldforms 9","_MG_5150Woldforms9_thumb.jpg",130,130,15);thumbnails[4537210]=new thumbnail(4537210,"263082","Woldforms 5","_MG_5200woldforms5phase2_thumb.jpg",130,130,15);thumbnails[4537211]=new thumbnail(4537211,"263082","Wold Skies","_MG_5223Woldskies_thumb.jpg",130,87,15);thumbnails[4537214]=new thumbnail(4537214,"263082","Woldforms 6","_MG_5229Woldforms6phase2_thumb.jpg",130,130,15);thumbnails[4537216]=new thumbnail(4537216,"263082","Woldforms 8","_MG_5231Woldforms8phase2_thumb.jpg",130,130,15);thumbnails[4552825]=new thumbnail(4552825,"263082","Woldforms 12","_MG_5208Woldforms12_thumb.jpg",130,130,15);thumbnails[4552829]=new thumbnail(4552829,"263082","Wolds Light","_MG_5223Woldskies1_thumb.jpg",130,87,15);thumbnails[4000026]=new thumbnail(4000026,"291434","Men at work","Levels_of_Men_Nš3_thumb.jpg",130,260,15);thumbnails[3723665]=new thumbnail(3723665,"291434","Floor Dots","FloorDots_thumb.jpg",130,130,15);thumbnails[3724144]=new thumbnail(3724144,"291434","Walking The Dog","Walking_The_Dog_thumb.jpg",130,130,15);thumbnails[5159770]=new thumbnail(5159770,"291434","Evening Solace","_MG_7405Evening_thumb.jpg",130,65,15);thumbnails[5159776]=new thumbnail(5159776,"291434","A Dog's Day Out at Blackpool","_MG_7614Dogs_Day_at_Blackpool_thumb.jpg",130,87,15);thumbnails[5159785]=new thumbnail(5159785,"291434","The Spitfire","_MG_6488The_Spitfire_thumb.jpg",130,87,15);thumbnails[5159788]=new thumbnail(5159788,"291434","The Pose","_MG_7618The_Pose_thumb.jpg",130,130,15);thumbnails[5159795]=new thumbnail(5159795,"291434","Watch Office","_MG_6400Watch_Office_thumb.jpg",130,130,15);thumbnails[5159799]=new thumbnail(5159799,"291434","Window Lather","_MG_7538Window_Lather_2C18F05E-2219-B5B5-4C7C9CA74B0D2316_thumb.jpg",130,130,15);thumbnails[5159805]=new thumbnail(5159805,"291434","Sea People","_MG_6978Sea_People_thumb.jpg",130,130,15);thumbnails[5159812]=new thumbnail(5159812,"291434","Strolling Past Blackpool tower","_MG_7542Strolling_Past_Blackpool_Tower_thumb.jpg",130,130,15);thumbnails[5191424]=new thumbnail(5191424,"291434","Visitors","_MG_6341visitors_thumb.jpg",130,87,15);thumbnails[3730457]=new thumbnail(3730457,"227450","Piglets","piglets3_thumb.jpg",130,148,15);thumbnails[3730467]=new thumbnail(3730467,"227450","Management Portrait","IMG_1117_thumb.jpg",130,176,15);thumbnails[3730474]=new thumbnail(3730474,"227450","Pigs","Pigs_comp-2-7499_thumb.jpg",130,105,15);thumbnails[3730486]=new thumbnail(3730486,"227450","Free Range Poultry","_2EO7996_thumb.jpg",130,87,15);thumbnails[3730492]=new thumbnail(3730492,"227450","Packshot","regpackshot2shadow_thumb.jpg",130,170,15);thumbnails[3730498]=new thumbnail(3730498,"227450","Horse Minerals","Norvite_Horse_Packs_thumb.jpg",130,113,15);thumbnails[3730505]=new thumbnail(3730505,"227450","Building Manufacture","PremIntlinkPics19508_189_thumb.jpg",130,195,15);thumbnails[3730514]=new thumbnail(3730514,"227450","Childrens' Centre","Premier_Interlink_Wakefield_Childrens_Centres_6_thumb.jpg",130,87,15);thumbnails[3770922]=new thumbnail(3770922,"227450","College building. ","Richard_Rose_Academy_Carlisle_65pan_thumb.jpg",130,56,15);var galleries=new Object();galleries[230041]=new gallery(230041,"3770845","Latest developments","gallery",[3770841,3770845]);galleries[225788]=new gallery(225788,"3723286","Abstract Photographs by Christopher Harland ARPS","gallery",[4504416,3723297,3723313,3723662,3723677,3723920,3723924,3723926,3723929,3723945,3723980,3723989,3723993,3768941,3771376,3771748,3771755,3772504,3777969,3801402,3801409,3849719,3849721,3849728,3939190,3939191,3939195,3999973,3999993,4000094,4139407,4139412,4506544,5127489,5127491,5127494,5127499,5159764,5159815,5191434,3723286,3768932,5127487]);galleries[225789]=new gallery(225789,"3999980,3810508","Landscape photographs by Christopher Harland ARPS","gallery",[4139365,4139375,4139381,4139397,3729695,3724136,3724154,3724159,3724178,3724179,3724403,3724407,3724422,3729531,3771814,3772481,3772488,3772497,3777966,3801414,3801417,3807001,3807014,3807017,3807025,3807029,3807034,3807043,3807045,3810494,3810508,4218852,4528607,3999980]);galleries[233588]=new gallery(233588,"3837397,3724141","The Humber Bridge by Christopher Harland ARPS","gallery",[3724141,3724418,3729528,3837397,3837409,3837412,3837413,3837420,3837424,3849445,3849733,3849734,4218786,4218806,4218808]);galleries[263082]=new gallery(263082,"3880859","Yorkshire Wolds by Christopher Harland ARPS","gallery",[4139402,3880640,3880859,3880872,3801426,3801434,3939187,4218809,4528420,4528426,4528433,4528448,4528456,4537197,4537201,4537207,4537210,4537211,4537214,4537216,4552825,4552829]);galleries[291434]=new gallery(291434,"5191424,5159812,5159805,5159799,5159795,5159788,5159785,5159776,5159770,4000026","People and Places","gallery",[4000026,3723665,3724144,5159770,5159776,5159785,5159788,5159795,5159799,5159805,5159812,5191424]);galleries[227450]=new gallery(227450,"3730514,3730505,3730498,3730474,3730457","Commercial photography by Christopher Harland ARPS","gallery",[3730457,3730467,3730474,3730486,3730492,3730498,3730505,3730514,3770922]);var imageSets=new Object();imageSets[206502]="5127499,5127494,4506544";imageSets[1]="4139407,4000026,3999993,3880872,3880859,3849719,3837424,3837412,3837397,3810508,3807045,3807017,3807014,3807001,3801434,3801426,3801417,3801402,3768932,3730486,3730474,3729695,3729531,3729528,3724422,3724418,3724407,3724403,3724179,3724178,3724159,3724154,3724144,3724141,3724136,3723993,3723989,3723980,3723945,3723929,3723926,3723924,3723920,3723677,3723665,3723662,3723313,3723286";imageSets[2]="3999980,3880859,3837397,3810508,3770845,3730514,3730505,3730498,3730474,3730457,3724141,3723286";imageSets[3]="5191434,5191424,5159815,5159812,5159805,5159799,5159795,5159788,5159785,5159776,5159770,5159764,5127499,5127494,5127491,5127489,5127487,4552829,4552825,4537216,4537214,4537211,4537210,4537207,4537201,4537197,4528607,4528456,4528448,4528433,4528426,4528420,4506544,4504416,4218852,4218809,4218808,4218806,4218786,4139412,4139407,4139402,4139397,4139381,4139375,4139365,4000094,4000026,3999993,3999980";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 34:b="http://www9.clikpic.com/HenryB/images";break}switch(a){case 1:b="http://www1.clikpic.com/HenryB/images";break}switch(a){case 2:b="http://admin.clikpic.com/HenryB/images";break}switch(a){case 4:b="http://www.clikchurch.com/HenryB/images";break}switch(a){case 5:b="http://www2.clikpic.com/HenryB/images";break}switch(a){case 15:b="http://www3.clikpic.com/HenryB/images";break}switch(a){case 21:b="http://www6.clikpic.com/HenryB/images";break}switch(a){case 18:b="http://www4.clikpic.com/HenryB/images";break}switch(a){case 19:b="http://www5.clikpic.com/HenryB/images";break}switch(a){case 22:b="http://tpc5/clikpic/HenryB/images";break}switch(a){case 23:b="http://tpc10/clikpic/HenryB/images";break}switch(a){case 24:b="http://tpc15/clikpic/HenryB/images";break}switch(a){case 25:b="http://tpc16/clikpic/HenryB/images";break}switch(a){case 31:b="http://www7.clikpic.com/HenryB/images";break}switch(a){case 32:b="http://admin2.clikpic.com/HenryB/images";break}switch(a){case 33:b="http://www8.clikpic.com/HenryB/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="www.christopherharland.com: "+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>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(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+'<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+'")'})}}};