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[5603466]=new thumbnail(5603466,"183227","The bike","CLIC_Scot2058_A_bike__hut1_thumb.jpg",130,87,1);thumbnails[3513809]=new thumbnail(3513809,"183227","Ulverston canal","Scot1001_CLIC_ulverston_canal_lock_cumbria_thumb.jpg",130,88,1);thumbnails[5672810]=new thumbnail(5672810,"183227","The Howgills","web2007_2355_howgills_thumb.jpg",130,88,1);thumbnails[5672823]=new thumbnail(5672823,"183227","Old mill race","web2007_2320a_morland_mill_race_thumb.jpg",130,90,1);thumbnails[4568348]=new thumbnail(4568348,"183227","Freddie hits a six","CLIC_1005_12x8_freddie_hits_a_six_thumb.jpg",130,87,1);thumbnails[5672010]=new thumbnail(5672010,"183227","Brixham harbour","web2006_018_brixham_harbour_thumb.jpg",130,87,1);thumbnails[5672002]=new thumbnail(5672002,"183227","Sidmouth foreshore","web2006_001_sidmouth_foreshore_thumb.jpg",130,87,1);thumbnails[1785133]=new thumbnail(1785133,"183227","Slate Miner's Hut","CLIC_0008_thumb.JPG",130,87,1);thumbnails[5644536]=new thumbnail(5644536,"141375","Exeter Quays","CLIC_2010_0976A_exeter_canal_head_thumb.jpg",130,87,1);thumbnails[3643518]=new thumbnail(3643518,"141375","Life ring","CLIC_7606_life_ring_on_the_ferry_boat1_thumb.jpg",130,87,1);thumbnails[2903610]=new thumbnail(2903610,"141375","Exmouth marina","CLIC_7583_entrance_to_exmouth_harbour_devon_thumb.jpg",130,87,1);thumbnails[2903611]=new thumbnail(2903611,"141375","Exe Estuary","CLIC_7565_sailing_boat_and_fisherman_exmouth_thumb.jpg",130,87,1);thumbnails[2489340]=new thumbnail(2489340,"141375","Brixham Marina","CLIC_5542_gangway_brixham_harbour_marina_thumb.jpg",130,192,1);thumbnails[2126237]=new thumbnail(2126237,"141375","Chain","CLIC_4564_chain_harbourside_thumb.jpg",130,195,1);thumbnails[2126239]=new thumbnail(2126239,"141375","Sennan Harbour","CLIC_4569_8x10_fishing_equipment_sennan_harbour_wall_cornwall_thumb.jpg",130,104,1);thumbnails[2125727]=new thumbnail(2125727,"141375","Lobster Pots ","CLIC_4437_creels_lobster_pots_mousehole_harbour_cornwall_thumb.jpg",130,87,1);thumbnails[2125744]=new thumbnail(2125744,"141375","Mousehole","CLIC_4473_sailing_boat_low_tide_mousehole_harbour_thumb.jpg",130,87,1);thumbnails[1959985]=new thumbnail(1959985,"141375","Starcross Pier","CLIC_3409te_starcross_pier_ferry_thumb.jpg",130,87,1);thumbnails[1960011]=new thumbnail(1960011,"141375","Thankful","CLIC_0823t_and_thanks_for_all_the_fish_brixham_harbour_thankfull_thumb.jpg",130,87,1);thumbnails[1960018]=new thumbnail(1960018,"141375","Iolande","CLIC_0872te_iolanda_clinker_built_boat_brixham_harbour_thumb.jpg",130,87,1);thumbnails[2190710]=new thumbnail(2190710,"141375","Brixham Harbour","CLIC_0870e_brixham_harbour_devon_thumb.jpg",130,87,1);thumbnails[2898260]=new thumbnail(2898260,"141375","Tired","CLIC_7328_old_boat_topsham_devon_thumb.jpg",130,86,1);thumbnails[3534430]=new thumbnail(3534430,"199488","Stones ","Scot5008_CLIC_loch_morlich_stones_bw_16x24_thumb.jpg",130,87,1);thumbnails[3180891]=new thumbnail(3180891,"199488","King Edward I, No 6024","CLIC_7945_bw_torbay_express_thumb.jpg",130,87,1);thumbnails[5603844]=new thumbnail(5603844,"199488","Crashing waves","CLIC_3711bw_waves_over_dawlish_pier_storm_thumb.jpg",130,87,1);thumbnails[5603861]=new thumbnail(5603861,"199488","Falling wave","CLIC_3715tbw_storm_dawlish_pier_black_and_white_thumb.jpg",130,87,1);thumbnails[1785051]=new thumbnail(1785051,"199488","Town Pier","CLIC_1775te_dawlish_pier-black_and_white_thumb.jpg",130,91,1);thumbnails[5091204]=new thumbnail(5091204,"199481","Diamond","CLIC_09_0230_red_arrows_dawlish_2009_thumb.jpg",130,87,1);thumbnails[5091239]=new thumbnail(5091239,"199481","The Red Arrows","CLIC_09_0236_red_arrows_dawlish_2009_thumb.jpg",130,87,1);thumbnails[5091241]=new thumbnail(5091241,"199481","Breaking away","CLIC_09_0261_red_arrows_dawlish_2009_thumb.jpg",130,87,1);thumbnails[5091245]=new thumbnail(5091245,"199481","In line","CLIC_09_0298_red_arrows_2009_thumb.jpg",130,87,1);thumbnails[5091298]=new thumbnail(5091298,"199481","Escorting the Vulcan","CLIC_09_0330_8x12_vulcan_and_red_arrows_thumb.jpg",130,87,1);thumbnails[5091301]=new thumbnail(5091301,"199481","Vulcan flies over Dawlish","CLIC_09_0352_vulcan_and_red_arrows_thumb.jpg",130,87,1);thumbnails[5091351]=new thumbnail(5091351,"199481","In formation with the Vulcan","CLIC_09_0357_vulcan_and_red_arrows_thumb.jpg",130,87,1);thumbnails[5091354]=new thumbnail(5091354,"199481","Avro Vulcan","CLIC_09_0384_thumb.jpg",130,87,1);thumbnails[3643486]=new thumbnail(3643486,"199481","Red Arrows","CLIC_6868tt_red_arrows_display_team_thumb.jpg",130,87,1);thumbnails[2630491]=new thumbnail(2630491,"199481","Here they come!","CLIC_6727tt_red_arrows_display_team_thumb.jpg",130,87,1);thumbnails[2630504]=new thumbnail(2630504,"199481","Downwards!","CLIC_6823tt_red_arrows_display_team_thumb.jpg",130,87,1);thumbnails[2630510]=new thumbnail(2630510,"199481","Gray sky, Red Arrows","CLIC_6856_red_arrows_display_team_with_gray_sky_thumb.jpg",130,87,1);thumbnails[2630518]=new thumbnail(2630518,"199481","Heading home","CLIC_6866t_red_arrows_display_team_with_dramatic_gray_sky_thumb.jpg",130,87,1);thumbnails[2630526]=new thumbnail(2630526,"199481","Every which way!","CLIC_6873t_red_arrows_display_team_thumb.jpg",130,87,1);thumbnails[2630529]=new thumbnail(2630529,"199481","Uh Oh!","CLIC_6877t_red_arrows_display_team_near_miss_thumb.jpg",130,87,1);thumbnails[2655613]=new thumbnail(2655613,"199481","Red Arrows ","CLIC_6688tt_red_arrows_display_team_thumb.jpg",130,95,1);thumbnails[5603505]=new thumbnail(5603505,"199481","Royal Jordanian Falcons","CLIC_6386tt_jordanian_falcons_thumb.jpg",130,87,1);thumbnails[5091304]=new thumbnail(5091304,"199481","The Vulcan flies again","CLIC_09_0353_vulcan_and_red_arrows_thumb.jpg",130,87,1);thumbnails[2253127]=new thumbnail(2253127,"131688","Longaford Tor","CLIC_4916_longaford_tor_dartmoor_thumb.jpg",130,87,1);thumbnails[1982618]=new thumbnail(1982618,"131688","Hay Tor","CLIC_007te_haytor_dartmoor_devon_thumb.jpg",130,86,1);thumbnails[1785123]=new thumbnail(1785123,"131688","Saddleback (or Blencathra)","CLIC_2426tl_blencathra_saddleback_cumbria_lake_district_thumb.jpg",130,87,1);thumbnails[1785126]=new thumbnail(1785126,"131688","Seatoller Fell","CLIC_2444_seatoller_fell_honister_slate_mines_cumbria_thumb.JPG",130,87,1);thumbnails[1785139]=new thumbnail(1785139,"131688","Ennerdale Water","CLIC_2505_ennerdale_water_thumb.JPG",130,87,1);thumbnails[3643502]=new thumbnail(3643502,"214907","Ropes","CLIC_3106te_mooring_ropes_dartmouth_harbour_sepia_thumb.jpg",130,87,1);thumbnails[3639423]=new thumbnail(3639423,"214907","Night Dancers","CLIC_night_dancers2_thumb.jpg",130,86,1);thumbnails[3639424]=new thumbnail(3639424,"214907","Celebration","CLIC_1675te_fireworks_bonfire_night_thumb.jpg",130,87,1);thumbnails[3639429]=new thumbnail(3639429,"214907","Logs","Scot1038_CLIC_logs_thumb.jpg",130,86,1);thumbnails[3510699]=new thumbnail(3510699,"214907","Reeds ","CLIC_3464e1_thumb.jpg",130,87,1);thumbnails[3513771]=new thumbnail(3513771,"214907","Stones ","Scot5008_CLICK_loch_morlich_stones_and_spray_16x24_1_thumb.jpg",130,87,1);thumbnails[2898262]=new thumbnail(2898262,"214907","Washday blues ","CLIC_7369_washday_blues_lympstone_devon_thumb.jpg",130,87,1);thumbnails[2607457]=new thumbnail(2607457,"214907","Dahlia","CLIC_5838te_red_cactus_dahlia_thumb.jpg",130,87,1);thumbnails[2253135]=new thumbnail(2253135,"214907","Dartmoor pony","CLIC_4945_gray_dartmoor_pony_devon_thumb.jpg",130,87,1);thumbnails[2023811]=new thumbnail(2023811,"214907","Pebbles","CLIC_4195te2_thumb.jpg",130,87,1);thumbnails[2016706]=new thumbnail(2016706,"214907","Bark","CLIC_3335te_thumb.jpg",130,195,1);thumbnails[2903615]=new thumbnail(2903615,"214907","Crane ","CLIC_7553_8x10_abstract_crane_exmouth_devon_thumb.jpg",130,104,1);thumbnails[5644537]=new thumbnail(5644537,"199491","Cathedral Green, Exeter","CLIC_2010_0991A_cathedral_green_exeter_thumb.jpg",130,87,1);thumbnails[3643500]=new thumbnail(3643500,"199491","Dartmouth harbourside","CLIC_058E_dartmouth_cottages_harbour_side_thumb.jpg",130,87,1);thumbnails[3035803]=new thumbnail(3035803,"199491","Princess Pier, Torquay","CLIC_7935t_torquay_pier_thumb.jpg",130,87,1);thumbnails[2190699]=new thumbnail(2190699,"199491","Brixham Harbour","CLIC_0871_brixham_harbour_devon_thumb.jpg",130,192,1);thumbnails[2125735]=new thumbnail(2125735,"199491","Mousehole","CLIC_4442_cottages_mousehole_harbour_cornwall_thumb.jpg",130,87,1);thumbnails[2125740]=new thumbnail(2125740,"199491","Mousehole, Cornwall","CLIC_4444_view_over_mousehole_harbour_cornwall_thumb.jpg",130,87,1);thumbnails[5603554]=new thumbnail(5603554,"199491","Minack Theatre","CLIC_4544_thumb.jpg",130,88,1);thumbnails[1959870]=new thumbnail(1959870,"199491","Dawlish storm","CLIC_3718te_dawlish_storm_waves_over_the_wall_thumb.jpg",130,87,1);thumbnails[1959981]=new thumbnail(1959981,"199491","Teign Estuary","CLIC_2934te_Teign_Estuary_Shaldon_thumb.jpg",130,87,1);thumbnails[1785084]=new thumbnail(1785084,"199491","Under the platform","CLIC_3039te2_pigeon_arches_dawlish_promenade_thumb.jpg",130,87,1);thumbnails[1785143]=new thumbnail(1785143,"199491","Ulverston","CLIC_2562t_ulverston_cumbria_thumb.jpg",130,87,1);thumbnails[5605071]=new thumbnail(5605071,"199491","One Love Bar","CLIC_1409_16X24_one_love_bar_thumb.jpg",130,87,1);thumbnails[5605078]=new thumbnail(5605078,"199491","Happy","CLIC_1411te1_thumb.jpg",130,87,1);thumbnails[5603528]=new thumbnail(5603528,"199491","Exmouth","CLIC_004_exmouth_from_dawlish_warren_thumb.jpg",130,88,1);thumbnails[5608434]=new thumbnail(5608434,"165649","Tornado","CLIC_0174_thumb.jpg",130,88,1);thumbnails[3534422]=new thumbnail(3534422,"165649","King Edward 1","CLIC_7945_bw_torbay_express1_thumb.jpg",130,87,1);thumbnails[3180892]=new thumbnail(3180892,"165649","Torbay Express","CLIC_7945_torbay_express_thumb.jpg",130,87,1);thumbnails[3180893]=new thumbnail(3180893,"165649","King Class 6024","CLIC_7946_torbay_express_thumb.jpg",130,87,1);thumbnails[2875030]=new thumbnail(2875030,"165649","Tangmere ","CLIC_7403_t_tangmere_steam_engine_dawlish_thumb.jpg",130,86,1);thumbnails[2125699]=new thumbnail(2125699,"165649","Virgin Voyager ","CLIC_4669te_virgin_voyager_dawlish_high_seas_thumb.jpg",130,193,1);thumbnails[1959837]=new thumbnail(1959837,"165649","Winter storm at Dawlish ","CLIC_4001te_breakers_over_dawlish_railway_station_thumb.jpg",130,87,1);thumbnails[1959920]=new thumbnail(1959920,"165649","Summer Express","CLIC_2132tt_thumb.jpg",130,87,1);thumbnails[1959925]=new thumbnail(1959925,"165649","Class 37","CLIC_3474te_thumb.jpg",130,87,1);thumbnails[2125697]=new thumbnail(2125697,"165649","Braving waves","CLIC_4661te_first_great_western_dawlish_storm_thumb.jpg",130,87,1);thumbnails[3608179]=new thumbnail(3608179,"214721","Suilven","CLIC_Scot6022_assynt_shore_thumb.jpg",130,87,1);thumbnails[3541001]=new thumbnail(3541001,"214721","Glen Etive","Scot2005_CLIC_glen_etive_scotland_thumb.jpg",130,87,1);thumbnails[3541002]=new thumbnail(3541002,"214721","Loch Etive","Scot2051_CLIC_loch_etive_scotland_thumb.jpg",130,87,1);thumbnails[3541003]=new thumbnail(3541003,"214721","Garvie Bay","Scot6055_CLIC_assynt_beach_thumb.jpg",130,87,1);thumbnails[3541004]=new thumbnail(3541004,"214721","","Scot6045_CLIC_assynt_thumb.jpg",130,87,1);thumbnails[3541005]=new thumbnail(3541005,"214721","Suilven ","Scot6077_CLIC__suilven_assynt_scottish_highlands_thumb.jpg",130,87,1);thumbnails[3541006]=new thumbnail(3541006,"214721","Achinaird Bay","Scot6090_CLIC_achnahaird_bay_highlands_scotland_thumb.jpg",130,88,1);thumbnails[3541012]=new thumbnail(3541012,"214721","Cove near Alltan'abrahan","Scot8034_CLIC_beach_thumb.jpg",130,88,1);thumbnails[3541013]=new thumbnail(3541013,"214721","Loch Achall","Scot9009_CLIC_loch_achall_thumb.jpg",130,87,1);thumbnails[3534414]=new thumbnail(3534414,"214721","Winter journey","CLIC_9079_engine_to_aviemore_through_snow_scottish_highlands_thumb.jpg",130,87,1);thumbnails[3534417]=new thumbnail(3534417,"214721","Snowy glen","CLIC_9012_stream_and_snow_scottish_highlands_thumb.jpg",130,87,1);thumbnails[3510694]=new thumbnail(3510694,"214721","The old tree","Scot1036_CLIC_the_old_forest_scotland_12x8__thumb.jpg",130,195,1);thumbnails[3510721]=new thumbnail(3510721,"214721","Suilven, Assynt","Scot6063-CLIC_suilven_assynt_scottish_highlands_thumb.JPG",130,87,1);thumbnails[3513670]=new thumbnail(3513670,"214721","Glen Coe ","Scot1001_CLIC_glen_coe_scotland_in_snow_thumb.JPG",130,87,1);thumbnails[3513865]=new thumbnail(3513865,"214721","Oban Sunset","Scot4026_CLIC_oban_harbour_at_dusk_scotland_thumb.jpg",130,87,1);thumbnails[5605820]=new thumbnail(5605820,"214721","Snowy glen","CLIC_9082_snowy_glen_thumb.jpg",130,87,1);thumbnails[3841583]=new thumbnail(3841583,"214721","Black highland cow","CLIC_Scot7003_black_highland_cow_thumb.jpg",130,87,1);thumbnails[5605815]=new thumbnail(5605815,"214721","Stac Pollaidh","CLIC_7012_stac_pollaidh_thumb.jpg",130,87,1);thumbnails[3510717]=new thumbnail(3510717,"214721","Loch Etive","Scot2048_CLIC_loch_etive_scotland_thumb.jpg",130,87,1);thumbnails[3579022]=new thumbnail(3579022,"214721","The Ben","CLIC_3019_ben_nevis_scotland_thumb.jpg",130,87,1);thumbnails[3666019]=new thumbnail(3666019,"166863","The Parson and Clerk","CLIC_5384_parson_and_clerk_dawlish_devon_thumb.jpg",130,87,1);thumbnails[3643513]=new thumbnail(3643513,"166863","Burgh Island","CLIC_1949te_burgh_island_south_devon_thumb.jpg",130,87,1);thumbnails[3608177]=new thumbnail(3608177,"166863","Shell Cove","CLIC_9309_shell_cove_dawlish_thumb.jpg",130,88,1);thumbnails[3590273]=new thumbnail(3590273,"166863","Teignmouth Pier","CLIC_9199_teignmouth_pier_thumb.jpg",130,88,1);thumbnails[2271969]=new thumbnail(2271969,"166863","Breakwater","CLIC_2687_breakwater_dawlish_warren_thumb.jpg",130,87,1);thumbnails[5603830]=new thumbnail(5603830,"166863","Beach Huts","CLIC_4117te_beach_huts_coryton_cove_dawlish_38B38878-1D09-001F-9965C35FFA979E6D_thumb.jpg",130,87,1);thumbnails[1785067]=new thumbnail(1785067,"166863","Old posts","CLIC_2678te_old_posts_dawlish_warren_thumb.jpg",130,87,1);thumbnails[1785076]=new thumbnail(1785076,"166863","Into the light","CLIC_2707t_into_the_light_beach_at_dawn_thumb.jpg",130,88,1);thumbnails[5603534]=new thumbnail(5603534,"166863","Warren Beach","CLIC_2689_dawlish_warren_beach_devon_thumb.jpg",130,87,1);thumbnails[5603545]=new thumbnail(5603545,"166863","Old jetty","CLIC_2677te_thumb.jpg",130,87,1);thumbnails[3643492]=new thumbnail(3643492,"166863","North shore, Barbados","CLIC_1505tee_rocky_shore_north_shore_barbados_thumb.jpg",130,87,1);thumbnails[3643491]=new thumbnail(3643491,"166863","South coast beach","CLIC_1127_south_coast_barbados_hilton_beach_thumb.jpg",130,87,1);thumbnails[2908485]=new thumbnail(2908485,"166863","Exmouth Beach Huts","CLIC_7380_colours_exmouth_beach_huts_devon_thumb.jpg",130,86,1);thumbnails[3604273]=new thumbnail(3604273,"199748","Teignmouth dawn","CLIC_9184_teignmouth_dawn_thumb.jpg",130,193,1);thumbnails[2125750]=new thumbnail(2125750,"199748","Dawn over the Lizard","CLIC_4501_sunrise_over_the_lizard_cornwall_thumb.jpg",130,88,1);thumbnails[1785058]=new thumbnail(1785058,"199748","Sunrise from Warren Beach","CLIC_2666t_dawn_dawlish_warren_devon_thumb.jpg",130,87,1);thumbnails[1785060]=new thumbnail(1785060,"199748","Calm dawn","CLIC_2668t_dawn_over_the_sea_thumb.jpg",130,88,1);thumbnails[1785145]=new thumbnail(1785145,"199748","Sunset","CLIC_1382TE_sunset_sea_barbados_thumb.jpg",130,87,1);thumbnails[1785147]=new thumbnail(1785147,"199748","Sunset","CLIC_1438TE_evening_sea_retuning_home_at_sunset_barbados_thumb.jpg",130,87,1);var galleries=new Object();galleries[183227]=new gallery(183227,"1785133","Anthony's favourites","gallery",[5603466,3513809,5672810,5672823,4568348,5672010,5672002,1785133]);galleries[141375]=new gallery(141375,"5644536","Boats and harbours","gallery",[5644536,3643518,2903610,2903611,2489340,2126237,2126239,2125727,2125744,1959985,1960011,1960018,2190710,2898260]);galleries[199488]=new gallery(199488,"1785051","Black and white","gallery",[3534430,3180891,5603844,5603861,1785051]);galleries[199481]=new gallery(199481,"5091241","Dawlish Airshow","gallery",[5091204,5091239,5091241,5091245,5091298,5091301,5091351,5091354,3643486,2630491,2630504,2630510,2630518,2630526,2630529,2655613,5603505,5091304]);galleries[131688]=new gallery(131688,"1785139","Landscape","gallery",[2253127,1982618,1785123,1785126,1785139]);galleries[214907]=new gallery(214907,"3643502","Miscellany","gallery",[3643502,3639423,3639424,3639429,3510699,3513771,2898262,2607457,2253135,2023811,2016706,2903615]);galleries[199491]=new gallery(199491,"2125735","Places","gallery",[5644537,3643500,3035803,2190699,2125735,2125740,5603554,1959870,1959981,1785084,1785143,5605071,5605078,5603528]);galleries[165649]=new gallery(165649,"3180893","The Riviera Line","gallery",[5608434,3534422,3180892,3180893,2875030,2125699,1959837,1959920,1959925,2125697]);galleries[214721]=new gallery(214721,"3510717","Scotland","gallery",[3608179,3541001,3541002,3541003,3541004,3541005,3541006,3541012,3541013,3534414,3534417,3510694,3510721,3513670,3513865,5605820,3841583,5605815,3510717,3579022]);galleries[166863]=new gallery(166863,"3590273","Seaside","gallery",[3666019,3643513,3608177,3590273,2271969,5603830,1785067,1785076,5603534,5603545,3643492,3643491,2908485]);galleries[199748]=new gallery(199748,"1785058","Sunrise and sunset","gallery",[3604273,2125750,1785058,1785060,1785145,1785147]);var imageSets=new Object();imageSets[234854]="3608179,3513809,1959981,1785139";imageSets[1]="5644537,5644536,5603466,3590273,2125735,1959985,1785051";imageSets[2]="5644536,5091241,3643502,3590273,3510717,3180893,2125735,1785139,1785133,1785058,1785051";imageSets[3]="5672823,5672810,5672010,5672002,5644537,5644536,5608434,5605820,5605815,5605078,5605071,5603861,5603844,5603830,5603554,5603545,5603534,5603528,5603505,5603466,5091354,5091351,5091304,5091301,5091298,5091245,5091241,5091239,5091204,4568348,3841583,3666019,3643518,3643513,3643502,3643500,3643492,3643491,3643486,3639429,3639424,3639423,3608179,3608177,3604273,3590273,3579022,3541013,3541012,3541006";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/tonysteel/images";break}switch(a){case 1:b="http://www1.clikpic.com/tonysteel/images";break}switch(a){case 2:b="http://admin.clikpic.com/tonysteel/images";break}switch(a){case 24:b="http://tpc15/clikpic/tonysteel/images";break}switch(a){case 4:b="http://www.clikchurch.com/tonysteel/images";break}switch(a){case 5:b="http://www2.clikpic.com/tonysteel/images";break}switch(a){case 22:b="http://tpc5/clikpic/tonysteel/images";break}switch(a){case 23:b="http://tpc10/clikpic/tonysteel/images";break}switch(a){case 25:b="http://tpc16/clikpic/tonysteel/images";break}switch(a){case 15:b="http://www3.clikpic.com/tonysteel/images";break}switch(a){case 18:b="http://www4.clikpic.com/tonysteel/images";break}switch(a){case 19:b="http://www5.clikpic.com/tonysteel/images";break}switch(a){case 31:b="http://www7.clikpic.com/tonysteel/images";break}switch(a){case 32:b="http://admin2.clikpic.com/tonysteel/images";break}switch(a){case 33:b="http://www8.clikpic.com/tonysteel/images";break}switch(a){case 34:b="http://www9.clikpic.com/tonysteel/images";break}switch(a){case 35:b="http://admin3.clikpic.com/tonysteel/images";break}switch(a){case 37:b="http://admin4.clikpic.com/tonysteel/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="Anthony T Steel Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Image 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>Secure payment using PayPal.  Includes UK P&P </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="TONYSTEEL">';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 e=$("img#gallery"+c);e.parents(".thumbWrap").width(b.width);var a=e.siblings("h3").size()==1?e.siblings("h3"):e.parent(".thumbWrap").siblings("h3");var f=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));a.width(e.outerWidth(true)-f-d)}}}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+'")'})}}};