window.thumbnails = {};
															thumbnails[2066964] = clik.newPhoto({"id":2066964,"src":"Great_Longstone_Parish_Church_80012_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_2066964.html","width":160,"caption":"The Word","height":107});
															thumbnails[2068752] = clik.newPhoto({"id":2068752,"src":"Church_Snow_800_New_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_2068752.html","width":160,"caption":"A Dusting of Snow","height":107});
															thumbnails[2873281] = clik.newPhoto({"id":2873281,"src":"Autumn_Morning_Border_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_2873281.html","width":160,"caption":"Autumn Morning","height":107});
															thumbnails[4383419] = clik.newPhoto({"id":4383419,"src":"Dublin_Bridge_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_4383419.html","width":160,"caption":"Dublin Bridge","height":240});
															thumbnails[4384060] = clik.newPhoto({"id":4384060,"src":"Old_Fire_Engine_8001_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_4384060.html","width":160,"caption":"Old Fire Engine","height":107});
															thumbnails[4966552] = clik.newPhoto({"id":4966552,"src":"Climbers_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_4966552.html","width":160,"caption":"Climbers and Millstones","height":107});
															thumbnails[5997253] = clik.newPhoto({"id":5997253,"src":"Front_Room_Beamish_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_5997253.html","width":160,"caption":"A Time Gone By","height":107});
															thumbnails[7070137] = clik.newPhoto({"id":7070137,"src":"Through_Norwich_Cloisters_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_7070137.html","width":160,"caption":"Through the Cloisters","height":107});
															thumbnails[8197661] = clik.newPhoto({"id":8197661,"src":"View_from_the_Cab_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_8197661.html","width":160,"caption":"View from the Cab","height":107});
															thumbnails[8741082] = clik.newPhoto({"id":8741082,"src":"Autumn_Roots_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8741082.html","width":160,"caption":"Autumn Roots","height":240});
															thumbnails[8980302] = clik.newPhoto({"id":8980302,"src":"Burbage_Valley_Snow_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_8980302.html","width":160,"caption":"Snow in the Valley","height":107});
															thumbnails[3950074] = clik.newPhoto({"id":3950074,"src":"Light_and_Shadows_Ashford_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_3950074.html","width":160,"caption":"Light and Shadows","height":107});
															thumbnails[3950082] = clik.newPhoto({"id":3950082,"src":"Beamish_Nursery_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_3950082.html","width":160,"caption":"The Nursery","height":107});
															thumbnails[4569162] = clik.newPhoto({"id":4569162,"src":"Platform_1_Arrival_8001_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_4569162.html","width":160,"caption":"Platform 1 Arrival","height":107});
															thumbnails[5394176] = clik.newPhoto({"id":5394176,"src":"Other_Side_of_the_Bridge_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_5394176.html","width":160,"caption":"Across the Thames","height":240});
															thumbnails[5529691] = clik.newPhoto({"id":5529691,"src":"Robin_Hoods_Bay_Beachcombers_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_5529691.html","width":160,"caption":"Rock Pools","height":107});
															thumbnails[6672785] = clik.newPhoto({"id":6672785,"src":"Sunlight_and_Heather_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_6672785.html","width":160,"caption":"Sunlight and Heather","height":107});
															thumbnails[6728663] = clik.newPhoto({"id":6728663,"src":"Diesel_and_Steam_8001_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_6728663.html","width":160,"caption":"Diesel and Steam","height":107});
															thumbnails[7069531] = clik.newPhoto({"id":7069531,"src":"Youlgreave_Church_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_7069531.html","width":160,"caption":"Youlgreave Church","height":107});
															thumbnails[7467889] = clik.newPhoto({"id":7467889,"src":"Castle_Ruins_Dunstanburgh_8001_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_7467889.html","width":160,"caption":"Castle Ruins","height":240});
															thumbnails[8744545] = clik.newPhoto({"id":8744545,"src":"Snowy_Village_800_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_8744545.html","width":160,"caption":"Snowy Village","height":107});
															thumbnails[8764766] = clik.newPhoto({"id":8764766,"src":"Sledging_Field_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_8764766.html","width":160,"caption":"Sledging Field","height":107});
															thumbnails[2376655] = clik.newPhoto({"id":2376655,"src":"A_Record_of_History_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_2376655.html","width":160,"caption":"A Record of History","height":107});
															thumbnails[2557863] = clik.newPhoto({"id":2557863,"src":"Bridge_Reflections_New_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_2557863.html","width":160,"caption":"Newcastle Bridges","height":107});
															thumbnails[3449143] = clik.newPhoto({"id":3449143,"src":"Red_Arrow_8001_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_3449143.html","width":160,"caption":"Old 'Arrow'","height":107});
															thumbnails[4966572] = clik.newPhoto({"id":4966572,"src":"Early_Morning_Light_Bamford_Edge_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_4966572.html","width":160,"caption":"Early Morning Light","height":107});
															thumbnails[5679641] = clik.newPhoto({"id":5679641,"src":"Cogwheels_and_Chains_80012345_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_5679641.html","width":160,"caption":"Cogwheels and Chains","height":240});
															thumbnails[5936380] = clik.newPhoto({"id":5936380,"src":"Timeless_80012_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_5936380.html","width":160,"caption":"Timeless","height":107});
															thumbnails[6728571] = clik.newPhoto({"id":6728571,"src":"September_Sunrise_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_6728571.html","width":160,"caption":"September Sunrise","height":107});
															thumbnails[7059011] = clik.newPhoto({"id":7059011,"src":"Piles_of_Snow_6001_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_7059011.html","width":160,"caption":"Snowy Gateway","height":107});
															thumbnails[7293290] = clik.newPhoto({"id":7293290,"src":"Church_and_Castle_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_7293290.html","width":160,"caption":"Church and Castle","height":107});
															thumbnails[8376654] = clik.newPhoto({"id":8376654,"src":"Underneath_the_Pier_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8376654.html","width":160,"caption":"Beneath the Pier","height":240});
															thumbnails[8376868] = clik.newPhoto({"id":8376868,"src":"Heather_View_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_8376868.html","width":160,"caption":"Heather across the Moors","height":107});
															thumbnails[2376651] = clik.newPhoto({"id":2376651,"src":"Fishing_Huts_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_2376651.html","width":160,"caption":"Fishing Huts","height":107});
															thumbnails[2726182] = clik.newPhoto({"id":2726182,"src":"Over_the_Top_II_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_2726182.html","width":160,"caption":"Over the Top II","height":107});
															thumbnails[3735981] = clik.newPhoto({"id":3735981,"src":"Tractor_and_DC3_8001_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_3735981.html","width":160,"caption":"Tractor and Plane","height":107});
															thumbnails[6426400] = clik.newPhoto({"id":6426400,"src":"Early_Morning_Light_Norwich_8001_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_6426400.html","width":160,"caption":"Early Morning Light","height":240});
															thumbnails[7070186] = clik.newPhoto({"id":7070186,"src":"Barrow_Hill_Workshop_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_7070186.html","width":160,"caption":"Workshop","height":107});
															thumbnails[7204247] = clik.newPhoto({"id":7204247,"src":"Making_Tracks_8001_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_7204247.html","width":160,"caption":"Making Tracks","height":107});
															thumbnails[7543129] = clik.newPhoto({"id":7543129,"src":"Evenong_Jet_Trails_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_7543129.html","width":160,"caption":"Trails across the Sky","height":107});
															thumbnails[7795466] = clik.newPhoto({"id":7795466,"src":"View_from_Higger_Tor_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_7795466.html","width":160,"caption":"View from Higger Tor","height":107});
															thumbnails[8197703] = clik.newPhoto({"id":8197703,"src":"Driving_Wheels_BP_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8197703.html","width":160,"caption":"Driving Wheels","height":240});
															thumbnails[8376858] = clik.newPhoto({"id":8376858,"src":"Buxton_Opera_House_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_8376858.html","width":160,"caption":"Opera House","height":107});
															thumbnails[8764778] = clik.newPhoto({"id":8764778,"src":"Candle_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_8764778.html","width":160,"caption":"Organ and Nave","height":107});
															thumbnails[2066968] = clik.newPhoto({"id":2066968,"src":"Down_the_Aisle_Hathersage_8001234_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_2066968.html","width":160,"caption":"Aisle View","height":240});
															thumbnails[2534745] = clik.newPhoto({"id":2534745,"src":"Newcastle_Cathedral_II_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_2534745.html","width":160,"caption":"View from the Font","height":240});
															thumbnails[4383404] = clik.newPhoto({"id":4383404,"src":"Carnforth_Engine_Shed_8001_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_4383404.html","width":160,"caption":"Carnforth Engine Shed","height":107});
															thumbnails[4384015] = clik.newPhoto({"id":4384015,"src":"High_Bradfield_Nave_and_East_Window_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_4384015.html","width":160,"caption":"Nave and East Window","height":240});
															thumbnails[5291354] = clik.newPhoto({"id":5291354,"src":"Snowy_Fields_800_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_5291354.html","width":160,"caption":"Snowfields","height":240});
															thumbnails[5394119] = clik.newPhoto({"id":5394119,"src":"Lone_Tree_in_the_Snow_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_5394119.html","width":160,"caption":"Lone Tree","height":240});
															thumbnails[6426489] = clik.newPhoto({"id":6426489,"src":"Hartington_Iron_Gates_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_6426489.html","width":160,"caption":"Iron Gates","height":240});
															thumbnails[7062598] = clik.newPhoto({"id":7062598,"src":"River_Wye_Bakewell_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_7062598.html","width":160,"caption":"River Wye in Bakewell","height":240});
															thumbnails[8572179] = clik.newPhoto({"id":8572179,"src":"Cobwebs_Mist_and_Heather_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_8572179.html","width":160,"caption":"Cobwebs, Mist and Heather","height":107});
															thumbnails[8764752] = clik.newPhoto({"id":8764752,"src":"Tree_in_the_Mist_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8764752.html","width":160,"caption":"Tree in the Mist","height":107});
															thumbnails[2376645] = clik.newPhoto({"id":2376645,"src":"Surprise_View_Snow_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_2376645.html","width":160,"caption":"Breaking Through","height":240});
															thumbnails[3735979] = clik.newPhoto({"id":3735979,"src":"Posts_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_3735979.html","width":160,"caption":"Framed","height":240});
															thumbnails[4383929] = clik.newPhoto({"id":4383929,"src":"Majestic_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_4383929.html","width":160,"caption":"Majestic","height":240});
															thumbnails[4569140] = clik.newPhoto({"id":4569140,"src":"A4_Sir_Nigel_1_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_4569140.html","width":160,"caption":"Sir Nigel","height":240});
															thumbnails[5059967] = clik.newPhoto({"id":5059967,"src":"Remains_of_the_Day_8001_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_5059967.html","width":160,"caption":"The Remains of the Day","height":240});
															thumbnails[5561062] = clik.newPhoto({"id":5561062,"src":"Winter_Morning_800_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_5561062.html","width":160,"caption":"Winter Dawn","height":240});
															thumbnails[6817932] = clik.newPhoto({"id":6817932,"src":"Age_of_Steam_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_6817932.html","width":160,"caption":"The Age of Steam","height":107});
															thumbnails[7631202] = clik.newPhoto({"id":7631202,"src":"Looking_Upwards_Spire_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_7631202.html","width":160,"caption":"Reaching Upwards","height":240});
															thumbnails[8687314] = clik.newPhoto({"id":8687314,"src":"Easdale_Autumn_Colours_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8687314.html","width":160,"caption":"Autumn in the Lake District","height":107});
															thumbnails[8744526] = clik.newPhoto({"id":8744526,"src":"Staircase_Light_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_8744526.html","width":160,"caption":"Staircase Light","height":240});
															thumbnails[8975971] = clik.newPhoto({"id":8975971,"src":"Last_Rays_New_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_8975971.html","width":160,"caption":"Last Rays of Daylight","height":107});
															thumbnails[1012478] = clik.newPhoto({"id":1012478,"src":"Mushroom_Cluster_800_thumb.jpg","galleries_id":74471,"server_id":18,"link":"photo_1012478.html","width":160,"caption":"Mushroom Cluster","height":240});
															thumbnails[3453277] = clik.newPhoto({"id":3453277,"src":"Great_Longstone_Parish_Church_II_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_3453277.html","width":160,"caption":"Light","height":240});
															thumbnails[3950092] = clik.newPhoto({"id":3950092,"src":"Loco_Shed_II_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_3950092.html","width":160,"caption":"Loco Shed","height":240});
															thumbnails[4966528] = clik.newPhoto({"id":4966528,"src":"City_Wheel_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_4966528.html","width":160,"caption":"Wheeeee!","height":240});
															thumbnails[5466547] = clik.newPhoto({"id":5466547,"src":"Clouds_over_a_Cornfield_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_5466547.html","width":160,"caption":"Clouds over a Wheatfield","height":240});
															thumbnails[5563447] = clik.newPhoto({"id":5563447,"src":"More_Snow_Threatened_800_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_5563447.html","width":160,"caption":"More Snow Threatened","height":240});
															thumbnails[7069604] = clik.newPhoto({"id":7069604,"src":"Psalm_23_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_7069604.html","width":160,"caption":"Psalm 23","height":240});
															thumbnails[7283661] = clik.newPhoto({"id":7283661,"src":"Steam_Locos_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_7283661.html","width":160,"caption":"Steam Locomotives","height":107});
															thumbnails[7543131] = clik.newPhoto({"id":7543131,"src":"Liseaux_Cathedral_Choir_View_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_7543131.html","width":160,"caption":"View from the Choir Stalls","height":240});
															thumbnails[8473593] = clik.newPhoto({"id":8473593,"src":"Early_Morning_Light_Mitchell_Field_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_8473593.html","width":160,"caption":"The Sky Above","height":107});
															thumbnails[8741114] = clik.newPhoto({"id":8741114,"src":"Easdale_Reflections_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8741114.html","width":160,"caption":"Reflections","height":107});
															thumbnails[8764812] = clik.newPhoto({"id":8764812,"src":"Church_Holly_in_the_Snow_800_thumb.jpg","galleries_id":382109,"server_id":18,"link":"photo_8764812.html","width":160,"caption":"Church Holly in the Snow","height":240});
															thumbnails[1012462] = clik.newPhoto({"id":1012462,"src":"Early_Morning_Dew_800_thumb.jpg","galleries_id":74471,"server_id":18,"link":"photo_1012462.html","width":160,"caption":"Early Morning Dew","height":240});
															thumbnails[2557439] = clik.newPhoto({"id":2557439,"src":"Ready_and_Waiting_New_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_2557439.html","width":160,"caption":"Ready and Waiting","height":240});
															thumbnails[3449120] = clik.newPhoto({"id":3449120,"src":"Hathersage_Snow_Lamps_8001_thumb.jpg","galleries_id":334971,"server_id":18,"link":"photo_3449120.html","width":160,"caption":"When the snow lay round about . . .","height":240});
															thumbnails[5394205] = clik.newPhoto({"id":5394205,"src":"Ladybower_Wall_800_thumb.jpg","galleries_id":117589,"server_id":18,"link":"photo_5394205.html","width":160,"caption":"Dry Stone Wall","height":240});
															thumbnails[5679630] = clik.newPhoto({"id":5679630,"src":"Woodland_in_Autumn_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_5679630.html","width":160,"caption":"Autumn in Padley","height":107});
															thumbnails[6728642] = clik.newPhoto({"id":6728642,"src":"Liseaux_Cathedral_800_thumb.jpg","galleries_id":336196,"server_id":18,"link":"photo_6728642.html","width":160,"caption":"Liseaux Cathedral","height":240});
															thumbnails[6817935] = clik.newPhoto({"id":6817935,"src":"Steam_and_Smoke_Dragon_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_6817935.html","width":160,"caption":"Smoke Dragon","height":107});
															thumbnails[8741194] = clik.newPhoto({"id":8741194,"src":"Buxton_Crescent_Monument_800_thumb.jpg","galleries_id":72621,"server_id":18,"link":"photo_8741194.html","width":160,"caption":"Monument and Crescent","height":240});
															thumbnails[8741197] = clik.newPhoto({"id":8741197,"src":"Buxton_Domes_800_thumb.jpg","galleries_id":382850,"server_id":18,"link":"photo_8741197.html","width":160,"caption":"Buxton Domes","height":240});
															thumbnails[8764797] = clik.newPhoto({"id":8764797,"src":"Ecclesfield_Lectern_View_800_thumb.jpg","galleries_id":228030,"server_id":18,"link":"photo_8764797.html","width":160,"caption":"Lectern View","height":240});
															thumbnails[9080056] = clik.newPhoto({"id":9080056,"src":"Peveril_and_Beyond_New_801_thumb.jpg","galleries_id":210944,"server_id":38,"link":"photo_9080056.html","width":160,"caption":"Peveril and Beyond","height":107});
															thumbnails[1432049] = clik.newPhoto({"id":1432049,"src":"Eagle_Owl_Close_Up_800_thumb.jpg","galleries_id":74471,"server_id":18,"link":"photo_1432049.html","width":160,"caption":"Eagle Owl","height":240});
															thumbnails[3448853] = clik.newPhoto({"id":3448853,"src":"Early_Morning_Sunshine_800_thumb.jpg","galleries_id":117626,"server_id":18,"link":"photo_3448853.html","width":160,"caption":"Waiting Tram","height":240});
															thumbnails[3735956] = clik.newPhoto({"id":3735956,"src":"Old_Engine_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_3735956.html","width":160,"caption":"Old Engine","height":240});
															thumbnails[7069257] = clik.newPhoto({"id":7069257,"src":"Cave_Dale_New_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_7069257.html","width":160,"caption":"Peveril Landscape","height":240});
															thumbnails[8741092] = clik.newPhoto({"id":8741092,"src":"The_Walk_Ahead_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8741092.html","width":160,"caption":"The Walk Ahead","height":107});
															thumbnails[4383478] = clik.newPhoto({"id":4383478,"src":"Late_Evening_Shadows_8001_thumb.jpg","galleries_id":74471,"server_id":18,"link":"photo_4383478.html","width":160,"caption":"Late Evening Sunshine","height":240});
															thumbnails[5826668] = clik.newPhoto({"id":5826668,"src":"Late_Afternoon_Sunlight_Stanage_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_5826668.html","width":160,"caption":"Late Afternoon Sunlight","height":107});
															thumbnails[7070106] = clik.newPhoto({"id":7070106,"src":"Sunlight_Castle_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_7070106.html","width":160,"caption":"Railway Station","height":240});
															thumbnails[7930867] = clik.newPhoto({"id":7930867,"src":"Old_Church_Piano_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_7930867.html","width":160,"caption":"Old Church Piano","height":107});
															thumbnails[2250872] = clik.newPhoto({"id":2250872,"src":"Gather_Round_800_thumb.jpg","galleries_id":228031,"server_id":18,"link":"photo_2250872.html","width":160,"caption":"Gather Round","height":240});
															thumbnails[5957922] = clik.newPhoto({"id":5957922,"src":"Bamford_Edge_Rockface_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_5957922.html","width":160,"caption":"Rockface","height":107});
															thumbnails[7070338] = clik.newPhoto({"id":7070338,"src":"Flower_Detail_800_thumb.jpg","galleries_id":74471,"server_id":18,"link":"photo_7070338.html","width":160,"caption":"Flower Detail","height":107});
															thumbnails[8976825] = clik.newPhoto({"id":8976825,"src":"January_Sunrise_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8976825.html","width":160,"caption":"January Sunrise","height":107});
															thumbnails[8171716] = clik.newPhoto({"id":8171716,"src":"Railway_Journey_New_800_thumb.jpg","galleries_id":210944,"server_id":18,"link":"photo_8171716.html","width":160,"caption":"Railway Journey","height":107});
															thumbnails[8980322] = clik.newPhoto({"id":8980322,"src":"Rydal_Water_800_thumb.jpg","galleries_id":228047,"server_id":18,"link":"photo_8980322.html","width":160,"caption":"Rydal Water","height":107});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[210944] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"RECENTLY ADDED","link":"gallery_210944.html","maxRecords":0.0,"photoIDs":[8741082.0,7467889.0,8376654.0,8197703.0,8764752.0,8687314.0,8741114.0,9080056.0,8741092.0,7930867.0,8976825.0,8171716.0],"skipIndex":0,"section_code":"gallery","featured_images":"8741082,8376654,8197703,7467889","id":210944,"singleSection":false});				  						galleries[117589] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANDSCAPES I","link":"gallery_117589.html","maxRecords":0.0,"photoIDs":[2873281.0,6672785.0,4966572.0,7543129.0,7062598.0,5059967.0,5466547.0,5394205.0],"skipIndex":0,"section_code":"gallery","featured_images":"7062598,5466547,5394205,5059967","id":117589,"singleSection":false});				  						galleries[228047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANDSCAPES II","link":"gallery_228047.html","maxRecords":0.0,"photoIDs":[4966552.0,5529691.0,8376868.0,2726182.0,8572179.0,8975971.0,8473593.0,5679630.0,7069257.0,5826668.0,5957922.0,8980322.0],"skipIndex":0,"section_code":"gallery","featured_images":7069257.0,"id":228047,"singleSection":false});				  						galleries[334971] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANDSCAPES III","link":"gallery_334971.html","maxRecords":0.0,"photoIDs":[2068752.0,8744545.0,7059011.0,7204247.0,5291354.0,5561062.0,5563447.0,3449120.0],"skipIndex":0,"section_code":"gallery","featured_images":"5563447,5561062,5291354,3449120","id":334971,"singleSection":false});				  						galleries[382109] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANDSCAPES IV","link":"gallery_382109.html","maxRecords":0.0,"photoIDs":[8980302.0,8764766.0,6728571.0,7795466.0,5394119.0,2376645.0,8764812.0],"skipIndex":0,"section_code":"gallery","featured_images":"8764812,5394119","id":382109,"singleSection":false});				  						galleries[74471] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NATURAL WORLD","link":"gallery_74471.html","maxRecords":0.0,"photoIDs":[1012478.0,1012462.0,1432049.0,4383478.0,7070338.0],"skipIndex":0,"section_code":"gallery","featured_images":"4383478,1432049,1012462","id":74471,"singleSection":false});				  						galleries[72621] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHITECTURE I","link":"gallery_72621.html","maxRecords":0.0,"photoIDs":[2066964.0,3950082.0,2376655.0,2376651.0,2066968.0,8744526.0,4966528.0,8741194.0],"skipIndex":0,"section_code":"gallery","featured_images":"8744526,8741194,4966528,2066968","id":72621,"singleSection":false});				  						galleries[228030] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHITECTURE II","link":"gallery_228030.html","maxRecords":0.0,"photoIDs":[5997253.0,3950074.0,2557863.0,8764778.0,2534745.0,7631202.0,3453277.0,8764797.0],"skipIndex":0,"section_code":"gallery","featured_images":"8764797,7631202,3453277","id":228030,"singleSection":false});				  						galleries[336196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHITECTURE III","link":"gallery_336196.html","maxRecords":0.0,"photoIDs":[4383419.0,5394176.0,5679641.0,6426400.0,4384015.0,4383929.0,7069604.0,6728642.0],"skipIndex":0,"section_code":"gallery","featured_images":"7069604,6728642,6426400,5679641,4384015,4383929,4383419","id":336196,"singleSection":false});				  						galleries[382850] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHITECTURE IV","link":"gallery_382850.html","maxRecords":0.0,"photoIDs":[7070137.0,7069531.0,7293290.0,8376858.0,6426489.0,3735979.0,7543131.0,8741197.0],"skipIndex":0,"section_code":"gallery","featured_images":"8741197,7543131,6426489,3735979","id":382850,"singleSection":false});				  						galleries[117626] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TRANSPORT I","link":"gallery_117626.html","maxRecords":0.0,"photoIDs":[8197661.0,6728663.0,5936380.0,7070186.0,4569140.0,3950092.0,2557439.0,3448853.0],"skipIndex":0,"section_code":"gallery","featured_images":"4569140,3950092,3448853,2557439","id":117626,"singleSection":false});				  						galleries[228031] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TRANSPORT II","link":"gallery_228031.html","maxRecords":0.0,"photoIDs":[4384060.0,4569162.0,3449143.0,3735981.0,4383404.0,6817932.0,7283661.0,6817935.0,3735956.0,7070106.0,2250872.0],"skipIndex":0,"section_code":"gallery","featured_images":"7070106,3735956","id":228031,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8980302,8197661,7070137,5997253,4966552,2873281,2068752,2066964,8764766,8744545,7069531,6672785,5529691,4569162,3950082,3950074,8376868,7293290,7059011,6728571,5936380,4966572,2557863,2376655,8764778,8376858,7795466,7543129,7204247,7070186,2726182,2376651,8764752,8572179,4383404,8975971,8687314,6817932,8741114,8473593,7283661,9080056,6817935,5679630,8741092,7930867,5826668,8976825,7070338,5957922,8980322,8171716';
imageSets[2] = '8741082,4383419,7467889,8376654,5679641,8197703,6426400,7062598,6426489,5394119,5291354,4384015,2066968,8744526,7631202,5561062,5059967,4569140,4383929,3735979,8764812,7543131,7069604,5563447,5466547,4966528,3950092,3453277,8764797,8741197,8741194,6728642,5394205,3449120,2557439,1012462,7069257,3735956,3448853,1432049,7070106,4383478';
imageSets[3] = '9080056,8980322,8980302,8976825,8975971,8764812,8764797,8764778,8764766,8764752,8744545,8744526,8741197,8741194,8741114,8741092,8741082,8687314,8572179,8473593,8376868,8376858,8376654,8197703,8197661,8171716,7930867,7795466,7631202,7543131,7543129,7467889,7293290,7283661,7204247,7070338,7070186,7070137,7070106,7069604,7069531,7069257,7062598,7059011,6817935,6817932,6728663,6728642,6728571,6672785';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/simonbull/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/simonbull/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/simonbull/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 = 'Simon Bull Images: ' + 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="SIMONBULL">';
			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;
	}
}

			

