window.thumbnails = {};
															thumbnails[3154205] = clik.newPhoto({"id":3154205,"src":"FIRST KISS 1 by Philip Plumb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"FIRST KISS by Phil Plumb","height":98});
															thumbnails[3248059] = clik.newPhoto({"id":3248059,"src":"club1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[3248061] = clik.newPhoto({"id":3248061,"src":"club-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[3248062] = clik.newPhoto({"id":3248062,"src":"club-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[3704840] = clik.newPhoto({"id":3704840,"src":"test_match_2_nottingham-26_crop_copy1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"EXPRESS DELIVERY by Ron Williams","height":148});
															thumbnails[4072683] = clik.newPhoto({"id":4072683,"src":"Potsdammer_Platz_clickpic1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"POTSDAMMER PLATZ by Phil Plumb","height":89});
															thumbnails[4072749] = clik.newPhoto({"id":4072749,"src":"Sidmouth_clickpic_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SIDMOUTH by Ron Williams","height":98});
															thumbnails[5105634] = clik.newPhoto({"id":5105634,"src":"Early_snow-1241_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":62});
															thumbnails[5105666] = clik.newPhoto({"id":5105666,"src":"Bottoms_Up-1291_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":209});
															thumbnails[1760299] = clik.newPhoto({"id":1760299,"src":"flying high_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1760299.html","width":130,"caption":"FLYING HIGH","height":152});
															thumbnails[1760355] = clik.newPhoto({"id":1760355,"src":"junk shop bw sharp_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1760355.html","width":130,"caption":"JUNK SHOP - Ron Williams","height":191});
															thumbnails[1760356] = clik.newPhoto({"id":1760356,"src":"Chatsworth Sun boat enhanced copy_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1760356.html","width":130,"caption":"CHATSWORTH SUN BOAT","height":129});
															thumbnails[1775908] = clik.newPhoto({"id":1775908,"src":"Cows2_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1775908.html","width":130,"caption":"COWS IN WINTER-Phil Plumb","height":91});
															thumbnails[1859037] = clik.newPhoto({"id":1859037,"src":"Larch Wood In Spring - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859037.html","width":130,"caption":"LARCH WOOD IN SPRING-Paul Beedham","height":86});
															thumbnails[1859062] = clik.newPhoto({"id":1859062,"src":"Magpie Mine - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859062.html","width":130,"caption":"MAGPIE MINE-Paul Beedham","height":87});
															thumbnails[1859069] = clik.newPhoto({"id":1859069,"src":"Millstones Stanage Edge - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859069.html","width":130,"caption":"MILLSTONES STANAGE EDGE-Paul Beedham","height":83});
															thumbnails[1859075] = clik.newPhoto({"id":1859075,"src":"Lose Hill from Mam Tor - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859075.html","width":130,"caption":"LOSE HILL FROM MAM TOR-Paul Beedham","height":68});
															thumbnails[1859076] = clik.newPhoto({"id":1859076,"src":"View to Stanage Edge - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859076.html","width":130,"caption":"VIEW TO STANAGE EDGE-Paul Beedham","height":81});
															thumbnails[1859079] = clik.newPhoto({"id":1859079,"src":"Low Tide, Studland Bay - by Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859079.html","width":130,"caption":"LOW TIDE STUDLAND BAY-Paul Beedham","height":197});
															thumbnails[1859132] = clik.newPhoto({"id":1859132,"src":"Bryce Canyon_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859132.html","width":130,"caption":"BRYCE CANYON-Derek Holmes","height":195});
															thumbnails[1859136] = clik.newPhoto({"id":1859136,"src":"Hanging on - Lake Bled_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859136.html","width":130,"caption":"HANGING ON LAKE BLED-Derek Holmes","height":86});
															thumbnails[1859137] = clik.newPhoto({"id":1859137,"src":"Lake Bled panorama_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859137.html","width":130,"caption":"LAKE BLED PANORAMA-Derek Holmes","height":51});
															thumbnails[1859140] = clik.newPhoto({"id":1859140,"src":"Magpie Mine_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859140.html","width":130,"caption":"MAGPIE MINE-Derek Holmes","height":72});
															thumbnails[1859142] = clik.newPhoto({"id":1859142,"src":"Winter on Elton Moor_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859142.html","width":130,"caption":"WINTER ON ELTON MOOR-Derek Holmes","height":86});
															thumbnails[1859155] = clik.newPhoto({"id":1859155,"src":"Winters Tale by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859155.html","width":130,"caption":"WINTERS TALE-Peter Ward","height":84});
															thumbnails[1859168] = clik.newPhoto({"id":1859168,"src":"Shower Over Loch Torridon by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859168.html","width":130,"caption":"SHOWER OVER LOCH TORRIDON-Peter Ward","height":85});
															thumbnails[1859169] = clik.newPhoto({"id":1859169,"src":"Solitude by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859169.html","width":130,"caption":"SOLITUDE-Peter Ward","height":55});
															thumbnails[1859171] = clik.newPhoto({"id":1859171,"src":"Stanage Edge by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859171.html","width":130,"caption":"STANAGE EDGE-Peter Ward","height":85});
															thumbnails[1859174] = clik.newPhoto({"id":1859174,"src":"Stripped of Life by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859174.html","width":130,"caption":"STRIPPED OF LIFE-Peter Ward","height":85});
															thumbnails[1859179] = clik.newPhoto({"id":1859179,"src":"The Winding Road by Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859179.html","width":130,"caption":"THE WINDING ROAD-Peter Ward","height":83});
															thumbnails[1859224] = clik.newPhoto({"id":1859224,"src":"02 Haag Skateboarder_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859224.html","width":130,"caption":"CLEVER STUFF ON A SKATEBOARD-Beatrice Rosindell","height":118});
															thumbnails[1859232] = clik.newPhoto({"id":1859232,"src":"04 Leaving Portsmouth 3_thumb.4.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859232.html","width":130,"caption":"LEAVING PORTSMOUTH-Beatrice Rosindell","height":98});
															thumbnails[1859244] = clik.newPhoto({"id":1859244,"src":"06 Ducks at Allestree 03_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1859244.html","width":130,"caption":"DUCKS AT ALLESTREE-Beatrice Rosindell","height":82});
															thumbnails[1905975] = clik.newPhoto({"id":1905975,"src":"01 Swan_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1905975.html","width":130,"caption":"NOT JUST AN UGLY DUCKLING - Beatrice Rosindell","height":111});
															thumbnails[1905986] = clik.newPhoto({"id":1905986,"src":"03 Daffodils W_thumb.cumJ.Dale jpg.jpg","galleries_id":117224,"server_id":1,"link":"photo_1905986.html","width":130,"caption":"WATER-CUM-JOLLY DALE - Beatrice Rosindell","height":98});
															thumbnails[1905987] = clik.newPhoto({"id":1905987,"src":"05 Big Black Slug 7_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_1905987.html","width":130,"caption":"STREAMLINED - Beatrice Rosindell","height":69});
															thumbnails[2192145] = clik.newPhoto({"id":2192145,"src":"Hydraulic power2_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2192145.html","width":130,"caption":"HYDRAULIC POWER - Ron Williams","height":163});
															thumbnails[2192148] = clik.newPhoto({"id":2192148,"src":"Alpha male2_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2192148.html","width":130,"caption":"ALPHA MALE - Ron Williams","height":130});
															thumbnails[2192153] = clik.newPhoto({"id":2192153,"src":"horse power3_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2192153.html","width":130,"caption":"HORSE POWER - Ron Williams","height":97});
															thumbnails[2192166] = clik.newPhoto({"id":2192166,"src":"lily study3_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2192166.html","width":130,"caption":"LILY STUDY - Ron Williams","height":159});
															thumbnails[2774747] = clik.newPhoto({"id":2774747,"src":"Exhibition 4 copy 2_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2774747.html","width":130,"caption":"WALL OF NAMES by Phil Plumb","height":91});
															thumbnails[2774802] = clik.newPhoto({"id":2774802,"src":"Red Squirrel 3 Scot 0708 (1)_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2774802.html","width":130,"caption":"RED SQUIRREL by Ron Williams","height":130});
															thumbnails[2991393] = clik.newPhoto({"id":2991393,"src":"Winter Sunrise-Peter Ward_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2991393.html","width":130,"caption":"WINTER SUNRISE - Peter Ward","height":88});
															thumbnails[2991430] = clik.newPhoto({"id":2991430,"src":"VENICE BEACH - Phil Plumb_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_2991430.html","width":130,"caption":"VENICE BEACH - Phil Plumb","height":57});
															thumbnails[3007462] = clik.newPhoto({"id":3007462,"src":"bonsai_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3007462.html","width":130,"caption":"ACER ALMATUM by Ron Williams","height":124});
															thumbnails[3007464] = clik.newPhoto({"id":3007464,"src":"Evening Glow-Barry Pidcock_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3007464.html","width":130,"caption":"EVENING GLOW by Barry Pidcock","height":199});
															thumbnails[3007473] = clik.newPhoto({"id":3007473,"src":"Fallen Tree-Alan Ford_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3007473.html","width":130,"caption":"FALLEN TREE by Alan Ford","height":98});
															thumbnails[3007478] = clik.newPhoto({"id":3007478,"src":"Sandstone Barn - Paul Beedham_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3007478.html","width":130,"caption":"SANDSTONE BARN by Paul Beedham","height":87});
															thumbnails[3248010] = clik.newPhoto({"id":3248010,"src":"Ethereal-Light_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3248010.html","width":130,"caption":"ETHEREAL LIGHT by David Thorburn","height":182});
															thumbnails[3248011] = clik.newPhoto({"id":3248011,"src":"St-Mawes-Harbour-Pan_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3248011.html","width":130,"caption":"ST MAWES by David Thorburn","height":31});
															thumbnails[3248012] = clik.newPhoto({"id":3248012,"src":"Next-Stop-the-Summit_thumb.jpg","galleries_id":117224,"server_id":1,"link":"photo_3248012.html","width":130,"caption":"NEXT STOP THE SUMMIT by David Thorburn","height":93});
															thumbnails[7073182] = clik.newPhoto({"id":7073182,"src":"A_SIMPLE_MEAL_by_Ken_Ness_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073182.html","width":130,"caption":"A Simple Meal by Ken Ness","height":98});
															thumbnails[7073324] = clik.newPhoto({"id":7073324,"src":"AMARYLLIS_by_Gordon_Blount_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073324.html","width":130,"caption":"Amaryllis by Gordon Blount","height":98});
															thumbnails[7073338] = clik.newPhoto({"id":7073338,"src":"JUNGFRAUJOCK_by_Barry_Pidcock_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073338.html","width":130,"caption":"Jungfraujock by Barrie Pidcock","height":98});
															thumbnails[7073352] = clik.newPhoto({"id":7073352,"src":"KITE_FLYER_by_Dave_Pooley_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073352.html","width":130,"caption":"Kite Flyer by Dave Pooley","height":194});
															thumbnails[7073361] = clik.newPhoto({"id":7073361,"src":"Peace_Lily_by_Alan_Ford_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073361.html","width":130,"caption":"Peace Lilly by Alan Ford","height":98});
															thumbnails[7073365] = clik.newPhoto({"id":7073365,"src":"SILHOUETTE_by_Ken_Ness_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073365.html","width":130,"caption":"Silhouette by Ken Ness","height":98});
															thumbnails[7073375] = clik.newPhoto({"id":7073375,"src":"WILLLOW_CATKIN_by_Gordon_Blount_thumb.jpg","galleries_id":383020,"server_id":1,"link":"photo_7073375.html","width":130,"caption":"Willow Catkin by Gordon Blount","height":98});
															thumbnails[6967272] = clik.newPhoto({"id":6967272,"src":"Need_for_Speed_by__David_Thorburn_thumb.jpg","galleries_id":377619,"server_id":1,"link":"photo_6967272.html","width":130,"caption":"First PlaceNeed for Speed byDavid Thorburn","height":68});
															thumbnails[6967853] = clik.newPhoto({"id":6967853,"src":"Whites_Tree_Frog_07PSedit_thumb.jpg","galleries_id":377653,"server_id":1,"link":"photo_6967853.html","width":130,"caption":"1st Place Fingertip Control by Ron Williams","height":87});
															thumbnails[6967271] = clik.newPhoto({"id":6967271,"src":"Barn_Owl_by_David_Thorburn_thumb.jpg","galleries_id":377619,"server_id":1,"link":"photo_6967271.html","width":130,"caption":"Second Place Barn Owl by David Thorburn","height":87});
															thumbnails[6967276] = clik.newPhoto({"id":6967276,"src":"Loch_Toredon_by_Peter_Ward_thumb.jpg","galleries_id":377619,"server_id":1,"link":"photo_6967276.html","width":130,"caption":"Third PlaceLoch Toredon byPeter Ward","height":106});
															thumbnails[6967693] = clik.newPhoto({"id":6967693,"src":"Bodie_Gold_Mining_Gost_Town_by_Derek_Holmes_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967693.html","width":130,"caption":"Bodie Gold Mining Gost Town by <br>\r\nDerek Holmes","height":85});
															thumbnails[6967696] = clik.newPhoto({"id":6967696,"src":"Bryce_Canyon_Hoodoos_by_Derek_Holmes_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967696.html","width":130,"caption":"Bryce Canyon Hoodoos by <br>\r\nDerek Holmes","height":199});
															thumbnails[6967700] = clik.newPhoto({"id":6967700,"src":"Mitton_Sunrise_By_Derek_Holmes_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967700.html","width":130,"caption":"Mitton Sunrise By <br>\r\nDerek Holmes","height":79});
															thumbnails[6967702] = clik.newPhoto({"id":6967702,"src":"Monumont_Valley_by_Derek_Holmes_2_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967702.html","width":130,"caption":"Monument Valley by <br>\r\nDerek Holmes","height":86});
															thumbnails[6967703] = clik.newPhoto({"id":6967703,"src":"Monumont_Valley_by_Derek_Holmes_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967703.html","width":130,"caption":"Monument Valley by Derek Holmes","height":188});
															thumbnails[6967705] = clik.newPhoto({"id":6967705,"src":"North_Window_Arches_National_Park_by_Derek_Holmes_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_6967705.html","width":130,"caption":"North Window Arches National Park by Derek Holmes","height":85});
															thumbnails[6968304] = clik.newPhoto({"id":6968304,"src":"Arch_Chattillon_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968304.html","width":130,"caption":"Arch Chattillon by <br>\r\nBeatrice Rosindell","height":168});
															thumbnails[6968305] = clik.newPhoto({"id":6968305,"src":"Cat_on_a_sill_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968305.html","width":130,"caption":"Cat on a sill by <br>\r\nBeatrice Rosindell","height":98});
															thumbnails[6968306] = clik.newPhoto({"id":6968306,"src":"Connemara_Gunnera_2005_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968306.html","width":130,"caption":"Connemara Gunnera 2005 by<br>\r\nBeatrice Rosindell","height":98});
															thumbnails[6968307] = clik.newPhoto({"id":6968307,"src":"Jimmy_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968307.html","width":130,"caption":"Jimmy by <br>\r\nBeatrice Rosindell","height":105});
															thumbnails[6968308] = clik.newPhoto({"id":6968308,"src":"Old_gate_in_wall_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968308.html","width":130,"caption":"Old gate in wall by <br>\r\nBeatrice Rosindel","height":178});
															thumbnails[6968309] = clik.newPhoto({"id":6968309,"src":"Sitting_on_the_fence_by_Beatrice_Rosindell_thumb.jpg","galleries_id":377679,"server_id":1,"link":"photo_6968309.html","width":130,"caption":"Sitting on the fence by <br>\r\nBeatrice Rosindell","height":98});
															thumbnails[6972632] = clik.newPhoto({"id":6972632,"src":"DT_-8705_copy_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6972632.html","width":130,"caption":"","height":96});
															thumbnails[6972636] = clik.newPhoto({"id":6972636,"src":"Dave_Thorburn-0856_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6972636.html","width":130,"caption":"","height":195});
															thumbnails[6972644] = clik.newPhoto({"id":6972644,"src":"Dave_Thorburn-4975_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6972644.html","width":130,"caption":"","height":87});
															thumbnails[6972651] = clik.newPhoto({"id":6972651,"src":"DT-3726_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6972651.html","width":130,"caption":"","height":195});
															thumbnails[6973224] = clik.newPhoto({"id":6973224,"src":"DT-0126_pp_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6973224.html","width":130,"caption":"Carly","height":195});
															thumbnails[6973226] = clik.newPhoto({"id":6973226,"src":"Mac_T-4876_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6973226.html","width":130,"caption":"","height":195});
															thumbnails[6973248] = clik.newPhoto({"id":6973248,"src":"Lake_Como_Italy_2009_8_of_20_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6973248.html","width":130,"caption":"","height":85});
															thumbnails[6973254] = clik.newPhoto({"id":6973254,"src":"MCC_006_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6973254.html","width":130,"caption":"","height":173});
															thumbnails[6979049] = clik.newPhoto({"id":6979049,"src":"Mac_T-_thumb.jpg","galleries_id":377931,"server_id":1,"link":"photo_6979049.html","width":130,"caption":"","height":245});
															thumbnails[7023572] = clik.newPhoto({"id":7023572,"src":"img013_thumb.jpg","galleries_id":377635,"server_id":1,"link":"photo_7023572.html","width":130,"caption":"","height":185});
															thumbnails[7041545] = clik.newPhoto({"id":7041545,"src":"Bill_portrait_02_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041545.html","width":130,"caption":"Bill","height":152});
															thumbnails[7041553] = clik.newPhoto({"id":7041553,"src":"visiting_the_Paris_Louvre_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041553.html","width":130,"caption":"Lourve","height":51});
															thumbnails[7041555] = clik.newPhoto({"id":7041555,"src":"thames_side_textures_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041555.html","width":130,"caption":"Thames Side Textures","height":149});
															thumbnails[7041558] = clik.newPhoto({"id":7041558,"src":"Beach_Huts_at_Sunset_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041558.html","width":130,"caption":"Beach Huts at Sunset","height":179});
															thumbnails[7041559] = clik.newPhoto({"id":7041559,"src":"lion_leo_leo_84_copy_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041559.html","width":130,"caption":"Leo","height":130});
															thumbnails[7041561] = clik.newPhoto({"id":7041561,"src":"Lowry_Abstract_thumb.jpg","galleries_id":381222,"server_id":1,"link":"photo_7041561.html","width":130,"caption":"Lowery Abstract","height":130});
															thumbnails[7139645] = clik.newPhoto({"id":7139645,"src":"Anstruther_by_Ken_Ness_LRPS1_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139645.html","width":130,"caption":"Anstruther by Ken Ness LRPS","height":203});
															thumbnails[7139648] = clik.newPhoto({"id":7139648,"src":"Black_Rocks_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139648.html","width":130,"caption":"Black Rocks by Ken Ness LRPS","height":196});
															thumbnails[7139650] = clik.newPhoto({"id":7139650,"src":"Dungeness_Derelict_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139650.html","width":130,"caption":"Dungeness Derelict by Ken Ness LRPS","height":64});
															thumbnails[7139667] = clik.newPhoto({"id":7139667,"src":"Highland_Residence_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139667.html","width":130,"caption":"Highland Residence by Ken Ness LRPS","height":87});
															thumbnails[7139671] = clik.newPhoto({"id":7139671,"src":"Lammermuirs_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139671.html","width":130,"caption":"Lammermuirs by Ken Ness LRPS","height":55});
															thumbnails[7139683] = clik.newPhoto({"id":7139683,"src":"Loch_Frisa_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139683.html","width":130,"caption":"Loch Frisa by Ken Ness LRPS","height":69});
															thumbnails[7139689] = clik.newPhoto({"id":7139689,"src":"Loch_Peallach_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139689.html","width":130,"caption":"Loch Peallach by Ken Ness LRPS","height":62});
															thumbnails[7139691] = clik.newPhoto({"id":7139691,"src":"Pennyghael_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139691.html","width":130,"caption":"Pennyghael by Ken Ness","height":71});
															thumbnails[7139693] = clik.newPhoto({"id":7139693,"src":"Seaton_Sands_No1_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139693.html","width":130,"caption":"Seaton Sands No 1 by Ken Ness LRPS","height":203});
															thumbnails[7139712] = clik.newPhoto({"id":7139712,"src":"Seaton_Sands_No2_by_Ken_Ness_LRPS_thumb.jpg","galleries_id":385946,"server_id":1,"link":"photo_7139712.html","width":130,"caption":"Seaton Sands No 2 by Ken Ness","height":195});
															thumbnails[7157809] = clik.newPhoto({"id":7157809,"src":"Madonna_and_child001_thumb.jpg","galleries_id":386908,"server_id":1,"link":"photo_7157809.html","width":130,"caption":"Madonna and Child by Pat Ness","height":176});
															thumbnails[7157836] = clik.newPhoto({"id":7157836,"src":"reflections_in_a_window001_thumb.jpg","galleries_id":386908,"server_id":1,"link":"photo_7157836.html","width":130,"caption":"Reflections in a Window by Pat Ness","height":94});
															thumbnails[7157899] = clik.newPhoto({"id":7157899,"src":"The_snow_storm001_thumb.jpg","galleries_id":386908,"server_id":1,"link":"photo_7157899.html","width":130,"caption":"The Snow Storm by Pat Ness","height":98});
															thumbnails[7198002] = clik.newPhoto({"id":7198002,"src":"Bachalpsee_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198002.html","width":130,"caption":"Bachalpsee by Susan Pidcock","height":79});
															thumbnails[7198020] = clik.newPhoto({"id":7198020,"src":"Burrowing_Owl_113_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198020.html","width":130,"caption":"Burrowing Owl by Susan Pidcock","height":199});
															thumbnails[7198029] = clik.newPhoto({"id":7198029,"src":"GREEN_RED__BLUE_by_Susan_Pidcock_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198029.html","width":130,"caption":"Green Red & Blue by Susan Pidcock","height":35});
															thumbnails[7198045] = clik.newPhoto({"id":7198045,"src":"Kestrel_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198045.html","width":130,"caption":"Kestrel by Susan Pidcock","height":210});
															thumbnails[7198058] = clik.newPhoto({"id":7198058,"src":"Masai_113_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198058.html","width":130,"caption":"Masai by Susan Pidcock","height":189});
															thumbnails[7198073] = clik.newPhoto({"id":7198073,"src":"Rhino_Horned_Beatle_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198073.html","width":130,"caption":"Rhino Horned Beatle by Susan Pidcock","height":128});
															thumbnails[7198124] = clik.newPhoto({"id":7198124,"src":"Venican_Lamp_113_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7198124.html","width":130,"caption":"Venican lamp by Susan Pidcock","height":248});
															thumbnails[7259967] = clik.newPhoto({"id":7259967,"src":"Purple_Orchid_113_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_7259967.html","width":130,"caption":"Purple Orchid by Susan Pidcock","height":195});
															thumbnails[8027919] = clik.newPhoto({"id":8027919,"src":"Linaca_113_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_8027919.html","width":130,"caption":"Linaca","height":198});
															thumbnails[8027920] = clik.newPhoto({"id":8027920,"src":"MOTHER__BABY_VICUNA_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_8027920.html","width":130,"caption":"Mother and Baby","height":93});
															thumbnails[8027921] = clik.newPhoto({"id":8027921,"src":"Ollantaytambo_by_S_Pidcock_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_8027921.html","width":130,"caption":" Ollantaytambo ","height":161});
															thumbnails[8027922] = clik.newPhoto({"id":8027922,"src":"Stall_Holder_Colca_Canyon_by_S_Pidcock_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_8027922.html","width":130,"caption":"Stall Holder","height":184});
															thumbnails[8027923] = clik.newPhoto({"id":8027923,"src":"UNTERSEEN_by_Susan_Pidcock_thumb.jpg","galleries_id":388735,"server_id":1,"link":"photo_8027923.html","width":130,"caption":"Unterseen","height":144});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[377653] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"1st Round of Colour Prints Winners","link":"gallery_377653.html","maxRecords":0.0,"photoIDs":[6967853.0],"skipIndex":0,"section_code":"gallery","featured_images":6967853.0,"id":377653,"singleSection":false});				  						galleries[377619] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"1st Round of Digital Images Winners","link":"gallery_377619.html","maxRecords":0.0,"photoIDs":[6967272.0,6967271.0,6967276.0],"skipIndex":0,"section_code":"gallery","featured_images":"6967276,6967272,6967271","id":377619,"singleSection":false});				  						galleries[383020] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2nd Round Digital Images Winners","link":"gallery_383020.html","maxRecords":0.0,"photoIDs":[7073182.0,7073324.0,7073338.0,7073352.0,7073361.0,7073365.0,7073375.0],"skipIndex":0,"section_code":"gallery","featured_images":"7073375,7073365,7073361,7073352,7073338,7073324,7073182","id":383020,"singleSection":false});				  						galleries[377679] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Beatrice Rosindell","link":"section449704_377679.html","maxRecords":0.0,"photoIDs":[6968304.0,6968305.0,6968306.0,6968307.0,6968308.0,6968309.0],"skipIndex":0,"section_code":"section449704","featured_images":"6968309,6968308,6968307,6968306,6968305,6968304","id":377679,"singleSection":false});				  						galleries[377931] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"David Thorburn","link":"section449704_377931.html","maxRecords":0.0,"photoIDs":[6972632.0,6972636.0,6972644.0,6972651.0,6973224.0,6973226.0,6973248.0,6973254.0,6979049.0],"skipIndex":0,"section_code":"section449704","featured_images":"6979049,6973254,6973248,6973226,6973224,6972651,6972644,6972636,6972632","id":377931,"singleSection":false});				  						galleries[377635] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Derek Holmes","link":"section449704_377635.html","maxRecords":0.0,"photoIDs":[6967693.0,6967696.0,6967700.0,6967702.0,6967703.0,6967705.0,7023572.0],"skipIndex":0,"section_code":"section449704","featured_images":"7023572,6967705,6967703,6967702,6967700,6967696,6967693","id":377635,"singleSection":false});				  						galleries[385946] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ken Ness","link":"section449704_385946.html","maxRecords":0.0,"photoIDs":[7139645.0,7139648.0,7139650.0,7139667.0,7139671.0,7139683.0,7139689.0,7139691.0,7139693.0,7139712.0],"skipIndex":0,"section_code":"section449704","featured_images":"7139712,7139693,7139691,7139689,7139683,7139671,7139667,7139650,7139648,7139645","id":385946,"singleSection":false});				  						galleries[386908] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pat Ness","link":"section449704_386908.html","maxRecords":0.0,"photoIDs":[7157809.0,7157836.0,7157899.0],"skipIndex":0,"section_code":"section449704","featured_images":"7157899,7157836,7157809","id":386908,"singleSection":false});				  						galleries[381222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ron Williams","link":"section449704_381222.html","maxRecords":0.0,"photoIDs":[7041545.0,7041553.0,7041555.0,7041558.0,7041559.0,7041561.0],"skipIndex":0,"section_code":"section449704","featured_images":"7041561,7041559,7041558,7041555,7041553,7041545","id":381222,"singleSection":false});				  						galleries[388735] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Susan Pidcock","link":"section449704_388735.html","maxRecords":0.0,"photoIDs":[7198002.0,7198020.0,7198029.0,7198045.0,7198058.0,7198073.0,7198124.0,7259967.0,8027919.0,8027920.0,8027921.0,8027922.0,8027923.0],"skipIndex":0,"section_code":"section449704","featured_images":"8027923,8027922,8027921,8027920,8027919,7259967,7198124,7198073,7198058,7198045","id":388735,"singleSection":false});				  						galleries[117224] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"gallery_117224.html","maxRecords":0.0,"photoIDs":[1760299.0,1760355.0,1760356.0,1775908.0,1859037.0,1859062.0,1859069.0,1859075.0,1859076.0,1859079.0,1859132.0,1859136.0,1859137.0,1859140.0,1859142.0,1859155.0,1859168.0,1859169.0,1859171.0,1859174.0,1859179.0,1859224.0,1859232.0,1859244.0,1905975.0,1905986.0,1905987.0,2192145.0,2192148.0,2192153.0,2192166.0,2774747.0,2774802.0,2991393.0,2991430.0,3007462.0,3007464.0,3007473.0,3007478.0,3248010.0,3248011.0,3248012.0],"skipIndex":0,"section_code":"gallery","featured_images":"3248012,3248011,3248010,3007478,3007473,3007464,3007462,2991430,2991393,2774802,2774747,2192166,2192153,2192148,2192145,1905987,1905986,1905975,1859244,1859232,1859224,1859179,1859174,1859171,1859169,1859168,1859155,1859142,1859140,1859137,1859136,1859132,1859079,1859076,1859075,1859069,1859062,1859037,1775908,1760356,1760355,1760299","id":117224,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8027923,8027922,8027921,8027920,8027919,7259967,7198124,7198073,7198058,7198045,7198029,7198020,7198002,7157899,7157836,7157809,7139712,7139693,7139691,7139689,7139683,7139671,7139667,7139650,7139648,7139645,7073375,7073365,7073361,7073352,7073338,7073324,7073182,7041561,7041559,7041558,7041555,7041553,7041545,7023572,6979049,6973254,6973248,6973226,6973224,6972651,6972644,6972636,6972632,6968309';
imageSets[2] = '3248012,3248011,3248010,3154205,3007478,3007473,3007464,3007462,2991430,2991393,2774802,2774747,2192166,2192153,2192148,2192145,1905987,1905986,1905975,1859244,1859232,1859224,1859179,1859174,1859171,1859169,1859168,1859155,1859142,1859140,1859137,1859136,1859132,1859079,1859076,1859075,1859069,1859062,1859037,1775908,1760356,1760355,1760299';
imageSets[3] = '8027923,8027922,8027921,8027920,8027919,7259967,7198124,7198073,7198058,7198045,7198029,7198020,7198002,7157899,7157836,7157809,7139712,7139693,7139691,7139689,7139683,7139671,7139667,7139650,7139648,7139645,7073375,7073365,7073361,7073352,7073338,7073324,7073182,7041561,7041559,7041558,7041555,7041553,7041545,7023572,6979049,6973254,6973248,6973226,6973224,6972651,6972644,6972636,6972632,6968309';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/phil2602/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/phil2602/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/phil2602/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 = 'Matlock Camera Club: ' + 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>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

			

