window.thumbnails = {};
															thumbnails[3787681] = clik.newPhoto({"id":3787681,"src":"Kevin_small_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Kevin","height":194});
															thumbnails[3887972] = clik.newPhoto({"id":3887972,"src":"Broken_Bulb_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3887972.html","width":130,"caption":"Broken Bulb","height":87});
															thumbnails[9038795] = clik.newPhoto({"id":9038795,"src":"Ball-on-a-seat_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038795.html","width":130,"caption":"Ball on a seat","height":86});
															thumbnails[3770539] = clik.newPhoto({"id":3770539,"src":"Bubblewriting_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3770539.html","width":130,"caption":"Bubble Writing","height":87});
															thumbnails[8140709] = clik.newPhoto({"id":8140709,"src":"5855053698_45af5c3ff8_b_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8140709.html","width":130,"caption":"Spirit levels","height":92});
															thumbnails[8140713] = clik.newPhoto({"id":8140713,"src":"5855053848_4780b8a714_b_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8140713.html","width":130,"caption":"Glass on black","height":184});
															thumbnails[8457923] = clik.newPhoto({"id":8457923,"src":"Fullempty_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457923.html","width":130,"caption":"Full and Empty","height":87});
															thumbnails[8457930] = clik.newPhoto({"id":8457930,"src":"Glassfull1_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457930.html","width":130,"caption":"Glass and Two","height":196});
															thumbnails[8457933] = clik.newPhoto({"id":8457933,"src":"Marble1_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457933.html","width":130,"caption":"Marbles","height":86});
															thumbnails[8457951] = clik.newPhoto({"id":8457951,"src":"Ying_and_Yang_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457951.html","width":130,"caption":"Yin and Yang","height":196});
															thumbnails[8457958] = clik.newPhoto({"id":8457958,"src":"Glassand_balls_on_Black_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457958.html","width":130,"caption":"Glass and Balls on Black","height":92});
															thumbnails[8457959] = clik.newPhoto({"id":8457959,"src":"Glassfull2_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457959.html","width":130,"caption":"Glassfull","height":196});
															thumbnails[8457960] = clik.newPhoto({"id":8457960,"src":"on_the_level_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457960.html","width":130,"caption":"On the Level","height":86});
															thumbnails[3773018] = clik.newPhoto({"id":3773018,"src":"Brittle_Wave_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3773018.html","width":130,"caption":"Brittle Wave","height":87});
															thumbnails[8457961] = clik.newPhoto({"id":8457961,"src":"Towers_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457961.html","width":130,"caption":"Towers","height":196});
															thumbnails[8457963] = clik.newPhoto({"id":8457963,"src":"Blue_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457963.html","width":130,"caption":"Blue","height":92});
															thumbnails[9038897] = clik.newPhoto({"id":9038897,"src":"Carpinters-tools_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038897.html","width":130,"caption":"Carpenters tools","height":86});
															thumbnails[8457964] = clik.newPhoto({"id":8457964,"src":"Within_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8457964.html","width":130,"caption":"Within","height":196});
															thumbnails[8845936] = clik.newPhoto({"id":8845936,"src":"Glass-drop-and-fork_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8845936.html","width":130,"caption":"Drop on fork","height":86});
															thumbnails[8845938] = clik.newPhoto({"id":8845938,"src":"Glass-and-Drop_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8845938.html","width":130,"caption":"Glass and drop","height":196});
															thumbnails[8845939] = clik.newPhoto({"id":8845939,"src":"Glass-Drops-2_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8845939.html","width":130,"caption":"Coloured drops","height":184});
															thumbnails[8845940] = clik.newPhoto({"id":8845940,"src":"Glasses-and-glass-drops_thumb.jpg","galleries_id":447534,"server_id":15,"link":"photo_8845940.html","width":130,"caption":"Two glasses two drops","height":184});
															thumbnails[3770536] = clik.newPhoto({"id":3770536,"src":"balancedorb_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3770536.html","width":130,"caption":"Balanced Orb","height":187});
															thumbnails[9038891] = clik.newPhoto({"id":9038891,"src":"Bench_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038891.html","width":130,"caption":"Bench","height":196});
															thumbnails[5666351] = clik.newPhoto({"id":5666351,"src":"Bowls_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_5666351.html","width":130,"caption":"Bowls","height":187});
															thumbnails[3773071] = clik.newPhoto({"id":3773071,"src":"Knife_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3773071.html","width":130,"caption":"Knife","height":187});
															thumbnails[3773022] = clik.newPhoto({"id":3773022,"src":"Fork2_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3773022.html","width":130,"caption":"Fork","height":87});
															thumbnails[9038797] = clik.newPhoto({"id":9038797,"src":"Cut-strawberry_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038797.html","width":130,"caption":"Cut strawberry","height":86});
															thumbnails[3773069] = clik.newPhoto({"id":3773069,"src":"Spoon2_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3773069.html","width":130,"caption":"Spoon","height":87});
															thumbnails[3773055] = clik.newPhoto({"id":3773055,"src":"Tang_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_3773055.html","width":130,"caption":"Tine","height":87});
															thumbnails[9038902] = clik.newPhoto({"id":9038902,"src":"Hand_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038902.html","width":130,"caption":"Hand","height":92});
															thumbnails[5617861] = clik.newPhoto({"id":5617861,"src":"chillis_in_oil_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_5617861.html","width":130,"caption":"Chillies in oil","height":194});
															thumbnails[7476792] = clik.newPhoto({"id":7476792,"src":"Muggs_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_7476792.html","width":130,"caption":"Mugs","height":194});
															thumbnails[5666353] = clik.newPhoto({"id":5666353,"src":"Glass_washer_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_5666353.html","width":130,"caption":"Glass Washer","height":187});
															thumbnails[5666358] = clik.newPhoto({"id":5666358,"src":"Chocolate_shadows_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_5666358.html","width":130,"caption":"Chocolate Shadows","height":187});
															thumbnails[7003662] = clik.newPhoto({"id":7003662,"src":"Chalabrough_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_7003662.html","width":130,"caption":"Challaborough","height":194});
															thumbnails[7003665] = clik.newPhoto({"id":7003665,"src":"Light_House_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_7003665.html","width":130,"caption":"LightHouse","height":184});
															thumbnails[3772422] = clik.newPhoto({"id":3772422,"src":"lonly_paddle1_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_3772422.html","width":130,"caption":"Lonely Paddle","height":187});
															thumbnails[9038711] = clik.newPhoto({"id":9038711,"src":"Boat-on-a-Lake_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038711.html","width":130,"caption":"Boat on a lake","height":92});
															thumbnails[8140780] = clik.newPhoto({"id":8140780,"src":"5854504251_a942bcb9f6_b_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_8140780.html","width":130,"caption":"Bishops palace","height":87});
															thumbnails[3772324] = clik.newPhoto({"id":3772324,"src":"solitude_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_3772324.html","width":130,"caption":"Solitude","height":87});
															thumbnails[3772335] = clik.newPhoto({"id":3772335,"src":"silhouette_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_3772335.html","width":130,"caption":"Silhouette","height":87});
															thumbnails[7696974] = clik.newPhoto({"id":7696974,"src":"Bouy_and_a_bird_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_7696974.html","width":130,"caption":"Buoy and a Bird","height":87});
															thumbnails[9038471] = clik.newPhoto({"id":9038471,"src":"3_Devon_Sunset_33_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038471.html","width":130,"caption":"Devon Sunset","height":74});
															thumbnails[3772347] = clik.newPhoto({"id":3772347,"src":"Lifes_a_beach1_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_3772347.html","width":130,"caption":"Life's a Beach","height":87});
															thumbnails[5617821] = clik.newPhoto({"id":5617821,"src":"Sleeping_Dragon_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_5617821.html","width":130,"caption":"Sleeping Dragon","height":87});
															thumbnails[5617822] = clik.newPhoto({"id":5617822,"src":"Still_Dawn_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_5617822.html","width":130,"caption":"Still Dawn","height":87});
															thumbnails[3774665] = clik.newPhoto({"id":3774665,"src":"mystic_sunset1_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_3774665.html","width":130,"caption":"Mystic Sunset","height":91});
															thumbnails[5666486] = clik.newPhoto({"id":5666486,"src":"Tree_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_5666486.html","width":130,"caption":"Tree","height":87});
															thumbnails[9038793] = clik.newPhoto({"id":9038793,"src":"Railed-horizon_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038793.html","width":130,"caption":"Railed horizon","height":70});
															thumbnails[5666489] = clik.newPhoto({"id":5666489,"src":"House_on_the_hill_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_5666489.html","width":130,"caption":"House on the Hill","height":87});
															thumbnails[9038714] = clik.newPhoto({"id":9038714,"src":"Tranquil-Riverside_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038714.html","width":130,"caption":"Tranquil riverside","height":86});
															thumbnails[7004878] = clik.newPhoto({"id":7004878,"src":"golden_ripple_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_7004878.html","width":130,"caption":"Golden ripples","height":91});
															thumbnails[7004880] = clik.newPhoto({"id":7004880,"src":"changing_horizons_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_7004880.html","width":130,"caption":"Changing horizons","height":87});
															thumbnails[9038790] = clik.newPhoto({"id":9038790,"src":"New-beginnings_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038790.html","width":130,"caption":"Day's beginnings","height":92});
															thumbnails[9038419] = clik.newPhoto({"id":9038419,"src":"1_Autumn_Puddle_33_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038419.html","width":130,"caption":"Autumn Puddle","height":184});
															thumbnails[9038770] = clik.newPhoto({"id":9038770,"src":"Treeset_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038770.html","width":130,"caption":"Treeset","height":183});
															thumbnails[9038779] = clik.newPhoto({"id":9038779,"src":"Late-afternoon-viewpoint_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038779.html","width":130,"caption":"Late afternoon viewpoint","height":184});
															thumbnails[9038781] = clik.newPhoto({"id":9038781,"src":"Pastures_thumb.jpg","galleries_id":229992,"server_id":15,"link":"photo_9038781.html","width":130,"caption":"Pastures","height":184});
															thumbnails[3770551] = clik.newPhoto({"id":3770551,"src":"Black_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_3770551.html","width":130,"caption":"Black","height":87});
															thumbnails[7004893] = clik.newPhoto({"id":7004893,"src":"Orchid_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004893.html","width":130,"caption":"Orchid","height":91});
															thumbnails[7004895] = clik.newPhoto({"id":7004895,"src":"Landscape_on_a_Leaf_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004895.html","width":130,"caption":"Landscape on a Leaf","height":92});
															thumbnails[3774676] = clik.newPhoto({"id":3774676,"src":"Ringleaf_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_3774676.html","width":130,"caption":"Ringleaf","height":87});
															thumbnails[7004897] = clik.newPhoto({"id":7004897,"src":"Purple_flight_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004897.html","width":130,"caption":"Purple Flight","height":186});
															thumbnails[3996293] = clik.newPhoto({"id":3996293,"src":"Daisy_on_the_bench_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_3996293.html","width":130,"caption":"Daisy on a Bench","height":187});
															thumbnails[9038766] = clik.newPhoto({"id":9038766,"src":"Harrier1_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_9038766.html","width":130,"caption":"Harrier","height":184});
															thumbnails[7004898] = clik.newPhoto({"id":7004898,"src":"Angelwings_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004898.html","width":130,"caption":"Angle Wings","height":185});
															thumbnails[5617849] = clik.newPhoto({"id":5617849,"src":"fintailHDR_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_5617849.html","width":130,"caption":"Fintail","height":184});
															thumbnails[7004900] = clik.newPhoto({"id":7004900,"src":"Mood_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004900.html","width":130,"caption":"Mood","height":88});
															thumbnails[9038765] = clik.newPhoto({"id":9038765,"src":"Pinko_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_9038765.html","width":130,"caption":"Pinko","height":87});
															thumbnails[5666730] = clik.newPhoto({"id":5666730,"src":"Autumn_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_5666730.html","width":130,"caption":"Autumn","height":87});
															thumbnails[7004896] = clik.newPhoto({"id":7004896,"src":"Stymen_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_7004896.html","width":130,"caption":"Stamen","height":87});
															thumbnails[5666880] = clik.newPhoto({"id":5666880,"src":"petals_thumb.jpg","galleries_id":230268,"server_id":15,"link":"photo_5666880.html","width":130,"caption":"Petals","height":87});
															thumbnails[7476785] = clik.newPhoto({"id":7476785,"src":"Iron_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476785.html","width":130,"caption":"Iron","height":185});
															thumbnails[7476787] = clik.newPhoto({"id":7476787,"src":"Shotgun_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476787.html","width":130,"caption":"Shotgun","height":185});
															thumbnails[7476867] = clik.newPhoto({"id":7476867,"src":"Cissy_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476867.html","width":130,"caption":"Cissy","height":185});
															thumbnails[8244976] = clik.newPhoto({"id":8244976,"src":"Chapter_house_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8244976.html","width":130,"caption":"Chapter House","height":184});
															thumbnails[7476884] = clik.newPhoto({"id":7476884,"src":"Bikes-within-Bikes_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476884.html","width":130,"caption":"Bikes within Bikes","height":91});
															thumbnails[7476789] = clik.newPhoto({"id":7476789,"src":"96_cubic_inches_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476789.html","width":130,"caption":"96 Cubic Inches","height":91});
															thumbnails[8244981] = clik.newPhoto({"id":8244981,"src":"High_alter_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8244981.html","width":130,"caption":"High Alter","height":254});
															thumbnails[9038739] = clik.newPhoto({"id":9038739,"src":"Brentor_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_9038739.html","width":130,"caption":"Brentor","height":184});
															thumbnails[8245007] = clik.newPhoto({"id":8245007,"src":"Wells_by_night_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8245007.html","width":130,"caption":"Wells by Night","height":87});
															thumbnails[8245005] = clik.newPhoto({"id":8245005,"src":"Bishops-palace_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8245005.html","width":130,"caption":"Bishops Palace","height":87});
															thumbnails[8458001] = clik.newPhoto({"id":8458001,"src":"Blenhime_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8458001.html","width":130,"caption":"Blenheim","height":55});
															thumbnails[7476886] = clik.newPhoto({"id":7476886,"src":"Saddle_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476886.html","width":130,"caption":"Saddle","height":91});
															thumbnails[9038718] = clik.newPhoto({"id":9038718,"src":"Wall_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_9038718.html","width":130,"caption":"Wall","height":92});
															thumbnails[9038730] = clik.newPhoto({"id":9038730,"src":"Widicombe-Light_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_9038730.html","width":130,"caption":"Widecombe light","height":86});
															thumbnails[3774461] = clik.newPhoto({"id":3774461,"src":"Cafe_Rouge1_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_3774461.html","width":130,"caption":"Cafe Rouge","height":187});
															thumbnails[7476888] = clik.newPhoto({"id":7476888,"src":"Buckles_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476888.html","width":130,"caption":"Buckles","height":91});
															thumbnails[8245012] = clik.newPhoto({"id":8245012,"src":"Glastonbury2_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_8245012.html","width":130,"caption":"Glastonbury","height":195});
															thumbnails[4459864] = clik.newPhoto({"id":4459864,"src":"Lion_King_thumb.jpg","galleries_id":230188,"server_id":15,"link":"photo_4459864.html","width":130,"caption":"Lion King","height":187});
															thumbnails[7476891] = clik.newPhoto({"id":7476891,"src":"Flare_thumb.jpg","galleries_id":405362,"server_id":15,"link":"photo_7476891.html","width":130,"caption":"Flare","height":87});
															thumbnails[7107286] = clik.newPhoto({"id":7107286,"src":"NIGHT_CROSSING_thumb.jpg","galleries_id":384486,"server_id":15,"link":"photo_7107286.html","width":130,"caption":"NIGHT CROSSING","height":98});
															thumbnails[7107544] = clik.newPhoto({"id":7107544,"src":"END_GAME_LE_thumb.jpg","galleries_id":384486,"server_id":15,"link":"photo_7107544.html","width":130,"caption":"End game","height":98});
															thumbnails[7107429] = clik.newPhoto({"id":7107429,"src":"SWISH_LE_thumb.jpg","galleries_id":384486,"server_id":15,"link":"photo_7107429.html","width":130,"caption":"SWISH","height":173});
															thumbnails[8245257] = clik.newPhoto({"id":8245257,"src":"Green-dress_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245257.html","width":130,"caption":"Green Dress","height":195});
															thumbnails[8245258] = clik.newPhoto({"id":8245258,"src":"Influence_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245258.html","width":130,"caption":"Influence","height":195});
															thumbnails[8245260] = clik.newPhoto({"id":8245260,"src":"Flapper_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245260.html","width":130,"caption":"Flapper","height":195});
															thumbnails[9038848] = clik.newPhoto({"id":9038848,"src":"Texture_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_9038848.html","width":130,"caption":"Texture","height":184});
															thumbnails[9038916] = clik.newPhoto({"id":9038916,"src":"Ballet-formal_thumb.jpg","galleries_id":230015,"server_id":15,"link":"photo_9038916.html","width":130,"caption":"Ballet formalwear","height":195});
															thumbnails[8245262] = clik.newPhoto({"id":8245262,"src":"Hole-in-the-Wall_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245262.html","width":130,"caption":"Hole in the wall","height":173});
															thumbnails[8245259] = clik.newPhoto({"id":8245259,"src":"Formal_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245259.html","width":130,"caption":"Formal","height":195});
															thumbnails[9038840] = clik.newPhoto({"id":9038840,"src":"Street-Violin_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_9038840.html","width":130,"caption":"Street violin","height":184});
															thumbnails[4459784] = clik.newPhoto({"id":4459784,"src":"moody_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_4459784.html","width":130,"caption":"Moody","height":187});
															thumbnails[6691595] = clik.newPhoto({"id":6691595,"src":"Ruby2_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_6691595.html","width":130,"caption":"Urban Style","height":163});
															thumbnails[8245263] = clik.newPhoto({"id":8245263,"src":"Beads-on--a-dress_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245263.html","width":130,"caption":"Beads on a dress","height":173});
															thumbnails[8245261] = clik.newPhoto({"id":8245261,"src":"Fashion-thoughts_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_8245261.html","width":130,"caption":"Thoughts","height":98});
															thumbnails[5674798] = clik.newPhoto({"id":5674798,"src":"Coffe_with_Business_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_5674798.html","width":130,"caption":"Coffee with Business","height":87});
															thumbnails[5311055] = clik.newPhoto({"id":5311055,"src":"HarryScottRuby_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_5311055.html","width":130,"caption":"Sleep","height":104});
															thumbnails[6691604] = clik.newPhoto({"id":6691604,"src":"Ruby4_thumb.jpg","galleries_id":321026,"server_id":15,"link":"photo_6691604.html","width":130,"caption":"Fringe","height":104});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[230015] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Product","link":"gallery_230015.html","maxRecords":0.0,"photoIDs":[3887972.0,9038795.0,3770539.0,3773018.0,9038897.0,3770536.0,9038891.0,5666351.0,3773071.0,3773022.0,9038797.0,3773069.0,3773055.0,9038902.0,5617861.0,7476792.0,5666353.0,5666358.0,9038916.0],"skipIndex":0,"section_code":"gallery","featured_images":"9038916,9038902,9038897,9038891,9038797,9038795,7476792,5666358,5666353,5666351","id":230015,"singleSection":false});				  						galleries[447534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glass","link":"gallery_447534.html","maxRecords":0.0,"photoIDs":[8140709.0,8140713.0,8457923.0,8457930.0,8457933.0,8457951.0,8457958.0,8457959.0,8457960.0,8457961.0,8457963.0,8457964.0,8845936.0,8845938.0,8845939.0,8845940.0],"skipIndex":0,"section_code":"gallery","featured_images":8457960.0,"id":447534,"singleSection":false});				  						galleries[230188] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Urban & Architecture","link":"gallery_230188.html","maxRecords":0.0,"photoIDs":[8244976.0,8244981.0,9038739.0,8245007.0,8245005.0,8458001.0,9038718.0,9038730.0,3774461.0,8245012.0,4459864.0],"skipIndex":0,"section_code":"gallery","featured_images":"9038739,9038730,9038718,8458001,8245012,8245007,8245005,8244981,8244976,4459864","id":230188,"singleSection":false});				  						galleries[229992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape & Coastal","link":"gallery_229992.html","maxRecords":0.0,"photoIDs":[7003662.0,7003665.0,3772422.0,9038711.0,8140780.0,3772324.0,3772335.0,7696974.0,9038471.0,3772347.0,5617821.0,5617822.0,3774665.0,5666486.0,9038793.0,5666489.0,9038714.0,7004878.0,7004880.0,9038790.0,9038419.0,9038770.0,9038779.0,9038781.0],"skipIndex":0,"section_code":"gallery","featured_images":3772347.0,"id":229992,"singleSection":false});				  						galleries[230268] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_230268.html","maxRecords":0.0,"photoIDs":[3770551.0,7004893.0,7004895.0,3774676.0,7004897.0,3996293.0,9038766.0,7004898.0,5617849.0,7004900.0,9038765.0,5666730.0,7004896.0,5666880.0],"skipIndex":0,"section_code":"gallery","featured_images":"9038766,9038765,7004900,7004898,7004897,7004896,7004895,7004893,5666880,5666730","id":230268,"singleSection":false});				  						galleries[321026] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion & Portraits","link":"gallery_321026.html","maxRecords":0.0,"photoIDs":[8245257.0,8245258.0,8245260.0,9038848.0,8245262.0,8245259.0,9038840.0,4459784.0,6691595.0,8245263.0,8245261.0,5674798.0,5311055.0,6691604.0],"skipIndex":0,"section_code":"gallery","featured_images":"9038848,9038840,8245263,8245262,8245261,8245260,8245259,8245258,8245257,6691604","id":321026,"singleSection":false});				  						galleries[405362] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Harley Davidson","link":"gallery_405362.html","maxRecords":0.0,"photoIDs":[7476785.0,7476787.0,7476867.0,7476884.0,7476789.0,7476886.0,7476888.0,7476891.0],"skipIndex":0,"section_code":"gallery","featured_images":7476789.0,"id":405362,"singleSection":false});				  						galleries[384486] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Editions","link":"gallery_384486.html","maxRecords":0.0,"photoIDs":[7107286.0,7107544.0,7107429.0],"skipIndex":0,"section_code":"gallery","featured_images":"7107544,7107429,7107286","id":384486,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[238061] = '3774676,7004900,5666880,7476789,6691604';
imageSets[1] = '9038795,3770539,8140709,8457958,3773018,3773022,7696974,9038471,3774665,3770551';
imageSets[2] = '8457960,3772347,7476789';
imageSets[3] = '8457923,8457933,8457960,3772324,5666486,7004878';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stadds2/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stadds2/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stadds2/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 = 'Paradigm-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="STADDS2">';
			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;
	}
}

			

