window.thumbnails = new Object();
												thumbnails[3730844] = new thumbnail(3730844,'','Alwyn receiving cup for best print of the year at the Stewartry Camera Club dinner March 09','Stewartry_Camera_Club_Prize_Presentation09_thumb.jpg',130, 71,5,'#');
												thumbnails[3730853] = new thumbnail(3730853,'','Alwyn receiving cup for best print of the year at the Stewartry Camera Club dinner March 09','Stewartry_Camera_Club_Prize_Presentation091_thumb.jpg',130, 71,5,'#');
												thumbnails[2235596] = new thumbnail(2235596,'','Example of work for a major property company','Saville Brochure medium_thumb.jpg',130, 184,5,'#');
												thumbnails[2235633] = new thumbnail(2235633,'','','sensor_thumb.jpg',130, 96,5,'#');
												thumbnails[2285114] = new thumbnail(2285114,'','','photo_composition_thumb.jpg',130, 43,5,'#');
												thumbnails[2285128] = new thumbnail(2285128,'','Philip Dunn','philip01_thumb.jpg',130, 130,5,'#');
												thumbnails[2285196] = new thumbnail(2285196,'','Digital Photography School','Dig_photo_school_thumb.png',130, 18,5,'#');
												thumbnails[2374496] = new thumbnail(2374496,'','Ken Howes - HMS Liverpool 1949','Ken_Howes_thumb.jpg',130, 88,5,'#');
												thumbnails[2397820] = new thumbnail(2397820,'','Alwyn Howes','Alwyn_Howes_thumb.jpg',130, 108,5,'#');
												thumbnails[2679795] = new thumbnail(2679795,'','Cafe Cree Sign','Cafe_Cree_Sign_thumb.jpg',130, 185,5,'#');
												thumbnails[2679797] = new thumbnail(2679797,'','Frame Selection','Frame_Selection_thumb.jpg',130, 111,5,'#');
												thumbnails[2679799] = new thumbnail(2679799,'','Hanging Framed Prints','Hanging_frame_thumb.jpg',130, 85,5,'#');
												thumbnails[2679801] = new thumbnail(2679801,'','Quality framed prints to your specification','Two_prints_thumb.jpg',130, 83,5,'#');
												thumbnails[2679803] = new thumbnail(2679803,'','Wall Hanging','Wall_hanging_thumb.jpg',130, 77,5,'#');
												thumbnails[2679805] = new thumbnail(2679805,'','Wood Detail','Wood_detail_thumb.jpg',130, 143,5,'#');
												thumbnails[2685052] = new thumbnail(2685052,'','Cycling and other event photographic services<br>Left - Chris Hoy Manchester Velodrome<br>Right - Competitor Hardrock Challenge, Dalbeattie','Event_sample_thumb.jpg',130, 46,5,'#');
												thumbnails[2685722] = new thumbnail(2685722,'','Permajet - specialist media for fine art work','Permajet_thumb.jpg',130, 61,5,'#');
												thumbnails[2685725] = new thumbnail(2685725,'','Fibre Base Royal 325','fbroyal_thumb.jpg',130, 182,5,'#');
												thumbnails[2685728] = new thumbnail(2685728,'','Oyster 271 (Semi-Gloss)','Oyster271_thumb.jpg',130, 182,5,'#');
												thumbnails[3495702] = new thumbnail(3495702,'','Product or Packshot images for the clothing, scientific or food industries','Product_group_1_thumb.jpg',130, 53,5,'#');
												thumbnails[3495711] = new thumbnail(3495711,'','Product or Packshot images for the engineering or scientific industries','Product_group_2_thumb.jpg',130, 28,5,'#');
												thumbnails[3495714] = new thumbnail(3495714,'','Product or Packshot images of clothing, fashion or glass items','Product_group_3_thumb.jpg',130, 61,5,'#');
												thumbnails[3496630] = new thumbnail(3496630,'','Close up image showing detail of footwear','CloseUp_1_thumb.jpg',130, 87,5,'#');
												thumbnails[3496634] = new thumbnail(3496634,'','Close up image showing detail of fabric','CloseUp_2_thumb.jpg',130, 195,5,'#');
												thumbnails[3496764] = new thumbnail(3496764,'','Close up image showing detail of engineering part','CloseUp_31_thumb.jpg',130, 87,5,'#');
												thumbnails[3657701] = new thumbnail(3657701,'','Alwyn Howes display of pictures at The Association of Scotland\'s Self Caterers','Selfcatering_display_thumb.jpg',130, 71,5,'#');
												thumbnails[4338007] = new thumbnail(4338007,'','Royal Photographic Societey Licentiateship Certificate awarded to Alwyn Howes 7 July 2009','LRPS_Certificate_thumb.jpg',130, 185,5,'#');
												thumbnails[5805610] = new thumbnail(5805610,'','The Schoolhouse, Ringford, display of photography','Ringford_display_small_thumb.jpg',130, 87,5,'#');
												thumbnails[5805616] = new thumbnail(5805616,'','Exibition of Photography, The Schoolhouse, Ringford, near Castle Douglas','Ringford_display_thumb.jpg',130, 87,5,'#');
												thumbnails[2284469] = new thumbnail(2284469,'','camer labs','camer_labs_thumb.gif',130, 10,5,'#');
												thumbnails[2284470] = new thumbnail(2284470,'','canon','canon_thumb.gif',130, 85,5,'#');
												thumbnails[2284479] = new thumbnail(2284479,'','photobox','photobox_thumb.gif',130, 25,5,'#');
												thumbnails[2284471] = new thumbnail(2284471,'','dig photo review','dig_photo_review_thumb.gif',130, 93,5,'#');
												thumbnails[2284480] = new thumbnail(2284480,'','Short courses','Short_courses_thumb.gif',130, 131,5,'#');
												thumbnails[2284472] = new thumbnail(2284472,'','ken rockwell','ken_rockwell_thumb.jpg',130, 101,5,'#');
												thumbnails[2284473] = new thumbnail(2284473,'','nikon','nikon_thumb.gif',130, 41,5,'#');
												thumbnails[2347479] = new thumbnail(2347479,'147195','Minnigaff Mausoleum','Minnigaff_Mausoleum_thumb.jpg',130, 195,5,'photo_2347479.html');
												thumbnails[2347540] = new thumbnail(2347540,'152968','Astrantia Major Gill Richardson','Astrantia_Major_Gill_Richardson_thumb.jpg',130, 195,5,'photo_2347540.html');
												thumbnails[2347584] = new thumbnail(2347584,'152968','Iris Sibirica Baby Sister','Iris_Sibirica_Baby_Sister_thumb.jpg',130, 194,5,'photo_2347584.html');
												thumbnails[2347612] = new thumbnail(2347612,'152968','Iris Sibirica Baby Sister Flower Head','Iris_Sibirica_Baby_Sister_Flower_Head_thumb.jpg',130, 195,5,'photo_2347612.html');
												thumbnails[2347684] = new thumbnail(2347684,'152968','Hosta','Hosta_thumb.jpg',130, 141,5,'photo_2347684.html');
												thumbnails[2347731] = new thumbnail(2347731,'152968','Campanula','Campanula_thumb.jpg',130, 194,5,'photo_2347731.html');
												thumbnails[2347820] = new thumbnail(2347820,'147458','Through the Dyke','Through_the_Dyke_thumb.jpg',130, 67,5,'photo_2347820.html');
												thumbnails[2347831] = new thumbnail(2347831,'147458','Clarebrand View','Clarebrand_View_thumb.jpg',130, 66,5,'photo_2347831.html');
												thumbnails[2347850] = new thumbnail(2347850,'147458','Buittle Dyke','Buittle_Dyke_thumb.jpg',130, 87,5,'photo_2347850.html');
												thumbnails[2347864] = new thumbnail(2347864,'147458','Adverse Camber','Adverse_Camber_thumb.jpg',130, 194,5,'photo_2347864.html');
												thumbnails[2347887] = new thumbnail(2347887,'147458','Bluebell Lane','Bluebell_Lane_thumb.jpg',130, 87,5,'photo_2347887.html');
												thumbnails[2347894] = new thumbnail(2347894,'147458','Winter Grazing','Winter_Grazing_thumb.jpg',130, 87,5,'photo_2347894.html');
												thumbnails[2347905] = new thumbnail(2347905,'147458','Evening Cloud','Evening_Cloud_thumb.jpg',130, 56,5,'photo_2347905.html');
												thumbnails[2347919] = new thumbnail(2347919,'147458','Tree Light','Tree_Light_thumb.jpg',130, 173,5,'photo_2347919.html');
												thumbnails[2347933] = new thumbnail(2347933,'147458','End of the Day','End_of_the_Day_thumb.jpg',130, 87,5,'photo_2347933.html');
												thumbnails[2347959] = new thumbnail(2347959,'147461','Highland Family','Highland_Family_thumb.jpg',130, 195,5,'photo_2347959.html');
												thumbnails[2347993] = new thumbnail(2347993,'147461','Cow and Calf','Cow_and_Calf_thumb.jpg',130, 87,5,'photo_2347993.html');
												thumbnails[2348008] = new thumbnail(2348008,'147461','Evening Drink','Evening_Drink_thumb.jpg',130, 87,5,'photo_2348008.html');
												thumbnails[2348028] = new thumbnail(2348028,'147459','Natural Reclaim','Natural_Reclaim_thumb.jpg',130, 87,5,'photo_2348028.html');
												thumbnails[2348051] = new thumbnail(2348051,'147459','Wooden Teeth','Wooden_Teeth_thumb.jpg',130, 87,5,'photo_2348051.html');
												thumbnails[2403634] = new thumbnail(2403634,'147459','Dried Out','Dried_Out_thumb.jpg',130, 194,5,'photo_2403634.html');
												thumbnails[2403641] = new thumbnail(2403641,'147459','Escape','Escape_thumb.jpg',130, 194,5,'photo_2403641.html');
												thumbnails[2403660] = new thumbnail(2403660,'147459','Trodden Rope','Trodden_Rope_thumb.jpg',130, 195,5,'photo_2403660.html');
												thumbnails[3923207] = new thumbnail(3923207,'147459','The Bicycle','The_Bicycle_thumb.jpg',130, 195,5,'photo_3923207.html');
												thumbnails[3923225] = new thumbnail(3923225,'147460','Caul Flow','Caul_Flow_thumb.jpg',130, 87,5,'photo_3923225.html');
												thumbnails[3923230] = new thumbnail(3923230,'147459','Chain Link','Chain_Link_thumb.jpg',130, 194,5,'photo_3923230.html');
												thumbnails[3923243] = new thumbnail(3923243,'147459','Illuminated Font','Illuminated_Font_thumb.jpg',130, 195,5,'photo_3923243.html');
												thumbnails[3923250] = new thumbnail(3923250,'147459','Stained Glass','Stained_Glass_thumb.jpg',130, 195,5,'photo_3923250.html');
												thumbnails[3923265] = new thumbnail(3923265,'147458','Tree Silhoutte','Tree_Silhoutte_thumb.jpg',130, 195,5,'photo_3923265.html');
												thumbnails[3923269] = new thumbnail(3923269,'147460','Waves and Rocks','Waves_and_Rocks_thumb.jpg',130, 61,5,'photo_3923269.html');
												thumbnails[3923294] = new thumbnail(3923294,'147460','Fern Pool','Fern_Pool_thumb.jpg',130, 195,5,'photo_3923294.html');
												thumbnails[3923297] = new thumbnail(3923297,'147458','Olive Grove Track','Olive_Grove_Track_thumb.jpg',130, 87,5,'photo_3923297.html');
												thumbnails[5129864] = new thumbnail(5129864,'147458','Blue Loch','Blue_Loch_thumb.jpg',130, 87,5,'photo_5129864.html');
												thumbnails[5129926] = new thumbnail(5129926,'147458','Hills and Valleys','Hills_and_Valleys_thumb.jpg',130, 87,5,'photo_5129926.html');
												thumbnails[5129936] = new thumbnail(5129936,'147458','Mountains of Skye','Mountains_of_Skye_thumb.jpg',130, 194,5,'photo_5129936.html');
												thumbnails[5129937] = new thumbnail(5129937,'147460','Shore Stones','Shore_Stones_thumb.jpg',130, 195,5,'photo_5129937.html');
												thumbnails[5129941] = new thumbnail(5129941,'147458','Storm Clearing','Storm_Clearing_thumb.jpg',130, 87,5,'photo_5129941.html');
												thumbnails[5129947] = new thumbnail(5129947,'147195','The Ruin','The_Ruin_thumb.jpg',130, 194,5,'photo_5129947.html');
												thumbnails[5129952] = new thumbnail(5129952,'147460','Waiting for the Evening Tide','Waiting_for_the_Tide_117FB460-2219-B5B5-4C8939F82E7ED85E_thumb.jpg',130, 87,5,'photo_5129952.html');
												thumbnails[5129957] = new thumbnail(5129957,'147460','Waterfall','Waterfall_thumb.jpg',130, 194,5,'photo_5129957.html');
												thumbnails[5371448] = new thumbnail(5371448,'302849','The Commission','The_Commission_thumb.jpg',130, 87,5,'photo_5371448.html');
												thumbnails[5512344] = new thumbnail(5512344,'147458','Evening Flight','Evening_flight_thumb.jpg',130, 87,5,'photo_5512344.html');
												thumbnails[5512348] = new thumbnail(5512348,'147460','Fishing Nets','Fishing_nets_thumb.jpg',130, 87,5,'photo_5512348.html');
												thumbnails[5512355] = new thumbnail(5512355,'147459','Reach for the Sky','Reach_for_the_sky_thumb.jpg',130, 194,5,'photo_5512355.html');
												thumbnails[5512364] = new thumbnail(5512364,'147458','Reed Sunrise','Reed_Sunrise_thumb.jpg',130, 87,5,'photo_5512364.html');
												thumbnails[5512368] = new thumbnail(5512368,'147458','Sunrise, Carlingwark Loch','Sunrise_Carlingwark_Loch_thumb.jpg',130, 194,5,'photo_5512368.html');
												thumbnails[5512370] = new thumbnail(5512370,'147458','Woodland Floor','Woodland_floor_thumb.jpg',130, 195,5,'photo_5512370.html');
												thumbnails[7232912] = new thumbnail(7232912,'147461','The Thee Wise Horses','The_Three_Wise_Horses_thumb.jpg',130, 195,5,'photo_7232912.html');
												thumbnails[7232942] = new thumbnail(7232942,'302849','When the Tourists Have Gone','When_the_tourists_have_gone_thumb.jpg',130, 195,5,'photo_7232942.html');
												thumbnails[7232946] = new thumbnail(7232946,'302849','Too Young to Care?','Too_young_to_care_thumb.jpg',130, 87,5,'photo_7232946.html');
												thumbnails[7232951] = new thumbnail(7232951,'147460','Scarborough at Night','Scarborough_at_night_thumb.jpg',130, 87,5,'photo_7232951.html');
												thumbnails[7232956] = new thumbnail(7232956,'147458','Winter Trees','Winter_trees_thumb.jpg',130, 87,5,'photo_7232956.html');
												thumbnails[7232965] = new thumbnail(7232965,'147458','Fresh Snow at West Logan','Fresh_snow_at_West_Logan_thumb.jpg',130, 195,5,'photo_7232965.html');
												thumbnails[7232969] = new thumbnail(7232969,'147458','Frozen Waterfall','Frozen_Waterfall_thumb.jpg',130, 194,5,'photo_7232969.html');
												thumbnails[7232975] = new thumbnail(7232975,'147458','Christmas Tree','Christmas_Tree_thumb.jpg',130, 195,5,'photo_7232975.html');
												thumbnails[3181664] = new thumbnail(3181664,'147460','The Rocks Playground','The_Rocks_Playground_thumb.jpg',130, 195,5,'photo_3181664.html');
												thumbnails[3181661] = new thumbnail(3181661,'147460','Twilight Shore','Twilight_Shore_thumb.jpg',130, 87,5,'photo_3181661.html');
												thumbnails[2242399] = new thumbnail(2242399,'147195','Orchardton Tower','Orchardton_Tower_thumb.jpg',130, 194,5,'photo_2242399.html');
												thumbnails[2242618] = new thumbnail(2242618,'147458','Sky Reflections in Loch Lurkie','Sky_reflections_in_Loch_Lurkie_thumb.jpg',130, 87,5,'photo_2242618.html');
												thumbnails[2242936] = new thumbnail(2242936,'147459','Wooden Door - Buonconvento','Wooden_door_Buonconvento_Tuscany_thumb.jpg',130, 194,5,'photo_2242936.html');
												thumbnails[2243716] = new thumbnail(2243716,'147460','First Light','First_Light_thumb.jpg',130, 87,5,'photo_2243716.html');
												thumbnails[2251232] = new thumbnail(2251232,'147461','Angelic Pairing','Angelic_Pairing_thumb.jpg',130, 123,5,'photo_2251232.html');
												thumbnails[3039211] = new thumbnail(3039211,'186884','My Old Friend','My_Old_Freind_thumb.jpg',130, 226,5,'photo_3039211.html');
												thumbnails[2242401] = new thumbnail(2242401,'147195','Supporting Stone','Supporting _Stone_thumb.jpg',130, 195,5,'photo_2242401.html');
												thumbnails[2242703] = new thumbnail(2242703,'147458','Sunrise Silhouette','Sunrise_Silhouette_thumb.jpg',130, 87,5,'photo_2242703.html');
												thumbnails[2242937] = new thumbnail(2242937,'147459','Tuscan Wood with a Splash of Colour','Tuscan_Wood_with_a_Splash_of_Colour_thumb.jpg',130, 194,5,'photo_2242937.html');
												thumbnails[2243722] = new thumbnail(2243722,'147460','Dawn Coming','Dawn_Coming_thumb.jpg',130, 87,5,'photo_2243722.html');
												thumbnails[2251380] = new thumbnail(2251380,'147461','Swan Neck','Swan_neck_thumb.jpg',130, 147,5,'photo_2251380.html');
												thumbnails[3039157] = new thumbnail(3039157,'186884','A Face of Many Years','A _Face_of_Many_Years_thumb.jpg',130, 195,5,'photo_3039157.html');
												thumbnails[2242403] = new thumbnail(2242403,'147195','Weathered Stone','Weathered_Stone_thumb.jpg',130, 194,5,'photo_2242403.html');
												thumbnails[2242571] = new thumbnail(2242571,'147458','Motte of Urr','Motte_of_Urr_thumb.jpg',130, 87,5,'photo_2242571.html');
												thumbnails[2242939] = new thumbnail(2242939,'147459','An Old Lock','An_Old_Lock_thumb.jpg',130, 194,5,'photo_2242939.html');
												thumbnails[2243737] = new thumbnail(2243737,'147460','Rough Firth at Kippford','Rough_Firth_ Kipford_thumb.jpg',130, 87,5,'photo_2243737.html');
												thumbnails[2251425] = new thumbnail(2251425,'147461','Wingman','Wingman_thumb.jpg',130, 87,5,'photo_2251425.html');
												thumbnails[3039278] = new thumbnail(3039278,'186884','Meaningful Dialogue','Meaningfull_Dialogue_thumb.jpg',130, 194,5,'photo_3039278.html');
												thumbnails[2242404] = new thumbnail(2242404,'147195','The Power of Stone','The_Power_of Stone_thumb.jpg',130, 194,5,'photo_2242404.html');
												thumbnails[2242757] = new thumbnail(2242757,'147458','West Logan Hill Sheep','West_Logan_Hill_Sheep_thumb.jpg',130, 87,5,'photo_2242757.html');
												thumbnails[2243740] = new thumbnail(2243740,'147460','Fishing Boat - Black and White','Fishing_Boat_bw _thumb.jpg',130, 87,5,'photo_2243740.html');
												thumbnails[2251463] = new thumbnail(2251463,'147461','The Three Charolais','The_Three_Charolais_thumb.jpg',130, 87,5,'photo_2251463.html');
												thumbnails[3039290] = new thumbnail(3039290,'186884','Good Friends','Good_Friends_thumb.jpg',130, 194,5,'photo_3039290.html');
												thumbnails[2242398] = new thumbnail(2242398,'147195','Flower Bouquet','Flower_Bouquet_thumb.jpg',130, 195,5,'photo_2242398.html');
												thumbnails[2242616] = new thumbnail(2242616,'147458','Sky Reflections','Sky_Reflections_thumb.jpg',130, 87,5,'photo_2242616.html');
												thumbnails[2242957] = new thumbnail(2242957,'147459','It Sees','It_Sees_thumb.jpg',130, 194,5,'photo_2242957.html');
												thumbnails[2243745] = new thumbnail(2243745,'147460','Fishing Boat','Fishing_Boat_thumb.jpg',130, 87,5,'photo_2243745.html');
												thumbnails[3046167] = new thumbnail(3046167,'186884','Ready for Winter','Ready_for_Winter_thumb.jpg',130, 195,5,'photo_3046167.html');
												thumbnails[2242397] = new thumbnail(2242397,'147195','Archways','Archways_thumb.jpg',130, 315,5,'photo_2242397.html');
												thumbnails[2242546] = new thumbnail(2242546,'147458','Eye of the Land','Eye_of_the_Land_thumb.jpg',130, 87,5,'photo_2242546.html');
												thumbnails[2242976] = new thumbnail(2242976,'147459','The Crucifixion','The_Crucifiction_thumb.jpg',130, 194,5,'photo_2242976.html');
												thumbnails[2243756] = new thumbnail(2243756,'147460','Running Water','Running_Water_thumb.jpg',130, 87,5,'photo_2243756.html');
												thumbnails[3046173] = new thumbnail(3046173,'186884','The Wood Collector','The_Wood_Collector_thumb.jpg',130, 195,5,'photo_3046173.html');
												thumbnails[2239584] = new thumbnail(2239584,'147195','Archways to Heaven','Archways_to_Heaven_thumb.jpg',130, 87,5,'photo_2239584.html');
												thumbnails[2242614] = new thumbnail(2242614,'147458','Quiet Morning','Quiet_Morning_thumb.jpg',130, 87,5,'photo_2242614.html');
												thumbnails[2242985] = new thumbnail(2242985,'147459','Alterations','Alterations_thumb.jpg',130, 194,5,'photo_2242985.html');
												thumbnails[2243762] = new thumbnail(2243762,'147460','Laminar Flow','Laminar_Flow_thumb.jpg',130, 54,5,'photo_2243762.html');
												thumbnails[3046179] = new thumbnail(3046179,'186884','My Hand','My_Hand_thumb.jpg',130, 195,5,'photo_3046179.html');
												thumbnails[2239589] = new thumbnail(2239589,'147195','Dundrennan Abbey','Dundrennan_Abbey_thumb.jpg',130, 87,5,'photo_2239589.html');
												thumbnails[2242769] = new thumbnail(2242769,'147458','Winter Morning','Winter_Morning_thumb.jpg',130, 87,5,'photo_2242769.html');
												thumbnails[2242987] = new thumbnail(2242987,'147459','Reflection','Reflection_thumb.jpg',130, 304,5,'photo_2242987.html');
												thumbnails[3046182] = new thumbnail(3046182,'186884','Your Hand','Your_Hand_thumb.jpg',130, 87,5,'photo_3046182.html');
												thumbnails[2239601] = new thumbnail(2239601,'147195','San Quirico D\'Orchia','Saint_Quirico D_Orchia_thumb.jpg',130, 87,5,'photo_2239601.html');
												thumbnails[2242715] = new thumbnail(2242715,'147458','The Lane in Winter','The_Lane_in_Winter_thumb.jpg',130, 87,5,'photo_2242715.html');
												thumbnails[2242990] = new thumbnail(2242990,'147459','Southerness Lighthouse','Southerness_Lighthouse_thumb.jpg',130, 195,5,'photo_2242990.html');
												thumbnails[3046190] = new thumbnail(3046190,'186884','Umbrella Time','Umbrella_Time_thumb.jpg',130, 87,5,'photo_3046190.html');
												thumbnails[2242453] = new thumbnail(2242453,'147458','Evening Sun','Evening_Sun_Threave_Castle_thumb.jpg',130, 87,5,'photo_2242453.html');
												thumbnails[2242991] = new thumbnail(2242991,'302849','Would you Like a Glass of Wine?','Would_you_like_a_glass _thumb.jpg',130, 194,5,'photo_2242991.html');
												thumbnails[3046192] = new thumbnail(3046192,'186884','Street Artist','Street_Artist_thumb.jpg',130, 87,5,'photo_3046192.html');
												thumbnails[2242744] = new thumbnail(2242744,'147458','Tuscan Storm','Tuscan_Storm_thumb.jpg',130, 87,5,'photo_2242744.html');
												thumbnails[2243524] = new thumbnail(2243524,'147459','Autumn Leaves','Autumn_Leaves_thumb.jpg',130, 87,5,'photo_2243524.html');
												thumbnails[2243835] = new thumbnail(2243835,'147460','Seaweed','Seaweed_thumb.jpg',130, 89,5,'photo_2243835.html');
												thumbnails[3046199] = new thumbnail(3046199,'186884','Pigeon Fancier','Pigeon_Fancier_thumb.jpg',130, 87,5,'photo_3046199.html');
												thumbnails[2242406] = new thumbnail(2242406,'147458','An Old Friend','An_Old_Friend_thumb.jpg',130, 195,5,'photo_2242406.html');
												thumbnails[2243845] = new thumbnail(2243845,'147460','Shore Sunrise','Shore_Sunrise_thumb.jpg',130, 87,5,'photo_2243845.html');
												thumbnails[3046202] = new thumbnail(3046202,'186884','The Shoelace','The_Shoelace_thumb.jpg',130, 87,5,'photo_3046202.html');
												thumbnails[2242563] = new thumbnail(2242563,'147458','Glenlochar Gravestones','Glenlochar_Gravestones_thumb.jpg',130, 194,5,'photo_2242563.html');
												thumbnails[2243536] = new thumbnail(2243536,'147459','Frosted Leaves','Frosted_Leaves_thumb.jpg',130, 87,5,'photo_2243536.html');
												thumbnails[2243860] = new thumbnail(2243860,'147460','Sea Escape','Sea_Escape_thumb.jpg',130, 87,5,'photo_2243860.html');
												thumbnails[3046207] = new thumbnail(3046207,'186884','Window Cleaner','Window_Cleaner_thumb.jpg',130, 87,5,'photo_3046207.html');
												thumbnails[2243547] = new thumbnail(2243547,'147459','Fungus','Fungus_thumb.jpg',130, 87,5,'photo_2243547.html');
												thumbnails[2243878] = new thumbnail(2243878,'147460','Cascade','Cascade_thumb.jpg',130, 194,5,'photo_2243878.html');
												thumbnails[3046215] = new thumbnail(3046215,'186884','The Signal','The_Signal_thumb.jpg',130, 87,5,'photo_3046215.html');
												thumbnails[2242650] = new thumbnail(2242650,'147458','Stone Wall and Tree','Stone_wall_and_tree_thumb.jpg',130, 194,5,'photo_2242650.html');
												thumbnails[2243668] = new thumbnail(2243668,'147459','Ice Bubbles','Ice_Bubbles_thumb.jpg',130, 98,5,'photo_2243668.html');
												thumbnails[2243893] = new thumbnail(2243893,'147460','The Mudflats of Kippford','The_Mudflats_of Kippford_thumb.jpg',130, 195,5,'photo_2243893.html');
												thumbnails[3046222] = new thumbnail(3046222,'186884','Artisans','Artisans_thumb.jpg',130, 195,5,'photo_3046222.html');
												thumbnails[2242423] = new thumbnail(2242423,'147458','Atlantis Belle','Atlantis_Belle_thumb.jpg',130, 194,5,'photo_2242423.html');
												thumbnails[2243688] = new thumbnail(2243688,'147459','Into the Dogwood','Into_the_Dogwood_thumb.jpg',130, 87,5,'photo_2243688.html');
												thumbnails[2348094] = new thumbnail(2348094,'147460','Tide is Out','Tide_is_out_thumb.jpg',130, 194,5,'photo_2348094.html');
												thumbnails[3046223] = new thumbnail(3046223,'186884','Sittting in Line','Sitting_in_Line_thumb.jpg',130, 195,5,'photo_3046223.html');
												thumbnails[2242719] = new thumbnail(2242719,'147458','Trees and Shadows','Trees_and_Shadows_thumb.jpg',130, 248,5,'photo_2242719.html');
												thumbnails[3046226] = new thumbnail(3046226,'186884','The Tourist','The_Tourist_thumb.jpg',130, 195,5,'photo_3046226.html');
												thumbnails[3046227] = new thumbnail(3046227,'186884','Mobile Time','Mobile_Time_thumb.jpg',130, 194,5,'photo_3046227.html');
												thumbnails[3046235] = new thumbnail(3046235,'186884','Antonella','Antonella_thumb.jpg',130, 195,5,'photo_3046235.html');
												thumbnails[3046238] = new thumbnail(3046238,'186884','Gelato World Champion','Gelato_World_Champion_thumb.jpg',130, 195,5,'photo_3046238.html');
												thumbnails[3046240] = new thumbnail(3046240,'186884','Stepping Up','Stepping_Up_thumb.jpg',130, 195,5,'photo_3046240.html');
												thumbnails[3046245] = new thumbnail(3046245,'186884','That Hammer','That_Hammer_thumb.jpg',130, 195,5,'photo_3046245.html');
												thumbnails[3046248] = new thumbnail(3046248,'186884','The Card Game','The_Card_Game_thumb.jpg',130, 194,5,'photo_3046248.html');
												thumbnails[3046250] = new thumbnail(3046250,'186884','The Hose','The_Hose_thumb.jpg',130, 328,5,'photo_3046250.html');
												thumbnails[3046257] = new thumbnail(3046257,'186884','The Harvesters','The_Harvesters_thumb.jpg',130, 195,5,'photo_3046257.html');
												thumbnails[3046265] = new thumbnail(3046265,'186884','Grape Harvest','Grape_Harvest_thumb.jpg',130, 195,5,'photo_3046265.html');
												thumbnails[3046267] = new thumbnail(3046267,'186884','The Farmer','The_Farmer_thumb.jpg',130, 194,5,'photo_3046267.html');
												thumbnails[3046268] = new thumbnail(3046268,'186884','A Steep Climb','A_Steep_Climb_thumb.jpg',130, 195,5,'photo_3046268.html');
												thumbnails[3046272] = new thumbnail(3046272,'186884','Push Bike','Push_Bike_thumb.jpg',130, 194,5,'photo_3046272.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[147195] = new gallery(147195,'5129947,2242399','Architectural','gallery',[2347479,5129947,2242399,2242401,2242403,2242404,2242398,2242397,2239584,2239589,2239601],0, 0, '', 'gallery_147195.html',0,0);
				  					galleries[147458] = new gallery(147458,'7232965','Landscape','gallery',[2347820,2347831,2347850,2347864,2347887,2347894,2347905,2347919,2347933,3923265,3923297,5129864,5129926,5129936,5129941,5512344,5512364,5512368,5512370,7232956,7232965,7232969,7232975,2242618,2242703,2242571,2242757,2242616,2242546,2242614,2242769,2242715,2242453,2242744,2242406,2242563,2242650,2242423,2242719],0, 0, '', 'gallery_147458.html',0,0);
				  					galleries[152968] = new gallery(152968,'2347731','Flowers','gallery',[2347540,2347584,2347612,2347684,2347731],0, 0, '', 'gallery_152968.html',0,0);
				  					galleries[147459] = new gallery(147459,'3923250','Texture and Abstract','gallery',[2348028,2348051,2403634,2403641,2403660,3923207,3923230,3923243,3923250,5512355,2242936,2242937,2242939,2242957,2242976,2242985,2242987,2242990,2243524,2243536,2243547,2243668,2243688],0, 0, '', 'gallery_147459.html',0,0);
				  					galleries[186884] = new gallery(186884,'3046267','Italian People','gallery',[3039211,3039157,3039278,3039290,3046167,3046173,3046179,3046182,3046190,3046192,3046199,3046202,3046207,3046215,3046222,3046223,3046226,3046227,3046235,3046238,3046240,3046245,3046248,3046250,3046257,3046265,3046267,3046268,3046272],0, 0, '', 'gallery_186884.html',0,0);
				  					galleries[147460] = new gallery(147460,'7232951','Water and Shore','gallery',[3923225,3923269,3923294,5129937,5129952,5129957,5512348,7232951,3181664,3181661,2243716,2243722,2243737,2243740,2243745,2243756,2243762,2243835,2243845,2243860,2243878,2243893,2348094],0, 0, '', 'gallery_147460.html',0,0);
				  					galleries[147461] = new gallery(147461,'7232912','Wildlife','gallery',[2347959,2347993,2348008,7232912,2251232,2251380,2251425,2251463],0, 0, '', 'gallery_147461.html',0,0);
				  					galleries[302849] = new gallery(302849,'7232942','Other','gallery',[5371448,7232942,7232946,2242991],0, 0, '', 'gallery_302849.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7232975,7232969,7232951,7232942,7232912,5512370,5512368,5512355,5512348,5512344,5371448,5129957,5129952,5129947,5129937,5129926,3923250,3923230,3923207,3181664,3181661,3046267,2347731,2347612,2347540,2251380,2243893,2243878,2243668,2242991,2242937,2242404,2242399';
imageSets[2] = '7232965,7232951,7232942,7232912,5129947,3923250,3046267,2347731,2242399';
imageSets[3] = '5129957,5129952,5129947,5129941,5129937,5129936,5129926,5129864,4338007,3923297,3923294,3923269,3923265,3923250,3923243,3923230,3923225,3923207,3730853,3730844,3657701,3496764,3496634,3496630,3495714,3495711,3495702,3181664,3181661,3046272,3046268,3046267,3046265,3046257,3046250,3046248,3046245,3046240,3046238,3046235,3046227,3046226,3046223,3046222,3046215,3046207,3046202,3046199,3046192,3046190';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/akhowes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/akhowes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/akhowes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/akhowes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/akhowes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/akhowes/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'alwynhowes.com: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

