window.thumbnails = {};
															thumbnails[6266050] = clik.newPhoto({"id":6266050,"src":"Cup-Saucers_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266050.html","width":130,"caption":"Cups & Saucers","height":92});
															thumbnails[6266056] = clik.newPhoto({"id":6266056,"src":"Bamburgh-Castle_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266056.html","width":130,"caption":"Bamburgh Castle","height":69});
															thumbnails[6266060] = clik.newPhoto({"id":6266060,"src":"Hadrians-Wall_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266060.html","width":130,"caption":"Hadrian's Wall","height":85});
															thumbnails[6266062] = clik.newPhoto({"id":6266062,"src":"Light-on-the-Cob_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266062.html","width":130,"caption":"Light on the Cob","height":74});
															thumbnails[6266075] = clik.newPhoto({"id":6266075,"src":"Reaching-for--the-High-Note_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266075.html","width":130,"caption":"Reaching for the High Note","height":89});
															thumbnails[6266080] = clik.newPhoto({"id":6266080,"src":"And-I-said-to-him_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266080.html","width":130,"caption":"Bacon Egg & Chips Twice Please<br>\r\n","height":130});
															thumbnails[6266081] = clik.newPhoto({"id":6266081,"src":"Baltic-Gal_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266081.html","width":130,"caption":"Figures & Shadows","height":178});
															thumbnails[6266226] = clik.newPhoto({"id":6266226,"src":"StThomas-Stanhope_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266226.html","width":130,"caption":"St. Thomas, Stanhope","height":198});
															thumbnails[6266275] = clik.newPhoto({"id":6266275,"src":"Watching-the-Prey_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266275.html","width":130,"caption":"Watching the Prey","height":91});
															thumbnails[6266283] = clik.newPhoto({"id":6266283,"src":"Saltwick_thumb.jpg","galleries_id":343404,"server_id":18,"link":"photo_6266283.html","width":130,"caption":"Saltwick","height":90});
															thumbnails[7481944] = clik.newPhoto({"id":7481944,"src":"500x500-web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_7481944.html","width":130,"caption":"THE HEPWORTH WAKEFIELD WITH CHANTRY CHAPEL","height":130});
															thumbnails[7481954] = clik.newPhoto({"id":7481954,"src":"_DSC3403_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_7481954.html","width":130,"caption":"CHANTRY CHAPEL WITH THE HEPWORTH WAKEFIELD","height":130});
															thumbnails[7513428] = clik.newPhoto({"id":7513428,"src":"Lanson11_Strength_in_Acceptance__thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7513428.html","width":130,"caption":"Strength in Acceptance","height":169});
															thumbnails[9034150] = clik.newPhoto({"id":9034150,"src":"20111110_1570web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_9034150.html","width":130,"caption":"","height":131});
															thumbnails[9034152] = clik.newPhoto({"id":9034152,"src":"20111125_1567web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_9034152.html","width":130,"caption":"","height":130});
															thumbnails[9034153] = clik.newPhoto({"id":9034153,"src":"20120113_2372web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_9034153.html","width":130,"caption":"","height":130});
															thumbnails[9034154] = clik.newPhoto({"id":9034154,"src":"20111111_1569-web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_9034154.html","width":130,"caption":"","height":306});
															thumbnails[9034155] = clik.newPhoto({"id":9034155,"src":"20120113_2371web_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_9034155.html","width":130,"caption":"","height":299});
															thumbnails[9034163] = clik.newPhoto({"id":9034163,"src":"Kendal-BridgeYork-web_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_9034163.html","width":130,"caption":"","height":179});
															thumbnails[9034164] = clik.newPhoto({"id":9034164,"src":"Lily-Pond-web_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_9034164.html","width":130,"caption":"","height":127});
															thumbnails[9034165] = clik.newPhoto({"id":9034165,"src":"Mortistone-ManorIsle-Of-Wright-e_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_9034165.html","width":130,"caption":"","height":97});
															thumbnails[9034167] = clik.newPhoto({"id":9034167,"src":"Whitby-Abbey-Gravestones-e_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_9034167.html","width":130,"caption":"","height":191});
															thumbnails[9034171] = clik.newPhoto({"id":9034171,"src":"Poppies-web_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_9034171.html","width":130,"caption":"","height":97});
															thumbnails[8105524] = clik.newPhoto({"id":8105524,"src":"7x5-s_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_8105524.html","width":130,"caption":"spring indoors  ","height":182});
															thumbnails[4570133] = clik.newPhoto({"id":4570133,"src":"2-copy1_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_4570133.html","width":130,"caption":"STRAWBERRY FIELDS<br>\r\n","height":130});
															thumbnails[7481048] = clik.newPhoto({"id":7481048,"src":"Chantry-Chapel-2011_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_7481048.html","width":130,"caption":"Chantry Chapel ","height":87});
															thumbnails[8231726] = clik.newPhoto({"id":8231726,"src":"Autumn-Leaves_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231726.html","width":130,"caption":"Autumn Leaves","height":82});
															thumbnails[7124272] = clik.newPhoto({"id":7124272,"src":"1_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7124272.html","width":130,"caption":"Mothers Delight","height":161});
															thumbnails[4570140] = clik.newPhoto({"id":4570140,"src":"Bridlington12_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_4570140.html","width":130,"caption":"A GRAND DAY OUT<br>\r\n","height":130});
															thumbnails[7123982] = clik.newPhoto({"id":7123982,"src":"DSC01403_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7123982.html","width":130,"caption":2.0,"height":89});
															thumbnails[8231735] = clik.newPhoto({"id":8231735,"src":"Deserted-Beach_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231735.html","width":130,"caption":"Deserted Beach","height":92});
															thumbnails[7124274] = clik.newPhoto({"id":7124274,"src":"2_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7124274.html","width":130,"caption":"She Mesmorises in Spring","height":152});
															thumbnails[5482556] = clik.newPhoto({"id":5482556,"src":"_DSC0859_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_5482556.html","width":130,"caption":"RED ROOVES","height":130});
															thumbnails[7124071] = clik.newPhoto({"id":7124071,"src":"DSC014161_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124071.html","width":130,"caption":3.0,"height":124});
															thumbnails[8231748] = clik.newPhoto({"id":8231748,"src":"Surfs-Rising_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231748.html","width":130,"caption":"Surfs-Rising","height":91});
															thumbnails[7124285] = clik.newPhoto({"id":7124285,"src":"3_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7124285.html","width":130,"caption":"Hannah in Love","height":52});
															thumbnails[7124022] = clik.newPhoto({"id":7124022,"src":"DSC01417_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124022.html","width":130,"caption":4.0,"height":132});
															thumbnails[8231749] = clik.newPhoto({"id":8231749,"src":"Blue-Montains_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231749.html","width":130,"caption":"Blue-Montains","height":50});
															thumbnails[7124031] = clik.newPhoto({"id":7124031,"src":"DSC01418_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124031.html","width":130,"caption":5.0,"height":122});
															thumbnails[8231734] = clik.newPhoto({"id":8231734,"src":"Peony_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231734.html","width":130,"caption":"Peony","height":281});
															thumbnails[7406765] = clik.newPhoto({"id":7406765,"src":"Six_chimneys__thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_7406765.html","width":130,"caption":"Six Chimneys","height":84});
															thumbnails[6588285] = clik.newPhoto({"id":6588285,"src":"Westgate-1970_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_6588285.html","width":130,"caption":"Westgate","height":97});
															thumbnails[7124033] = clik.newPhoto({"id":7124033,"src":"DSC01419_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124033.html","width":130,"caption":6.0,"height":130});
															thumbnails[8231730] = clik.newPhoto({"id":8231730,"src":"Himalayan-Poppies_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231730.html","width":130,"caption":"Himalayan Poppies","height":236});
															thumbnails[6588258] = clik.newPhoto({"id":6588258,"src":"Old-Westgate-colourWEB_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_6588258.html","width":130,"caption":"Old Westgate","height":93});
															thumbnails[5482573] = clik.newPhoto({"id":5482573,"src":"_DSC0863_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_5482573.html","width":130,"caption":"DONKEY RIDES","height":130});
															thumbnails[7124051] = clik.newPhoto({"id":7124051,"src":"DSC01420_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124051.html","width":130,"caption":7.0,"height":131});
															thumbnails[8231732] = clik.newPhoto({"id":8231732,"src":"Morning-Glory_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231732.html","width":130,"caption":"Morning Glory","height":187});
															thumbnails[7124052] = clik.newPhoto({"id":7124052,"src":"DSC01421_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7124052.html","width":130,"caption":8.0,"height":130});
															thumbnails[8231728] = clik.newPhoto({"id":8231728,"src":"Autumn-Shades_thumb.jpg","galleries_id":438740,"server_id":18,"link":"photo_8231728.html","width":130,"caption":"Autumn Shades","height":172});
															thumbnails[4405493] = clik.newPhoto({"id":4405493,"src":"Wakefield-bull-Ring_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_4405493.html","width":130,"caption":"Bull Ring Wakefield","height":90});
															thumbnails[4570145] = clik.newPhoto({"id":4570145,"src":"henry-street2_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_4570145.html","width":130,"caption":"THE CORNER SHOP ","height":130});
															thumbnails[7338643] = clik.newPhoto({"id":7338643,"src":"DSC01432_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7338643.html","width":130,"caption":"","height":124});
															thumbnails[5482565] = clik.newPhoto({"id":5482565,"src":"_DSC0861_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_5482565.html","width":130,"caption":"THE HARBOUR, STATHES","height":130});
															thumbnails[7338646] = clik.newPhoto({"id":7338646,"src":"DSC01433_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7338646.html","width":130,"caption":"","height":130});
															thumbnails[4413165] = clik.newPhoto({"id":4413165,"src":"Appelby-web_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_4413165.html","width":130,"caption":"On the Road to Appleby Fair","height":84});
															thumbnails[5617660] = clik.newPhoto({"id":5617660,"src":"_DSC0871_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_5617660.html","width":130,"caption":"THE LONG CLIMB","height":130});
															thumbnails[5617658] = clik.newPhoto({"id":5617658,"src":"_DSC0867_thumb.jpg","galleries_id":256829,"server_id":18,"link":"photo_5617658.html","width":130,"caption":"STAITHES FROM COWBAR NAB","height":130});
															thumbnails[4405536] = clik.newPhoto({"id":4405536,"src":"fungi_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405536.html","width":130,"caption":"","height":105});
															thumbnails[4405546] = clik.newPhoto({"id":4405546,"src":"b-of-paradise1_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405546.html","width":130,"caption":"","height":185});
															thumbnails[5433510] = clik.newPhoto({"id":5433510,"src":"tom-puddings_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_5433510.html","width":130,"caption":"   Watercolour of a canal boat train   ","height":94});
															thumbnails[7338654] = clik.newPhoto({"id":7338654,"src":"DSC01458_thumb.jpg","galleries_id":385319,"server_id":18,"link":"photo_7338654.html","width":130,"caption":"","height":106});
															thumbnails[4405558] = clik.newPhoto({"id":4405558,"src":"bon-for-a4-print_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405558.html","width":130,"caption":"","height":173});
															thumbnails[4405566] = clik.newPhoto({"id":4405566,"src":"bot10_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405566.html","width":130,"caption":"","height":204});
															thumbnails[4405576] = clik.newPhoto({"id":4405576,"src":"grape-hyacinth1_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405576.html","width":130,"caption":"","height":182});
															thumbnails[4405582] = clik.newPhoto({"id":4405582,"src":"camera-121_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405582.html","width":130,"caption":"","height":198});
															thumbnails[4405584] = clik.newPhoto({"id":4405584,"src":"spring_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405584.html","width":130,"caption":"","height":149});
															thumbnails[4405587] = clik.newPhoto({"id":4405587,"src":"tiger-cropped_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405587.html","width":130,"caption":"","height":182});
															thumbnails[4405591] = clik.newPhoto({"id":4405591,"src":"tulip1_thumb.jpg","galleries_id":256827,"server_id":18,"link":"photo_4405591.html","width":130,"caption":"","height":192});
															thumbnails[4405617] = clik.newPhoto({"id":4405617,"src":"71_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_4405617.html","width":130,"caption":"","height":174});
															thumbnails[4405620] = clik.newPhoto({"id":4405620,"src":"81_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_4405620.html","width":130,"caption":"","height":179});
															thumbnails[4405622] = clik.newPhoto({"id":4405622,"src":"91_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_4405622.html","width":130,"caption":"","height":196});
															thumbnails[5617483] = clik.newPhoto({"id":5617483,"src":"_DSC0875_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617483.html","width":130,"caption":"","height":92});
															thumbnails[5617487] = clik.newPhoto({"id":5617487,"src":"_DSC0881_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617487.html","width":130,"caption":"","height":106});
															thumbnails[5617489] = clik.newPhoto({"id":5617489,"src":"_DSC0897_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617489.html","width":130,"caption":"","height":103});
															thumbnails[5617523] = clik.newPhoto({"id":5617523,"src":"_DSC0889_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617523.html","width":130,"caption":"","height":109});
															thumbnails[5617525] = clik.newPhoto({"id":5617525,"src":"_DSC0903_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617525.html","width":130,"caption":"","height":153});
															thumbnails[5617560] = clik.newPhoto({"id":5617560,"src":"_DSC0879_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617560.html","width":130,"caption":"","height":175});
															thumbnails[5617563] = clik.newPhoto({"id":5617563,"src":"_DSC0885_thumb.jpg","galleries_id":256828,"server_id":18,"link":"photo_5617563.html","width":130,"caption":"","height":156});
															thumbnails[5801504] = clik.newPhoto({"id":5801504,"src":"T2_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801504.html","width":130,"caption":"SCENE OVER WINTERSET<br>\r\nWatercolour<br>\r\n","height":93});
															thumbnails[5801528] = clik.newPhoto({"id":5801528,"src":"T3_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801528.html","width":130,"caption":"CRINA BOTTOM, INGLEBOROUGH<br>\r\nWatercolour","height":99});
															thumbnails[5801553] = clik.newPhoto({"id":5801553,"src":"T1_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801553.html","width":130,"caption":"RISKING A WALK","height":83});
															thumbnails[5801555] = clik.newPhoto({"id":5801555,"src":"T4_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801555.html","width":130,"caption":"NEWMILLERDAM SCENE<br>\r\nWatercolour","height":91});
															thumbnails[5801577] = clik.newPhoto({"id":5801577,"src":"T6_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801577.html","width":130,"caption":"MUTE DISPUTE","height":77});
															thumbnails[5801578] = clik.newPhoto({"id":5801578,"src":"T5_thumb.jpg","galleries_id":316631,"server_id":18,"link":"photo_5801578.html","width":130,"caption":"EXERCISE IN AUBURN AND GREEN<br>\r\nGel pen, pastel and watercolour","height":168});
															thumbnails[7395621] = clik.newPhoto({"id":7395621,"src":"Lanson-4_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7395621.html","width":130,"caption":"Painted Lady","height":261});
															thumbnails[4405522] = clik.newPhoto({"id":4405522,"src":"Water-Colouc-Sandal-Castle_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_4405522.html","width":130,"caption":"Sandal Castle","height":56});
															thumbnails[7125654] = clik.newPhoto({"id":7125654,"src":"_DSC3254_thumb.jpg","galleries_id":256614,"server_id":18,"link":"photo_7125654.html","width":130,"caption":"BY THE CAMP FIRE       ","height":105});
															thumbnails[7395623] = clik.newPhoto({"id":7395623,"src":"Lanson6_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7395623.html","width":130,"caption":"Fire and Ice","height":207});
															thumbnails[7395625] = clik.newPhoto({"id":7395625,"src":"Lanson5_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7395625.html","width":130,"caption":"Sleeping Sunset","height":189});
															thumbnails[7395628] = clik.newPhoto({"id":7395628,"src":"Lanson7_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7395628.html","width":130,"caption":"The Siren","height":98});
															thumbnails[7395633] = clik.newPhoto({"id":7395633,"src":"Lanson9_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7395633.html","width":130,"caption":"Content","height":173});
															thumbnails[7601525] = clik.newPhoto({"id":7601525,"src":"P3110408n_thumb.jpg","galleries_id":385330,"server_id":18,"link":"photo_7601525.html","width":130,"caption":"Morro De São Paulo (Bahia), Brazil","height":166});
															thumbnails[8197397] = clik.newPhoto({"id":8197397,"src":"Whitby-Abbey-web_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_8197397.html","width":130,"caption":"Whitby Abbey","height":97});
															thumbnails[7432301] = clik.newPhoto({"id":7432301,"src":"HPIM0938_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7432301.html","width":130,"caption":"Bluebell Wood ","height":76});
															thumbnails[7395647] = clik.newPhoto({"id":7395647,"src":"HPIM0259_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395647.html","width":130,"caption":"Cascade ","height":157});
															thumbnails[7395652] = clik.newPhoto({"id":7395652,"src":"HPIM0372_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395652.html","width":130,"caption":"Newgale Shingles  ","height":97});
															thumbnails[7395658] = clik.newPhoto({"id":7395658,"src":"HPIM0549_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395658.html","width":130,"caption":"Poole Park Cricket Pitch","height":94});
															thumbnails[7395663] = clik.newPhoto({"id":7395663,"src":"HPIM0571_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395663.html","width":130,"caption":"Valley Of The Rocks","height":82});
															thumbnails[7395666] = clik.newPhoto({"id":7395666,"src":"HPIM0576_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395666.html","width":130,"caption":"Ashness Bridge, Keswick Cumbria ","height":85});
															thumbnails[7395675] = clik.newPhoto({"id":7395675,"src":"HPIM0579_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395675.html","width":130,"caption":"Koi Samui ","height":91});
															thumbnails[7395687] = clik.newPhoto({"id":7395687,"src":"HPIM0885_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_7395687.html","width":130,"caption":"Remember the Heroes ","height":163});
															thumbnails[8118806] = clik.newPhoto({"id":8118806,"src":"_DSC1740-web_thumb.jpg","galleries_id":400435,"server_id":18,"link":"photo_8118806.html","width":130,"caption":"Savanna","height":102});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[256614] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BRIAN","link":"gallery_256614.html","maxRecords":0.0,"photoIDs":[8105524.0,7481048.0,7406765.0,6588285.0,6588258.0,4405493.0,4413165.0,5433510.0,4405522.0,7125654.0],"skipIndex":0,"section_code":"gallery","featured_images":"8105524,7481048,7406765,7125654,6588285,6588258,5433510,4413165,4405522,4405493","id":256614,"singleSection":false});				  						galleries[256827] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CHERYL","link":"gallery_256827.html","maxRecords":0.0,"photoIDs":[4405536.0,4405546.0,4405558.0,4405566.0,4405576.0,4405582.0,4405584.0,4405587.0,4405591.0],"skipIndex":0,"section_code":"gallery","featured_images":"4405591,4405587,4405584,4405582,4405576,4405566,4405558,4405546,4405536","id":256827,"singleSection":false});				  						galleries[256828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WENDY","link":"gallery_256828.html","maxRecords":0.0,"photoIDs":[4405617.0,4405620.0,4405622.0,5617483.0,5617487.0,5617489.0,5617523.0,5617525.0,5617560.0,5617563.0],"skipIndex":0,"section_code":"gallery","featured_images":"5617563,5617560,5617525,5617523,5617489,5617487,5617483,4405622,4405620,4405617","id":256828,"singleSection":false});				  						galleries[316631] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TONY","link":"gallery_316631.html","maxRecords":0.0,"photoIDs":[5801504.0,5801528.0,5801553.0,5801555.0,5801577.0,5801578.0],"skipIndex":0,"section_code":"gallery","featured_images":"5801578,5801577,5801555,5801553,5801528,5801504","id":316631,"singleSection":false});				  						galleries[256829] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LINDA","link":"gallery_256829.html","maxRecords":0.0,"photoIDs":[7481944.0,7481954.0,9034150.0,9034152.0,9034153.0,9034154.0,9034155.0,4570133.0,4570140.0,5482556.0,5482573.0,4570145.0,5482565.0,5617660.0,5617658.0],"skipIndex":0,"section_code":"gallery","featured_images":"9034155,9034154,9034153,9034152,9034150,7481954,7481944,5617660,5617658,5482573","id":256829,"singleSection":false});				  						galleries[343404] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"JOHN","link":"gallery_343404.html","maxRecords":0.0,"photoIDs":[6266050.0,6266056.0,6266060.0,6266062.0,6266075.0,6266080.0,6266081.0,6266226.0,6266275.0,6266283.0],"skipIndex":0,"section_code":"gallery","featured_images":"6266283,6266275,6266226,6266081,6266080,6266075,6266062,6266060,6266056,6266050","id":343404,"singleSection":false});				  						galleries[385319] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"STEVE","link":"gallery_385319.html","maxRecords":0.0,"photoIDs":[7123982.0,7124071.0,7124022.0,7124031.0,7124033.0,7124051.0,7124052.0,7338643.0,7338646.0,7338654.0],"skipIndex":0,"section_code":"gallery","featured_images":"7338654,7338646,7338643,7124071,7124052,7124051,7124033,7124031,7124022,7123982","id":385319,"singleSection":false});				  						galleries[385330] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANSON","link":"gallery_385330.html","maxRecords":0.0,"photoIDs":[7513428.0,7124272.0,7124274.0,7124285.0,7395621.0,7395623.0,7395625.0,7395628.0,7395633.0,7601525.0],"skipIndex":0,"section_code":"gallery","featured_images":"7601525,7513428,7395633,7395628,7395625,7395623,7395621,7124285,7124274,7124272","id":385330,"singleSection":false});				  						galleries[400435] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ANN-MARIE","link":"gallery_400435.html","maxRecords":0.0,"photoIDs":[9034163.0,9034164.0,9034165.0,9034167.0,9034171.0,8197397.0,7432301.0,7395647.0,7395652.0,7395658.0,7395663.0,7395666.0,7395675.0,7395687.0,8118806.0],"skipIndex":0,"section_code":"gallery","featured_images":"9034171,9034167,9034165,9034164,9034163,8197397,8118806,7432301,7395687,7395675","id":400435,"singleSection":false});				  						galleries[438740] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gillian","link":"gallery_438740.html","maxRecords":0.0,"photoIDs":[8231726.0,8231735.0,8231748.0,8231749.0,8231734.0,8231730.0,8231732.0,8231728.0],"skipIndex":0,"section_code":"gallery","featured_images":"8231749,8231748,8231735,8231734,8231732,8231730,8231728,8231726","id":438740,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9034171,9034167,9034165,9034164,9034163,9034155,9034154,9034153,9034152,9034150,8231749,8231748,8231735,8231734,8231732,8231730,8231728,8231726,8197397,8118806,8105524,7601525,7513428,7481954,7481944,7481048,7432301,7406765,7395687,7395675,7395666,7395663,7395658,7395652,7395647,7395633,7395628,7395625,7395623,7395621,7338654,7338646,7338643,7125654,7124285,7124274,7124272,7124071,7124052,7124051';
imageSets[3] = '9034171,9034167,9034165,9034164,9034163,9034155,9034154,9034153,9034152,9034150,8231749,8231748,8231735,8231734,8231732,8231730,8231728,8231726,8197397,8118806,8105524,7601525,7513428,7481954,7481944,7481048,7432301,7406765,7395687,7395675,7395666,7395663,7395658,7395652,7395647,7395633,7395628,7395625,7395623,7395621,7338654,7338646,7338643,7125654,7124285,7124274,7124272,7124071,7124052,7124051';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/artforall/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/artforall/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/artforall/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 = 'Gallery Arts: ' + 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>Artist </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;
	}
}

			

