window.thumbnails = {};
															thumbnails[3512150] = clik.newPhoto({"id":3512150,"src":"Bembridge_Wingmill_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512150.html","width":130,"caption":"Bembridge Windmill","height":87});
															thumbnails[3512155] = clik.newPhoto({"id":3512155,"src":"Bembridge_Coast_Seawall_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512155.html","width":130,"caption":"Coast Seawall","height":87});
															thumbnails[3512182] = clik.newPhoto({"id":3512182,"src":"Bembridge_coast_Clouds_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512182.html","width":130,"caption":"Clouds","height":85});
															thumbnails[3512205] = clik.newPhoto({"id":3512205,"src":"Beach_enclave_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512205.html","width":130,"caption":"Beach enclave","height":87});
															thumbnails[3512209] = clik.newPhoto({"id":3512209,"src":"Lifeboat_pier_Bembridge_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512209.html","width":130,"caption":"Lifeboat pier Bembridge","height":85});
															thumbnails[3512218] = clik.newPhoto({"id":3512218,"src":"Horningsea_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512218.html","width":130,"caption":"Horningsea","height":87});
															thumbnails[3512224] = clik.newPhoto({"id":3512224,"src":"Icetrack_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512224.html","width":130,"caption":"Frozen lake","height":87});
															thumbnails[3512229] = clik.newPhoto({"id":3512229,"src":"Path_to_bridge_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512229.html","width":87,"caption":"Path to bridge","height":130});
															thumbnails[3512234] = clik.newPhoto({"id":3512234,"src":"Footbridge_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512234.html","width":87,"caption":"Footbridge","height":130});
															thumbnails[3512243] = clik.newPhoto({"id":3512243,"src":"Overgrown_gate_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512243.html","width":87,"caption":"Overgrown gate","height":130});
															thumbnails[3512248] = clik.newPhoto({"id":3512248,"src":"Petal_carpet_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512248.html","width":130,"caption":"Petal carpet","height":87});
															thumbnails[3512254] = clik.newPhoto({"id":3512254,"src":"Wier_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3512254.html","width":130,"caption":"Wier","height":87});
															thumbnails[3512272] = clik.newPhoto({"id":3512272,"src":"All_Saints_Church_Godshill_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3512272.html","width":130,"caption":"All Saints Church Godshill","height":87});
															thumbnails[3512275] = clik.newPhoto({"id":3512275,"src":"Bembridge_windmill_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3512275.html","width":87,"caption":"Bembridge windmill","height":130});
															thumbnails[3512281] = clik.newPhoto({"id":3512281,"src":"Shanklin_Old_Town_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3512281.html","width":130,"caption":"Shanklin Old Town","height":87});
															thumbnails[3512282] = clik.newPhoto({"id":3512282,"src":"Cottage_roof_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3512282.html","width":130,"caption":"Cottage roof","height":87});
															thumbnails[3512285] = clik.newPhoto({"id":3512285,"src":"Window_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3512285.html","width":78,"caption":"Window","height":130});
															thumbnails[3512287] = clik.newPhoto({"id":3512287,"src":"Frosty_Choycia_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_3512287.html","width":87,"caption":"Frosty Choycia","height":130});
															thumbnails[3512288] = clik.newPhoto({"id":3512288,"src":"Fungus_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_3512288.html","width":130,"caption":"Fungus","height":87});
															thumbnails[3512289] = clik.newPhoto({"id":3512289,"src":"Sunflower_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_3512289.html","width":130,"caption":"Sunflower","height":87});
															thumbnails[3512293] = clik.newPhoto({"id":3512293,"src":"Danger_snowball_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_3512293.html","width":130,"caption":"Danger snowball","height":87});
															thumbnails[3512297] = clik.newPhoto({"id":3512297,"src":"Telephone_pole_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_3512297.html","width":130,"caption":"Telephone pole","height":87});
															thumbnails[3512300] = clik.newPhoto({"id":3512300,"src":"Twin_bears_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_3512300.html","width":130,"caption":"Twin bears","height":87});
															thumbnails[3512308] = clik.newPhoto({"id":3512308,"src":"Coloured_board_Blue_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_3512308.html","width":130,"caption":"Coloured board (Blue)","height":87});
															thumbnails[3512328] = clik.newPhoto({"id":3512328,"src":"Coloured_board_Red_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_3512328.html","width":130,"caption":"Coloured board (Red)","height":87});
															thumbnails[3512339] = clik.newPhoto({"id":3512339,"src":"Copy-of-Ice-patern_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_3512339.html","width":130,"caption":"Ice patern","height":87});
															thumbnails[3512354] = clik.newPhoto({"id":3512354,"src":"Gravel_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_3512354.html","width":87,"caption":"Gravel","height":130});
															thumbnails[3512364] = clik.newPhoto({"id":3512364,"src":"Dragonfly_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3512364.html","width":87,"caption":"Dragonfly","height":130});
															thumbnails[3512367] = clik.newPhoto({"id":3512367,"src":"Magpie_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3512367.html","width":130,"caption":"Magpie","height":87});
															thumbnails[3512368] = clik.newPhoto({"id":3512368,"src":"Robin_on_song_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3512368.html","width":130,"caption":"Robin on song","height":87});
															thumbnails[3512371] = clik.newPhoto({"id":3512371,"src":"Live_Steam_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512371.html","width":130,"caption":"Live Steam","height":87});
															thumbnails[3512372] = clik.newPhoto({"id":3512372,"src":"Saddle_tank_engine_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512372.html","width":130,"caption":"Saddle tank engine (Red)","height":87});
															thumbnails[3512375] = clik.newPhoto({"id":3512375,"src":"Saddle_tank_engine_green_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512375.html","width":87,"caption":"Saddle tank engine (green)","height":130});
															thumbnails[3512376] = clik.newPhoto({"id":3512376,"src":"Signal_box_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512376.html","width":130,"caption":"Signal box","height":87});
															thumbnails[3512421] = clik.newPhoto({"id":3512421,"src":"Pannier_tank_engine_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512421.html","width":130,"caption":"Pannier tank engine","height":87});
															thumbnails[3512424] = clik.newPhoto({"id":3512424,"src":"Workmans_hut_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3512424.html","width":130,"caption":"Workmans hut","height":87});
															thumbnails[3512539] = clik.newPhoto({"id":3512539,"src":"no-2-hawkette_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3512539.html","width":98,"caption":"Kodak no 2 Hawkette","height":130});
															thumbnails[3512542] = clik.newPhoto({"id":3512542,"src":"coronet-cub_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3512542.html","width":130,"caption":"Coronet Cub","height":98});
															thumbnails[3512546] = clik.newPhoto({"id":3512546,"src":"ensign-box_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3512546.html","width":111,"caption":"Ensign box camera","height":130});
															thumbnails[3513745] = clik.newPhoto({"id":3513745,"src":"brownie-flash-IV_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3513745.html","width":110,"caption":"Brownie Flash IV","height":130});
															thumbnails[3513748] = clik.newPhoto({"id":3513748,"src":"purma-special_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3513748.html","width":130,"caption":"Purma Special","height":84});
															thumbnails[3521286] = clik.newPhoto({"id":3521286,"src":"Mute swan_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3521286.html","width":87,"caption":"Mute swan","height":130});
															thumbnails[3527385] = clik.newPhoto({"id":3527385,"src":"Kestrel_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3527385.html","width":130,"caption":"Kestrel hovering","height":87});
															thumbnails[3527395] = clik.newPhoto({"id":3527395,"src":"Fountains-Abbey_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3527395.html","width":130,"caption":"Fountains Abbey","height":83});
															thumbnails[3527433] = clik.newPhoto({"id":3527433,"src":"Fountains-Abbey-2_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3527433.html","width":130,"caption":"Fountains Abbey","height":87});
															thumbnails[3527435] = clik.newPhoto({"id":3527435,"src":"Greenhouse_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3527435.html","width":98,"caption":"Greenhouse","height":130});
															thumbnails[3527437] = clik.newPhoto({"id":3527437,"src":"Wisborough-Green-Church_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_3527437.html","width":130,"caption":"Wisborough-Green-Church","height":98});
															thumbnails[3527440] = clik.newPhoto({"id":3527440,"src":"Autumn-Treescape_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3527440.html","width":130,"caption":"Autumn treescape","height":87});
															thumbnails[3527442] = clik.newPhoto({"id":3527442,"src":"Beach-silhouette_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3527442.html","width":130,"caption":"Beach silhouette","height":76});
															thumbnails[3527444] = clik.newPhoto({"id":3527444,"src":"Shore_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3527444.html","width":130,"caption":"Shore","height":87});
															thumbnails[3527446] = clik.newPhoto({"id":3527446,"src":"Thoresby-Park_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3527446.html","width":130,"caption":"Thoresby Park","height":98});
															thumbnails[3527448] = clik.newPhoto({"id":3527448,"src":"Yarmouth-Regatta-Isle-Of-Wi_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3527448.html","width":130,"caption":"Yarmouth-Regatta-Isle-Of-Wight","height":93});
															thumbnails[3527450] = clik.newPhoto({"id":3527450,"src":"Gaffers day Yarmouth Isle of Wight_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_3527450.html","width":130,"caption":"Gaffers day Yarmouth Isle of Wight","height":98});
															thumbnails[3527452] = clik.newPhoto({"id":3527452,"src":"Engine-driver-South-Devon-R_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3527452.html","width":87,"caption":"Engine-driver-South-Devon-Railway","height":130});
															thumbnails[3527455] = clik.newPhoto({"id":3527455,"src":"Trams_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3527455.html","width":87,"caption":"Trams","height":130});
															thumbnails[3527456] = clik.newPhoto({"id":3527456,"src":"Trolley-Bus_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3527456.html","width":130,"caption":"Trolley Bus","height":87});
															thumbnails[3527457] = clik.newPhoto({"id":3527457,"src":"Trolley-Bus-2_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3527457.html","width":87,"caption":"Trolley Bus","height":130});
															thumbnails[3527459] = clik.newPhoto({"id":3527459,"src":"Water-stop_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_3527459.html","width":87,"caption":"Water stop Isle of Wight Railway","height":130});
															thumbnails[3527494] = clik.newPhoto({"id":3527494,"src":"Sanderson_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3527494.html","width":130,"caption":"Sanderson","height":87});
															thumbnails[3572840] = clik.newPhoto({"id":3572840,"src":"Daffodil_Narcissus_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_3572840.html","width":87,"caption":"Daffodil Narcissus","height":130});
															thumbnails[3593557] = clik.newPhoto({"id":3593557,"src":"Cycle-footbridge-Milton1_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_3593557.html","width":87,"caption":"Cycle and footbridge, Milton","height":130});
															thumbnails[3593566] = clik.newPhoto({"id":3593566,"src":"IMG_6599_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_3593566.html","width":87,"caption":"Oak leaf","height":130});
															thumbnails[3593570] = clik.newPhoto({"id":3593570,"src":"IMG_0323_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_3593570.html","width":130,"caption":"Goose","height":87});
															thumbnails[3593896] = clik.newPhoto({"id":3593896,"src":"Ilford_Advocate_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3593896.html","width":130,"caption":"Ilford Advocate","height":84});
															thumbnails[3593915] = clik.newPhoto({"id":3593915,"src":"Iloca_stereo_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3593915.html","width":130,"caption":"Iloca stereo","height":68});
															thumbnails[3593924] = clik.newPhoto({"id":3593924,"src":"Rolleicord_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3593924.html","width":96,"caption":"Rolleicord twin lens reflex","height":130});
															thumbnails[3593929] = clik.newPhoto({"id":3593929,"src":"shew_thumb.jpg","galleries_id":214791,"server_id":15,"link":"photo_3593929.html","width":130,"caption":"Shew","height":101});
															thumbnails[8807285] = clik.newPhoto({"id":8807285,"src":"The_long_wait_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8807285.html","width":130,"caption":"Long Wait","height":62});
															thumbnails[8807292] = clik.newPhoto({"id":8807292,"src":"Water_Iris_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8807292.html","width":87,"caption":"Water Iris","height":130});
															thumbnails[8807296] = clik.newPhoto({"id":8807296,"src":"Viola_flower_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8807296.html","width":87,"caption":"Viole Flower","height":130});
															thumbnails[8807299] = clik.newPhoto({"id":8807299,"src":"Vent_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8807299.html","width":82,"caption":"Vent","height":130});
															thumbnails[8807304] = clik.newPhoto({"id":8807304,"src":"Taking_off_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8807304.html","width":130,"caption":"Taking Off","height":81});
															thumbnails[8807353] = clik.newPhoto({"id":8807353,"src":"Storm_cloud_over_Castle_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8807353.html","width":130,"caption":"Storm cloud over Castle","height":87});
															thumbnails[8807357] = clik.newPhoto({"id":8807357,"src":"Siberian_Husky_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8807357.html","width":94,"caption":"Siberian Husky","height":130});
															thumbnails[8807359] = clik.newPhoto({"id":8807359,"src":"Round_church_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8807359.html","width":130,"caption":"Round Church","height":99});
															thumbnails[8807361] = clik.newPhoto({"id":8807361,"src":"Poppies_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8807361.html","width":130,"caption":"Poppies","height":85});
															thumbnails[8807362] = clik.newPhoto({"id":8807362,"src":"Oramge_drinks_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8807362.html","width":130,"caption":"Orange Drinks","height":87});
															thumbnails[8807364] = clik.newPhoto({"id":8807364,"src":"Myddelton_arms_roof_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8807364.html","width":130,"caption":"Mydleton Arms Roof","height":88});
															thumbnails[8807366] = clik.newPhoto({"id":8807366,"src":"MG_J1_Saloonette_c1933_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8807366.html","width":130,"caption":"MG Saloonette","height":108});
															thumbnails[8807367] = clik.newPhoto({"id":8807367,"src":"Light_Sussex_cockerel_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8807367.html","width":129,"caption":"Light Sussex Cockerel","height":130});
															thumbnails[8807371] = clik.newPhoto({"id":8807371,"src":"Horse_chestnut_candle_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8807371.html","width":87,"caption":"Horse Chustnut Candle","height":130});
															thumbnails[8807376] = clik.newPhoto({"id":8807376,"src":"Garden_windmills_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8807376.html","width":130,"caption":"Garden Windmills","height":81});
															thumbnails[8807380] = clik.newPhoto({"id":8807380,"src":"Floodlit_castle_wall_and_tower_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8807380.html","width":87,"caption":"Floodlit Tower","height":130});
															thumbnails[8807384] = clik.newPhoto({"id":8807384,"src":"Dalek_collecting_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8807384.html","width":81,"caption":"Dalek collecting","height":130});
															thumbnails[8807388] = clik.newPhoto({"id":8807388,"src":"Coot_chick_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8807388.html","width":130,"caption":"Coot Chick","height":108});
															thumbnails[8807392] = clik.newPhoto({"id":8807392,"src":"Coloured_glass_reflection_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8807392.html","width":87,"caption":"Coloured Glass Reflection","height":130});
															thumbnails[8807395] = clik.newPhoto({"id":8807395,"src":"Clock_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8807395.html","width":130,"caption":"Clock","height":87});
															thumbnails[8807397] = clik.newPhoto({"id":8807397,"src":"Carved_wood_objects_on_market_stall_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8807397.html","width":111,"caption":"Carved Wood Objects","height":130});
															thumbnails[8807398] = clik.newPhoto({"id":8807398,"src":"Car_detail_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8807398.html","width":107,"caption":"Car Detail","height":130});
															thumbnails[8807399] = clik.newPhoto({"id":8807399,"src":"Canoes_at_Bosham_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8807399.html","width":130,"caption":"Canoes","height":92});
															thumbnails[8807401] = clik.newPhoto({"id":8807401,"src":"Bikes_for_sale_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8807401.html","width":111,"caption":"Bikes for Sale","height":130});
															thumbnails[8816589] = clik.newPhoto({"id":8816589,"src":"Sunflower_at_night_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8816589.html","width":87,"caption":"Sunflower at night","height":130});
															thumbnails[8816591] = clik.newPhoto({"id":8816591,"src":"Raindrop_on_Symphoricarpos_Hancock_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8816591.html","width":130,"caption":"Raindrop on Symphoricarpos Hancock","height":87});
															thumbnails[8816607] = clik.newPhoto({"id":8816607,"src":"Rabbit_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8816607.html","width":122,"caption":"Rabbit","height":130});
															thumbnails[8816609] = clik.newPhoto({"id":8816609,"src":"Carrots_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8816609.html","width":130,"caption":"Carrots","height":50});
															thumbnails[8816612] = clik.newPhoto({"id":8816612,"src":"Srawberries_in_punnets_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8816612.html","width":130,"caption":"Strawberries in punnets","height":79});
															thumbnails[8816731] = clik.newPhoto({"id":8816731,"src":"Four_phone_boxes_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8816731.html","width":130,"caption":"Four Phone Boxes","height":87});
															thumbnails[8816734] = clik.newPhoto({"id":8816734,"src":"Manikin_on_balcony_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8816734.html","width":87,"caption":"Manikin on balcony","height":130});
															thumbnails[8816737] = clik.newPhoto({"id":8816737,"src":"Street_performer_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8816737.html","width":86,"caption":"Street performer","height":130});
															thumbnails[8816738] = clik.newPhoto({"id":8816738,"src":"Wind_power_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8816738.html","width":84,"caption":"Wind turbine","height":130});
															thumbnails[8923192] = clik.newPhoto({"id":8923192,"src":"B_of_B_Memorial_flight_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8923192.html","width":130,"caption":"Battle of Britain Memorial Flight","height":98});
															thumbnails[8923198] = clik.newPhoto({"id":8923198,"src":"Bicycle_shadows_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8923198.html","width":130,"caption":"Bicycle shadows","height":63});
															thumbnails[8923203] = clik.newPhoto({"id":8923203,"src":"Blue_glasses_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8923203.html","width":130,"caption":"Blue glasses","height":65});
															thumbnails[8924449] = clik.newPhoto({"id":8924449,"src":"Boats_for_hire_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924449.html","width":130,"caption":"Boats for hire","height":111});
															thumbnails[8924454] = clik.newPhoto({"id":8924454,"src":"Bodelwyddan_Castle_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8924454.html","width":130,"caption":"Bodelwyddan Castle","height":87});
															thumbnails[8924460] = clik.newPhoto({"id":8924460,"src":"Bognor_Regis_sea_front_and_beach_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924460.html","width":130,"caption":"Bognor Regis sea front and beach","height":86});
															thumbnails[8924463] = clik.newPhoto({"id":8924463,"src":"Bosham_harbour_at_high_tide_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924463.html","width":87,"caption":"Bosham harbour at high tide","height":130});
															thumbnails[8924465] = clik.newPhoto({"id":8924465,"src":"Busker_relaxing_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924465.html","width":93,"caption":"Busker relaxing","height":130});
															thumbnails[8924468] = clik.newPhoto({"id":8924468,"src":"Chichester_Cathedral_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8924468.html","width":130,"caption":"Chichester Cathedral","height":87});
															thumbnails[8924473] = clik.newPhoto({"id":8924473,"src":"Childs_swings_Bognor_sea_front_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924473.html","width":130,"caption":"Childs swings Bognor sea front","height":91});
															thumbnails[8924475] = clik.newPhoto({"id":8924475,"src":"Childs_windmills_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924475.html","width":130,"caption":"","height":96});
															thumbnails[8924476] = clik.newPhoto({"id":8924476,"src":"City_cycling_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8924476.html","width":130,"caption":"City cycling","height":85});
															thumbnails[8924483] = clik.newPhoto({"id":8924483,"src":"Conwy_Bay_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924483.html","width":130,"caption":"Conwy Bay","height":98});
															thumbnails[8924485] = clik.newPhoto({"id":8924485,"src":"Cornfield_a_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924485.html","width":130,"caption":"Cornfield","height":87});
															thumbnails[8924522] = clik.newPhoto({"id":8924522,"src":"Crossing_telephone_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924522.html","width":87,"caption":"Crossing telephone","height":130});
															thumbnails[8924526] = clik.newPhoto({"id":8924526,"src":"Cycle_foot_bridge_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924526.html","width":87,"caption":"Cycle foot bridge","height":130});
															thumbnails[8924527] = clik.newPhoto({"id":8924527,"src":"Empty_coffee_cup_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924527.html","width":130,"caption":"Empty coffee cup","height":98});
															thumbnails[8924529] = clik.newPhoto({"id":8924529,"src":"Explosion_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8924529.html","width":86,"caption":"Explosion","height":130});
															thumbnails[8924531] = clik.newPhoto({"id":8924531,"src":"Flag_Iris_thumb.jpg","galleries_id":214784,"server_id":15,"link":"photo_8924531.html","width":87,"caption":"Flag Iris","height":130});
															thumbnails[8924533] = clik.newPhoto({"id":8924533,"src":"Great_St_Marys_Church_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8924533.html","width":130,"caption":"Great St Marys Church","height":112});
															thumbnails[8924535] = clik.newPhoto({"id":8924535,"src":"Grizzle_on_bed_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8924535.html","width":130,"caption":"Grizzle on bed","height":87});
															thumbnails[8924537] = clik.newPhoto({"id":8924537,"src":"Gull_on_post_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8924537.html","width":87,"caption":"Gull on post","height":130});
															thumbnails[8924539] = clik.newPhoto({"id":8924539,"src":"Lifebelt_Bognor_sea_front_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924539.html","width":89,"caption":"Lifebelt Bognor sea front","height":130});
															thumbnails[8924541] = clik.newPhoto({"id":8924541,"src":"Lopped_tree_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924541.html","width":87,"caption":"Lopped tree","height":130});
															thumbnails[8924543] = clik.newPhoto({"id":8924543,"src":"Marble_Church_Bodelwyddan_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8924543.html","width":87,"caption":"Marble Church Bodelwyddan","height":130});
															thumbnails[8924545] = clik.newPhoto({"id":8924545,"src":"Milton_in_winter_snow_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8924545.html","width":130,"caption":"Milton in winter snow","height":99});
															thumbnails[8927120] = clik.newPhoto({"id":8927120,"src":"Milton_in_winter_snow1_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927120.html","width":130,"caption":"Milton in winter snow","height":99});
															thumbnails[8927123] = clik.newPhoto({"id":8927123,"src":"Mute_swan_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8927123.html","width":130,"caption":"Mute swan","height":87});
															thumbnails[8927126] = clik.newPhoto({"id":8927126,"src":"Old_style_bike_thumb.jpg","galleries_id":214786,"server_id":15,"link":"photo_8927126.html","width":129,"caption":"Old style bike","height":130});
															thumbnails[8927132] = clik.newPhoto({"id":8927132,"src":"performer_interacting_with_member_of_public_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927132.html","width":85,"caption":"Street performer interacting with member of public","height":130});
															thumbnails[8927134] = clik.newPhoto({"id":8927134,"src":"Porthole_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8927134.html","width":130,"caption":"Porthole","height":87});
															thumbnails[8927136] = clik.newPhoto({"id":8927136,"src":"Round_church_D17881C3-24E8-5EC4-4F051EA23845B752_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8927136.html","width":130,"caption":"Round church Cambridge","height":99});
															thumbnails[8927142] = clik.newPhoto({"id":8927142,"src":"Ruthin_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927142.html","width":87,"caption":"Ruthin","height":130});
															thumbnails[8927145] = clik.newPhoto({"id":8927145,"src":"Ruthin_Castle_remains_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927145.html","width":130,"caption":"Ruthin Castle remains","height":87});
															thumbnails[8927150] = clik.newPhoto({"id":8927150,"src":"Six_is_a_good_brood_thumb.jpg","galleries_id":214785,"server_id":15,"link":"photo_8927150.html","width":87,"caption":"Six is a good brood","height":130});
															thumbnails[8927153] = clik.newPhoto({"id":8927153,"src":"South_Downs_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927153.html","width":130,"caption":"South Downs","height":86});
															thumbnails[8927155] = clik.newPhoto({"id":8927155,"src":"Spectacles_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927155.html","width":130,"caption":"Spectacles","height":87});
															thumbnails[8927176] = clik.newPhoto({"id":8927176,"src":"St_Johns_Innovation_Centre_Cambridge_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8927176.html","width":130,"caption":"St Johns Innovation Centre Cambridge","height":91});
															thumbnails[8927181] = clik.newPhoto({"id":8927181,"src":"St._Michael_and_All_Angels_Lambourn_Oxford_thumb.jpg","galleries_id":214330,"server_id":15,"link":"photo_8927181.html","width":103,"caption":"St. Michael and All Angels Lambourn Oxford","height":130});
															thumbnails[8927185] = clik.newPhoto({"id":8927185,"src":"Street_manikin_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927185.html","width":85,"caption":"Street manikin","height":130});
															thumbnails[8927186] = clik.newPhoto({"id":8927186,"src":"Street_sales_person_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927186.html","width":130,"caption":"Street sales person","height":92});
															thumbnails[8927188] = clik.newPhoto({"id":8927188,"src":"Sunset_over_Arun_valley_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927188.html","width":130,"caption":"Sunset over Arun valley","height":87});
															thumbnails[8927190] = clik.newPhoto({"id":8927190,"src":"Swans_in_fog_thumb.JPG","galleries_id":214785,"server_id":15,"link":"photo_8927190.html","width":130,"caption":"Swans in fog","height":98});
															thumbnails[8927192] = clik.newPhoto({"id":8927192,"src":"Time_thumb.jpg","galleries_id":214789,"server_id":15,"link":"photo_8927192.html","width":130,"caption":"Time","height":87});
															thumbnails[8927194] = clik.newPhoto({"id":8927194,"src":"Tree_by_lake_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927194.html","width":87,"caption":"Tree by lake","height":130});
															thumbnails[8927196] = clik.newPhoto({"id":8927196,"src":"Turkshead_on_narrow_boat_bow_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927196.html","width":130,"caption":"Turkshead on narrow boat bow","height":87});
															thumbnails[8927199] = clik.newPhoto({"id":8927199,"src":"vandalised_public_phone_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927199.html","width":87,"caption":"vandalised public phone","height":130});
															thumbnails[8927209] = clik.newPhoto({"id":8927209,"src":"Weahtervane_thumb.jpg","galleries_id":214790,"server_id":15,"link":"photo_8927209.html","width":130,"caption":"Weathervane","height":83});
															thumbnails[8927210] = clik.newPhoto({"id":8927210,"src":"White_cloud_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927210.html","width":130,"caption":"White cloud","height":87});
															thumbnails[8927212] = clik.newPhoto({"id":8927212,"src":"Woody_knoll_thumb.jpg","galleries_id":214329,"server_id":15,"link":"photo_8927212.html","width":130,"caption":"Woody knoll","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[214329] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_214329.html","maxRecords":0.0,"photoIDs":[3512150.0,3512155.0,3512182.0,3512205.0,3512209.0,3512218.0,3512224.0,3512229.0,3512234.0,3512243.0,3512248.0,3512254.0,3527440.0,3527442.0,3527444.0,3527446.0,3527448.0,3593557.0,8924460.0,8924463.0,8924483.0,8924485.0,8924539.0,8924541.0,8924545.0,8927120.0,8927142.0,8927145.0,8927153.0,8927188.0,8927194.0,8927210.0,8927212.0],"skipIndex":0,"section_code":"gallery","featured_images":3512218.0,"id":214329,"singleSection":false});				  						galleries[214330] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buildings","link":"gallery_214330.html","maxRecords":0.0,"photoIDs":[3512272.0,3512275.0,3512281.0,3512282.0,3512285.0,3527395.0,3527433.0,3527435.0,3527437.0,8807353.0,8807359.0,8807364.0,8807380.0,8924454.0,8924468.0,8924533.0,8924543.0,8927136.0,8927176.0,8927181.0],"skipIndex":0,"section_code":"gallery","featured_images":"8807380,8807364,8807359,8807353","id":214330,"singleSection":false});				  						galleries[214784] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flora","link":"gallery_214784.html","maxRecords":0.0,"photoIDs":[3512287.0,3512288.0,3512289.0,3572840.0,3593566.0,8807292.0,8807296.0,8807361.0,8807371.0,8816589.0,8816591.0,8924531.0],"skipIndex":0,"section_code":"gallery","featured_images":"8816591,8816589,8807371,8807361,8807296,8807292","id":214784,"singleSection":false});				  						galleries[214785] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_214785.html","maxRecords":0.0,"photoIDs":[3512364.0,3512367.0,3512368.0,3521286.0,3527385.0,3593570.0,8807304.0,8807357.0,8807367.0,8807388.0,8816607.0,8924537.0,8927123.0,8927150.0,8927190.0],"skipIndex":0,"section_code":"gallery","featured_images":"8816607,8807388,8807357","id":214785,"singleSection":false});				  						galleries[214786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Transport","link":"gallery_214786.html","maxRecords":0.0,"photoIDs":[3512371.0,3512372.0,3512375.0,3512376.0,3512421.0,3512424.0,3527452.0,3527455.0,3527456.0,3527457.0,3527459.0,8807366.0,8807399.0,8807401.0,8923192.0,8923198.0,8924476.0,8927126.0],"skipIndex":0,"section_code":"gallery","featured_images":"8807401,8807399,8807366","id":214786,"singleSection":false});				  						galleries[214789] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_214789.html","maxRecords":0.0,"photoIDs":[3512308.0,3512328.0,3512339.0,3512354.0,8807299.0,8807362.0,8807376.0,8807392.0,8807398.0,8816609.0,8816612.0,8924529.0,8927134.0,8927192.0],"skipIndex":0,"section_code":"gallery","featured_images":"8816612,8816609,8807398,8807392,8807376,8807362,8807299","id":214789,"singleSection":false});				  						galleries[214791] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Old Cameras","link":"gallery_214791.html","maxRecords":0.0,"photoIDs":[3512539.0,3512542.0,3512546.0,3513745.0,3513748.0,3527494.0,3593896.0,3593915.0,3593924.0,3593929.0],"skipIndex":0,"section_code":"gallery","featured_images":"3593929,3593924,3593915,3593896,3527494,3513748,3513745,3512546,3512542,3512539","id":214791,"singleSection":false});				  						galleries[214790] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General","link":"gallery_214790.html","maxRecords":0.0,"photoIDs":[3512293.0,3512297.0,3512300.0,3527450.0,8807285.0,8807384.0,8807395.0,8807397.0,8816731.0,8816734.0,8816737.0,8816738.0,8923203.0,8924449.0,8924465.0,8924473.0,8924475.0,8924522.0,8924526.0,8924527.0,8924535.0,8927132.0,8927155.0,8927185.0,8927186.0,8927196.0,8927199.0,8927209.0],"skipIndex":0,"section_code":"gallery","featured_images":"8816738,8816737,8816734,8816731,8807395,8807384,8807285","id":214790,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8927212,8927210,8927209,8927199,8927196,8927194,8927192,8927190,8927188,8927186,8927185,8927181,8927176,8927155,8927153,8927150,8927145,8927142,8927136,8927134,8927132,8927126,8927123,8927120,8924545,8924543,8924541,8924539,8924537,8924535,8924533,8924531,8924529,8924527,8924526,8924522,8924485,8924483,8924476,8924473,8924468,8924465,8924463,8924460,8924454,8924449,8923203,8923198,8923192,8816738,8816737,8816734,8816731,8816612,8816609,8816607,8816591,8816589,8807401,8807399,8807398,8807395,8807392,8807388,8807384,8807380,8807376,8807371,8807366,8807364,8807362,8807361,8807359,8807357,8807353,8807299,8807296,8807292,8807285,3593896,3593557,3527494,3527459,3527457,3527456,3527455,3527452,3527450,3527448,3527446,3527444,3527442,3527440,3527437,3527435,3527433,3527395,3527385,3521286,3513748,3513745,3512539,3512421,3512371,3512367,3512328,3512300,3512289,3512281,3512272,3512229,3512218,3512182,3512150';
imageSets[2] = '8816738,8816737,8816734,8816731,8816612,8816609,8816607,8816591,8816589,8807401,8807399,8807398,8807395,8807392,8807388,8807384,8807380,8807376,8807371,8807366,8807364,8807362,8807361,8807359,8807357,8807353,8807299,8807296,8807292,8807285,3512218';
imageSets[3] = '8927212,8927210,8927209,8927199,8927196,8927194,8927192,8927190,8927188,8927186,8927185,8927181,8927176,8927155,8927153,8927150,8927145,8927142,8927136,8927134,8927132,8927126,8927123,8927120,8924545,8924543,8924541,8924539,8924537,8924535,8924533,8924531,8924529,8924527,8924526,8924522,8924485,8924483,8924476,8924475,8924473,8924468,8924465,8924463,8924460,8924454,8924449,8923203,8923198,8923192';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/allanbell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/allanbell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/allanbell/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'ABELLPHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

