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[4840709]=new thumbnail(4840709,"275811","ehpab240 <br>waterfall","Pistyll_Rhaeader12_thumb.jpg",130,195,18);thumbnails[4840731]=new thumbnail(4840731,"275811","ehpab232 <br>see the rainbow<br>through the rain","See_the_rainbow_through_the_rain12_thumb.jpg",130,173,18);thumbnails[4970024]=new thumbnail(4970024,"275811","ehpab260 <br>woods","Abstract_woods_thumb.JPG",130,195,18);thumbnails[4605804]=new thumbnail(4605804,"266400","ehpa079 <br>deer","EHP026_thumb.jpg",130,87,18);thumbnails[4605918]=new thumbnail(4605918,"266400","ehpa064 <br>giraffe","EHP042_thumb.JPG",130,195,18);thumbnails[4606050]=new thumbnail(4606050,"266400","ehpa037 <br>red squirrel","EHP071_thumb.jpg",130,193,18);thumbnails[4649497]=new thumbnail(4649497,"266400","ehpa122 <br>piglet","Piglet_in_straw_3_thumb.JPG",130,87,18);thumbnails[4649545]=new thumbnail(4649545,"266400","ehpa123 <br>welsh mountain pony","Welsh_Mountian_pony_chestnut_looking_round_thumb.JPG",130,87,18);thumbnails[4649730]=new thumbnail(4649730,"266400","ehpa130 <br>friesian cow>","Fresian_cow_looking_up_thumb.JPG",130,87,18);thumbnails[4649734]=new thumbnail(4649734,"266400","ehpa132 <br> highland cow","Highland_Cow_1_thumb.jpg",130,87,18);thumbnails[6210342]=new thumbnail(6210342,"266400","ehpa490<br>otter","Otters_07_cropped_thumb.jpg",130,84,18);thumbnails[4605681]=new thumbnail(4605681,"265795","ehpb099 <br>african spotted owl","EHP002_thumb.JPG",130,87,18);thumbnails[4605688]=new thumbnail(4605688,"265795","ehpb097 <br>barn owl","EHP005_thumb.JPG",130,195,18);thumbnails[4605789]=new thumbnail(4605789,"265795","ehpb084 <br>curlew","EHP021_thumb.JPG",130,98,18);thumbnails[4605851]=new thumbnail(4605851,"265795","ehpb070 <br>grey heron","EHP035_thumb.jpg",130,85,18);thumbnails[4605921]=new thumbnail(4605921,"265795","ehpb062 <br>golden eagle","EHP044_thumb.jpg",130,87,18);thumbnails[4605951]=new thumbnail(4605951,"265795","ehpb053 <br>little egret","EHP053_thumb.jpg",130,182,18);thumbnails[4605952]=new thumbnail(4605952,"265795","ehpb052 <br>little owl","EHP054_thumb.jpg",130,87,18);thumbnails[4606012]=new thumbnail(4606012,"265795","ehpb044 <br>nuthatch","EHP063_thumb.JPG",130,193,18);thumbnails[4606045]=new thumbnail(4606045,"265795","ehpb0040 <br>red kite","EHP068_thumb.jpg",130,167,18);thumbnails[4606061]=new thumbnail(4606061,"265795","ehpb032 <br>robin","EHP076_thumb.JPG",130,87,18);thumbnails[4606072]=new thumbnail(4606072,"265795","ehpb027 <br>sparrow","EHP081_thumb.jpg",130,176,18);thumbnails[4606165]=new thumbnail(4606165,"265795","ehpb015 <br>whooper swan","EHP094_thumb.JPG",130,163,18);thumbnails[4644077]=new thumbnail(4644077,"265795","ephb111 <br>snowy owl","Snowy_Owl_male_looking_ahead_card_size_thumb.jpg",130,87,18);thumbnails[4649901]=new thumbnail(4649901,"265795","ehpb173 <br>pheasant","Pheasant_close_up_looking_towards_thumb.JPG",130,87,18);thumbnails[4649902]=new thumbnail(4649902,"265795","ehpb150 <br>puffin","Puffin_looking_at_you_thumb.jpg",130,195,18);thumbnails[4649903]=new thumbnail(4649903,"265795","ehpb151 <br>puffins","Puffins_group_of_thumb.jpg",130,87,18);thumbnails[4649908]=new thumbnail(4649908,"265795","ehpb159 <br>shag","Shag_head_and_shoulders_portrait_thumb.JPG",130,195,18);thumbnails[4649910]=new thumbnail(4649910,"265795","ehpb155 <br>snowy owl","Snowy_Owl_female_closelooking_left_card_size_thumb.jpg",130,87,18);thumbnails[4649915]=new thumbnail(4649915,"265795","ehpb157 <br>turquoise parakeet","Turquoise_Parakeet_looking_up_Plantasia_thumb.JPG",130,173,18);thumbnails[5882674]=new thumbnail(5882674,"265795","ehpb476<br>buzzard","Buzzard_in_tree_6_tight_crop_card_size_blur_thumb.jpg",130,182,18);thumbnails[5921619]=new thumbnail(5921619,"265795","ehpb480<br>goldfinch","Goldfinch_on_garden_wall_08_thumb.JPG",130,87,18);thumbnails[6039542]=new thumbnail(6039542,"265795","ehpb490<br>peacock head shot","Peacock_with_fan_out_close_up_08_thumb.JPG",130,195,18);thumbnails[6039548]=new thumbnail(6039548,"265795","ehpb491<br>peacock","Peacock_with_fan_out_to_side_thumb.JPG",130,195,18);thumbnails[4653302]=new thumbnail(4653302,"268370","ehpbm001 <br>bamburgh beach","Bamburgh_beach_bookmark_copy_thumb.jpg",130,44,18);thumbnails[4653304]=new thumbnail(4653304,"268370","ehpbm002 <br>carew castle","Carew_castle_from_bridge_wide_view_bookmark_copy_thumb.jpg",130,47,18);thumbnails[4653305]=new thumbnail(4653305,"268370","ehpbm003 <br>carmarthen","Carnarthan_sunset_portrait_bookmark_copy_thumb.jpg",130,359,18);thumbnails[4653307]=new thumbnail(4653307,"268370","ehpbm004 <br>comma butterfly","Comma_butterfly_on_Sedum_bookmark_copy_thumb.jpg",130,54,18);thumbnails[4653323]=new thumbnail(4653323,"268370","ehpbm005 <br>fallow deer","Fallow_deer_standing_and_sitting_Tatton_Park_bookmark_copy_thumb.jpg",130,380,18);thumbnails[4653324]=new thumbnail(4653324,"268370","ehp006 <br> freshwater east","Freshwater_East_early_am_bookmark_copy_thumb.jpg",130,47,18);thumbnails[4653328]=new thumbnail(4653328,"268370","ehpbm007 <br> great spotted woodpecker","Great_Spotted_Woodpecker_with_head_down_slightlybookmark_copy_thumb.jpg",130,369,18);thumbnails[4653331]=new thumbnail(4653331,"268370","ehpbm008 <br> lamphey wales","Lamphey_Sheep_in_snow_bookmark_copy_thumb.jpg",130,45,18);thumbnails[4653333]=new thumbnail(4653333,"268370","ehpbm009 <br> linnet","Linnet_on_wall_bookmark_copy_thumb.jpg",130,359,18);thumbnails[4653334]=new thumbnail(4653334,"268370","ehpbm010 <br>llantisilio wales","Llantysilio_sunset_bookmark_copy_thumb.jpg",130,44,18);thumbnails[4653338]=new thumbnail(4653338,"268370","ehpbm011 <br>magnolia","Magnolia_flower_pink_tulip_like_bookmark_copy_thumb.jpg",130,380,18);thumbnails[4653341]=new thumbnail(4653341,"268370","ehpbm012 <br>marsh orchid","Marsh_orchid_bookmark_copy_thumb.jpg",130,380,18);thumbnails[4653343]=new thumbnail(4653343,"268370","ehpbm013 <br>moon","Moon_bookmark_copy_thumb.jpg",130,382,18);thumbnails[4653351]=new thumbnail(4653351,"268370","ehpbm014 <br>holy island","Panoramic_sunset_with_pastel_hues_bookmark_copy_thumb.jpg",130,44,18);thumbnails[4653354]=new thumbnail(4653354,"268370","ehpbm015 <br>holy island ","Panoramic_sunset_with_salmon_sky_with_text_bookmark_copy_thumb.jpg",130,44,18);thumbnails[4653356]=new thumbnail(4653356,"268370","ehpbm016 <br>penclawdd wales","Panoramic_with_salmon_and_pinks_of_evening_plus_rowing_boat_bookmark_copy_thumb.jpg",130,48,18);thumbnails[4653358]=new thumbnail(4653358,"268370","ehpbm018 <br>pheasant","Pheasant_3_panorama_bookmark_copy_thumb.jpg",130,44,18);thumbnails[4653360]=new thumbnail(4653360,"268370","ehpbm020 <br>red kite","Red_Kite_bookmark_copy_thumb.jpg",130,41,18);thumbnails[4653362]=new thumbnail(4653362,"268370","ehpbm021 <br>rhossili bay wales","Rhossili_bay_portrait_of_S_bend_bookmark_copy_thumb.jpg",130,380,18);thumbnails[4653364]=new thumbnail(4653364,"268370","ehpbm023 <br>sheep","Sheep_in_sunset_bookmark_copy_thumb.jpg",130,52,18);thumbnails[4653367]=new thumbnail(4653367,"268370","ehpbm024 <br>snowdrop","Snowdrops_at_Llangwm_bookmark_copy_thumb.jpg",130,366,18);thumbnails[4653369]=new thumbnail(4653369,"268370","ehpbm025 <br>sparrow","Sparrow_house_on_wall_2_bookmark_copy_thumb.jpg",130,366,18);thumbnails[4653374]=new thumbnail(4653374,"268370","ehpbm028 <br>tan hill co durham","Tan_Hill_panorama_bookmark_copy_thumb.jpg",130,46,18);thumbnails[4653390]=new thumbnail(4653390,"268370","ehpbm030 <br>post box","Thwaite_post_box_spot_colour_bookmark_copy_thumb.jpg",130,366,18);thumbnails[4653392]=new thumbnail(4653392,"268370","ehpbm031 <br>rescue tower holy island","Watch__tower_in_pastel_evening_light_bookmark_copy_thumb.jpg",130,377,18);thumbnails[5168344]=new thumbnail(5168344,"268370","ehpbm320 <br> Red Kite","Red_Kite_bookmark_size_looking_down_thumb.jpg",130,41,18);thumbnails[5497603]=new thumbnail(5497603,"268370","ehpbm428<br>snowdonia","Snowdonia_from_Glan_Conwy_bookmark_copy_thumb.jpg",130,366,18);thumbnails[5529447]=new thumbnail(5529447,"268370","ehpbm440 <br>snowdon <br>from Llyn Padarn","Snowdonia_-_Llyn_Padarn_bookmark_copy_thumb.jpg",130,42,18);thumbnails[5862023]=new thumbnail(5862023,"268370","ehpbm474<br>maroon orchid","Orchid_maroon_bookmark_copy_thumb.jpg",130,49,18);thumbnails[6039570]=new thumbnail(6039570,"268370","ehpbm492<br>peacock","Peacock_with_fan_out_to_side_bookmark_copy_thumb.jpg",130,374,18);thumbnails[4605771]=new thumbnail(4605771,"266446","ehpu086 <br>comma","EHP019_thumb.JPG",130,87,18);thumbnails[4605811]=new thumbnail(4605811,"266446","ehpu077 <br>adonis blue","EHP028_thumb.JPG",130,195,18);thumbnails[4605853]=new thumbnail(4605853,"266446","ehpu069 <br>marble white","EHP036_thumb.jpg",130,87,18);thumbnails[4606069]=new thumbnail(4606069,"266446","ehpu028 <br>small heath","EHP080_thumb.JPG",130,91,18);thumbnails[4649588]=new thumbnail(4649588,"266446","ehpb124 <br>common blues","France_Common_Blue_butterfly_pair_on_leaf_thumb.JPG",130,88,18);thumbnails[5882738]=new thumbnail(5882738,"266446","ehpu478<br>swallowtail","France_Swallowtail_butterfly_cropped_blur_thumb.jpg",130,111,18);thumbnails[5882742]=new thumbnail(5882742,"266446","ehpu479<br>large white","Large_White_butterfly_wings_closed_translucent_thumb.JPG",130,87,18);thumbnails[5882745]=new thumbnail(5882745,"266446","ehpu480<br>peacock","Peacock_butterfly_close_up_2_blur_thumb.jpg",130,90,18);thumbnails[5882804]=new thumbnail(5882804,"266446","ehpu481<br>comma","Comma_Butterfly_Delamere_thumb.JPG",130,77,18);thumbnails[4605714]=new thumbnail(4605714,"265794","ehpf088 <br>monkey x lady orchid","EHP016_thumb.JPG",130,195,18);thumbnails[4605787]=new thumbnail(4605787,"265794","ehpf085 <br>crocuses","EHP020_thumb.JPG",130,87,18);thumbnails[4605813]=new thumbnail(4605813,"265794","ehpf076 <br>french window","EHP029_thumb.JPG",130,195,18);thumbnails[4605815]=new thumbnail(4605815,"265794","ehpf075 <br> bee orchid","EHP030_thumb.JPG",130,87,18);thumbnails[4605845]=new thumbnail(4605845,"265794","ehpf073 <br>brenne orchid","EHP032_thumb.JPG",130,195,18);thumbnails[4605907]=new thumbnail(4605907,"265794","ehpf068 <br>poppies & cornflowers","EHP037_thumb.JPG",130,87,18);thumbnails[4605909]=new thumbnail(4605909,"265794","ehpf066 <br>tongue orchid","EHP039_thumb.JPG",130,195,18);thumbnails[4606043]=new thumbnail(4606043,"265794","ehpf041 <br>poppy","EHP067_thumb.jpg",130,87,18);thumbnails[4606053]=new thumbnail(4606053,"265794","ehpf035 <br>rhododendrons","EHP073_thumb.JPG",130,87,18);thumbnails[4606066]=new thumbnail(4606066,"265794","ehpf030 <br>rose","EHP078_thumb.JPG",130,87,18);thumbnails[4606158]=new thumbnail(4606158,"265794","ehpf018 <br>teasel","EHP091_thumb.JPG",130,195,18);thumbnails[4611856]=new thumbnail(4611856,"265794","ehpf005 <br>amarylis","Amaryllis_backlit_showing_stamens_thumb.JPG",130,173,18);thumbnails[4611860]=new thumbnail(4611860,"265794","ehpf002 <br>snakeshead fritilary","Snakeshead_Fritilary_thumb.jpg",130,195,18);thumbnails[4649400]=new thumbnail(4649400,"265794","ehpf090 <br>cherry blossom","Cherry_blossom_ornamental_close_up_thumb.JPG",130,87,18);thumbnails[4649741]=new thumbnail(4649741,"265794","ehpf134 <br>passion flowers","Passion_flowers_thumb.JPG",130,87,18);thumbnails[4649891]=new thumbnail(4649891,"265794","ehpf144 <br>globe artichoke","Globe_Artichoke_portrait_thumb.JPG",130,195,18);thumbnails[5739835]=new thumbnail(5739835,"265794","ehpf450 <br>chionodoxa","Chionodoxa_08_thumb.JPG",130,87,18);thumbnails[5739837]=new thumbnail(5739837,"265794","ehpf451 <br>variegated rose","Rose_pink_varigated_with_blur_thumb.jpg",130,87,18);thumbnails[5739973]=new thumbnail(5739973,"265794","ehpf452 <br>bluebells","Bluebells_portrait_in_evening_light_cropped_thumb.jpg",130,195,18);thumbnails[5739977]=new thumbnail(5739977,"265794","ehpf453<br>bromeliad","Bromeliad_in_flower_2_thumb.jpg",130,215,18);thumbnails[5739981]=new thumbnail(5739981,"265794","ehpf454<br>camelia","Camelia_red_full_bloom_thumb.JPG",130,87,18);thumbnails[5739983]=new thumbnail(5739983,"265794","ehpf455<br>daffodil","Daffodil_atmospheric_thumb.jpg",130,87,18);thumbnails[5739985]=new thumbnail(5739985,"265794","ehpf456<br>spring flower border","Spring_flower_border_thumb.JPG",130,87,18);thumbnails[5740034]=new thumbnail(5740034,"265794","ehpf457<br>cyclamen","Cyclamen_portrait_thumb.JPG",130,186,18);thumbnails[5862005]=new thumbnail(5862005,"265794","ehpf470<br>two orchids","Orchid_pink_cropped_thumb.jpg",130,94,18);thumbnails[5862007]=new thumbnail(5862007,"265794","ehpf471<br>orchid<br>single bloom","Orchid_white_maroon_single_bloom_with_blur_thumb.jpg",130,166,18);thumbnails[5862011]=new thumbnail(5862011,"265794","ehpf472<br>three orchids>","Orchids_cream_three_in_a_row_Plantasia_thumb.JPG",130,98,18);thumbnails[5882535]=new thumbnail(5882535,"265794","ehpf476<br>cherry blossom","Blossom_pink_blue_sky_thumb.JPG",130,87,18);thumbnails[5882680]=new thumbnail(5882680,"265794","ehpf477<br>orchid","Orchid_white_pink_speckled_thumb.JPG",130,102,18);thumbnails[4605693]=new thumbnail(4605693,"266391","ehpl096 <br>barnard castle","EHP006_thumb.jpg",130,87,18);thumbnails[4605698]=new thumbnail(4605698,"266391","ehpl095 <br>ben nevis scotland","EHP008_thumb.jpg",130,87,18);thumbnails[4605797]=new thumbnail(4605797,"266391","ehpl081 <br>eileen donan scotland","EHP024_thumb.jpg",130,87,18);thumbnails[4605818]=new thumbnail(4605818,"266391","ehpl074 <br>bellencombre france","EHP031_thumb.JPG",130,87,18);thumbnails[4605850]=new thumbnail(4605850,"266391","ehpl071 <br>etang near migne france","EHP034_thumb.JPG",130,87,18);thumbnails[4605908]=new thumbnail(4605908,"266391","ehpl067 <br>st michel en brenne france","EHP038_thumb.JPG",130,87,18);thumbnails[4605928]=new thumbnail(4605928,"266391","ehpl060 <br>gunnerside yorkshire","EHP046_thumb.JPG",130,98,18);thumbnails[4605937]=new thumbnail(4605937,"266391","ehpl058 <br>houses of parliament","EHP048_thumb.jpg",130,87,18);thumbnails[4605959]=new thumbnail(4605959,"266391","ehpl049 <br>london eye","EHP057_thumb.jpg",130,195,18);thumbnails[4606148]=new thumbnail(4606148,"266391","ehpl021 <br>swaledale yorkshire","EHP088_thumb.jpg",130,195,18);thumbnails[4606152]=new thumbnail(4606152,"266391","ehpl020 <br>thwaite yorkshire","EHP089_thumb.JPG",130,98,18);thumbnails[4606262]=new thumbnail(4606262,"266391","ehpl010 <br>royal border bridge berwick on tweed","EHP101_thumb.JPG",130,98,18);thumbnails[4606336]=new thumbnail(4606336,"266391","ehpl006 <br>in the cheviots","EHP105_thumb.JPG",130,98,18);thumbnails[4611861]=new thumbnail(4611861,"266391","ehpl001 <br>postbox","Thwaite_post_box_spot_colour_thumb.jpg",130,173,18);thumbnails[4649427]=new thumbnail(4649427,"266391","ehpl121 <br>12th century church ruffec france","France_Ruffec_12th_century_church_1_thumb.JPG",130,87,18);thumbnails[4649726]=new thumbnail(4649726,"266391","ehpl 129 <br>sunflowers near tours france","Field_of_sunflowers_near_Tours_thumb.jpg",130,98,18);thumbnails[4649733]=new thumbnail(4649733,"266391","ehpl 171 <br>haybales france","Hay_bale_in_warm_evening_sun_thumb.JPG",130,98,18);thumbnails[4649876]=new thumbnail(4649876,"266391","ehpl169 <br>ben nevis scotland","Ben_Nevis_from_Gairlochy_2_thumb.jpg",130,87,18);thumbnails[4649879]=new thumbnail(4649879,"266391","ehpl167<br>mevagissey cornwall","boats_at_Mevagissey_thumb.jpg",130,91,18);thumbnails[4649882]=new thumbnail(4649882,"266391","ehpl139 <br>market drayton cheshire","Close_up_of_Tudor_hotel_Market_Drayton_thumb.JPG",130,98,18);thumbnails[4649890]=new thumbnail(4649890,"266391","ehpl143 <br>glen orchy scotland","Glen_Orchy_thumb.jpg",130,87,18);thumbnails[4649896]=new thumbnail(4649896,"266391","ehpl146 <br>loch sunart scotland","loch_Sunart_thumb.jpg",130,87,18);thumbnails[4649898]=new thumbnail(4649898,"266391","ehpl148 <br>fort william scotland","Night_Ft_William_thumb.jpg",130,87,18);thumbnails[4654743]=new thumbnail(4654743,"266391","ehpl190 <br>near calais france","Cornfield_with_line_of_trees_Calais1_thumb.jpg",130,98,18);thumbnails[4654745]=new thumbnail(4654745,"266391","ehpl091 <br>storm brewing near calais france","Cornfields_with_patched_fields_and_dark_clouds_Calais_thumb.jpg",130,98,18);thumbnails[4654747]=new thumbnail(4654747,"266391","ehpl192 <br>berwyn mountains","Panorama_of_the_Berwyn_mountains_North_Wales_thumb.JPG",130,73,18);thumbnails[4654750]=new thumbnail(4654750,"266391","ehpl093 <br>toddington bedfordshire","Toddington_Hearne_Farm_fisheries__21_thumb.JPG",130,87,18);thumbnails[4701302]=new thumbnail(4701302,"266391","ehpl194 <br>coniston water cumbria","Coniston_Water__04_thumb.JPG",130,87,18);thumbnails[4701339]=new thumbnail(4701339,"266391","ehpl196 <br>old AA box <br>dunmail raise cumbria","Helvellyn_Dunmail_Raise_old_AA_box_thumb.JPG",130,87,18);thumbnails[4701343]=new thumbnail(4701343,"266391","ehpl197 <br>helvellyn screes cumbria","Helvellyn_Dunmail_Raise_with_gate_thumb.JPG",130,87,18);thumbnails[4701358]=new thumbnail(4701358,"266391","ehpl198 <br>helvellyn cumbria","Helvellyn_in_background_with_tall_trees_portrait_thumb.JPG",130,195,18);thumbnails[4701425]=new thumbnail(4701425,"266391","ehpl199 <br> skiddaw cumbria","Skiddaw_2_thumb.JPG",130,87,18);thumbnails[4701428]=new thumbnail(4701428,"266391","ehpl200 <br> thirlmere cumbria","Towards_Thirlmere_thumb.JPG",130,87,18);thumbnails[5168351]=new thumbnail(5168351,"266391","ehpl322 <br> near stanney <br>cheshire","Windmill_near_Stanney_Cheshire_thumb.jpg",130,87,18);thumbnails[5488840]=new thumbnail(5488840,"266391","ehpl401 <br> waterfall <br>lake district","Westmorland_from_Teebay_2_thumb.JPG",130,87,18);thumbnails[5488862]=new thumbnail(5488862,"266391","ehpl403 <br>morning light <br> pennines","In_the_Pennines_in_snow_16_thumb.JPG",130,87,18);thumbnails[4606051]=new thumbnail(4606051,"268234","ehps036 <br>causeway holy island","EHP072_thumb.JPG",130,98,18);thumbnails[4606140]=new thumbnail(4606140,"268234","ehps023  <br>holy island sunrise","EHP086_thumb.jpg",130,87,18);thumbnails[4606144]=new thumbnail(4606144,"268234","ehps022 <br>holy island ","EHP087_thumb.JPG",130,173,18);thumbnails[4606268]=new thumbnail(4606268,"268234","ehps009 <br>hayle estuary cornwall","EHP102_thumb.JPG",130,87,18);thumbnails[4606322]=new thumbnail(4606322,"268234","ehps008 <br>mullion cove cornwall","EHP103_thumb.jpg",130,87,18);thumbnails[4606327]=new thumbnail(4606327,"268234","ehps007 <br>mullion island cornwall","EHP104_thumb.jpg",130,87,18);thumbnails[4611859]=new thumbnail(4611859,"268234","ehps003 <br>moon over holy island","Moon_over_Holy_Island_thumb.JPG",130,195,18);thumbnails[4649880]=new thumbnail(4649880,"268234","ehps138 <br>porthleven cornwall","Cannon_at_Porthleven_thumb.jpg",130,87,18);thumbnails[4649897]=new thumbnail(4649897,"268234","ehps147 <br>bamburgh castle northumberland","Looking_towards_Bamburgh_end_of_sunrise_thumb.JPG",130,98,18);thumbnails[4649899]=new thumbnail(4649899,"268234","ehps149 <br>mallaig scotland","On_way_back_from_Mallaig_4_thumb.jpg",130,195,18);thumbnails[4649911]=new thumbnail(4649911,"268234","ehps156 <br>holy island northumberland","Sunset_with_lots_of_blue_sky_and_Pilgrims_Way_poles_thumb.JPG",130,98,18);thumbnails[4649917]=new thumbnail(4649917,"268234","ehps158 <br>holy island northumberland","Watery_sunset_Holy_Island_thumb.jpg",130,87,18);thumbnails[4751928]=new thumbnail(4751928,"268234","ehps203 <br>dunstanburgh castle <br>northumberland","Dunstanburgh_castle_from_Embleton_Bay_5_thumb.JPG",130,87,18);thumbnails[4605699]=new thumbnail(4605699,"266399","ehpw094 <br>betwys y coed","EHP009_thumb.jpg",130,195,18);thumbnails[4605802]=new thumbnail(4605802,"266399","ehpw080 <br>swansea marina","EHP025_thumb.JPG",130,98,18);thumbnails[4605917]=new thumbnail(4605917,"266399","ehpw065 <br>freshwater east","EHP041_thumb.JPG",130,86,18);thumbnails[4605919]=new thumbnail(4605919,"266399","ehpw063 <br>snowdonia","EHP043_thumb.jpg",130,87,18);thumbnails[4605942]=new thumbnail(4605942,"266399","ehpw057 <br>lake bala","EHP049_thumb.JPG",130,98,18);thumbnails[4605943]=new thumbnail(4605943,"266399","ehpw056 <br>laugharne castle","EHP050_thumb.JPG",130,87,18);thumbnails[4605954]=new thumbnail(4605954,"266399","ehpw051 <br>llanwrst","EHP055_thumb.JPG",130,87,18);thumbnails[4605957]=new thumbnail(4605957,"266399","ehpw050 <br>llyn cregennan","EHP056_thumb.jpg",130,87,18);thumbnails[4605968]=new thumbnail(4605968,"266399","ehpw048 <br>afon conwy","EHP058_thumb.JPG",130,92,18);thumbnails[4606003]=new thumbnail(4606003,"266399","ehpw047 <br>manobier","EHP059_thumb.JPG",130,87,18);thumbnails[4606009]=new thumbnail(4606009,"266399","ehpw045 <br>newgale","EHP062_thumb.JPG",130,85,18);thumbnails[4606016]=new thumbnail(4606016,"266399","ehpw043 <br>pembrokeshire coast","EHP065_thumb.JPG",130,87,18);thumbnails[4606018]=new thumbnail(4606018,"266399","ehpw042 <br>penclawdd","EHP066_thumb.JPG",130,98,18);thumbnails[4606046]=new thumbnail(4606046,"266399","ehpw039 <br>maple tree llanelli","EHP069_thumb.JPG",130,87,18);thumbnails[4606048]=new thumbnail(4606048,"266399","ehpw038 <br>llangollen","EHP070_thumb.jpg",130,98,18);thumbnails[4606055]=new thumbnail(4606055,"266399","ehpw034 <br>rhossili bay","EHP074_thumb.JPG",130,98,18);thumbnails[4606056]=new thumbnail(4606056,"266399","ehpw033 <br>rhossili bay","EHP075_thumb.JPG",130,98,18);thumbnails[4606074]=new thumbnail(4606074,"266399","ehpw026 <br>st david's cathedral","EHP082_thumb.JPG",130,87,18);thumbnails[4606137]=new thumbnail(4606137,"266399","ehpw024 <br>sugar loaf mountain","EHP085_thumb.JPG",130,87,18);thumbnails[4606163]=new thumbnail(4606163,"266399","ehpw017 <br>martins haven","EHP092_thumb.JPG",130,87,18);thumbnails[4606168]=new thumbnail(4606168,"266399","ehow013 <br>afon conwy","EHP096_thumb.JPG",130,98,18);thumbnails[4606174]=new thumbnail(4606174,"266399","ehpw012 <br>on minera mountain","EHP097_thumb.JPG",130,87,18);thumbnails[4606177]=new thumbnail(4606177,"266399","ehpw011 <br>eglwyseg mountains","EHP098_thumb.JPG",130,87,18);thumbnails[4649404]=new thumbnail(4649404,"266399","ehpw120 <br>cresswell quay","Cresswell_Quay_riders_in_river_thumb.JPG",130,87,18);thumbnails[4649509]=new thumbnail(4649509,"266399","ehpw100 <br>freshwater east","Freshwater_East_sun_on_sea_portrait_thumb.JPG",130,195,18);thumbnails[4649674]=new thumbnail(4649674,"266399","ehpf126 <br> gower near three cliffs bay ","Coastline_south_Gower_near_Three_cliffs_contrjour_thumb.JPG",130,87,18);thumbnails[4649737]=new thumbnail(4649737,"266399","ehpw170 <br>Llantisilio","Llantysilio_sunset_thumb.jpg",130,67,18);thumbnails[4649875]=new thumbnail(4649875,"266399","ehpw135 <br>afon conwy","Beautiful_cloud_formation_over_Conwy_estuary_thumb.JPG",130,98,18);thumbnails[4649883]=new thumbnail(4649883,"266399","ehpw140 <br>coedpoeth","Coedpoeth_in_frost_3_thumb.jpg",130,87,18);thumbnails[4649895]=new thumbnail(4649895,"266399","ehpw145 <br>lake vrynwy","Lake_Vrynwy_autum_reflections_thumb.jpg",130,98,18);thumbnails[4649904]=new thumbnail(4649904,"266399","ehpw161 <br> worlds end","Pylon2_thumb.jpg",130,195,18);thumbnails[4649905]=new thumbnail(4649905,"266399","ehpw152 <br>nant valley","Rainbow_from_our_garden_over_the_Nant_valley_thumb.JPG",130,173,18);thumbnails[4783207]=new thumbnail(4783207,"266399","ehpw210 <br>world's end <br>minera","Worlds_End_12_thumb.JPG",130,87,18);thumbnails[4934583]=new thumbnail(4934583,"266399","ehpw251 <br> Caldey Island","Coastline_arriving_at_Caldey_Priory_Bay_thumb.JPG",130,85,18);thumbnails[4934595]=new thumbnail(4934595,"266399","ehpw252 <br> Caldey Island <br>end of the day","end_of_day_on_boat_back_to_Tenby_2_thumb.JPG",130,84,18);thumbnails[4934609]=new thumbnail(4934609,"266399","ehpw254 <br> old priory <br>caldey island","Old_Priory_stained_glass_with_table_portrait_thumb.JPG",130,195,18);thumbnails[4934617]=new thumbnail(4934617,"266399","ehpw255 <br>towards tenby <br>pembrokeshire","Tenby_from_boat_with_Cormorant_thumb.JPG",130,87,18);thumbnails[4934621]=new thumbnail(4934621,"266399","ehpw256 <br>tenby harbour <br>pembrokeshire","Tenby_harbour_at_night_15_thumb.JPG",130,87,18);thumbnails[4934623]=new thumbnail(4934623,"266399","ehpw257 <br>west bay angle <br>pembrokeshire","West_Bay_Angle_lagoon_thumb.JPG",130,87,18);thumbnails[4934634]=new thumbnail(4934634,"266399","ehpw250 <br>bosherton woods <br>pembrokeshire","Bosherton_woods_thumb.JPG",130,87,18);thumbnails[5345652]=new thumbnail(5345652,"266399","ehpw360 <br> coedpoeth sunrise","Coedpoeth_Nant_snow_gold_light_4_thumb.JPG",130,87,18);thumbnails[5496293]=new thumbnail(5496293,"266399","ehpw420 <br> menai bridge <br> anglesey","Menai_Bridge_09_thumb.JPG",130,87,18);thumbnails[5496299]=new thumbnail(5496299,"266399","ehpw421 <br> snowdonia","Snowdonia_-_Llyn_Padarn_17_thumb.JPG",130,87,18);thumbnails[5496307]=new thumbnail(5496307,"266399","ehpw422 <br> snowdon <br> from llyn padarn","Snowdonia_-_Llyn_Padarn_20_thumb.JPG",130,83,18);thumbnails[5496312]=new thumbnail(5496312,"266399","ehpw423 <br>snowdonia <br>from glan conwy","Snowdonia_from_Glan_Conwy_07_thumb.JPG",130,87,18);thumbnails[5496367]=new thumbnail(5496367,"266399","ehpw424 <br>snowdonia ","Snowdonia_-_Llyn_Padarn_15_thumb.JPG",130,87,18);thumbnails[5496375]=new thumbnail(5496375,"266399","ehpw425<br>snowdonia","In_Snowdonia_3_thumb.JPG",130,87,18);thumbnails[5496457]=new thumbnail(5496457,"266399","ehpw426<br>tenby<br>pembrokeshire","Tenby_harbour_mono_thumb.jpg",130,87,18);thumbnails[5496510]=new thumbnail(5496510,"266399","ephw427<br>capel curig <br>snowdonia","Capel_Curig_3_thumb.JPG",130,87,18);var galleries=new Object();galleries[275811]=new gallery(275811,"4970024,4840731,4840709","Abstract","gallery",[4840709,4840731,4970024]);galleries[266400]=new gallery(266400,"4606050","Animals","gallery",[4605804,4605918,4606050,4649497,4649545,4649730,4649734,6210342]);galleries[265795]=new gallery(265795,"6039548,6039542,5882674,4649915,4649908,4649902,4606165,4606045,4606012,4605688","Birds","gallery",[4605681,4605688,4605789,4605851,4605921,4605951,4605952,4606012,4606045,4606061,4606072,4606165,4644077,4649901,4649902,4649903,4649908,4649910,4649915,5882674,5921619,6039542,6039548]);galleries[268370]=new gallery(268370,"6039570,5862023,5529447,5168344,4653374,4653364,4653360,4653358,4653356,4653354,4653351,4653334,4653324,4653304","Bookmarks","gallery",[4653302,4653304,4653305,4653307,4653323,4653324,4653328,4653331,4653333,4653334,4653338,4653341,4653343,4653351,4653354,4653356,4653358,4653360,4653362,4653364,4653367,4653369,4653374,4653390,4653392,5168344,5497603,5529447,5862023,6039570]);galleries[266446]=new gallery(266446,"4605811","Butterflies","gallery",[4605771,4605811,4605853,4606069,4649588,5882738,5882742,5882745,5882804]);galleries[265794]=new gallery(265794,"5862007,5740034,5739977,5739973,4649891,4611856,4606158,4605714","Flowers","gallery",[4605714,4605787,4605813,4605815,4605845,4605907,4605909,4606043,4606053,4606066,4606158,4611856,4611860,4649400,4649741,4649891,5739835,5739837,5739973,5739977,5739981,5739983,5739985,5740034,5862005,5862007,5862011,5882535,5882680]);galleries[266391]=new gallery(266391,"4701358,4606148,4605959","Landscapes","gallery",[4605693,4605698,4605797,4605818,4605850,4605908,4605928,4605937,4605959,4606148,4606152,4606262,4606336,4611861,4649427,4649726,4649733,4649876,4649879,4649882,4649890,4649896,4649898,4654743,4654745,4654747,4654750,4701302,4701339,4701343,4701358,4701425,4701428,5168351,5488840,5488862]);galleries[268234]=new gallery(268234,"4649899,4606144","Seascapes","gallery",[4606051,4606140,4606144,4606268,4606322,4606327,4611859,4649880,4649897,4649899,4649911,4649917,4751928]);galleries[266399]=new gallery(266399,"4934609,4649509,4605699","Wales","gallery",[4605699,4605802,4605917,4605919,4605942,4605943,4605954,4605957,4605968,4606003,4606009,4606016,4606018,4606046,4606048,4606055,4606056,4606074,4606137,4606163,4606168,4606174,4606177,4649404,4649509,4649674,4649737,4649875,4649883,4649895,4649904,4649905,4783207,4934583,4934595,4934609,4934617,4934621,4934623,4934634,5345652,5496293,5496299,5496307,5496312,5496367,5496375,5496457,5496510]);var imageSets=new Object();imageSets[1]="6210342,6039548,6039542,5921619,5882804,5882745,5882742,5882738,5882680,5882674,5882535,5862011,5862007,5862005,5740034,5739985,5739983,5739981,5739977,5739973,5739837,5739835,5496510,5496457,5496375,5496367,5496312,5496307,5496299,5496293,5488862,5488840,5345652,5168351,5168344,4970024,4934634,4934623,4934621,4934617,4934609,4934595,4934583,4840731,4840709,4783207,4751928,4701428,4701425,4701358,4701343,4701339,4701302,4654750,4654747,4654745,4654743,4649917,4649915,4649911,4649910,4649908,4649905,4649904,4649903,4649902,4649901,4649899,4649898,4649897,4649896,4649895,4649891,4649890,4649883,4649882,4649880,4649879,4649876,4649875,4649741,4649737,4649734,4649733,4649730,4649726,4649674,4649588,4649545,4649509,4649497,4649427,4649404,4649400,4644077,4611861,4611860,4611859,4611856,4606336,4606327,4606322,4606268,4606262,4606177,4606174,4606168,4606165,4606163,4606158,4606152,4606148,4606144,4606140,4606137,4606074,4606072,4606069,4606066,4606061,4606056,4606055,4606053,4606051,4606050,4606048,4606046,4606045,4606043,4606018,4606016,4606012,4606009,4606003,4605968,4605959,4605957,4605954,4605952,4605951,4605943,4605942,4605937,4605928,4605921,4605919,4605918,4605917,4605909,4605908,4605907,4605853,4605851,4605850,4605845,4605818,4605815,4605813,4605811,4605804,4605802,4605797,4605789,4605787,4605771,4605714,4605699,4605698,4605693,4605688,4605681";imageSets[2]="6039570,6039548,6039542,5882674,5862023,5862007,5740034,5739977,5739973,5529447,5168344,4970024,4934609,4840731,4840709,4701358,4653374,4653364,4653360,4653358,4653356,4653354,4653351,4653334,4653324,4653304,4649915,4649908,4649902,4649899,4649891,4649509,4611856,4606165,4606158,4606148,4606144,4606050,4606045,4606012,4605959,4605811,4605714,4605699,4605688";imageSets[3]="6210342,6039548,6039542,5921619,5882804,5882745,5882742,5882738,5882680,5882674,5882535,5862011,5862007,5862005,5740034,5739985,5739983,5739981,5739977,5739973,5739837,5739835,5496457,5345652,5168351,5168344,4970024,4934634,4934623,4840731,4840709,4783207,4751928,4649917,4649915,4649911,4649910,4649908,4649905,4649904,4649903,4649902,4649901,4649899,4649898,4649897,4649896,4649895,4649891,4649890,4649883,4649882,4649880,4649879,4649876,4649875,4649741,4649737,4649734,4649733,4649730,4649726,4649674,4649588,4649427,4649404,4649400,4611859,4606336,4606327,4606322,4606268,4606262,4606177,4606174,4606168,4606165,4606163,4606158,4606152,4606148,4606144,4606140,4606137,4606074,4606072,4606069,4606066,4606061,4606056,4606055,4606053,4606051,4606050,4606048,4606046,4606045,4606043,4606018,4606016,4606012,4606009,4606003,4605968,4605959,4605957,4605954,4605952";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/elainehagget/images";break}switch(a){case 1:b="http://www1.clikpic.com/elainehagget/images";break}switch(a){case 2:b="http://admin.clikpic.com/elainehagget/images";break}switch(a){case 24:b="http://tpc15/clikpic/elainehagget/images";break}switch(a){case 4:b="http://www.clikchurch.com/elainehagget/images";break}switch(a){case 5:b="http://www2.clikpic.com/elainehagget/images";break}switch(a){case 22:b="http://tpc5/clikpic/elainehagget/images";break}switch(a){case 23:b="http://tpc10/clikpic/elainehagget/images";break}switch(a){case 25:b="http://tpc16/clikpic/elainehagget/images";break}switch(a){case 15:b="http://www3.clikpic.com/elainehagget/images";break}switch(a){case 18:b="http://www4.clikpic.com/elainehagget/images";break}switch(a){case 19:b="http://www5.clikpic.com/elainehagget/images";break}switch(a){case 31:b="http://www7.clikpic.com/elainehagget/images";break}switch(a){case 32:b="http://admin2.clikpic.com/elainehagget/images";break}switch(a){case 33:b="http://www8.clikpic.com/elainehagget/images";break}switch(a){case 34:b="http://www9.clikpic.com/elainehagget/images";break}switch(a){case 35:b="http://admin3.clikpic.com/elainehagget/images";break}switch(a){case 37:b="http://admin4.clikpic.com/elainehagget/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="Elaine Hagget 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;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="ELAINEHAGGET">';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+'")'})}}};