window.thumbnails = {};
															thumbnails[1664875] = clik.newPhoto({"id":1664875,"src":"3vases_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1664875.html","width":130,"caption":"3 vases","height":108});
															thumbnails[1664886] = clik.newPhoto({"id":1664886,"src":"fish mural_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_1664886.html","width":130,"caption":"Fish mural on White Sycamore","height":57});
															thumbnails[1664889] = clik.newPhoto({"id":1664889,"src":"fish detail_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_1664889.html","width":130,"caption":"Fish Mural Detail","height":130});
															thumbnails[1664893] = clik.newPhoto({"id":1664893,"src":"jugandbowl_thumb.jpg","galleries_id":112336,"server_id":15,"link":"photo_1664893.html","width":130,"caption":"Stone ware Jug and Bowl","height":130});
															thumbnails[1664899] = clik.newPhoto({"id":1664899,"src":"lunch in orchard_thumb.jpg","galleries_id":112336,"server_id":15,"link":"photo_1664899.html","width":130,"caption":"lunch In The Orchard - Earthenware bowls","height":130});
															thumbnails[1664913] = clik.newPhoto({"id":1664913,"src":"raku vase by fire_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1664913.html","width":130,"caption":"Raku vase","height":146});
															thumbnails[1664915] = clik.newPhoto({"id":1664915,"src":"raku vase on log_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1664915.html","width":130,"caption":"Raku Rope vessels","height":130});
															thumbnails[1664919] = clik.newPhoto({"id":1664919,"src":"shells011_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_1664919.html","width":130,"caption":"Seashore","height":293});
															thumbnails[1681948] = clik.newPhoto({"id":1681948,"src":"dinner_thumb.jpg","galleries_id":112336,"server_id":15,"link":"photo_1681948.html","width":130,"caption":"Large stoneware serving platter","height":130});
															thumbnails[1681954] = clik.newPhoto({"id":1681954,"src":"waves01_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_1681954.html","width":130,"caption":"Large Wall piece for Treglos Hotel Constantine Bay Cornwall. 130cm x 96cm","height":174});
															thumbnails[1681955] = clik.newPhoto({"id":1681955,"src":"SHELLDETAIL06_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_1681955.html","width":130,"caption":"Starfish detail from \"Seashore\"","height":118});
															thumbnails[1681957] = clik.newPhoto({"id":1681957,"src":"shelldetail05_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_1681957.html","width":130,"caption":"Stones detail from \"Seashore\"","height":131});
															thumbnails[1681958] = clik.newPhoto({"id":1681958,"src":"vase with alium_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1681958.html","width":130,"caption":"Terracotta vase 90cm high. Sawdust pit fired.","height":218});
															thumbnails[1681959] = clik.newPhoto({"id":1681959,"src":"whitevase_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1681959.html","width":130,"caption":"Stoneware vase edged in copper oxide 85cm high","height":130});
															thumbnails[1681961] = clik.newPhoto({"id":1681961,"src":"whitevase 2_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1681961.html","width":130,"caption":"Stoneware vase with copper oxide edging detail","height":132});
															thumbnails[1681967] = clik.newPhoto({"id":1681967,"src":"Conkers_thumb.jpg","galleries_id":113373,"server_id":15,"link":"photo_1681967.html","width":130,"caption":"Burnished terracotta and Suede conkersSize 6cm - 11cm ","height":230});
															thumbnails[1681968] = clik.newPhoto({"id":1681968,"src":"Birches_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_1681968.html","width":130,"caption":"\"Silver Birches\" Raku fired and mounted in White Sycamore","height":56});
															thumbnails[1681972] = clik.newPhoto({"id":1681972,"src":"Girls_Toys_150DPI_thumb.jpg","galleries_id":112337,"server_id":15,"link":"photo_1681972.html","width":130,"caption":"Greetings card \"Girls Toys\"","height":288});
															thumbnails[1681973] = clik.newPhoto({"id":1681973,"src":"Boys_Toys_150DPI_thumb.jpg","galleries_id":112337,"server_id":15,"link":"photo_1681973.html","width":130,"caption":"Greetins card \"Boys Toys\"","height":313});
															thumbnails[1681975] = clik.newPhoto({"id":1681975,"src":"3 BEACH HUTS by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681975.html","width":130,"caption":"\"Beach Huts\" Aero Denmark","height":303});
															thumbnails[1681976] = clik.newPhoto({"id":1681976,"src":"CHASE by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681976.html","width":130,"caption":"\"The Chase\" watercolour Greetings card","height":184});
															thumbnails[1681977] = clik.newPhoto({"id":1681977,"src":"LOOP THE LOOP by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681977.html","width":130,"caption":"\"Biggles\" Wrapping Paper","height":92});
															thumbnails[1681978] = clik.newPhoto({"id":1681978,"src":"STRONGMAN AND FRIENDS by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681978.html","width":130,"caption":"\"Circus Toys\" Greetings card","height":66});
															thumbnails[1681979] = clik.newPhoto({"id":1681979,"src":"Sea Holly by Andree Holden_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_1681979.html","width":130,"caption":"Watercolour for Greetings card","height":134});
															thumbnails[1681980] = clik.newPhoto({"id":1681980,"src":"POP UP DOLLS by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681980.html","width":130,"caption":"\"Popups\" images for ceramic Mugs and Greetings card","height":69});
															thumbnails[1681983] = clik.newPhoto({"id":1681983,"src":"ZEBRA ON ORANGE (2)_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681983.html","width":130,"caption":"\"Zebra\" card","height":244});
															thumbnails[1681984] = clik.newPhoto({"id":1681984,"src":"MIMI AND BEAR by Andree Holden_thumb.JPG","galleries_id":112337,"server_id":15,"link":"photo_1681984.html","width":130,"caption":"\"Mimi and Bear\" card design","height":135});
															thumbnails[1681989] = clik.newPhoto({"id":1681989,"src":"3vases detail a_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_1681989.html","width":130,"caption":"Flower Detail","height":130});
															thumbnails[1682006] = clik.newPhoto({"id":1682006,"src":"P6280056_thumb.JPG","galleries_id":112335,"server_id":15,"link":"photo_1682006.html","width":130,"caption":"Ribbon Bowl Stoneware 40cm diameter","height":105});
															thumbnails[1682019] = clik.newPhoto({"id":1682019,"src":"Copy of P6280053_thumb.JPG","galleries_id":112335,"server_id":15,"link":"photo_1682019.html","width":130,"caption":"Stoneware and copper Oxide Ribbon bowl 48cm","height":125});
															thumbnails[1682092] = clik.newPhoto({"id":1682092,"src":"P1310020_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682092.html","width":130,"caption":"Christmas Robin ","height":121});
															thumbnails[1682094] = clik.newPhoto({"id":1682094,"src":"P1310021_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682094.html","width":130,"caption":"\"Toys\" Christening Mug","height":125});
															thumbnails[1682113] = clik.newPhoto({"id":1682113,"src":"webcompressed_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682113.html","width":130,"caption":"\"Daisy\" Large Creamware Jug","height":132});
															thumbnails[1682119] = clik.newPhoto({"id":1682119,"src":"compressed for web_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682119.html","width":130,"caption":"\"Strawberry\" Mug","height":123});
															thumbnails[1682122] = clik.newPhoto({"id":1682122,"src":"comp for web_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682122.html","width":130,"caption":"\"2 Hearts\" Mug","height":121});
															thumbnails[1682123] = clik.newPhoto({"id":1682123,"src":"compressed_thumb.JPG","galleries_id":112336,"server_id":15,"link":"photo_1682123.html","width":130,"caption":"Inside \"2 Hearts\" Mug","height":103});
															thumbnails[1683151] = clik.newPhoto({"id":1683151,"src":"fields_thumb.jpg","galleries_id":112337,"server_id":15,"link":"photo_1683151.html","width":130,"caption":"Art work for \"Fields\" Range","height":112});
															thumbnails[1683153] = clik.newPhoto({"id":1683153,"src":"Cottage Garden_thumb.jpg","galleries_id":112337,"server_id":15,"link":"photo_1683153.html","width":130,"caption":"Artwork for cottage Garden","height":121});
															thumbnails[1683163] = clik.newPhoto({"id":1683163,"src":"roses red_thumb.jpg","galleries_id":112337,"server_id":15,"link":"photo_1683163.html","width":130,"caption":"\"Roses\" Range","height":97});
															thumbnails[2134219] = clik.newPhoto({"id":2134219,"src":"Quern Stones_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134219.html","width":130,"caption":"\"Quern Stones\"","height":154});
															thumbnails[2134288] = clik.newPhoto({"id":2134288,"src":"Thieves_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134288.html","width":130,"caption":"\"Thieves\"","height":75});
															thumbnails[2134308] = clik.newPhoto({"id":2134308,"src":"P4080008_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134308.html","width":130,"caption":"\"The Feast\"<br>\r\n48 x 26cm","height":69});
															thumbnails[2134323] = clik.newPhoto({"id":2134323,"src":"Copy of Loaves to the Table_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134323.html","width":130,"caption":"\"Loaves To The table\" ","height":114});
															thumbnails[2134341] = clik.newPhoto({"id":2134341,"src":"Copy of Loaves detail_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134341.html","width":130,"caption":"\"Loaves\" detail","height":98});
															thumbnails[2134345] = clik.newPhoto({"id":2134345,"src":"Copy of P4070070_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134345.html","width":130,"caption":"Scything Monk  ","height":126});
															thumbnails[2134351] = clik.newPhoto({"id":2134351,"src":"Copy of Scything monk detail_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134351.html","width":130,"caption":"Detail of Scything Monk","height":98});
															thumbnails[2134389] = clik.newPhoto({"id":2134389,"src":"Copy of After The Plough + background copy_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_2134389.html","width":130,"caption":"\"After The Plough\"","height":189});
															thumbnails[2134403] = clik.newPhoto({"id":2134403,"src":"After The Plough - detail copy_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_2134403.html","width":130,"caption":"","height":81});
															thumbnails[2134417] = clik.newPhoto({"id":2134417,"src":"web pic_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_2134417.html","width":130,"caption":"\"Hessian Sacks\"","height":251});
															thumbnails[2134423] = clik.newPhoto({"id":2134423,"src":"web version_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134423.html","width":130,"caption":"\"Harvest\" <br>\r\nA Page from the Luttrell Psalter","height":180});
															thumbnails[2134444] = clik.newPhoto({"id":2134444,"src":"P3040019_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134444.html","width":130,"caption":"Detail from the Luttrell psalter","height":297});
															thumbnails[2134450] = clik.newPhoto({"id":2134450,"src":"Copy of P3040018_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134450.html","width":130,"caption":"Detail from Luttrell Psalter page","height":208});
															thumbnails[2134475] = clik.newPhoto({"id":2134475,"src":"web pic1_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134475.html","width":130,"caption":"\"Seeds To Sow\"","height":168});
															thumbnails[2134483] = clik.newPhoto({"id":2134483,"src":"Copy of P4070080_thumb.JPG","galleries_id":83307,"server_id":15,"link":"photo_2134483.html","width":130,"caption":" Hessian Sack ","height":147});
															thumbnails[7898163] = clik.newPhoto({"id":7898163,"src":"best_pears_for_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898163.html","width":130,"caption":"Three Pears    ","height":129});
															thumbnails[7898234] = clik.newPhoto({"id":7898234,"src":"daffs_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898234.html","width":130,"caption":"Daffodils in My Blue Spotty Jug","height":170});
															thumbnails[7898238] = clik.newPhoto({"id":7898238,"src":"Daisies4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898238.html","width":130,"caption":"Buttercups on Blue","height":120});
															thumbnails[7898244] = clik.newPhoto({"id":7898244,"src":"Flock_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898244.html","width":130,"caption":" Starlings at Dusk","height":91});
															thumbnails[7898245] = clik.newPhoto({"id":7898245,"src":"Improving_with_Age_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898245.html","width":130,"caption":"Improving with Age (Wilsford Barnside)","height":130});
															thumbnails[7898246] = clik.newPhoto({"id":7898246,"src":"Lovely_Day_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898246.html","width":130,"caption":"Lovely day","height":86});
															thumbnails[7898247] = clik.newPhoto({"id":7898247,"src":"Mor_Mor_The_Boss_tif_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_7898247.html","width":130,"caption":"Just thoughtful - Not Cross","height":158});
															thumbnails[7898248] = clik.newPhoto({"id":7898248,"src":"tulips_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898248.html","width":130,"caption":"Tulips","height":130});
															thumbnails[7898249] = clik.newPhoto({"id":7898249,"src":"Puckshipton_Avenue_4_web_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_7898249.html","width":130,"caption":"Puckshipton Row","height":38});
															thumbnails[7898250] = clik.newPhoto({"id":7898250,"src":"Rose_Hip_lino_4_web_thumb.JPG","galleries_id":426070,"server_id":15,"link":"photo_7898250.html","width":130,"caption":"Rosehip","height":132});
															thumbnails[7901866] = clik.newPhoto({"id":7901866,"src":"taglietelli_round_lamp_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7901866.html","width":130,"caption":"Round Taglietelli Lamp","height":146});
															thumbnails[7901868] = clik.newPhoto({"id":7901868,"src":"overhead_view_of_taglietelli_round_lamp_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7901868.html","width":130,"caption":"Taglietelli detail","height":128});
															thumbnails[7926940] = clik.newPhoto({"id":7926940,"src":"Noodle_bowl_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926940.html","width":130,"caption":"Noodle Bowl","height":67});
															thumbnails[7926941] = clik.newPhoto({"id":7926941,"src":"overhead_noodle_bowl_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926941.html","width":130,"caption":"Large Noodle Bowl overhead","height":124});
															thumbnails[7926943] = clik.newPhoto({"id":7926943,"src":"overhead_square_noodle_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926943.html","width":130,"caption":"Square Noodle Lamp","height":133});
															thumbnails[7926945] = clik.newPhoto({"id":7926945,"src":"Noodle_vase_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926945.html","width":130,"caption":"Noodle Vase","height":150});
															thumbnails[7926946] = clik.newPhoto({"id":7926946,"src":"Mini_noodle_side_view_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926946.html","width":130,"caption":"Mini Noodle bowl","height":69});
															thumbnails[7926948] = clik.newPhoto({"id":7926948,"src":"Mini_noodle_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926948.html","width":130,"caption":"Mini Noodle Bowl overhead","height":130});
															thumbnails[7926966] = clik.newPhoto({"id":7926966,"src":"Square_noodle_lamp_on_white_4_web_thumb.JPG","galleries_id":426170,"server_id":15,"link":"photo_7926966.html","width":130,"caption":"Square Noodle Lamp on Oak base","height":152});
															thumbnails[7927037] = clik.newPhoto({"id":7927037,"src":"On_Tow_4_web_thumb.JPG","galleries_id":426070,"server_id":15,"link":"photo_7927037.html","width":130,"caption":"On Tow","height":184});
															thumbnails[7927040] = clik.newPhoto({"id":7927040,"src":"Tidal_4_web_thumb.JPG","galleries_id":426070,"server_id":15,"link":"photo_7927040.html","width":130,"caption":"Tidal","height":91});
															thumbnails[7927041] = clik.newPhoto({"id":7927041,"src":"P6030012_thumb.JPG","galleries_id":426070,"server_id":15,"link":"photo_7927041.html","width":130,"caption":"An Odd Couple","height":122});
															thumbnails[8169726] = clik.newPhoto({"id":8169726,"src":"clicpic_Dancing_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_8169726.html","width":130,"caption":"Dancing Through The Years","height":173});
															thumbnails[8619596] = clik.newPhoto({"id":8619596,"src":"Honesty_thumb.JPG","galleries_id":426070,"server_id":15,"link":"photo_8619596.html","width":130,"caption":"'Honesty'  ","height":195});
															thumbnails[8709112] = clik.newPhoto({"id":8709112,"src":"Birches_Collagraph._Edition_of_5_-_Copy_thumb.jpg","galleries_id":426070,"server_id":15,"link":"photo_8709112.html","width":130,"caption":"Autumn Birches","height":136});
															thumbnails[8997086] = clik.newPhoto({"id":8997086,"src":"clicpiccasket_thumb.jpg","galleries_id":113373,"server_id":15,"link":"photo_8997086.html","width":130,"caption":"Raku treasure casket","height":133});
															thumbnails[8997119] = clik.newPhoto({"id":8997119,"src":"clicpicmalthouse_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_8997119.html","width":130,"caption":"The Malt House","height":130});
															thumbnails[8997134] = clik.newPhoto({"id":8997134,"src":"clicpicbirches_thumb.jpg","galleries_id":426070,"server_id":15,"link":"photo_8997134.html","width":130,"caption":"Night Birch Forest","height":225});
															thumbnails[8997148] = clik.newPhoto({"id":8997148,"src":"clicpicorbitjug_thumb.jpg","galleries_id":112335,"server_id":15,"link":"photo_8997148.html","width":130,"caption":"","height":122});
															thumbnails[8997178] = clik.newPhoto({"id":8997178,"src":"clicpiclamp_thumb.JPG","galleries_id":113373,"server_id":15,"link":"photo_8997178.html","width":130,"caption":"70's inspired shade","height":166});
															thumbnails[8997190] = clik.newPhoto({"id":8997190,"src":"clicpicstourhead_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_8997190.html","width":130,"caption":"Stourhead  in October","height":87});
															thumbnails[8997203] = clik.newPhoto({"id":8997203,"src":"clicpictreetunnel_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_8997203.html","width":130,"caption":"Down the tree Tunnel in the garden with a glimpse of Henrik's log shed.","height":104});
															thumbnails[8997224] = clik.newPhoto({"id":8997224,"src":"clipicorigin_thumb.jpg","galleries_id":112336,"server_id":15,"link":"photo_8997224.html","width":130,"caption":"Orbit Jug","height":110});
															thumbnails[8997237] = clik.newPhoto({"id":8997237,"src":"clipicwoodborough_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_8997237.html","width":130,"caption":"Woodborough Hill","height":206});
															thumbnails[8997324] = clik.newPhoto({"id":8997324,"src":"Taglietelli_Porcelain_thumb.jpg","galleries_id":83307,"server_id":15,"link":"photo_8997324.html","width":130,"caption":"Porcelain Taglietelli ","height":130});
															thumbnails[8997346] = clik.newPhoto({"id":8997346,"src":"originclicpic_thumb.jpg","galleries_id":426070,"server_id":15,"link":"photo_8997346.html","width":130,"caption":"Origin","height":131});
															thumbnails[9000103] = clik.newPhoto({"id":9000103,"src":"Early_with_the_frost_cpmpressed_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_9000103.html","width":130,"caption":"Study for Frosty Morning - Woodborough","height":129});
															thumbnails[9000113] = clik.newPhoto({"id":9000113,"src":"Porthmeor_-_On_the_Rock_compressed_thumb.JPG","galleries_id":426066,"server_id":15,"link":"photo_9000113.html","width":130,"caption":"Porthmeor Rocks","height":157});
															thumbnails[9000136] = clik.newPhoto({"id":9000136,"src":"Morning_Frost_Woodborough_compressed_thumb.jpg","galleries_id":426066,"server_id":15,"link":"photo_9000136.html","width":130,"caption":"Woodborough -Early  Frosty morning","height":188});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[112337] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Illustration ","link":"gallery_112337.html","maxRecords":0.0,"photoIDs":[1681972.0,1681973.0,1681975.0,1681976.0,1681977.0,1681978.0,1681980.0,1681983.0,1681984.0,1683151.0,1683153.0,1683163.0],"skipIndex":0,"section_code":"gallery","featured_images":1681978.0,"id":112337,"singleSection":false});				  						galleries[426170] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" New Porcelain Collection - Squiggle Series","link":"gallery_426170.html","maxRecords":0.0,"photoIDs":[7901866.0,7901868.0,7926940.0,7926941.0,7926943.0,7926945.0,7926946.0,7926948.0,7926966.0],"skipIndex":0,"section_code":"gallery","featured_images":7901866.0,"id":426170,"singleSection":false});				  						galleries[113373] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Little Treasures and oddities!","link":"gallery_113373.html","maxRecords":0.0,"photoIDs":[1681967.0,8997086.0,8997178.0],"skipIndex":0,"section_code":"gallery","featured_images":8997086.0,"id":113373,"singleSection":false});				  						galleries[426066] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_426066.html","maxRecords":0.0,"photoIDs":[1681979.0,7898163.0,7898234.0,7898238.0,7898244.0,7898245.0,7898246.0,7898247.0,7898248.0,7898249.0,8169726.0,8997119.0,8997190.0,8997203.0,8997237.0,9000103.0,9000113.0,9000136.0],"skipIndex":0,"section_code":"gallery","featured_images":"9000136,8169726","id":426066,"singleSection":false});				  						galleries[426070] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints","link":"gallery_426070.html","maxRecords":0.0,"photoIDs":[7898250.0,7927037.0,7927040.0,7927041.0,8619596.0,8709112.0,8997134.0,8997346.0],"skipIndex":0,"section_code":"gallery","featured_images":"8997134,8709112","id":426070,"singleSection":false});				  						galleries[112336] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tableware","link":"gallery_112336.html","maxRecords":0.0,"photoIDs":[1664893.0,1664899.0,1681948.0,1682092.0,1682094.0,1682113.0,1682119.0,1682122.0,1682123.0,8997224.0],"skipIndex":0,"section_code":"gallery","featured_images":1664893.0,"id":112336,"singleSection":false});				  						galleries[112335] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Vessels","link":"gallery_112335.html","maxRecords":0.0,"photoIDs":[1664875.0,1664913.0,1664915.0,1681958.0,1681959.0,1681961.0,1681989.0,1682006.0,1682019.0,8997148.0],"skipIndex":0,"section_code":"gallery","featured_images":1681959.0,"id":112335,"singleSection":false});				  						galleries[83307] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramic Wall Art","link":"gallery_83307.html","maxRecords":0.0,"photoIDs":[1664886.0,1664889.0,1664919.0,1681954.0,1681955.0,1681957.0,1681968.0,2134219.0,2134288.0,2134308.0,2134323.0,2134341.0,2134345.0,2134351.0,2134389.0,2134403.0,2134417.0,2134423.0,2134444.0,2134450.0,2134475.0,2134483.0,8997324.0],"skipIndex":0,"section_code":"gallery","featured_images":1664886.0,"id":83307,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9000136,9000113,9000103,8997346,8997324,8997237,8997224,8997203,8997190,8997178,8997148,8997134,8997119,8997086,8709112,8619596,8169726,7927037,7926966,7926948,7926946,7926945,7926943,7926941,7926940,7901868,7898250,1682122,1682019,1682006,1681989,1681978,1681968,1681967,1681959,1681958,1681957,1681955,1681954,1664919,1664915,1664913,1664899,1664893,1664889,1664886,1664875';
imageSets[2] = '9000136,8997134,8997086,8709112,8169726,7901866,1681978,1681959,1664893,1664886';
imageSets[3] = '9000136,9000113,9000103,8997346,8997324,8997237,8997224,8997203,8997190,8997178,8997148,8997134,8997119,8997086,8709112,8619596,8169726,7898250,1681978';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/andreeholden/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/andreeholden/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 = 'Andrée Holden: ' + 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;
	}
}

			

