window.thumbnails = {};
															thumbnails[8664627] = clik.newPhoto({"id":8664627,"src":"IMG_3751_thumb.JPG","galleries_id":144673,"server_id":32,"link":"photo_8664627.html","width":130,"caption":"The Hostess","height":173});
															thumbnails[8603009] = clik.newPhoto({"id":8603009,"src":"IMG_3747_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_8603009.html","width":130,"caption":"Alter Ego","height":176});
															thumbnails[8576567] = clik.newPhoto({"id":8576567,"src":"IMG_3739_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_8576567.html","width":130,"caption":"","height":173});
															thumbnails[7992542] = clik.newPhoto({"id":7992542,"src":"clownmanweb_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7992542.html","width":130,"caption":"The Clown","height":173});
															thumbnails[7992554] = clik.newPhoto({"id":7992554,"src":"bhuddaweb_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7992554.html","width":130,"caption":"Reflections","height":174});
															thumbnails[7910148] = clik.newPhoto({"id":7910148,"src":"greek-web_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7910148.html","width":130,"caption":"Greek God 1","height":170});
															thumbnails[7850725] = clik.newPhoto({"id":7850725,"src":"fauve_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7850725.html","width":130,"caption":"Red Town by the Sea","height":98});
															thumbnails[7850733] = clik.newPhoto({"id":7850733,"src":"redpaint_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7850733.html","width":130,"caption":"Stormy Days","height":98});
															thumbnails[7806474] = clik.newPhoto({"id":7806474,"src":"mountain2web_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7806474.html","width":130,"caption":"Nepal 2011","height":78});
															thumbnails[7631975] = clik.newPhoto({"id":7631975,"src":"white-jug_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7631975.html","width":130,"caption":"Still life with White Jug","height":98});
															thumbnails[7569255] = clik.newPhoto({"id":7569255,"src":"liquidcameraweb_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7569255.html","width":130,"caption":"Liquid Camera","height":222});
															thumbnails[7527084] = clik.newPhoto({"id":7527084,"src":"fruit-piture_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7527084.html","width":130,"caption":"Still life with Green Bottle","height":151});
															thumbnails[7522136] = clik.newPhoto({"id":7522136,"src":"woman_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7522136.html","width":130,"caption":"Reflections","height":164});
															thumbnails[7509905] = clik.newPhoto({"id":7509905,"src":"multipleberetweb_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7509905.html","width":130,"caption":"","height":178});
															thumbnails[7488338] = clik.newPhoto({"id":7488338,"src":"FRENCH-HATS-pastelBWeb3_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7488338.html","width":130,"caption":"French Hats in Pastel","height":90});
															thumbnails[7487623] = clik.newPhoto({"id":7487623,"src":"blue_jars_copytrist_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_7487623.html","width":130,"caption":"The Blues","height":70});
															thumbnails[7453340] = clik.newPhoto({"id":7453340,"src":"lake_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7453340.html","width":130,"caption":"Winter Lake","height":173});
															thumbnails[7453344] = clik.newPhoto({"id":7453344,"src":"_MG_8602_3_4_tonemapped_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_7453344.html","width":130,"caption":"Art Room","height":86});
															thumbnails[7453348] = clik.newPhoto({"id":7453348,"src":"buxted4_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_7453348.html","width":130,"caption":"","height":173});
															thumbnails[7453376] = clik.newPhoto({"id":7453376,"src":"yellow_bush_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_7453376.html","width":130,"caption":"Spring Yellow","height":98});
															thumbnails[8179514] = clik.newPhoto({"id":8179514,"src":"Red-Hat_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_8179514.html","width":130,"caption":"Man in Red Hat","height":165});
															thumbnails[7432943] = clik.newPhoto({"id":7432943,"src":"irises_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_7432943.html","width":130,"caption":"Irises","height":100});
															thumbnails[7348525] = clik.newPhoto({"id":7348525,"src":"blue-men_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7348525.html","width":130,"caption":"Blue Mood","height":173});
															thumbnails[7338924] = clik.newPhoto({"id":7338924,"src":"WEBMAN_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7338924.html","width":130,"caption":"Man in Yellow Mood","height":163});
															thumbnails[7338876] = clik.newPhoto({"id":7338876,"src":"buxted12_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_7338876.html","width":130,"caption":"","height":101});
															thumbnails[7338877] = clik.newPhoto({"id":7338877,"src":"buxted11_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7338877.html","width":130,"caption":"Black Wood","height":98});
															thumbnails[7338879] = clik.newPhoto({"id":7338879,"src":"buxted_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7338879.html","width":130,"caption":"Buxted Flower Pot","height":86});
															thumbnails[7568917] = clik.newPhoto({"id":7568917,"src":"grey-flowerschanged12_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_7568917.html","width":130,"caption":"Merging","height":98});
															thumbnails[7308489] = clik.newPhoto({"id":7308489,"src":"pencil_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7308489.html","width":130,"caption":"Pencil Rails","height":195});
															thumbnails[7308493] = clik.newPhoto({"id":7308493,"src":"patel-rails_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7308493.html","width":130,"caption":"Red Oil Rails","height":195});
															thumbnails[7338888] = clik.newPhoto({"id":7338888,"src":"beachyhead_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7338888.html","width":130,"caption":"Beachy Head Lighthouse","height":195});
															thumbnails[7000816] = clik.newPhoto({"id":7000816,"src":"THE_EXIT_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_7000816.html","width":130,"caption":"The Exit","height":65});
															thumbnails[6979103] = clik.newPhoto({"id":6979103,"src":"the_beach_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_6979103.html","width":130,"caption":"The Beach","height":65});
															thumbnails[6979258] = clik.newPhoto({"id":6979258,"src":"AB2_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_6979258.html","width":130,"caption":"Abstract 2","height":167});
															thumbnails[6979152] = clik.newPhoto({"id":6979152,"src":"storms_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_6979152.html","width":130,"caption":"Storms","height":134});
															thumbnails[6622975] = clik.newPhoto({"id":6622975,"src":"IMG_1441_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_6622975.html","width":130,"caption":"Festival","height":173});
															thumbnails[6979109] = clik.newPhoto({"id":6979109,"src":"IMG_1331_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_6979109.html","width":130,"caption":"Chartres","height":173});
															thumbnails[7568864] = clik.newPhoto({"id":7568864,"src":"Cornfield_in_France_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_7568864.html","width":130,"caption":"French Cornfield","height":87});
															thumbnails[7806507] = clik.newPhoto({"id":7806507,"src":"stilts_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_7806507.html","width":130,"caption":"Aftermath","height":173});
															thumbnails[6193135] = clik.newPhoto({"id":6193135,"src":"IMG_0819_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_6193135.html","width":130,"caption":"Yellow Vase","height":98});
															thumbnails[6193143] = clik.newPhoto({"id":6193143,"src":"IMG_0808_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_6193143.html","width":130,"caption":"Still Life with Yellow Jug","height":94});
															thumbnails[6979107] = clik.newPhoto({"id":6979107,"src":"IMG_0883_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_6979107.html","width":130,"caption":"In the Jungle","height":130});
															thumbnails[6753381] = clik.newPhoto({"id":6753381,"src":"pictureofspain1_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_6753381.html","width":130,"caption":"Spanish Trees 2010","height":174});
															thumbnails[5792475] = clik.newPhoto({"id":5792475,"src":"spain1_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5792475.html","width":130,"caption":"Spanish Afternoon","height":174});
															thumbnails[5787916] = clik.newPhoto({"id":5787916,"src":"IMG_7845_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5787916.html","width":130,"caption":"Image in Black","height":179});
															thumbnails[5803311] = clik.newPhoto({"id":5803311,"src":"_MG_7699_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_5803311.html","width":130,"caption":"Cass","height":86});
															thumbnails[6750123] = clik.newPhoto({"id":6750123,"src":"_MG_7742_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_6750123.html","width":130,"caption":"The Tunnel","height":195});
															thumbnails[5777252] = clik.newPhoto({"id":5777252,"src":"IMG_7702_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_5777252.html","width":130,"caption":"Spring at at Last","height":86});
															thumbnails[5777265] = clik.newPhoto({"id":5777265,"src":"_MG_7711_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_5777265.html","width":130,"caption":"Camera Image","height":195});
															thumbnails[5777273] = clik.newPhoto({"id":5777273,"src":"_MG_7716_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_5777273.html","width":130,"caption":"Mirror Image","height":98});
															thumbnails[5777276] = clik.newPhoto({"id":5777276,"src":"_MG_7816_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_5777276.html","width":130,"caption":"Tornado Coming","height":195});
															thumbnails[5803274] = clik.newPhoto({"id":5803274,"src":"_MG_7672_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_5803274.html","width":130,"caption":"Reflections","height":195});
															thumbnails[5792472] = clik.newPhoto({"id":5792472,"src":"red_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5792472.html","width":130,"caption":"Falling Pots","height":180});
															thumbnails[5650004] = clik.newPhoto({"id":5650004,"src":"IMG_7628_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650004.html","width":130,"caption":"Hawth Theatre, Crawley, UK.","height":86});
															thumbnails[5650106] = clik.newPhoto({"id":5650106,"src":"IMG_7608_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650106.html","width":130,"caption":"Foyer at the Hawth with Norman's artwork","height":86});
															thumbnails[5650111] = clik.newPhoto({"id":5650111,"src":"IMG_7605_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650111.html","width":130,"caption":"Artwork at the Hawth","height":86});
															thumbnails[5650116] = clik.newPhoto({"id":5650116,"src":"IMG_7609_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650116.html","width":130,"caption":"Artwork at the Hawth.","height":86});
															thumbnails[5650185] = clik.newPhoto({"id":5650185,"src":"IMG_7615_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650185.html","width":130,"caption":"Upstairs foyer at the Hawth.","height":86});
															thumbnails[5650214] = clik.newPhoto({"id":5650214,"src":"IMG_7620_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5650214.html","width":130,"caption":"Upstairs at the Hawth","height":86});
															thumbnails[5650215] = clik.newPhoto({"id":5650215,"src":"IMG_7629_thumb.jpg","galleries_id":320087,"server_id":32,"link":"photo_5650215.html","width":130,"caption":"At the Hawth.","height":195});
															thumbnails[5654918] = clik.newPhoto({"id":5654918,"src":"IMG_7623_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5654918.html","width":130,"caption":"Hawth Exhibition","height":86});
															thumbnails[5654936] = clik.newPhoto({"id":5654936,"src":"IMG_7606_thumb.jpg","galleries_id":320087,"server_id":32,"link":"photo_5654936.html","width":130,"caption":"Foyer at the Hawth Theatre with Norman's Art","height":195});
															thumbnails[5654938] = clik.newPhoto({"id":5654938,"src":"IMG_7610_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5654938.html","width":130,"caption":"The Hawth Exhibition","height":86});
															thumbnails[5654940] = clik.newPhoto({"id":5654940,"src":"IMG_7626_thumb.JPG","galleries_id":320087,"server_id":32,"link":"photo_5654940.html","width":130,"caption":"Crawley Hawth Exhibition","height":86});
															thumbnails[5655075] = clik.newPhoto({"id":5655075,"src":"redflowers_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_5655075.html","width":130,"caption":"Spring Flowers","height":85});
															thumbnails[5488420] = clik.newPhoto({"id":5488420,"src":"IMG_3158_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5488420.html","width":130,"caption":"Flowers in a Vase","height":258});
															thumbnails[5307477] = clik.newPhoto({"id":5307477,"src":"IMG_0519_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_5307477.html","width":130,"caption":"Blue Vase with Fruit","height":98});
															thumbnails[5197291] = clik.newPhoto({"id":5197291,"src":"lily-the-dog_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5197291.html","width":130,"caption":"Lily the Dog","height":120});
															thumbnails[4897459] = clik.newPhoto({"id":4897459,"src":"jestar_thumb.jpg","galleries_id":144556,"server_id":32,"link":"photo_4897459.html","width":130,"caption":"Jester","height":185});
															thumbnails[4881659] = clik.newPhoto({"id":4881659,"src":"meditation_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_4881659.html","width":130,"caption":"Meditation","height":194});
															thumbnails[4795551] = clik.newPhoto({"id":4795551,"src":"the-cry-of-nature_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_4795551.html","width":130,"caption":"The cry of nature","height":65});
															thumbnails[4857485] = clik.newPhoto({"id":4857485,"src":"normans-bay_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_4857485.html","width":130,"caption":"Seaside scene","height":173});
															thumbnails[4857502] = clik.newPhoto({"id":4857502,"src":"red-boat_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_4857502.html","width":130,"caption":"Beached Boat","height":110});
															thumbnails[5313390] = clik.newPhoto({"id":5313390,"src":"IMG_0532_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_5313390.html","width":130,"caption":"French washing line","height":98});
															thumbnails[5313396] = clik.newPhoto({"id":5313396,"src":"IMG_0530_edited-1_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5313396.html","width":130,"caption":"French Cornfield","height":98});
															thumbnails[5313416] = clik.newPhoto({"id":5313416,"src":"IMG_0531_edited-1_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_5313416.html","width":130,"caption":"Bikes in a French Setting","height":92});
															thumbnails[6753498] = clik.newPhoto({"id":6753498,"src":"the_seaside_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_6753498.html","width":130,"caption":"A Summer Day in Normans Bay","height":98});
															thumbnails[6753515] = clik.newPhoto({"id":6753515,"src":"the-beach_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_6753515.html","width":130,"caption":"At the Seaside","height":129});
															thumbnails[5655037] = clik.newPhoto({"id":5655037,"src":"IMG_2846_thumb.jpg","galleries_id":320087,"server_id":32,"link":"photo_5655037.html","width":130,"caption":"Uckfield Art Trail jULY 2009","height":121});
															thumbnails[5655089] = clik.newPhoto({"id":5655089,"src":"art2_thumb.jpg","galleries_id":320087,"server_id":32,"link":"photo_5655089.html","width":130,"caption":"Uckfield Art","height":108});
															thumbnails[4867771] = clik.newPhoto({"id":4867771,"src":"boats_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_4867771.html","width":130,"caption":"Blue boats","height":87});
															thumbnails[4178951] = clik.newPhoto({"id":4178951,"src":"IMG_0254_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178951.html","width":130,"caption":"Hill Town ","height":98});
															thumbnails[3820801] = clik.newPhoto({"id":3820801,"src":"IMG_0255_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3820801.html","width":130,"caption":"The South Downs - SOLD","height":98});
															thumbnails[4178954] = clik.newPhoto({"id":4178954,"src":"IMG_0252_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178954.html","width":130,"caption":"Blue Vase with Flowers","height":173});
															thumbnails[3810502] = clik.newPhoto({"id":3810502,"src":"IMG_0272_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3810502.html","width":130,"caption":"Rascals","height":173});
															thumbnails[4178962] = clik.newPhoto({"id":4178962,"src":"IMG_0257_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178962.html","width":130,"caption":"Hill Village in Blue \/ sold","height":173});
															thumbnails[4867759] = clik.newPhoto({"id":4867759,"src":"antwerp-statue_thumb.jpg","galleries_id":144556,"server_id":32,"link":"photo_4867759.html","width":130,"caption":"Antwerp Scene","height":195});
															thumbnails[4178960] = clik.newPhoto({"id":4178960,"src":"IMG_0251_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178960.html","width":130,"caption":"Jugs and Pears - SOLD","height":173});
															thumbnails[3855178] = clik.newPhoto({"id":3855178,"src":"pier-in-distence_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_3855178.html","width":130,"caption":"Eastbourne Pier","height":87});
															thumbnails[4111305] = clik.newPhoto({"id":4111305,"src":"volcano-1_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_4111305.html","width":130,"caption":"Volcano in Clouds","height":82});
															thumbnails[3855186] = clik.newPhoto({"id":3855186,"src":"green-snake_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3855186.html","width":130,"caption":"","height":64});
															thumbnails[3840685] = clik.newPhoto({"id":3840685,"src":"croc_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3840685.html","width":130,"caption":"Crocodile at leisure","height":78});
															thumbnails[3840707] = clik.newPhoto({"id":3840707,"src":"croc1_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3840707.html","width":130,"caption":"Crocodile away","height":80});
															thumbnails[3840783] = clik.newPhoto({"id":3840783,"src":"no-swimming_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3840783.html","width":130,"caption":"No Swimming","height":173});
															thumbnails[3841755] = clik.newPhoto({"id":3841755,"src":"trucker_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3841755.html","width":130,"caption":"Costa Trucker","height":189});
															thumbnails[3846465] = clik.newPhoto({"id":3846465,"src":"truck1_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_3846465.html","width":130,"caption":"Truckers","height":176});
															thumbnails[5803248] = clik.newPhoto({"id":5803248,"src":"_Costa_Rican_Coconut_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_5803248.html","width":130,"caption":"Costa Rican Coconuts","height":87});
															thumbnails[4741689] = clik.newPhoto({"id":4741689,"src":"costa-flag_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_4741689.html","width":130,"caption":"Costa Rican Flag","height":93});
															thumbnails[4870477] = clik.newPhoto({"id":4870477,"src":"iggi_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_4870477.html","width":130,"caption":"Tree Iguana","height":92});
															thumbnails[4881617] = clik.newPhoto({"id":4881617,"src":"costa-rainbow_thumb.jpg","galleries_id":219019,"server_id":32,"link":"photo_4881617.html","width":130,"caption":"Costa Rican Rainbow.","height":87});
															thumbnails[4892969] = clik.newPhoto({"id":4892969,"src":"paris-bridgr_thumb.jpg","galleries_id":277700,"server_id":32,"link":"photo_4892969.html","width":130,"caption":"Paris skyline","height":192});
															thumbnails[4870484] = clik.newPhoto({"id":4870484,"src":"ice-bird-2_thumb.jpg","galleries_id":277700,"server_id":32,"link":"photo_4870484.html","width":130,"caption":"Blue Ice Gull.","height":92});
															thumbnails[4870486] = clik.newPhoto({"id":4870486,"src":"ice-birds_thumb.jpg","galleries_id":277700,"server_id":32,"link":"photo_4870486.html","width":130,"caption":"Frozen Pond.","height":87});
															thumbnails[4893036] = clik.newPhoto({"id":4893036,"src":"louve-fountain_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_4893036.html","width":130,"caption":"Pyramid & Fountain","height":190});
															thumbnails[3039112] = clik.newPhoto({"id":3039112,"src":"bird-on-water_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_3039112.html","width":130,"caption":"Walking Bird","height":86});
															thumbnails[2208563] = clik.newPhoto({"id":2208563,"src":"three-jesters_thumb.jpg","galleries_id":144556,"server_id":32,"link":"photo_2208563.html","width":130,"caption":"Three Jesters","height":92});
															thumbnails[3048019] = clik.newPhoto({"id":3048019,"src":"IMG_02641_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3048019.html","width":130,"caption":"Violets on Orange Background","height":173});
															thumbnails[3048023] = clik.newPhoto({"id":3048023,"src":"violets (1 of 1)1_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_3048023.html","width":130,"caption":"Violets on Orange Background","height":91});
															thumbnails[3291334] = clik.newPhoto({"id":3291334,"src":"_MG_3389_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3291334.html","width":130,"caption":"Paper Roses","height":86});
															thumbnails[3291350] = clik.newPhoto({"id":3291350,"src":"IMG_2328_thumb.JPG","galleries_id":144556,"server_id":32,"link":"photo_3291350.html","width":130,"caption":"Don't Touch","height":173});
															thumbnails[2907295] = clik.newPhoto({"id":2907295,"src":"IMG_0281_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_2907295.html","width":130,"caption":"Autumn Fruit","height":173});
															thumbnails[3776838] = clik.newPhoto({"id":3776838,"src":"black-flag_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_3776838.html","width":130,"caption":"Black Flags at Sea","height":199});
															thumbnails[2794508] = clik.newPhoto({"id":2794508,"src":"FISH KITES (1 of 1)_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2794508.html","width":130,"caption":"Sea Creatures","height":172});
															thumbnails[2794504] = clik.newPhoto({"id":2794504,"src":"giesha-kites_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2794504.html","width":130,"caption":"Geisha Kites","height":86});
															thumbnails[2800178] = clik.newPhoto({"id":2800178,"src":"BOTTLES IN TENT (1 of 1)_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2800178.html","width":130,"caption":"Bottles in a Tent.","height":156});
															thumbnails[6753378] = clik.newPhoto({"id":6753378,"src":"spinning_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_6753378.html","width":130,"caption":"In a Spin","height":86});
															thumbnails[3216776] = clik.newPhoto({"id":3216776,"src":"fish copy_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_3216776.html","width":130,"caption":"Goldfish in Blue Water","height":86});
															thumbnails[4897470] = clik.newPhoto({"id":4897470,"src":"poppy_thumb.jpg","galleries_id":277700,"server_id":32,"link":"photo_4897470.html","width":130,"caption":"Poppies in tha French Alps.","height":77});
															thumbnails[4892990] = clik.newPhoto({"id":4892990,"src":"pumpkin-1-of-1_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_4892990.html","width":130,"caption":"French Pumpkins & Green Beans","height":112});
															thumbnails[2448080] = clik.newPhoto({"id":2448080,"src":"sword-player_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2448080.html","width":130,"caption":"The Sword Player","height":161});
															thumbnails[2448623] = clik.newPhoto({"id":2448623,"src":"wagon-wheel_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2448623.html","width":130,"caption":"Corn on the Floor","height":196});
															thumbnails[2728205] = clik.newPhoto({"id":2728205,"src":"tomatoes_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2728205.html","width":130,"caption":"The Odd One","height":67});
															thumbnails[2728212] = clik.newPhoto({"id":2728212,"src":"Carnation_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2728212.html","width":130,"caption":"Carnations","height":91});
															thumbnails[2488476] = clik.newPhoto({"id":2488476,"src":"blue-bottles_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2488476.html","width":130,"caption":"Blue Bottles","height":188});
															thumbnails[2421015] = clik.newPhoto({"id":2421015,"src":"garages_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2421015.html","width":130,"caption":"Ochre Garages","height":86});
															thumbnails[2443256] = clik.newPhoto({"id":2443256,"src":"red-clothes_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2443256.html","width":130,"caption":"Hanging Cloth in the Barn","height":196});
															thumbnails[2443295] = clik.newPhoto({"id":2443295,"src":"yellow-jars_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2443295.html","width":130,"caption":"Yellow Dust","height":72});
															thumbnails[2611639] = clik.newPhoto({"id":2611639,"src":"trees-in-roussillon1_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_2611639.html","width":130,"caption":"Trees in Roussilon, France.","height":100});
															thumbnails[2520889] = clik.newPhoto({"id":2520889,"src":"cogs-1_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2520889.html","width":130,"caption":"Cogs","height":81});
															thumbnails[2260433] = clik.newPhoto({"id":2260433,"src":"black-yugga_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2260433.html","width":130,"caption":"Yucca after Rain","height":87});
															thumbnails[2267024] = clik.newPhoto({"id":2267024,"src":"blue-cornflower_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2267024.html","width":130,"caption":"Blue Flower in the Dark","height":87});
															thumbnails[2247282] = clik.newPhoto({"id":2247282,"src":"red-petals_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2247282.html","width":130,"caption":"Pepper Flower","height":196});
															thumbnails[2247287] = clik.newPhoto({"id":2247287,"src":"white-lily_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2247287.html","width":130,"caption":"White Lily","height":196});
															thumbnails[2240777] = clik.newPhoto({"id":2240777,"src":"WHITE-FLOWER_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2240777.html","width":130,"caption":"Flower in the Garden","height":85});
															thumbnails[2183625] = clik.newPhoto({"id":2183625,"src":"Dandolion-1_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_2183625.html","width":130,"caption":"Seeds","height":108});
															thumbnails[2208395] = clik.newPhoto({"id":2208395,"src":"guitar-man_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_2208395.html","width":130,"caption":"Guitar Man","height":155});
															thumbnails[2237270] = clik.newPhoto({"id":2237270,"src":"recent pictures (1 of 1)_thumb.jpg","galleries_id":144558,"server_id":32,"link":"photo_2237270.html","width":130,"caption":"Spanish Hams","height":84});
															thumbnails[2202929] = clik.newPhoto({"id":2202929,"src":"Sunflower_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_2202929.html","width":130,"caption":"Sunflower","height":98});
															thumbnails[2183684] = clik.newPhoto({"id":2183684,"src":"yessy1_thumb.gif","galleries_id":144560,"server_id":32,"link":"photo_2183684.html","width":130,"caption":"Pop Man","height":207});
															thumbnails[2240797] = clik.newPhoto({"id":2240797,"src":"IMG_0511_thumb.JPG","galleries_id":144499,"server_id":32,"link":"photo_2240797.html","width":130,"caption":"Seven Sisters","height":87});
															thumbnails[2202949] = clik.newPhoto({"id":2202949,"src":"seven srs 4_thumb.JPG","galleries_id":144499,"server_id":32,"link":"photo_2202949.html","width":130,"caption":"Cliffs with Lighthouse","height":51});
															thumbnails[4893010] = clik.newPhoto({"id":4893010,"src":"heathers-photo_edited-1_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_4893010.html","width":130,"caption":"Woodland Walk","height":166});
															thumbnails[2202936] = clik.newPhoto({"id":2202936,"src":"norman-on-beach_thumb.gif","galleries_id":144560,"server_id":32,"link":"photo_2202936.html","width":130,"caption":"Man on Beach","height":98});
															thumbnails[2208451] = clik.newPhoto({"id":2208451,"src":"RED Lily_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_2208451.html","width":130,"caption":"Red Lily by a Window","height":98});
															thumbnails[3291316] = clik.newPhoto({"id":3291316,"src":"HAM (4 of 5)_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_3291316.html","width":130,"caption":"Ham","height":84});
															thumbnails[2185613] = clik.newPhoto({"id":2185613,"src":"IMG_0277_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_2185613.html","width":130,"caption":"Flowers","height":173});
															thumbnails[3776851] = clik.newPhoto({"id":3776851,"src":"IMG_0276_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3776851.html","width":130,"caption":"Flowers & Candle Holders","height":173});
															thumbnails[2183751] = clik.newPhoto({"id":2183751,"src":"jeep_edited-1_thumb.gif","galleries_id":144560,"server_id":32,"link":"photo_2183751.html","width":130,"caption":"Butchers Landrover","height":85});
															thumbnails[2959113] = clik.newPhoto({"id":2959113,"src":"Spanish-white-house_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_2959113.html","width":130,"caption":"Spanish White House","height":98});
															thumbnails[2208420] = clik.newPhoto({"id":2208420,"src":"IMG_0409_thumb.JPG","galleries_id":144556,"server_id":32,"link":"photo_2208420.html","width":130,"caption":"Old Chair at Home","height":174});
															thumbnails[3389046] = clik.newPhoto({"id":3389046,"src":"IMG_0279_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_3389046.html","width":130,"caption":"Town by the Sea.","height":173});
															thumbnails[2208487] = clik.newPhoto({"id":2208487,"src":"IMG_0275_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_2208487.html","width":130,"caption":"Framed Coloured Pen Painting, Red Flowers Blue Vase on Yellow Cloth.","height":173});
															thumbnails[2240782] = clik.newPhoto({"id":2240782,"src":"lazy evening_thumb.JPG","galleries_id":144673,"server_id":32,"link":"photo_2240782.html","width":130,"caption":"Evening on the Beach","height":101});
															thumbnails[4893016] = clik.newPhoto({"id":4893016,"src":"black-1_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_4893016.html","width":130,"caption":"Black View","height":98});
															thumbnails[4178964] = clik.newPhoto({"id":4178964,"src":"IMG_0271_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178964.html","width":130,"caption":"View from a Tent in France.","height":173});
															thumbnails[2257441] = clik.newPhoto({"id":2257441,"src":"fishing bouys_thumb.jpg","galleries_id":148387,"server_id":32,"link":"photo_2257441.html","width":130,"caption":"Brittany Fishing Bouys","height":169});
															thumbnails[2539234] = clik.newPhoto({"id":2539234,"src":"IMG_0269_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_2539234.html","width":130,"caption":"Red Flowers Red Vase - Sold","height":173});
															thumbnails[2247338] = clik.newPhoto({"id":2247338,"src":"IMG_0278_thumb.JPG","galleries_id":144558,"server_id":32,"link":"photo_2247338.html","width":130,"caption":"Jugs and Cup with Corkscrew","height":98});
															thumbnails[2208497] = clik.newPhoto({"id":2208497,"src":"IMG_02691_thumb.JPG","galleries_id":144559,"server_id":32,"link":"photo_2208497.html","width":130,"caption":"Red Flowers in Red Vase","height":173});
															thumbnails[2185608] = clik.newPhoto({"id":2185608,"src":"IMG_0845_thumb.JPG","galleries_id":144673,"server_id":32,"link":"photo_2185608.html","width":130,"caption":"Man on Deauville Beach","height":98});
															thumbnails[2247342] = clik.newPhoto({"id":2247342,"src":"burnt-corn_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_2247342.html","width":130,"caption":"Cornfield","height":98});
															thumbnails[4178973] = clik.newPhoto({"id":4178973,"src":"IMG_0250_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178973.html","width":130,"caption":"Still Life with a Yellow Pot","height":173});
															thumbnails[4178970] = clik.newPhoto({"id":4178970,"src":"IMG_0249_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178970.html","width":130,"caption":"Sunflowers","height":173});
															thumbnails[4178966] = clik.newPhoto({"id":4178966,"src":"IMG_0248_thumb.JPG","galleries_id":161538,"server_id":32,"link":"photo_4178966.html","width":130,"caption":"Poppies in Vase","height":173});
															thumbnails[2199988] = clik.newPhoto({"id":2199988,"src":"red trees (Small)_thumb.jpg","galleries_id":144499,"server_id":32,"link":"photo_2199988.html","width":130,"caption":"Clump of Trees in the Ashdown Forest","height":93});
															thumbnails[2237262] = clik.newPhoto({"id":2237262,"src":"spanish (1 of 1)-4_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_2237262.html","width":130,"caption":"Spanish Buskers","height":173});
															thumbnails[5655086] = clik.newPhoto({"id":5655086,"src":"art_thumb.jpg","galleries_id":320087,"server_id":32,"link":"photo_5655086.html","width":130,"caption":"Uckfield Art 2009","height":171});
															thumbnails[5699711] = clik.newPhoto({"id":5699711,"src":"Green_Pool1_thumb.jpg","galleries_id":144673,"server_id":32,"link":"photo_5699711.html","width":130,"caption":"Green Pool","height":87});
															thumbnails[6979189] = clik.newPhoto({"id":6979189,"src":"AB1_thumb.jpg","galleries_id":161538,"server_id":32,"link":"photo_6979189.html","width":130,"caption":"Abstract 1","height":165});
															thumbnails[7453380] = clik.newPhoto({"id":7453380,"src":"irises_5DDF5575-24E8-5EC4-4FD00C3ACE4450A3_thumb.jpg","galleries_id":144559,"server_id":32,"link":"photo_7453380.html","width":130,"caption":"Irises","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[161538] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art","link":"gallery_161538.html","maxRecords":0.0,"photoIDs":[8603009.0,8576567.0,7992542.0,7992554.0,7910148.0,7850725.0,7850733.0,7631975.0,7569255.0,7527084.0,7522136.0,7509905.0,7488338.0,8179514.0,7348525.0,7338924.0,7308489.0,7308493.0,7000816.0,6979103.0,6979258.0,6979152.0,6622975.0,6193135.0,6193143.0,5792475.0,5787916.0,5792472.0,5488420.0,5307477.0,5197291.0,4795551.0,5313390.0,5313396.0,5313416.0,4178951.0,3820801.0,4178954.0,3810502.0,4178962.0,4178960.0,3048019.0,3291334.0,2907295.0,2611639.0,3291316.0,3776851.0,3389046.0,4178964.0,2539234.0,4178973.0,4178970.0,4178966.0,6979189.0],"skipIndex":0,"section_code":"gallery","featured_images":2907295.0,"id":161538,"singleSection":false});				  						galleries[219019] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Costa Rica","link":"gallery_219019.html","maxRecords":0.0,"photoIDs":[4111305.0,3855186.0,3840685.0,3840707.0,3840783.0,3841755.0,3846465.0,5803248.0,4741689.0,4870477.0,4881617.0],"skipIndex":0,"section_code":"gallery","featured_images":"5803248,4881617,4870477,4741689,4111305,3855186,3846465,3841755,3840783,3840707","id":219019,"singleSection":false});				  						galleries[320087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_320087.html","maxRecords":0.0,"photoIDs":[5650004.0,5650106.0,5650111.0,5650116.0,5650185.0,5650214.0,5650215.0,5654918.0,5654936.0,5654938.0,5654940.0,5655037.0,5655089.0,5655086.0],"skipIndex":0,"section_code":"gallery","featured_images":"5655089,5655086,5655037,5654940,5654938,5654936,5654918,5650215,5650214,5650185","id":320087,"singleSection":false});				  						galleries[148387] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"French Scenes","link":"gallery_148387.html","maxRecords":0.0,"photoIDs":[7568864.0,4893036.0,2794508.0,2794504.0,2800178.0,2448080.0,2448623.0,2728205.0,2728212.0,2488476.0,2421015.0,2443256.0,2443295.0,2520889.0,2257441.0],"skipIndex":0,"section_code":"gallery","featured_images":"7568864,4893036,2800178,2794508,2794504,2728212,2728205,2520889,2488476,2448623","id":148387,"singleSection":false});				  						galleries[144556] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"History","link":"gallery_144556.html","maxRecords":0.0,"photoIDs":[4897459.0,4867759.0,2208563.0,3291350.0,2208420.0],"skipIndex":0,"section_code":"gallery","featured_images":"4897459,4867759,3291350,2208563,2208420","id":144556,"singleSection":false});				  						galleries[144499] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_144499.html","maxRecords":0.0,"photoIDs":[7806474.0,7453340.0,7338877.0,7338879.0,7338888.0,7806507.0,6753381.0,5803274.0,4857485.0,4857502.0,6753498.0,6753515.0,2240797.0,2202949.0,2199988.0],"skipIndex":0,"section_code":"gallery","featured_images":"7806507,7806474,7453340,7338888,7338879,7338877,6753515,6753498,6753381,5803274","id":144499,"singleSection":false});				  						galleries[144673] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Leisure Time","link":"gallery_144673.html","maxRecords":0.0,"photoIDs":[8664627.0,5777265.0,5777273.0,5777276.0,4881659.0,4867771.0,3855178.0,3039112.0,3776838.0,6753378.0,3216776.0,2208395.0,2959113.0,2240782.0,2185608.0,2247342.0,2237262.0,5699711.0],"skipIndex":0,"section_code":"gallery","featured_images":"8664627,6753378,5777276,5777273,5777265,5699711,4881659,4867771,3855178,3776838","id":144673,"singleSection":false});				  						galleries[144559] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Plants & Flowers","link":"gallery_144559.html","maxRecords":0.0,"photoIDs":[7453348.0,7453376.0,7432943.0,7568917.0,5803311.0,5777252.0,5655075.0,3048023.0,4892990.0,2260433.0,2267024.0,2247282.0,2247287.0,2240777.0,2183625.0,2202929.0,4893010.0,2208451.0,2185613.0,2208487.0,4893016.0,2208497.0,7453380.0],"skipIndex":0,"section_code":"gallery","featured_images":"7568917,7453380,7453376,7453348,7432943,5803311,5777252,5655075,4893016,4893010","id":144559,"singleSection":false});				  						galleries[144560] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pop Art","link":"gallery_144560.html","maxRecords":0.0,"photoIDs":[2183684.0,2202936.0,2183751.0],"skipIndex":0,"section_code":"gallery","featured_images":"2202936,2183751,2183684","id":144560,"singleSection":false});				  						galleries[144558] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"gallery_144558.html","maxRecords":0.0,"photoIDs":[7487623.0,7453344.0,7338876.0,6979109.0,6979107.0,6750123.0,2237270.0,2247338.0],"skipIndex":0,"section_code":"gallery","featured_images":"7487623,7453344,7338876,6979109,6979107,6750123,2247338,2237270","id":144558,"singleSection":false});				  						galleries[277700] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TRAVEL","link":"gallery_277700.html","maxRecords":0.0,"photoIDs":[4892969.0,4870484.0,4870486.0,4897470.0],"skipIndex":0,"section_code":"gallery","featured_images":"4897470,4892969,4870486,4870484","id":277700,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4178973,4178970,4178964,4178962,4178960,4178954,3048019,2907295,2488476';
imageSets[2] = '2907295';
imageSets[3] = '5803311';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/normanstarley/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/normanstarley/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 && backgrounds[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 = 'Norman Starley Art & Photography: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="NORMANSTARLEY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

