window.thumbnails = {};
															thumbnails[5879902] = clik.newPhoto({"id":5879902,"src":"Church_on_the_hill_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"'The Church on the hill'","height":93});
															thumbnails[5582467] = clik.newPhoto({"id":5582467,"src":"Thailand_lake_web_image1_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_5582467.html","width":130,"caption":"Mapprachan, Chon Buri<br>\r\n","height":75});
															thumbnails[5582470] = clik.newPhoto({"id":5582470,"src":"Nong_Nooch_Gardens_Thailand_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_5582470.html","width":130,"caption":"Nong Nooch<br>\r\n","height":85});
															thumbnails[5603544] = clik.newPhoto({"id":5603544,"src":"Brevent_panorama1_thumb.jpg","galleries_id":316776,"server_id":32,"link":"photo_5603544.html","width":130,"caption":"","height":48});
															thumbnails[5603550] = clik.newPhoto({"id":5603550,"src":"Alps_thumb.jpg","galleries_id":316776,"server_id":32,"link":"photo_5603550.html","width":91,"caption":"","height":130});
															thumbnails[5604185] = clik.newPhoto({"id":5604185,"src":"Alps_Panorama_2_thumb.jpg","galleries_id":316776,"server_id":32,"link":"photo_5604185.html","width":130,"caption":"","height":40});
															thumbnails[5702601] = clik.newPhoto({"id":5702601,"src":"Two_Boys_potrait_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5702601.html","width":130,"caption":"'Brothers'","height":107});
															thumbnails[5702683] = clik.newPhoto({"id":5702683,"src":"Einstein_mod_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5702683.html","width":109,"caption":"'Portrait of a genius'","height":130});
															thumbnails[5702875] = clik.newPhoto({"id":5702875,"src":"Looking_back_mod__A412_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5702875.html","width":92,"caption":"'Looking back'","height":130});
															thumbnails[5702885] = clik.newPhoto({"id":5702885,"src":"Tricky_Pockets_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5702885.html","width":96,"caption":"'Tricky Pockets'","height":130});
															thumbnails[5702968] = clik.newPhoto({"id":5702968,"src":"Portrait_of_Jo_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5702968.html","width":130,"caption":"'Siblings'","height":92});
															thumbnails[5703410] = clik.newPhoto({"id":5703410,"src":"Dog_on_the_beach_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703410.html","width":130,"caption":"'Running for Fun'","height":80});
															thumbnails[5703420] = clik.newPhoto({"id":5703420,"src":"Newtown_web_image_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703420.html","width":130,"caption":"Newtown Isle Of Wight","height":85});
															thumbnails[5703439] = clik.newPhoto({"id":5703439,"src":"Freshwater_Bay_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703439.html","width":130,"caption":"Freshwater Bay","height":85});
															thumbnails[5703625] = clik.newPhoto({"id":5703625,"src":"Matt_and_Scott_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703625.html","width":130,"caption":"Afternoon Sun","height":90});
															thumbnails[5703633] = clik.newPhoto({"id":5703633,"src":"Golden_glow_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703633.html","width":130,"caption":"","height":96});
															thumbnails[5703649] = clik.newPhoto({"id":5703649,"src":"Golden_sands_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5703649.html","width":130,"caption":"","height":83});
															thumbnails[5705260] = clik.newPhoto({"id":5705260,"src":"I_O_W_sands_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5705260.html","width":130,"caption":"'Low Tide'","height":83});
															thumbnails[5705266] = clik.newPhoto({"id":5705266,"src":"Boat_in_the_bay_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5705266.html","width":92,"caption":"Boat in the Bay","height":130});
															thumbnails[5705273] = clik.newPhoto({"id":5705273,"src":"St_Marys_Church_Fownhope_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5705273.html","width":79,"caption":"St Mary's Church ","height":130});
															thumbnails[5705315] = clik.newPhoto({"id":5705315,"src":"Waiting_for_the_tide_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5705315.html","width":130,"caption":"'Waiting for the Tide'","height":98});
															thumbnails[5705351] = clik.newPhoto({"id":5705351,"src":"Golden-Sunlight_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5705351.html","width":130,"caption":"'Autumn Sunlight'","height":98});
															thumbnails[5706261] = clik.newPhoto({"id":5706261,"src":"Untitled_Panorama1_thumb.jpg","galleries_id":316776,"server_id":32,"link":"photo_5706261.html","width":130,"caption":"'View from the Top'","height":46});
															thumbnails[5792452] = clik.newPhoto({"id":5792452,"src":"Clew_Bay_small_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792452.html","width":130,"caption":"Clew Bay","height":116});
															thumbnails[5792453] = clik.newPhoto({"id":5792453,"src":"Famine_Ship_reduced_contrast_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792453.html","width":130,"caption":"Famine Ship","height":101});
															thumbnails[5792456] = clik.newPhoto({"id":5792456,"src":"Road_to_Lenane_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792456.html","width":130,"caption":"Road to Lenane","height":94});
															thumbnails[5792457] = clik.newPhoto({"id":5792457,"src":"Galway_Bay_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792457.html","width":130,"caption":"Galway Bay","height":104});
															thumbnails[5792458] = clik.newPhoto({"id":5792458,"src":"Emerald_Isle_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792458.html","width":124,"caption":"Emerald Isle","height":130});
															thumbnails[5792465] = clik.newPhoto({"id":5792465,"src":"Elizabeth_Hotel_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792465.html","width":130,"caption":"Elizabeth Hotel Naxos","height":101});
															thumbnails[5792468] = clik.newPhoto({"id":5792468,"src":"Chapel_Royal_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5792468.html","width":91,"caption":"Chapel Royal","height":130});
															thumbnails[5793230] = clik.newPhoto({"id":5793230,"src":"Richmond_Hill_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793230.html","width":108,"caption":"View from Richmond Hill","height":130});
															thumbnails[5793233] = clik.newPhoto({"id":5793233,"src":"Lion_Gate_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793233.html","width":130,"caption":"Lion Gate Hampton Court","height":121});
															thumbnails[5793234] = clik.newPhoto({"id":5793234,"src":"London_Eye_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793234.html","width":130,"caption":"'The London Eye'","height":112});
															thumbnails[5793235] = clik.newPhoto({"id":5793235,"src":"Teddington_Church_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793235.html","width":130,"caption":"Teddington Church","height":120});
															thumbnails[5793241] = clik.newPhoto({"id":5793241,"src":"Mountain_Pass_County_Mayo_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793241.html","width":130,"caption":"Mountain Pass county Mayo","height":105});
															thumbnails[5793244] = clik.newPhoto({"id":5793244,"src":"N_P_L_low_res_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_5793244.html","width":130,"caption":"National Physical Laboratory Teddington","height":94});
															thumbnails[5793316] = clik.newPhoto({"id":5793316,"src":"Gillian_Iris_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793316.html","width":92,"caption":"Iris sibirica","height":130});
															thumbnails[5793322] = clik.newPhoto({"id":5793322,"src":"Eryngium_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793322.html","width":92,"caption":"Eryngium bourgatii","height":130});
															thumbnails[5793327] = clik.newPhoto({"id":5793327,"src":"Rosa_sherardii_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793327.html","width":92,"caption":"Rosa sharardii","height":130});
															thumbnails[5793332] = clik.newPhoto({"id":5793332,"src":"Hazel_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793332.html","width":104,"caption":"Hazel. (Corylus avellana)<br>\r\n ","height":130});
															thumbnails[5793336] = clik.newPhoto({"id":5793336,"src":"Ash_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793336.html","width":106,"caption":"Ash. (Fraxinus excelsior)<br>\r\n","height":130});
															thumbnails[5793343] = clik.newPhoto({"id":5793343,"src":"Peonia_Yachyo_tsubaki_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793343.html","width":96,"caption":"Paeonia 'yachyo Tsubaki'<br>\r\n","height":130});
															thumbnails[5793352] = clik.newPhoto({"id":5793352,"src":"Tulipa_acuminata_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793352.html","width":88,"caption":"The Horned Tulip (Tulipa acuminata)","height":130});
															thumbnails[5793370] = clik.newPhoto({"id":5793370,"src":"Liliam_x_nepalense_Kushi_Maya_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793370.html","width":96,"caption":"Liliam x nepalense Kushi Maya","height":130});
															thumbnails[5793374] = clik.newPhoto({"id":5793374,"src":"Trachystemon_orientalis_low_res_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793374.html","width":90,"caption":"Trachystemon<br>\r\n orientalis","height":130});
															thumbnails[5793570] = clik.newPhoto({"id":5793570,"src":"Drimys_copy_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793570.html","width":88,"caption":"Drimys winteri","height":130});
															thumbnails[5793573] = clik.newPhoto({"id":5793573,"src":"Gillian_Rose_mod_copy_thumb.jpg","galleries_id":328041,"server_id":32,"link":"photo_5793573.html","width":130,"caption":"Rosa sharardii detail","height":130});
															thumbnails[5875202] = clik.newPhoto({"id":5875202,"src":"Cottage-proof_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875202.html","width":120,"caption":"'Skye Cottage'<br>\r\n","height":130});
															thumbnails[5875204] = clik.newPhoto({"id":5875204,"src":"Cottage-with-2-dorma-window_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875204.html","width":130,"caption":"'Red Door'","height":127});
															thumbnails[5875208] = clik.newPhoto({"id":5875208,"src":"Cottage-with-green-foregrou_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875208.html","width":130,"caption":"'Summer Flowers at Dunhalin'<br>\r\n","height":125});
															thumbnails[5875210] = clik.newPhoto({"id":5875210,"src":"Cottage-without-door-and-2-_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875210.html","width":130,"caption":"'Montbretias'<br>\r\n","height":127});
															thumbnails[5875212] = clik.newPhoto({"id":5875212,"src":"Landscape-with-pink-foregro_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875212.html","width":130,"caption":"'Esthwaite Water'<br>\r\n","height":104});
															thumbnails[5875217] = clik.newPhoto({"id":5875217,"src":"Sky-boat-scene-proof_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5875217.html","width":130,"caption":"'Portree Harbour'","height":95});
															thumbnails[5879195] = clik.newPhoto({"id":5879195,"src":"Beach_scene_Card_size12_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5879195.html","width":88,"caption":"'Summer Days'","height":130});
															thumbnails[5879199] = clik.newPhoto({"id":5879199,"src":"Beach_huts_and_grey_skies_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5879199.html","width":130,"caption":"'Moody Sky'","height":72});
															thumbnails[5879202] = clik.newPhoto({"id":5879202,"src":"Brightlingsea_seascape_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5879202.html","width":130,"caption":"'Brightlingsea'","height":91});
															thumbnails[5879209] = clik.newPhoto({"id":5879209,"src":"Flowerpot_men_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5879209.html","width":129,"caption":"'Flowerpot-men enjoying the afternoon Sun'","height":130});
															thumbnails[5879211] = clik.newPhoto({"id":5879211,"src":"Surfers_thumb.jpg","galleries_id":316471,"server_id":32,"link":"photo_5879211.html","width":130,"caption":"'Calling it a Day'","height":78});
															thumbnails[5880322] = clik.newPhoto({"id":5880322,"src":"Winkle-Street-mod_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5880322.html","width":93,"caption":"'Winkle Street'","height":130});
															thumbnails[5880384] = clik.newPhoto({"id":5880384,"src":"Church_on_the_hill1_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5880384.html","width":130,"caption":"'Church on the hill'","height":93});
															thumbnails[5880489] = clik.newPhoto({"id":5880489,"src":"Flatford_Mill_Fuji_scan_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_5880489.html","width":130,"caption":"'Flatford Mill'","height":84});
															thumbnails[5891962] = clik.newPhoto({"id":5891962,"src":"2_white_cottages_with_red_foreground_A3_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5891962.html","width":130,"caption":"'Cottages at Stein'","height":126});
															thumbnails[5892004] = clik.newPhoto({"id":5892004,"src":"Cottage_with_Green_Roof_small_image_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5892004.html","width":130,"caption":"'Waternish Croft'","height":125});
															thumbnails[5892068] = clik.newPhoto({"id":5892068,"src":"Three_Skye_Sheep_thumb.jpg","galleries_id":331972,"server_id":32,"link":"photo_5892068.html","width":115,"caption":"'Three Skye Sheep'","height":130});
															thumbnails[5933401] = clik.newPhoto({"id":5933401,"src":"MATT-AND-SCOT_thumb.jpg","galleries_id":323047,"server_id":32,"link":"photo_5933401.html","width":94,"caption":"'Lost Days'","height":130});
															thumbnails[5933407] = clik.newPhoto({"id":5933407,"src":"Petronas-web-image_thumb.jpg","galleries_id":334747,"server_id":32,"link":"photo_5933407.html","width":98,"caption":"'Petronas Towers'","height":130});
															thumbnails[5933462] = clik.newPhoto({"id":5933462,"src":"Turville-web-image_thumb.jpg","galleries_id":334747,"server_id":32,"link":"photo_5933462.html","width":130,"caption":"'Turville'","height":76});
															thumbnails[6942918] = clik.newPhoto({"id":6942918,"src":"Backlit-trees-Stourhead-mod1_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_6942918.html","width":130,"caption":"Backlit trees at Stourhead","height":98});
															thumbnails[6942940] = clik.newPhoto({"id":6942940,"src":"Autumn-colour-at-Stourheadm_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_6942940.html","width":89,"caption":"Autumn colour at Stourhead","height":130});
															thumbnails[6943267] = clik.newPhoto({"id":6943267,"src":"Reflections-at-Stourhead_thumb.jpg","galleries_id":315851,"server_id":32,"link":"photo_6943267.html","width":98,"caption":"Reflections at Stourhead","height":130});
															thumbnails[7245327] = clik.newPhoto({"id":7245327,"src":"Tanya-swimming-with-German-Shepherd1_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245327.html","width":130,"caption":"","height":104});
															thumbnails[7245331] = clik.newPhoto({"id":7245331,"src":"Zepher-Model-and-Whippet_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245331.html","width":104,"caption":"","height":130});
															thumbnails[7245352] = clik.newPhoto({"id":7245352,"src":"Sunset-with-boat_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245352.html","width":86,"caption":"","height":130});
															thumbnails[7245356] = clik.newPhoto({"id":7245356,"src":"Girl-in-archway_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245356.html","width":85,"caption":"","height":130});
															thumbnails[7245361] = clik.newPhoto({"id":7245361,"src":"Tanya-with-hat_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245361.html","width":93,"caption":"Tania","height":130});
															thumbnails[7245363] = clik.newPhoto({"id":7245363,"src":"Girl-with-high-collar_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245363.html","width":102,"caption":"","height":130});
															thumbnails[7245364] = clik.newPhoto({"id":7245364,"src":"Girl-with-chair_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245364.html","width":94,"caption":"Lost in thought","height":130});
															thumbnails[7245369] = clik.newPhoto({"id":7245369,"src":"Flowing-dress_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7245369.html","width":108,"caption":"","height":130});
															thumbnails[7259236] = clik.newPhoto({"id":7259236,"src":"Biplane_scene_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7259236.html","width":130,"caption":"","height":130});
															thumbnails[7259244] = clik.newPhoto({"id":7259244,"src":"Photo_print_size_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7259244.html","width":130,"caption":"","height":98});
															thumbnails[7259245] = clik.newPhoto({"id":7259245,"src":"Model_in_surf_20_inch_canvas_thumb.jpg","galleries_id":391704,"server_id":32,"link":"photo_7259245.html","width":130,"caption":"","height":93});
															thumbnails[7307139] = clik.newPhoto({"id":7307139,"src":"Venice_The_Molo_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307139.html","width":130,"caption":"The Molo","height":95});
															thumbnails[7307143] = clik.newPhoto({"id":7307143,"src":"Venice_small_fileweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307143.html","width":110,"caption":"Venice 1","height":130});
															thumbnails[7307145] = clik.newPhoto({"id":7307145,"src":"New_Venice_canvas_proof_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307145.html","width":129,"caption":"Venice 2","height":130});
															thumbnails[7307147] = clik.newPhoto({"id":7307147,"src":"New_York_mod_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307147.html","width":129,"caption":"New York","height":130});
															thumbnails[7307151] = clik.newPhoto({"id":7307151,"src":"Short_Sunderland_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307151.html","width":130,"caption":"Short Sunderland","height":88});
															thumbnails[7307153] = clik.newPhoto({"id":7307153,"src":"Howard_venice_mod_2_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307153.html","width":130,"caption":"Venice 3","height":94});
															thumbnails[7307154] = clik.newPhoto({"id":7307154,"src":"Lancaster_new_size_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307154.html","width":130,"caption":"Lancaster","height":88});
															thumbnails[7307155] = clik.newPhoto({"id":7307155,"src":"Battle_of_Camperdown_25_by_15_proof_smallweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307155.html","width":130,"caption":"Battle of Camperdown","height":78});
															thumbnails[7307157] = clik.newPhoto({"id":7307157,"src":"Estuary_near_Salcombe_small_fileweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307157.html","width":130,"caption":"Estuary near Salcombe ","height":86});
															thumbnails[7307158] = clik.newPhoto({"id":7307158,"src":"Wave_for_Tee-shirt_printweb_thumb.jpg","galleries_id":395273,"server_id":32,"link":"photo_7307158.html","width":130,"caption":"Wave 1","height":86});
															thumbnails[7334181] = clik.newPhoto({"id":7334181,"src":"Abstact_Cup_proofweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334181.html","width":92,"caption":"","height":130});
															thumbnails[7334182] = clik.newPhoto({"id":7334182,"src":"Abstract_spilt_coffe_proofweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334182.html","width":92,"caption":"","height":130});
															thumbnails[7334183] = clik.newPhoto({"id":7334183,"src":"Green_Apple_proof_3_Juneweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334183.html","width":123,"caption":"","height":130});
															thumbnails[7334184] = clik.newPhoto({"id":7334184,"src":"Red_Apple__proof_cleaned_upweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334184.html","width":123,"caption":"","height":130});
															thumbnails[7334185] = clik.newPhoto({"id":7334185,"src":"Guitar_proof_copyweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334185.html","width":130,"caption":"","height":96});
															thumbnails[7334187] = clik.newPhoto({"id":7334187,"src":"Hydrangea_Flower_Newweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334187.html","width":87,"caption":"","height":130});
															thumbnails[7334188] = clik.newPhoto({"id":7334188,"src":"Hydrangea_Petals_-_amended_versionweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334188.html","width":86,"caption":"","height":130});
															thumbnails[7334189] = clik.newPhoto({"id":7334189,"src":"Piano_proof_copyweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334189.html","width":130,"caption":"","height":91});
															thumbnails[7334190] = clik.newPhoto({"id":7334190,"src":"Sax_new_proof_last_tryweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334190.html","width":104,"caption":"","height":130});
															thumbnails[7334191] = clik.newPhoto({"id":7334191,"src":"Shadows_proofweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334191.html","width":100,"caption":"","height":130});
															thumbnails[7334192] = clik.newPhoto({"id":7334192,"src":"Shimmer_and_Float_proof_modweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334192.html","width":130,"caption":"","height":130});
															thumbnails[7334193] = clik.newPhoto({"id":7334193,"src":"Suzy_Abrahams_Roseweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334193.html","width":130,"caption":"","height":87});
															thumbnails[7334194] = clik.newPhoto({"id":7334194,"src":"Vine_Leafweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334194.html","width":130,"caption":"","height":130});
															thumbnails[7334195] = clik.newPhoto({"id":7334195,"src":"Water_Lilly_final_proof_27_Mayweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334195.html","width":130,"caption":"","height":130});
															thumbnails[7334196] = clik.newPhoto({"id":7334196,"src":"White_Azalea_Final_Painting_2_003_copyweb_thumb.jpg","galleries_id":395849,"server_id":32,"link":"photo_7334196.html","width":130,"caption":"","height":130});
															thumbnails[7334331] = clik.newPhoto({"id":7334331,"src":"Girl_on_Steps_a3web_thumb.jpg","galleries_id":396908,"server_id":32,"link":"photo_7334331.html","width":89,"caption":"Daydream","height":130});
															thumbnails[7334339] = clik.newPhoto({"id":7334339,"src":"Quiet-Butterfly-web-image_thumb.jpg","galleries_id":396908,"server_id":32,"link":"photo_7334339.html","width":130,"caption":"The Quiet Butterfly","height":97});
															thumbnails[7334340] = clik.newPhoto({"id":7334340,"src":"Fantasy_2_modweb_thumb.jpg","galleries_id":396908,"server_id":32,"link":"photo_7334340.html","width":42,"caption":"Fantasy","height":130});
															thumbnails[7422076] = clik.newPhoto({"id":7422076,"src":"Strawberry-Hill-House-web-i1_thumb.jpg","galleries_id":327952,"server_id":32,"link":"photo_7422076.html","width":130,"caption":"Strawberry Hill House","height":105});
															thumbnails[7589611] = clik.newPhoto({"id":7589611,"src":"Tree_Blossom_with_monknewnew_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_7589611.html","width":97,"caption":"Tree Blossom in Chiang Mai","height":130});
															thumbnails[7589715] = clik.newPhoto({"id":7589715,"src":"IMGP4257new_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_7589715.html","width":130,"caption":"Nong Nooch","height":97});
															thumbnails[7589730] = clik.newPhoto({"id":7589730,"src":"IMGP4294new_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_7589730.html","width":98,"caption":"Floating Market Pattaya","height":130});
															thumbnails[7589754] = clik.newPhoto({"id":7589754,"src":"IMGP4154new_thumb.jpg","galleries_id":315850,"server_id":32,"link":"photo_7589754.html","width":130,"caption":"","height":97});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[327951] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Artists galleries","link":"gallery_327951.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7422076,7334340,7334339,7334331,7334196,7334195,7334194,7334193,7334192,7334191","id":327951,"singleSection":false});				  						galleries[328034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Artwork and photgraphy by Doug Hawkey","link":"gallery_328034.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7589754,7589730,7589715,7589611,6943267,6942940,6942918,5933401,5880489,5880384","id":328034,"singleSection":false});				  						galleries[323047] = clik.newGallery({"parentGallery":328034,"usePopups":false,"title":"Artwork by Doug Hawkey","link":"gallery_323047.html","maxRecords":0.0,"photoIDs":[5702601.0,5702683.0,5702875.0,5702885.0,5702968.0,5879195.0,5933401.0],"skipIndex":0,"section_code":"gallery","featured_images":"5933401,5879195,5702968,5702885,5702875,5702683,5702601","id":323047,"singleSection":false});				  						galleries[391704] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Eugene Vernier","link":"gallery_391704.html","maxRecords":0.0,"photoIDs":[7245327.0,7245331.0,7245352.0,7245356.0,7245361.0,7245363.0,7245364.0,7245369.0,7259236.0,7259244.0,7259245.0],"skipIndex":0,"section_code":"gallery","featured_images":"7259245,7259244,7259236,7245369,7245364,7245363,7245361,7245356,7245352,7245331","id":391704,"singleSection":false});				  						galleries[396908] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Fabrice Cure","link":"gallery_396908.html","maxRecords":0.0,"photoIDs":[7334331.0,7334339.0,7334340.0],"skipIndex":0,"section_code":"gallery","featured_images":"7334340,7334339,7334331","id":396908,"singleSection":false});				  						galleries[328041] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Gillian Barlow","link":"gallery_328041.html","maxRecords":0.0,"photoIDs":[5793316.0,5793322.0,5793327.0,5793332.0,5793336.0,5793343.0,5793352.0,5793370.0,5793374.0,5793570.0,5793573.0],"skipIndex":0,"section_code":"gallery","featured_images":"5793573,5793570,5793374,5793370,5793352,5793343,5793336,5793332,5793327,5793322","id":328041,"singleSection":false});				  						galleries[395273] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Howard Birchmore","link":"gallery_395273.html","maxRecords":0.0,"photoIDs":[7307139.0,7307143.0,7307145.0,7307147.0,7307151.0,7307153.0,7307154.0,7307155.0,7307157.0,7307158.0],"skipIndex":0,"section_code":"gallery","featured_images":"7307158,7307157,7307155,7307154,7307153,7307151,7307147,7307145,7307143,7307139","id":395273,"singleSection":false});				  						galleries[331972] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Jim Woodman","link":"gallery_331972.html","maxRecords":0.0,"photoIDs":[5875202.0,5875204.0,5875208.0,5875210.0,5875212.0,5875217.0,5891962.0,5892004.0,5892068.0],"skipIndex":0,"section_code":"gallery","featured_images":"5892068,5892004,5891962,5875217,5875212,5875210,5875208,5875204,5875202","id":331972,"singleSection":false});				  						galleries[334747] = clik.newGallery({"parentGallery":328036,"usePopups":false,"title":"Landscapes","link":"gallery_334747.html","maxRecords":0.0,"photoIDs":[5933407.0,5933462.0],"skipIndex":0,"section_code":"gallery","featured_images":"5933462,5933407","id":334747,"singleSection":false});				  						galleries[327952] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Liz Knutt","link":"gallery_327952.html","maxRecords":0.0,"photoIDs":[5792452.0,5792453.0,5792456.0,5792457.0,5792458.0,5792465.0,5792468.0,5793230.0,5793233.0,5793234.0,5793235.0,5793241.0,5793244.0,7422076.0],"skipIndex":0,"section_code":"gallery","featured_images":"7422076,5793244,5793241,5793235,5793234,5793233,5793230,5792468,5792465,5792458","id":327952,"singleSection":false});				  						galleries[316776] = clik.newGallery({"parentGallery":328036,"usePopups":false,"title":"Mountain scenes","link":"gallery_316776.html","maxRecords":0.0,"photoIDs":[5603544.0,5603550.0,5604185.0,5706261.0],"skipIndex":0,"section_code":"gallery","featured_images":"5706261,5604185,5603550,5603544","id":316776,"singleSection":false});				  						galleries[328036] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photography by Peter Hawkey","link":"gallery_328036.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5933462,5933407,5706261,5604185,5603550,5603544","id":328036,"singleSection":false});				  						galleries[316471] = clik.newGallery({"parentGallery":328034,"usePopups":false,"title":"Seascape","link":"gallery_316471.html","maxRecords":0.0,"photoIDs":[5703410.0,5703420.0,5703439.0,5703625.0,5703633.0,5703649.0,5705260.0,5705266.0,5705315.0,5879199.0,5879202.0,5879211.0],"skipIndex":0,"section_code":"gallery","featured_images":"5879211,5879202,5879199,5705315,5705266,5705260,5703649,5703633,5703625,5703439","id":316471,"singleSection":false});				  						galleries[395849] = clik.newGallery({"parentGallery":327951,"usePopups":false,"title":"Suzy Abrahams","link":"gallery_395849.html","maxRecords":0.0,"photoIDs":[7334181.0,7334182.0,7334183.0,7334184.0,7334185.0,7334187.0,7334188.0,7334189.0,7334190.0,7334191.0,7334192.0,7334193.0,7334194.0,7334195.0,7334196.0],"skipIndex":0,"section_code":"gallery","featured_images":"7334196,7334195,7334194,7334193,7334192,7334191,7334190,7334189,7334188,7334187","id":395849,"singleSection":false});				  						galleries[315850] = clik.newGallery({"parentGallery":328034,"usePopups":false,"title":"Images of Thailand","link":"gallery_315850.html","maxRecords":0.0,"photoIDs":[5582467.0,5582470.0,7589611.0,7589715.0,7589730.0,7589754.0],"skipIndex":0,"section_code":"gallery","featured_images":"7589754,7589730,7589715,7589611,5582470,5582467","id":315850,"singleSection":false});				  						galleries[315851] = clik.newGallery({"parentGallery":328034,"usePopups":false,"title":"Landscape photography","link":"gallery_315851.html","maxRecords":0.0,"photoIDs":[5705273.0,5705351.0,5879209.0,5880322.0,5880384.0,5880489.0,6942918.0,6942940.0,6943267.0],"skipIndex":0,"section_code":"gallery","featured_images":"6943267,6942940,6942918,5880489,5880384,5880322,5879209,5705351,5705273","id":315851,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7589754,7589730,7589715,7589611,7422076,7334340,7334339,7334331,7334196,7334195,7334194,7334193,7334192,7334191,7334190,7334189,7334188,7334187,7334185,7334184,7334183,7334182,7334181,7307158,7307157,7307155,7307154,7307153,7307151,7307147,7307145,7307143,7307139,7259245,7259244,7259236,7245369,7245364,7245363,7245361,7245356,7245352,7245331,7245327,6943267,6942940,6942918,5933462,5933407,5933401';
imageSets[3] = '7589754,7589730,7589715,7589611,7422076,7334340,7334339,7334331,7334196,7334195,7334194,7334193,7334192,7334191,7334190,7334189,7334188,7334187,7334185,7334184,7334183,7334182,7334181,7307158,7307157,7307155,7307154,7307153,7307151,7307147,7307145,7307143,7307139,7259245,7259244,7259236,7245369,7245364,7245363,7245361,7245356,7245352,7245331,7245327,6943267,6942940,6942918,5933462,5933407,5933401';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Spydercat/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Spydercat/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 = 'Hawk Printing Ltd: ' + 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.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> &pound;' + (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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

