window.thumbnails = {};
															thumbnails[4662145] = clik.newPhoto({"id":4662145,"src":"War_is_Hell_1_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662145.html","width":130,"caption":"'War is Hell', Detail, 2007, Black Biro","height":94});
															thumbnails[7453147] = clik.newPhoto({"id":7453147,"src":"032_-_Copy12_thumb.JPG","galleries_id":404050,"server_id":18,"link":"photo_7453147.html","width":130,"caption":"'KABOOM WHERE DID ALL THE ANIMALS GO?', 2010-, Coloured Biro, 42cm x 60cm","height":235});
															thumbnails[5698743] = clik.newPhoto({"id":5698743,"src":"TV_Scree_III_-_East_Meets_West_Scan1_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_5698743.html","width":130,"caption":"'TV SCREEN III - EAST MEETS WEST, FORESTS' MEMORIES', 2010, 'Tales from the East' Series, 35cm x 60cm, Colour Biro","height":74});
															thumbnails[7457132] = clik.newPhoto({"id":7457132,"src":"018_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7457132.html","width":130,"caption":"RUSSIAN DOLL CUSHION, 42cm x22cm, cushion, interior display piece.  £40.00 incl P&P (UK ONLY).  ","height":173});
															thumbnails[4657887] = clik.newPhoto({"id":4657887,"src":"001_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4657887.html","width":130,"caption":"'War is Hell', 2007, 42cm x 60cm, Biro Drawing and stills from 'Saving Private Ryan' and 'Where Eagles Dare","height":91});
															thumbnails[7500115] = clik.newPhoto({"id":7500115,"src":"053_-_Copy_thumb.JPG","galleries_id":404050,"server_id":18,"link":"photo_7500115.html","width":130,"caption":"'SHUTTER DOOR', 2011, 59cm x 89cm, handmade transfer fabric, machine and hand stitched fabric door, fire-resistent padding and card. ","height":174});
															thumbnails[4662150] = clik.newPhoto({"id":4662150,"src":"War_is_Hell_4_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662150.html","width":130,"caption":"'War is Hell', Detail of Rob as 'GI', 2007, Black Biro, Print and Pin prick Lettering","height":92});
															thumbnails[5698893] = clik.newPhoto({"id":5698893,"src":"TV_Scree_III_-_East_Meets_West_Scan_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_5698893.html","width":130,"caption":"'TV SCREEN III - EAST MEETS WEST, FORESTS' MEMORIES', DETAIL, 2010, TALES FROM THE EAST SERIES, 35cm x 60cm, COLOUR BIRO","height":164});
															thumbnails[7457147] = clik.newPhoto({"id":7457147,"src":"031_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7457147.html","width":130,"caption":"RUSSIAN DOLL DOLL, 28cm x 15cm, interior display piece.  £20.00 incl P&P (UK ONLY).  ","height":173});
															thumbnails[7500141] = clik.newPhoto({"id":7500141,"src":"056_-_Copy_thumb.JPG","galleries_id":404050,"server_id":18,"link":"photo_7500141.html","width":130,"caption":"'SHUTTER DOOR', VIEW","height":173});
															thumbnails[4662157] = clik.newPhoto({"id":4662157,"src":"Self-portrait_-_Copy1_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662157.html","width":130,"caption":"Self-portrait, 2007, 21cm x 30cm, Black Biro","height":94});
															thumbnails[4662173] = clik.newPhoto({"id":4662173,"src":"8_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662173.html","width":130,"caption":"'For Rudy - Painted by Goya', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":93});
															thumbnails[7521688] = clik.newPhoto({"id":7521688,"src":"Wolf_the_canary_scan_21_thumb.jpg","galleries_id":404050,"server_id":18,"link":"photo_7521688.html","width":130,"caption":"'WOLF THE CANARY', 2011, 30cm x 42cm, colour biro","height":92});
															thumbnails[4662175] = clik.newPhoto({"id":4662175,"src":"9_-_Copy1_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662175.html","width":130,"caption":"'In Bed with Valmont', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":93});
															thumbnails[5698896] = clik.newPhoto({"id":5698896,"src":"TV_Scree_III_-_East_Meets_West_Scan_-_Copy_2_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_5698896.html","width":130,"caption":"'TV SCREEN III - EAST MEETS WEST, FORESTS' MEMORIES', DETAIL, 2010, TALES FROM THE EAST SERIES, 35cm x 60cm, COLOUR BIRO","height":75});
															thumbnails[7457056] = clik.newPhoto({"id":7457056,"src":"093_-_Copy_thumb.JPG","galleries_id":404050,"server_id":18,"link":"photo_7457056.html","width":130,"caption":"QUILT PROTOTYPE, 2011, patchwork, transfers and quilting","height":97});
															thumbnails[7457163] = clik.newPhoto({"id":7457163,"src":"030_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7457163.html","width":130,"caption":"LILY DOLL, 28cm x 10cm, interior display piece.  £20.00 incl P&P (UK ONLY).  ","height":173});
															thumbnails[4662182] = clik.newPhoto({"id":4662182,"src":"10_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662182.html","width":130,"caption":"'The Spirit of the Beehive and the Telephone', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4656991] = clik.newPhoto({"id":4656991,"src":"TV_Screen_II_-_Where_Wolves_and_Bears_Dare_-_Copy_2_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4656991.html","width":130,"caption":"'TV Screen II - Where Wolves and Bears Dare', 2009, 'Tales from the East' Series, 30cm x 42cm, Colour Biros","height":68});
															thumbnails[4662212] = clik.newPhoto({"id":4662212,"src":"11_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662212.html","width":130,"caption":"'I Wish I Was Watching This with Granny Again', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4662215] = clik.newPhoto({"id":4662215,"src":"12_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662215.html","width":130,"caption":"'The Hedgehog and His Horse and the White Stag', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4657689] = clik.newPhoto({"id":4657689,"src":"New_Work_-_TV_Screen_I_-_Chernobyl_Wolf_-_Copy_2_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657689.html","width":130,"caption":"'TV Screen I - Chernobly Wolf', 2009, 'Tales from the East' Series, 42cm x 30cm, Black, Red, Blue and Green Biro","height":68});
															thumbnails[4662235] = clik.newPhoto({"id":4662235,"src":"13_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662235.html","width":130,"caption":"'Before 2046 and After', 2006, 'Moving Images' Series, 21cm x 30cm, Black Biro","height":92});
															thumbnails[7458694] = clik.newPhoto({"id":7458694,"src":"013_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7458694.html","width":130,"caption":"LAIKA SPOON, 46cm x 22cm, interior display piece.  £40.00 incl P&P (UK ONLY).  ","height":98});
															thumbnails[4662719] = clik.newPhoto({"id":4662719,"src":"001_3_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662719.html","width":130,"caption":"'Mozart and the Mermaid', 2006, 'Moving Images' Series, 30cm x 42cm, Black Biro","height":89});
															thumbnails[4662721] = clik.newPhoto({"id":4662721,"src":"001_4_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662721.html","width":130,"caption":"'London', 2006, 'Moving Images' Series, 30cm x 42cm, Black Biro","height":91});
															thumbnails[7476194] = clik.newPhoto({"id":7476194,"src":"0311_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7476194.html","width":130,"caption":"MINIATURE RUSSIAN DOLL DOLL, 19cm x 9cm, interior display piece.  £10.00 incl P&P (UK ONLY).  ","height":173});
															thumbnails[4662821] = clik.newPhoto({"id":4662821,"src":"Copy_of_18_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662821.html","width":130,"caption":"A Child is… (German Child), 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[7550964] = clik.newPhoto({"id":7550964,"src":"054_-_Copy_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_7550964.html","width":130,"caption":"'REVOLUTION CUSHION, white silk, 60cm x 26cm.   £50.00 incl P&P (UK ONLY).  ","height":94});
															thumbnails[4662827] = clik.newPhoto({"id":4662827,"src":"19_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662827.html","width":130,"caption":"a Child is… (Russian Child), 2006, 21cm x 30cmBlack Biro","height":92});
															thumbnails[7521738] = clik.newPhoto({"id":7521738,"src":"101_-_Copy_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_7521738.html","width":130,"caption":"LARGE 'WOLF THE CANARY' CUSHION, 56cm x 36cm.  CUSHION IS HANDMADE USING CANARY YELLOW SILK.  £60 incl P&P (UK ONLY).  ","height":98});
															thumbnails[4662832] = clik.newPhoto({"id":4662832,"src":"20_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4662832.html","width":130,"caption":"a Child.. (Jewish Child), 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[7594504] = clik.newPhoto({"id":7594504,"src":"Matryoshka_and_the_Fox_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_7594504.html","width":130,"caption":"'MATRYOSHKA AND THE FOX' INTERIOR PIECE, DRAWING TRANSFER ON CANARY YELLOW AND RED SILK, 32cm x 16cm,  £25.00 incl P&P (UK ONLY).  ","height":173});
															thumbnails[4663322] = clik.newPhoto({"id":4663322,"src":"21_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663322.html","width":130,"caption":"'Pursued by the Red Baron I', 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[7545063] = clik.newPhoto({"id":7545063,"src":"Wolf_the_canary_cushion_2_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7545063.html","width":130,"caption":"SMALL 'WOLF THE CANARY' CUSHION, 46cm x 30cm.   HANDMADE USING CANARY YELLOW SILK FABRIC.  £40.00 incl P&P (UK ONLY).  ","height":95});
															thumbnails[8555498] = clik.newPhoto({"id":8555498,"src":"Limited_Edition_Christmas_2011_-_Red_Horse_and_Wolf_cub_cushion2_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_8555498.html","width":130,"caption":"LIMITED EDITION CHRISTMAS 2011 'THE RED HORSE AND THE WOLF CUB' CUSHION, 21CM X 32CM.  HANDMADE INTERIOR PIECE.  £22.00 INCL P&P (UK ONLY).","height":98});
															thumbnails[8555323] = clik.newPhoto({"id":8555323,"src":"Limited_Edition_Christmas_2011_-_Emerald_Stag_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_8555323.html","width":130,"caption":"LIMITED EDITION CHRISTMAS 2011 'EMERALD STAG' CUSHION, 30cm x 15cm. HANDMADE INTERIOR PIECE. £22.00 incl P&P (UK ONLY). ","height":173});
															thumbnails[7545089] = clik.newPhoto({"id":7545089,"src":"093_-_Copy1_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_7545089.html","width":130,"caption":"'WOODCUTTER'S QUILT', 2m x 2m.  TRANSFER IMAGES, REMENANTS, SILK FABRIC AND QUILTING - BORDER 100% BLACK COTTON WITH BLACK POM POM TRIM.  FROM £900","height":97});
															thumbnails[4663324] = clik.newPhoto({"id":4663324,"src":"22_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663324.html","width":130,"caption":"'Pursued by the Red Baron II', 2006, 21cm x 30cm, Black Biro ","height":92});
															thumbnails[7594532] = clik.newPhoto({"id":7594532,"src":"Matryoshka_and_the_Fox_Original_Drawing_thumb.JPG","galleries_id":404053,"server_id":18,"link":"photo_7594532.html","width":130,"caption":"'MATRYOSHKA AND THE FOX' ORIGINAL COLOUR BIRO SIGNED DRAWING £100.00 INCL P&P (UK ONLY)","height":98});
															thumbnails[4663334] = clik.newPhoto({"id":4663334,"src":"23_-_Copy_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663334.html","width":130,"caption":"'Pursued by the Red Baron III', 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4663545] = clik.newPhoto({"id":4663545,"src":"32_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663545.html","width":130,"caption":"'Self-portrait with Nymphenburg Bisque Stag', 2006, 21cm x 30cm, Black Biro","height":184});
															thumbnails[4663555] = clik.newPhoto({"id":4663555,"src":"33_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663555.html","width":130,"caption":"'Self-portrait, Disturbed Reflection Jurgen Bey Lamp', 2006, 30cm x 21cm, Black Biro","height":184});
															thumbnails[4663567] = clik.newPhoto({"id":4663567,"src":"34_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663567.html","width":130,"caption":"'Self-portrait, Jurgen Bey Lamp', 2006, 30cm x 21cm, Black Biro","height":184});
															thumbnails[7578872] = clik.newPhoto({"id":7578872,"src":"TV_Scree_III_-_East_Meets_West_Scan12_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7578872.html","width":130,"caption":"PRINT 'TV SCREEN III EAST MEETS WEST, FOREST MEMORIES. LIMITED EDITION OF 10 SIGNED AND NUMBERED GICLEE PRINTS. £250 PER PRINT INCLUDING P&P (UK ONLY).","height":74});
															thumbnails[4663349] = clik.newPhoto({"id":4663349,"src":"24_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663349.html","width":130,"caption":"'Spitfire over England', 2006, 21cm x 30cm, Black Biro Drawing","height":92});
															thumbnails[5997206] = clik.newPhoto({"id":5997206,"src":"The_Russian_Bear_and_the_Communist_Vase_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_5997206.html","width":130,"caption":"'THE RUSSIAN BEAR AND THE COMMUNIST VASE', 2010, Black Biro and Brown Biro, 30cm x 21cm","height":179});
															thumbnails[7579081] = clik.newPhoto({"id":7579081,"src":"New_work_2_-_Where_Wolves_and_Bears_Dare_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7579081.html","width":130,"caption":"PRINT 'TV SCREEN II - WHERE WOLVES AND BEARS DARE'.  LIMITED EDITION OF 100 GICLEE PRINTS SIGNED AND NUMBERED.  £100.00 PER PRINT incl P&P (UK ONLY).  ","height":68});
															thumbnails[4663361] = clik.newPhoto({"id":4663361,"src":"25_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663361.html","width":130,"caption":"'Hurricanes over England I', 2006, 21cm x 30cm, Black Biro ","height":92});
															thumbnails[5954913] = clik.newPhoto({"id":5954913,"src":"005_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_5954913.html","width":130,"caption":"'A SPOONFUL OF LAIKA', 2010, 'Tales from the East' Series, 21cm x 30cm , Black Biro & Red Biro","height":95});
															thumbnails[7579138] = clik.newPhoto({"id":7579138,"src":"Wolf_the_canary_scan_212_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_7579138.html","width":130,"caption":"PRINT 'WOLF THE CANARY'.  LIMITED EDITION OF 200 SIGNED AND NUMBERED GICLEE PRINTS.  PRICE PER PRINT £50 incl P&P (UK ONLY).  ","height":92});
															thumbnails[4657695] = clik.newPhoto({"id":4657695,"src":"New_Work_-_Wolf_Spill_Vase_I_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657695.html","width":130,"caption":"'Wolf Spill Vase I', 2009, 'Tales from the East' Series, 42cm x 30cm, Black Biro","height":184});
															thumbnails[4663365] = clik.newPhoto({"id":4663365,"src":"26_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663365.html","width":130,"caption":"'Hurricanes over England II, 2006, 21cm x 30cm, Black Biro ","height":92});
															thumbnails[8181965] = clik.newPhoto({"id":8181965,"src":"New_Work_-_Russian_Doll_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_8181965.html","width":130,"caption":"'RUSSIAN DOLL'.  LIMITED EDITION GICLEE SIGNED AND NUMBERED PRINT. £50 PER PRINT incl P&P (UK ONLY).  ","height":184});
															thumbnails[4657698] = clik.newPhoto({"id":4657698,"src":"New_Work_-_Wolf_Spill_Vase_II_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657698.html","width":130,"caption":"'Wolf Spill Vase II', 2009, 'Tales from the East' Series, 42cm x 30cm, Red Biro","height":184});
															thumbnails[4663399] = clik.newPhoto({"id":4663399,"src":"27_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663399.html","width":130,"caption":"'Flight of a Barn Own I', 2006, 21cm x30cm, Black Biro","height":93});
															thumbnails[8181971] = clik.newPhoto({"id":8181971,"src":"New_Work_-_The_Horse_and_The_Wolf_Cub_after_Janet_and_Anne_Grahame_Johnstone_thumb.jpg","galleries_id":404053,"server_id":18,"link":"photo_8181971.html","width":130,"caption":"'THE RED HORSE AND THE WOLF CUB'. LIMITED EDITION GICLEE SIGNED AND NUMBERED PRINT. £50 incl P&P (UK ONLY).  ","height":184});
															thumbnails[4657708] = clik.newPhoto({"id":4657708,"src":"New_Work_-_The_Horse_and_The_Wolf_Cub_after_Janet_and_Anne_Grahame_Johnstone_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657708.html","width":130,"caption":"'The Horse and The Wolf Cub - After Janet and Anne Grahame Johnstone', 2009, 'Tales from the East' Series, 42cm x 30cm, Red and Black Biro","height":184});
															thumbnails[4663408] = clik.newPhoto({"id":4663408,"src":"28_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663408.html","width":130,"caption":"'Flight of a Barn Own II', 2006, 21cm 30cm, Black Biro","height":92});
															thumbnails[4657711] = clik.newPhoto({"id":4657711,"src":"Copy_of_New_Work_-_Russian_Doll1_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657711.html","width":130,"caption":"'Russian Doll', 2009, 'Tales from the East' Series, 42cm x 30cm, Red, Blue, Black and Green Biro","height":184});
															thumbnails[4663438] = clik.newPhoto({"id":4663438,"src":"29_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663438.html","width":130,"caption":"'Flight of a Barn Own III', 2006, Black Biro, 21cm x 30cm","height":93});
															thumbnails[4657713] = clik.newPhoto({"id":4657713,"src":"New_Work_-_The_Sideboard_I_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657713.html","width":130,"caption":"'The Sideboard I', 2009, 'Tales from the East' Series, 42cm x 30cm, Black Biro","height":184});
															thumbnails[4663452] = clik.newPhoto({"id":4663452,"src":"30_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663452.html","width":130,"caption":"'Where Eagles Dare, Beginning', 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4657718] = clik.newPhoto({"id":4657718,"src":"New_work_-_The_Sideboard_II_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657718.html","width":130,"caption":"'The Sideboard II', 2009, 'Tales from the East' Series, 42cm x 30cm, Red Biro","height":184});
															thumbnails[4663479] = clik.newPhoto({"id":4663479,"src":"31_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663479.html","width":130,"caption":"'Where Eagles Dare, End', 2006, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4657721] = clik.newPhoto({"id":4657721,"src":"New_Work_-_The_Sideboard_III_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657721.html","width":130,"caption":"'The Sideboard III', 2009, 'Tales from the East' Series, 42cm x 30cm, Black Biro","height":184});
															thumbnails[6311961] = clik.newPhoto({"id":6311961,"src":"KartForce_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_6311961.html","width":130,"caption":"'KARTFORCE', 2010, Charity Commission, Black, Blue and Red Biro, 42cm x 60cm ","height":92});
															thumbnails[4657731] = clik.newPhoto({"id":4657731,"src":"New_Work_-_The_Cupboard_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657731.html","width":130,"caption":"'The Cupboard', 2009, 'Tales from the East' Series, 42cm x 30cm, Black Biro","height":184});
															thumbnails[4663597] = clik.newPhoto({"id":4663597,"src":"362_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663597.html","width":130,"caption":"'Norway and the Wooden Cottage', 2005, 30cm x 21cm, Black Biro","height":93});
															thumbnails[4657785] = clik.newPhoto({"id":4657785,"src":"New_work_-_Lily_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657785.html","width":130,"caption":"'Lily', 2009, 'Tales from the East' Series, 42cm x 30cm, Black Biro","height":184});
															thumbnails[4663612] = clik.newPhoto({"id":4663612,"src":"35_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663612.html","width":130,"caption":"'Self-portrait', 2005, 21cm x 30cm, Black Biro","height":151});
															thumbnails[4657825] = clik.newPhoto({"id":4657825,"src":"Gretel_-_Copy1_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657825.html","width":130,"caption":"'Gretel and The Puppy (after Janet and Anne Grahame Johnstone)', Detail, 2008, 'Tales from the East' Series, 30cm x 21cm, Black Biro","height":182});
															thumbnails[4663607] = clik.newPhoto({"id":4663607,"src":"371_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4663607.html","width":130,"caption":"'Russian Cottage', 2005, 21cm x 30cm, Black Biro","height":92});
															thumbnails[4657827] = clik.newPhoto({"id":4657827,"src":"Lily_puppy_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657827.html","width":130,"caption":"'Gretel and The Puppy', Detail, 'Tales from the East' Series, 2008, 30cm x 21cm, Black Biro","height":183});
															thumbnails[5940615] = clik.newPhoto({"id":5940615,"src":"Hotel_Fandango_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_5940615.html","width":130,"caption":"MAYBE MYRTLE TYRLE ","height":131});
															thumbnails[4657828] = clik.newPhoto({"id":4657828,"src":"Polish_Tapestry_Troika_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657828.html","width":130,"caption":"'Cindy and the Troika', Detail, 2008, 'Tales from the East' Series, 30cm x 21cm, Black Biro","height":182});
															thumbnails[5940565] = clik.newPhoto({"id":5940565,"src":"Beadnell_Drawing_thumb.JPG","galleries_id":404052,"server_id":18,"link":"photo_5940565.html","width":130,"caption":"BEADNELL BEACH, 2010 - COMMISSION, Black Biro, 42cm x 60cm","height":92});
															thumbnails[4657841] = clik.newPhoto({"id":4657841,"src":"Cindy_-_Copy_thumb.jpg","galleries_id":322748,"server_id":18,"link":"photo_4657841.html","width":130,"caption":"'Cindy and the Troika', Detail, 2008, 'Tales from the East' Series, 30cm x 21cm, Black Biro","height":183});
															thumbnails[4659549] = clik.newPhoto({"id":4659549,"src":"SB_2008_-_Copy_212_thumb.JPG","galleries_id":404052,"server_id":18,"link":"photo_4659549.html","width":130,"caption":"'Bryan and Suzanne', Commission 2008, 30cm x 42cm, Black Biro","height":69});
															thumbnails[4670325] = clik.newPhoto({"id":4670325,"src":"18_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670325.html","width":130,"caption":"'Mirror in the Bathroom', 2002, from 'All I Have Left' Series","height":90});
															thumbnails[4670332] = clik.newPhoto({"id":4670332,"src":"Pin-stripe_hotel_for_Living_North_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670332.html","width":130,"caption":"'Pinstripe Hotel Room', 2002, from 'All I have left' series","height":82});
															thumbnails[4670339] = clik.newPhoto({"id":4670339,"src":"11_21_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670339.html","width":130,"caption":"'Cottage in the Forest', 2002, from 'All I Have Left' series","height":86});
															thumbnails[4670346] = clik.newPhoto({"id":4670346,"src":"16_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670346.html","width":130,"caption":"'Cottage in the Forest II', 2002, from 'All I have Left' Series","height":89});
															thumbnails[4670350] = clik.newPhoto({"id":4670350,"src":"17_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670350.html","width":130,"caption":"'Cottage in the Forest at Midnight', 2002, from 'All I have left' series","height":91});
															thumbnails[4670351] = clik.newPhoto({"id":4670351,"src":"13_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670351.html","width":130,"caption":"'Chinese Dress', 2002, from 'All I have Left' Series","height":88});
															thumbnails[4670352] = clik.newPhoto({"id":4670352,"src":"12_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670352.html","width":130,"caption":"'Wolfgang', 2002, from 'All I Have Left' Series","height":92});
															thumbnails[4670440] = clik.newPhoto({"id":4670440,"src":"19_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670440.html","width":130,"caption":"'Black Forest', 2002, from 'All I have left', Series","height":84});
															thumbnails[4670445] = clik.newPhoto({"id":4670445,"src":"5_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670445.html","width":130,"caption":"'Pinstripe Hotel Room II', 2002, from 'All I have left' series","height":85});
															thumbnails[4670449] = clik.newPhoto({"id":4670449,"src":"002_31_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670449.html","width":130,"caption":"'Red Riding', 2002 from 'All I have left' Series","height":87});
															thumbnails[4670452] = clik.newPhoto({"id":4670452,"src":"001_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670452.html","width":130,"caption":"'Forest', 2002 from 'All I have left' Series.  Intended to be enlarged so that the print fits floor to ceiling of a large wall - giving the viewer the sense that they can step into the forest.","height":53});
															thumbnails[4670460] = clik.newPhoto({"id":4670460,"src":"22_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670460.html","width":130,"caption":"'Forest Cottage', 2002 from 'All I have left' Series","height":93});
															thumbnails[4670466] = clik.newPhoto({"id":4670466,"src":"21_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670466.html","width":130,"caption":"'Beethoven's Forest, Ode to Joy', 2002, from 'all I have left' Series","height":93});
															thumbnails[4670470] = clik.newPhoto({"id":4670470,"src":"23_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4670470.html","width":130,"caption":"'Forest Butterflies', 2002, from 'All I have left' series","height":94});
															thumbnails[4670519] = clik.newPhoto({"id":4670519,"src":"IMG_0818_2_thumb.JPG","galleries_id":404052,"server_id":18,"link":"photo_4670519.html","width":130,"caption":"'Cottage Window', 2002, from 'All I Have Left' Series","height":98});
															thumbnails[4719091] = clik.newPhoto({"id":4719091,"src":"002_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4719091.html","width":130,"caption":"'Black Forest', 2002, from 'All that I have left' Series","height":85});
															thumbnails[4719093] = clik.newPhoto({"id":4719093,"src":"002_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4719093.html","width":130,"caption":"'Black Forest II', 2002, from 'All I have left' Series","height":85});
															thumbnails[4719094] = clik.newPhoto({"id":4719094,"src":"002_-_Copy_2_thumb.jpg","galleries_id":404052,"server_id":18,"link":"photo_4719094.html","width":130,"caption":"'Black Forest III', 2002, from 'All I have left' Series","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[404050] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"THE WOODCUTTER'S COTTAGE","link":"gallery_404050.html","maxRecords":0.0,"photoIDs":[7453147.0,7500115.0,7500141.0,7521688.0,7457056.0],"skipIndex":0,"section_code":"gallery","featured_images":"7521688,7500141,7500115,7457056,7453147","id":404050,"singleSection":false});				  						galleries[322748] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TALES FROM THE EAST","link":"gallery_322748.html","maxRecords":0.0,"photoIDs":[5698743.0,5698893.0,5698896.0,4656991.0,4657689.0,5997206.0,5954913.0,4657695.0,4657698.0,4657708.0,4657711.0,4657713.0,4657718.0,4657721.0,4657731.0,4657785.0,4657825.0,4657827.0,4657828.0,4657841.0],"skipIndex":0,"section_code":"gallery","featured_images":5698743.0,"id":322748,"singleSection":false});				  						galleries[404052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHIVE","link":"gallery_404052.html","maxRecords":0.0,"photoIDs":[4662145.0,4657887.0,4662150.0,4662157.0,4662173.0,4662175.0,4662182.0,4662212.0,4662215.0,4662235.0,4662719.0,4662721.0,4662821.0,4662827.0,4662832.0,4663322.0,4663324.0,4663334.0,4663545.0,4663555.0,4663567.0,4663349.0,4663361.0,4663365.0,4663399.0,4663408.0,4663438.0,4663452.0,4663479.0,6311961.0,4663597.0,4663612.0,4663607.0,5940615.0,5940565.0,4659549.0,4670325.0,4670332.0,4670339.0,4670346.0,4670350.0,4670351.0,4670352.0,4670440.0,4670445.0,4670449.0,4670452.0,4670460.0,4670466.0,4670470.0,4670519.0,4719091.0,4719093.0,4719094.0],"skipIndex":0,"section_code":"gallery","featured_images":4670452.0,"id":404052,"singleSection":false});				  						galleries[404053] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SHOP","link":"gallery_404053.html","maxRecords":0.0,"photoIDs":[7457132.0,7457147.0,7457163.0,7458694.0,7476194.0,7550964.0,7521738.0,7594504.0,7545063.0,8555498.0,8555323.0,7545089.0,7594532.0,7578872.0,7579081.0,7579138.0,8181965.0,8181971.0],"skipIndex":0,"section_code":"gallery","featured_images":7457147.0,"id":404053,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7453147';
imageSets[2] = '5698743,7457147,4670452';
imageSets[3] = '7453147';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jbmcc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jbmcc/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 = 'Jane B McCracken, Biro Artist: ' + 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="JBMCC">';
			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;
	}
}

			

