window.thumbnails = {};
															thumbnails[8890466] = clik.newPhoto({"id":8890466,"src":"Shop_frontage_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":214,"caption":"The Gallery at Bridgnorth","height":300});
															thumbnails[8949806] = clik.newPhoto({"id":8949806,"src":"Gallery_9841436A-24E8-5EC4-4FAA8112AB3E8120_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":260,"caption":"","height":209});
															thumbnails[8889405] = clik.newPhoto({"id":8889405,"src":"1214338454_lucigallucci6_thumb.jpg","galleries_id":479480,"server_id":1,"link":"photo_8889405.html","width":130,"caption":"Lucianna Gallucci Ceramic Jar","height":181});
															thumbnails[8889427] = clik.newPhoto({"id":8889427,"src":"DSCF1472_thumb.JPG","galleries_id":479482,"server_id":1,"link":"photo_8889427.html","width":130,"caption":"The Whistling Cowgirl Lavender Puppy & Lavender Heart","height":85});
															thumbnails[8889433] = clik.newPhoto({"id":8889433,"src":"DSCF2165_thumb.jpg","galleries_id":479482,"server_id":1,"link":"photo_8889433.html","width":130,"caption":"Pants & Paper Clasp Purse","height":134});
															thumbnails[8891724] = clik.newPhoto({"id":8891724,"src":"elephant_and_bee_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_8891724.html","width":130,"caption":"Lilapod, Elephant and Bee","height":130});
															thumbnails[8891759] = clik.newPhoto({"id":8891759,"src":"Notebook1_copy_thumb.jpg","galleries_id":479482,"server_id":1,"link":"photo_8891759.html","width":130,"caption":"Forever Foxed Notebook","height":130});
															thumbnails[8891765] = clik.newPhoto({"id":8891765,"src":"Wrapped_ring_sml_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_8891765.html","width":130,"caption":"Anna K Baldwin, Wrapped Ring","height":121});
															thumbnails[8896006] = clik.newPhoto({"id":8896006,"src":"cereal_bowl_thumb_2BF39742-1EC9-D45B-1C21BDC844C353CA_thumb.JPG","galleries_id":479480,"server_id":1,"link":"photo_8896006.html","width":130,"caption":"Caroline Nash Porcelain Cereal Bowls, Mixed Designs","height":130});
															thumbnails[8896050] = clik.newPhoto({"id":8896050,"src":"Rob_Holmquist1_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_8896050.html","width":130,"caption":"Rob Holmquist, Chaos & Order 3, Etching on Spalted Ash (Natural)","height":83});
															thumbnails[8896058] = clik.newPhoto({"id":8896058,"src":"K_Tinkler_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_8896058.html","width":130,"caption":"Karen Tinkler Porcelain Wall Plaque","height":196});
															thumbnails[8896078] = clik.newPhoto({"id":8896078,"src":"Kelly_Connor_Felt_Bag1_thumb.jpg","galleries_id":479482,"server_id":1,"link":"photo_8896078.html","width":130,"caption":"Kelly Connor Felt Bag","height":166});
															thumbnails[8896122] = clik.newPhoto({"id":8896122,"src":"Elly_Mental_Velveteen_Rabbit_Brooch_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_8896122.html","width":130,"caption":"Elly Mental Velveteen Rabbit Brooch, Mixed Media","height":169});
															thumbnails[8896145] = clik.newPhoto({"id":8896145,"src":"Jo_Hill_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_8896145.html","width":130,"caption":"Jo Hill Blackbird Applique","height":131});
															thumbnails[8896155] = clik.newPhoto({"id":8896155,"src":"Krista_Joy_thumb.jpg","galleries_id":479482,"server_id":1,"link":"photo_8896155.html","width":130,"caption":"Krista Joy Notbook, Lighthouse Series","height":151});
															thumbnails[8896158] = clik.newPhoto({"id":8896158,"src":"Tinker_Tailor_thumb.jpg","galleries_id":479482,"server_id":1,"link":"photo_8896158.html","width":130,"caption":"Tinker Tailor Vintage Fabric Purse","height":116});
															thumbnails[8896170] = clik.newPhoto({"id":8896170,"src":"Kirsty_Shaw_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_8896170.html","width":130,"caption":"Kirsty Shaw Acrylic Dragonfly Brooch","height":133});
															thumbnails[8896173] = clik.newPhoto({"id":8896173,"src":"Stephanie_Earl_thumb.jpg","galleries_id":479480,"server_id":1,"link":"photo_8896173.html","width":130,"caption":"Stephanie Earl Lace Embossed Jug","height":183});
															thumbnails[9088703] = clik.newPhoto({"id":9088703,"src":"SAM_0602web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088703.html","width":260,"caption":" Elly Mental, Row of Owls Necklace.","height":245});
															thumbnails[9088915] = clik.newPhoto({"id":9088915,"src":"SAM_0603web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088915.html","width":260,"caption":"Elly Mental Running Fox Brooch.","height":244});
															thumbnails[9088921] = clik.newPhoto({"id":9088921,"src":"SAM_0604web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088921.html","width":247,"caption":"Elly Mental Swallow Brooch.","height":300});
															thumbnails[9088930] = clik.newPhoto({"id":9088930,"src":"SAM_0605web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088930.html","width":260,"caption":"Elly Mental Flying Horse Necklace.","height":240});
															thumbnails[9088932] = clik.newPhoto({"id":9088932,"src":"SAM_0606web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088932.html","width":260,"caption":"Elly Mental Bird Cage Earrings.","height":288});
															thumbnails[9088938] = clik.newPhoto({"id":9088938,"src":"SAM_0607web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088938.html","width":245,"caption":"Elly Mental Lion Necklace.","height":300});
															thumbnails[9088944] = clik.newPhoto({"id":9088944,"src":"SAM_0609web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088944.html","width":260,"caption":"Elly Mental Swallow Necklace.","height":276});
															thumbnails[9088953] = clik.newPhoto({"id":9088953,"src":"SAM_0611web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088953.html","width":253,"caption":"Elly Mental Lion Brooch.","height":300});
															thumbnails[9088955] = clik.newPhoto({"id":9088955,"src":"SAM_0612web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088955.html","width":260,"caption":"Elly Mental Butterfly Necklace.","height":287});
															thumbnails[9088958] = clik.newPhoto({"id":9088958,"src":"SAM_0613web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088958.html","width":246,"caption":"Elly Mental Owl Brooch.","height":300});
															thumbnails[9088960] = clik.newPhoto({"id":9088960,"src":"SAM_0614web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088960.html","width":260,"caption":"Elly Mental Cat Necklace.","height":291});
															thumbnails[9088963] = clik.newPhoto({"id":9088963,"src":"SAM_0615web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088963.html","width":238,"caption":"Elly Mental Velveteen Rabbit Brooch.","height":300});
															thumbnails[9088965] = clik.newPhoto({"id":9088965,"src":"SAM_0616web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088965.html","width":260,"caption":"Elly Mental Fox Brooch.","height":287});
															thumbnails[9088967] = clik.newPhoto({"id":9088967,"src":"SAM_0617web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088967.html","width":259,"caption":"Elly Mental Cats Necklace.","height":300});
															thumbnails[9088970] = clik.newPhoto({"id":9088970,"src":"SAM_0618w3b_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088970.html","width":256,"caption":"Elly Mental Fish Earrings.","height":300});
															thumbnails[9088973] = clik.newPhoto({"id":9088973,"src":"SAM_0619web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088973.html","width":260,"caption":"Elly Mental Pug Necklace.","height":296});
															thumbnails[9088974] = clik.newPhoto({"id":9088974,"src":"SAM_0620web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088974.html","width":257,"caption":"Elly Mental Greyhound Brooch.","height":300});
															thumbnails[9088990] = clik.newPhoto({"id":9088990,"src":"SAM_0621web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088990.html","width":260,"caption":"Elly Mental Bear Brooch.","height":295});
															thumbnails[9088992] = clik.newPhoto({"id":9088992,"src":"SAM_0622web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088992.html","width":260,"caption":"Elly Mental Rabbits Necklace.","height":246});
															thumbnails[9088997] = clik.newPhoto({"id":9088997,"src":"SAM_0623web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088997.html","width":260,"caption":"Elly Mental Swallows Necklace.","height":255});
															thumbnails[9088999] = clik.newPhoto({"id":9088999,"src":"SAM_0624web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9088999.html","width":260,"caption":"Elly Rabbit Necklace","height":250});
															thumbnails[9089008] = clik.newPhoto({"id":9089008,"src":"SAM_0625web_1_thumb.jpg","galleries_id":479479,"server_id":1,"link":"photo_9089008.html","width":260,"caption":"Elly Mental Birdie Necklace.","height":291});
															thumbnails[9089015] = clik.newPhoto({"id":9089015,"src":"SAM_0628web_1_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_9089015.html","width":260,"caption":"Jo Hill Tweet Applique.","height":263});
															thumbnails[9089020] = clik.newPhoto({"id":9089020,"src":"SAM_0629web_1_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_9089020.html","width":260,"caption":"Jo Hill Warbler Applique.","height":267});
															thumbnails[9089024] = clik.newPhoto({"id":9089024,"src":"SAM_0630web_1_thumb.jpg","galleries_id":479481,"server_id":1,"link":"photo_9089024.html","width":260,"caption":"Jo Hill Wagtail Applique.","height":260});
															thumbnails[8896827] = clik.newPhoto({"id":8896827,"src":"10._Catfish_medium1_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8896827.html","width":130,"caption":"Catfish (Medium Sculpture)","height":129});
															thumbnails[8896830] = clik.newPhoto({"id":8896830,"src":"0321_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8896830.html","width":130,"caption":"Rain Deer (Mini Sculpture with Jute Gift Bag)","height":129});
															thumbnails[8944915] = clik.newPhoto({"id":8944915,"src":"Bird_D_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8944915.html","width":260,"caption":"Bird D","height":239});
															thumbnails[8945094] = clik.newPhoto({"id":8945094,"src":"Bird_H_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945094.html","width":260,"caption":"Bird House","height":262});
															thumbnails[8945164] = clik.newPhoto({"id":8945164,"src":"Bow_Wow_Badge_1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945164.html","width":260,"caption":"Bow Wow","height":258});
															thumbnails[8945182] = clik.newPhoto({"id":8945182,"src":"Cat_and_Mouse_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945182.html","width":260,"caption":"Cat & Mouse","height":236});
															thumbnails[8945195] = clik.newPhoto({"id":8945195,"src":"Cool_Cat_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945195.html","width":260,"caption":"Cool Cat","height":235});
															thumbnails[8945211] = clik.newPhoto({"id":8945211,"src":"Crab_Apple1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945211.html","width":260,"caption":"Crab Apple","height":238});
															thumbnails[8945279] = clik.newPhoto({"id":8945279,"src":"Danger_M_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945279.html","width":260,"caption":"Danger Mouse","height":229});
															thumbnails[8945287] = clik.newPhoto({"id":8945287,"src":"Dog_House_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945287.html","width":260,"caption":"Dog House","height":243});
															thumbnails[8945301] = clik.newPhoto({"id":8945301,"src":"Dog_N_Bone_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945301.html","width":260,"caption":"Dog 'n' Bone","height":265});
															thumbnails[8945306] = clik.newPhoto({"id":8945306,"src":"Dog_Star_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945306.html","width":260,"caption":"Dog Star","height":244});
															thumbnails[8945309] = clik.newPhoto({"id":8945309,"src":"Dogfish_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945309.html","width":260,"caption":"Dog Fish","height":248});
															thumbnails[8945318] = clik.newPhoto({"id":8945318,"src":"Fish_n_Ships_Badge1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945318.html","width":260,"caption":"Fish 'n' Ships","height":248});
															thumbnails[8945322] = clik.newPhoto({"id":8945322,"src":"Gundog1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8945322.html","width":260,"caption":"Gundog","height":243});
															thumbnails[8951323] = clik.newPhoto({"id":8951323,"src":"hen_night_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951323.html","width":260,"caption":"Hen Night","height":257});
															thumbnails[8951443] = clik.newPhoto({"id":8951443,"src":"Candle_Llama1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951443.html","width":260,"caption":"Candle Llama","height":228});
															thumbnails[8951448] = clik.newPhoto({"id":8951448,"src":"hen_night11_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951448.html","width":260,"caption":"Hen Night","height":257});
															thumbnails[8951451] = clik.newPhoto({"id":8951451,"src":"Honey_Bee_Badge11_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951451.html","width":260,"caption":"Honey Bee","height":236});
															thumbnails[8951454] = clik.newPhoto({"id":8951454,"src":"Hound_of_love1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951454.html","width":260,"caption":"Hound of Love","height":233});
															thumbnails[8951455] = clik.newPhoto({"id":8951455,"src":"llama_Lamp_B1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951455.html","width":260,"caption":"Llama Lamp","height":242});
															thumbnails[8951457] = clik.newPhoto({"id":8951457,"src":"Lucky_Cow1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951457.html","width":260,"caption":"Lucky Cow","height":234});
															thumbnails[8951458] = clik.newPhoto({"id":8951458,"src":"Mother_Goose1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951458.html","width":260,"caption":"Mother Goose","height":236});
															thumbnails[8951459] = clik.newPhoto({"id":8951459,"src":"Mother_Hen1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951459.html","width":260,"caption":"Mother Hen","height":242});
															thumbnails[8951462] = clik.newPhoto({"id":8951462,"src":"Octopus1_thumb.jpg","galleries_id":470846,"server_id":1,"link":"photo_8951462.html","width":260,"caption":"Octopus","height":248});
															thumbnails[7790462] = clik.newPhoto({"id":7790462,"src":"7123456789.Rocking_Horse_large_web_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_7790462.html","width":130,"caption":"Rocking Horse","height":103});
															thumbnails[8920416] = clik.newPhoto({"id":8920416,"src":"Pointer_Brooch_White11_thumb_6744CC46-24E8-5EC4-4FD06507B75CB4E0.jpg","galleries_id":469383,"server_id":1,"link":"photo_8920416.html","width":191,"caption":"Pointer","height":220});
															thumbnails[8880244] = clik.newPhoto({"id":8880244,"src":"Catfish_Large_Web_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8880244.html","width":130,"caption":"Catfish","height":84});
															thumbnails[8880328] = clik.newPhoto({"id":8880328,"src":"Gundog_Large_Web1_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8880328.html","width":130,"caption":"Gundog","height":86});
															thumbnails[8920547] = clik.newPhoto({"id":8920547,"src":"Pointer_Brooch_Black1_thumb_67075379-24E8-5EC4-4F751278D86453C7.jpg","galleries_id":469383,"server_id":1,"link":"photo_8920547.html","width":211,"caption":"Pointer ","height":243});
															thumbnails[8880348] = clik.newPhoto({"id":8880348,"src":"Pointer_Large_web_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8880348.html","width":130,"caption":"Pointer","height":98});
															thumbnails[8880394] = clik.newPhoto({"id":8880394,"src":"Llama_Lamp_Large_Web_thumb.jpg","galleries_id":469421,"server_id":1,"link":"photo_8880394.html","width":130,"caption":"Llama Lamp","height":96});
															thumbnails[8955258] = clik.newPhoto({"id":8955258,"src":"Love_Bird_White_thumb_D15ECFC7-1EC9-D45B-1C853F445B6609C9.jpg","galleries_id":469383,"server_id":1,"link":"photo_8955258.html","width":207,"caption":"Love Bird","height":239});
															thumbnails[8944673] = clik.newPhoto({"id":8944673,"src":"Love_Bird_Brooch_Black1_thumb_679A8ED6-24E8-5EC4-4F1C3AF860AFEE6D.jpg","galleries_id":469383,"server_id":1,"link":"photo_8944673.html","width":227,"caption":"Love Bird","height":261});
															thumbnails[8920554] = clik.newPhoto({"id":8920554,"src":"Deer_Heart_Brooch_white_thumb_6700BCE7-24E8-5EC4-4FFD53542DC5E04B.jpg","galleries_id":469383,"server_id":1,"link":"photo_8920554.html","width":233,"caption":"Deer Heart","height":269});
															thumbnails[8920456] = clik.newPhoto({"id":8920456,"src":"Deer_Heart_Brooch_thumb_67116D13-24E8-5EC4-4F06FA84A125E2FB.jpg","galleries_id":469383,"server_id":1,"link":"photo_8920456.html","width":215,"caption":"Deer Heart","height":248});
															thumbnails[8920551] = clik.newPhoto({"id":8920551,"src":"Rocking_Horse_White_thumb_66F2CF57-24E8-5EC4-4F436F2B1DCE5482.jpg","galleries_id":469383,"server_id":1,"link":"photo_8920551.html","width":235,"caption":"Rocking Horse","height":271});
															thumbnails[8948918] = clik.newPhoto({"id":8948918,"src":"Rocking_Horse_Black_thumb_93094509-1EC9-D45B-1C95F2B4655EDD33.jpg","galleries_id":469383,"server_id":1,"link":"photo_8948918.html","width":210,"caption":"Rocking Horse","height":241});
															thumbnails[8948894] = clik.newPhoto({"id":8948894,"src":"Puppy_Love_White_thumb_9327B0C3-1EC9-D45B-1C6DB1096FDA318E.jpg","galleries_id":469383,"server_id":1,"link":"photo_8948894.html","width":199,"caption":"Puppy Love","height":229});
															thumbnails[8948859] = clik.newPhoto({"id":8948859,"src":"Puppy_Love_Black_thumb_954DC545-1EC9-D45B-1CDEB909CF6424C8.jpg","galleries_id":469383,"server_id":1,"link":"photo_8948859.html","width":193,"caption":"Puppy Love","height":223});
															thumbnails[8949001] = clik.newPhoto({"id":8949001,"src":"Top_Cat_White_thumb_9566FADE-1EC9-D45B-1C48DE7085464EAC.jpg","galleries_id":469383,"server_id":1,"link":"photo_8949001.html","width":179,"caption":"Top Cat","height":207});
															thumbnails[8948992] = clik.newPhoto({"id":8948992,"src":"Top_Cat_Black_thumb_956FFF16-1EC9-D45B-1CC63CB43F224288.jpg","galleries_id":469383,"server_id":1,"link":"photo_8948992.html","width":204,"caption":"Top Cat ","height":236});
															thumbnails[8926491] = clik.newPhoto({"id":8926491,"src":"Flower_Field_2_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926491.html","width":260,"caption":"Flower Field 2","height":195});
															thumbnails[8926496] = clik.newPhoto({"id":8926496,"src":"Little_Flower_House_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926496.html","width":114,"caption":"Little Flower House","height":300});
															thumbnails[8926500] = clik.newPhoto({"id":8926500,"src":"Little_Flower_House_11_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926500.html","width":125,"caption":"Through the Moor","height":300});
															thumbnails[8926505] = clik.newPhoto({"id":8926505,"src":"Tracks_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926505.html","width":260,"caption":"Tracks","height":284});
															thumbnails[8926510] = clik.newPhoto({"id":8926510,"src":"Thrush_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926510.html","width":260,"caption":"Ruffled Thrush","height":261});
															thumbnails[8926511] = clik.newPhoto({"id":8926511,"src":"Sparrow_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926511.html","width":260,"caption":"Sparrow","height":261});
															thumbnails[8926517] = clik.newPhoto({"id":8926517,"src":"Winter_II_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926517.html","width":260,"caption":"Winter 2 (SOLD)","height":119});
															thumbnails[8926540] = clik.newPhoto({"id":8926540,"src":"020_thumb.JPG","galleries_id":469365,"server_id":1,"link":"photo_8926540.html","width":260,"caption":"Poppy (SOLD)","height":259});
															thumbnails[8926551] = clik.newPhoto({"id":8926551,"src":"Yellow_Daisies_II_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926551.html","width":260,"caption":"Yellow Daisies (SOLD)","height":263});
															thumbnails[8926576] = clik.newPhoto({"id":8926576,"src":"Yellow_Flowers__1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926576.html","width":260,"caption":"Yellow Flowers 2 (SOLD)","height":255});
															thumbnails[8926596] = clik.newPhoto({"id":8926596,"src":"Flower_Field1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926596.html","width":260,"caption":"Flower Field","height":274});
															thumbnails[8926737] = clik.newPhoto({"id":8926737,"src":"Scampi_1_thumb.jpg","galleries_id":469365,"server_id":1,"link":"photo_8926737.html","width":260,"caption":"Scampi (Commission\/SOLD)","height":257});
															thumbnails[8881885] = clik.newPhoto({"id":8881885,"src":"Ali_web_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8881885.html","width":130,"caption":"Gareth, Ali and Griff","height":173});
															thumbnails[8881888] = clik.newPhoto({"id":8881888,"src":"DSCF1282_web_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8881888.html","width":130,"caption":"Pub Landlord","height":163});
															thumbnails[8881895] = clik.newPhoto({"id":8881895,"src":"DSCF1484_web_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8881895.html","width":130,"caption":"Christmas Chihuahua!","height":184});
															thumbnails[8881906] = clik.newPhoto({"id":8881906,"src":"De_Vere_Whites_Calendar_Cover_Colour_web1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8881906.html","width":130,"caption":"Advent Calendar Caricature","height":194});
															thumbnails[8883938] = clik.newPhoto({"id":8883938,"src":"001_web_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8883938.html","width":130,"caption":"RHS Caricature","height":173});
															thumbnails[8892336] = clik.newPhoto({"id":8892336,"src":"Nomis_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892336.html","width":130,"caption":"Nomis Restaurant Caricature","height":94});
															thumbnails[8892412] = clik.newPhoto({"id":8892412,"src":"bRIDGNORTH_pRINT1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892412.html","width":130,"caption":"Bridgnorth Print Caricature","height":92});
															thumbnails[8892601] = clik.newPhoto({"id":8892601,"src":"John_F1._Kennedy_1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892601.html","width":130,"caption":"JFK in the Driving Seat","height":126});
															thumbnails[8892639] = clik.newPhoto({"id":8892639,"src":"Andy_Warhol11_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892639.html","width":130,"caption":"Andy Warhol","height":55});
															thumbnails[8892647] = clik.newPhoto({"id":8892647,"src":"Mary_Quant1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892647.html","width":130,"caption":"Mary Quant","height":44});
															thumbnails[8892653] = clik.newPhoto({"id":8892653,"src":"teacher_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892653.html","width":130,"caption":"Newtown Primary School Commission","height":179});
															thumbnails[8892662] = clik.newPhoto({"id":8892662,"src":"Merlot_2_36A2BC0D-1EC9-D45B-1CBD900408F495C6_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8892662.html","width":130,"caption":"Merlot","height":169});
															thumbnails[8897131] = clik.newPhoto({"id":8897131,"src":"Ant__Dec1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8897131.html","width":130,"caption":"Ant and Dec, Black and White Ink","height":172});
															thumbnails[8897134] = clik.newPhoto({"id":8897134,"src":"Charles__Gorilla_scan1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8897134.html","width":130,"caption":"Charles and Gorilla...erm...Camilla....","height":94});
															thumbnails[8897141] = clik.newPhoto({"id":8897141,"src":"Louise_and_Pete1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8897141.html","width":130,"caption":"Lou and Pete's Wedding Invitation","height":173});
															thumbnails[8897171] = clik.newPhoto({"id":8897171,"src":"Time_Magazine_3_1_thumb.jpg","galleries_id":467146,"server_id":1,"link":"photo_8897171.html","width":130,"caption":"Time Magazine Cover Caricature","height":184});
															thumbnails[8924791] = clik.newPhoto({"id":8924791,"src":"cid_X_MA1_1238405869aol_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924791.html","width":260,"caption":"A fresh victim drops into the gallery for a quick caricature.","height":208});
															thumbnails[8924796] = clik.newPhoto({"id":8924796,"src":"IMG_00951_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924796.html","width":260,"caption":"Does my face look big in this???","height":274});
															thumbnails[8924800] = clik.newPhoto({"id":8924800,"src":"IMG_00981_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924800.html","width":260,"caption":"Please remember to smile for your caricature...","height":164});
															thumbnails[8924803] = clik.newPhoto({"id":8924803,"src":"IMG_01031_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924803.html","width":260,"caption":"It's your turn next....(evil laugh)!","height":248});
															thumbnails[8924807] = clik.newPhoto({"id":8924807,"src":"Tania_drawing1_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924807.html","width":260,"caption":"I'm slightly more forgiving to my sisters!","height":190});
															thumbnails[8924840] = clik.newPhoto({"id":8924840,"src":"0011_thumb.jpg","galleries_id":469380,"server_id":1,"link":"photo_8924840.html","width":260,"caption":"Patsy and Captain Jack Sparrow from life - unfortunately fellow entertainers, not the real thing!","height":358});
															thumbnails[8901054] = clik.newPhoto({"id":8901054,"src":"comments_001_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901054.html","width":260,"caption":"","height":54});
															thumbnails[8901073] = clik.newPhoto({"id":8901073,"src":"comments_001_21_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901073.html","width":260,"caption":"","height":42});
															thumbnails[8901105] = clik.newPhoto({"id":8901105,"src":"comments_0023_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901105.html","width":260,"caption":"","height":45});
															thumbnails[8901120] = clik.newPhoto({"id":8901120,"src":"comments_001_11_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901120.html","width":260,"caption":"","height":52});
															thumbnails[8901176] = clik.newPhoto({"id":8901176,"src":"comments_001_14_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901176.html","width":260,"caption":"","height":41});
															thumbnails[8901181] = clik.newPhoto({"id":8901181,"src":"comments_8_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901181.html","width":260,"caption":"","height":110});
															thumbnails[8901189] = clik.newPhoto({"id":8901189,"src":"comments_11_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901189.html","width":260,"caption":"","height":141});
															thumbnails[8901192] = clik.newPhoto({"id":8901192,"src":"comments_11_004_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901192.html","width":260,"caption":"","height":58});
															thumbnails[8901195] = clik.newPhoto({"id":8901195,"src":"comments_11_009_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901195.html","width":260,"caption":"","height":86});
															thumbnails[8901204] = clik.newPhoto({"id":8901204,"src":"comments_12_002_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901204.html","width":260,"caption":"","height":121});
															thumbnails[8901209] = clik.newPhoto({"id":8901209,"src":"comments_12_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901209.html","width":260,"caption":"","height":82});
															thumbnails[8901216] = clik.newPhoto({"id":8901216,"src":"comments_12_004_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901216.html","width":260,"caption":"","height":119});
															thumbnails[8901221] = clik.newPhoto({"id":8901221,"src":"comments_12_005_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901221.html","width":260,"caption":"","height":112});
															thumbnails[8901228] = clik.newPhoto({"id":8901228,"src":"comments_9_002_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901228.html","width":260,"caption":"","height":153});
															thumbnails[8901246] = clik.newPhoto({"id":8901246,"src":"comments_8_004_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901246.html","width":260,"caption":"","height":98});
															thumbnails[8901260] = clik.newPhoto({"id":8901260,"src":"comments_6_005_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901260.html","width":260,"caption":"","height":33});
															thumbnails[8901265] = clik.newPhoto({"id":8901265,"src":"comments_6_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901265.html","width":260,"caption":"","height":118});
															thumbnails[8901268] = clik.newPhoto({"id":8901268,"src":"comments_4_002_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901268.html","width":260,"caption":"","height":65});
															thumbnails[8901269] = clik.newPhoto({"id":8901269,"src":"comments_4_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901269.html","width":260,"caption":"","height":66});
															thumbnails[8901270] = clik.newPhoto({"id":8901270,"src":"comments_4_006_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901270.html","width":260,"caption":"","height":94});
															thumbnails[8901277] = clik.newPhoto({"id":8901277,"src":"comments_3_002_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901277.html","width":260,"caption":"","height":62});
															thumbnails[8901283] = clik.newPhoto({"id":8901283,"src":"comments_3_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901283.html","width":260,"caption":"","height":48});
															thumbnails[8901287] = clik.newPhoto({"id":8901287,"src":"comments_3_004_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901287.html","width":260,"caption":"","height":81});
															thumbnails[8901292] = clik.newPhoto({"id":8901292,"src":"comments_2_005_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901292.html","width":260,"caption":"","height":41});
															thumbnails[8901293] = clik.newPhoto({"id":8901293,"src":"comments_2_003_thumb.jpg","galleries_id":467958,"server_id":1,"link":"photo_8901293.html","width":260,"caption":"","height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[467958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Comments","link":"section567289.html","maxRecords":0.0,"photoIDs":[8901054.0,8901073.0,8901105.0,8901120.0,8901176.0,8901181.0,8901189.0,8901192.0,8901195.0,8901204.0,8901209.0,8901216.0,8901221.0,8901228.0,8901246.0,8901260.0,8901265.0,8901268.0,8901269.0,8901270.0,8901277.0,8901283.0,8901287.0,8901292.0,8901293.0],"skipIndex":0,"section_code":"section567289","featured_images":"8901293,8901292,8901287,8901283,8901277,8901270,8901269,8901268,8901265,8901260","id":467958,"singleSection":true});				  						galleries[469365] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"section569740.html","maxRecords":0.0,"photoIDs":[8926491.0,8926496.0,8926500.0,8926505.0,8926510.0,8926511.0,8926517.0,8926540.0,8926551.0,8926576.0,8926596.0,8926737.0],"skipIndex":0,"section_code":"section569740","featured_images":"8926737,8926596,8926576,8926551,8926540,8926517,8926511,8926510,8926505,8926500","id":469365,"singleSection":true});				  						galleries[469421] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sculptures","link":"section565953_469421.html","maxRecords":0.0,"photoIDs":[8896827.0,8896830.0,7790462.0,8880244.0,8880328.0,8880348.0,8880394.0],"skipIndex":0,"section_code":"section565953","featured_images":"8896830,8896827,8880394,8880348,8880328,8880244,7790462","id":469421,"singleSection":false});				  						galleries[479479] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jewellery","link":"section584261_479479.html","maxRecords":0.0,"photoIDs":[8891765.0,8896122.0,8896170.0,9088703.0,9088915.0,9088921.0,9088930.0,9088932.0,9088938.0,9088944.0,9088953.0,9088955.0,9088958.0,9088960.0,9088963.0,9088965.0,9088967.0,9088970.0,9088973.0,9088974.0,9088990.0,9088992.0,9088997.0,9088999.0,9089008.0],"skipIndex":0,"section_code":"section584261","featured_images":"9089008,9088999,9088997,9088992,9088990,9088974,9088973,9088970,9088967,9088965","id":479479,"singleSection":false});				  						galleries[467146] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio Caricatures","link":"section565955_467146.html","maxRecords":0.0,"photoIDs":[8881885.0,8881888.0,8881895.0,8881906.0,8883938.0,8892336.0,8892412.0,8892601.0,8892639.0,8892647.0,8892653.0,8892662.0,8897131.0,8897134.0,8897141.0,8897171.0],"skipIndex":0,"section_code":"section565955","featured_images":"8881888,8881885","id":467146,"singleSection":false});				  						galleries[470846] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Badges","link":"section565953_470846.html","maxRecords":0.0,"photoIDs":[8944915.0,8945094.0,8945164.0,8945182.0,8945195.0,8945211.0,8945279.0,8945287.0,8945301.0,8945306.0,8945309.0,8945318.0,8945322.0,8951323.0,8951443.0,8951448.0,8951451.0,8951454.0,8951455.0,8951457.0,8951458.0,8951459.0,8951462.0],"skipIndex":0,"section_code":"section565953","featured_images":"8951462,8951459,8951458,8951457,8951455,8951454,8951451,8951448,8951443,8951323","id":470846,"singleSection":false});				  						galleries[479480] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramics","link":"section584261_479480.html","maxRecords":0.0,"photoIDs":[8889405.0,8896006.0,8896173.0],"skipIndex":0,"section_code":"section584261","featured_images":"8896173,8896006,8889405","id":479480,"singleSection":false});				  						galleries[469380] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Quick Caricatures","link":"section565955_469380.html","maxRecords":0.0,"photoIDs":[8924791.0,8924796.0,8924800.0,8924803.0,8924807.0,8924840.0],"skipIndex":0,"section_code":"section565955","featured_images":"8924840,8924807,8924803,8924800,8924796,8924791","id":469380,"singleSection":false});				  						galleries[469383] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brooches","link":"section565953_469383.html","maxRecords":0.0,"photoIDs":[8920416.0,8920547.0,8955258.0,8944673.0,8920554.0,8920456.0,8920551.0,8948918.0,8948894.0,8948859.0,8949001.0,8948992.0],"skipIndex":0,"section_code":"section565953","featured_images":"8955258,8949001,8948992,8948918,8948894,8948859,8944673,8920554,8920551,8920547","id":469383,"singleSection":false});				  						galleries[479481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"For The Wall","link":"section584261_479481.html","maxRecords":0.0,"photoIDs":[8891724.0,8896050.0,8896058.0,8896145.0,9089015.0,9089020.0,9089024.0],"skipIndex":0,"section_code":"section584261","featured_images":"9089024,9089020,9089015,8896145,8896058,8896050,8891724","id":479481,"singleSection":false});				  						galleries[479482] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Crafts and Gifts","link":"section584261_479482.html","maxRecords":0.0,"photoIDs":[8889427.0,8889433.0,8891759.0,8896078.0,8896155.0,8896158.0],"skipIndex":0,"section_code":"section584261","featured_images":"8896158,8896155,8896078,8891759,8889433,8889427","id":479482,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7790462,8880244,8880348,8880394';
imageSets[2] = '8881888,8881885';
imageSets[3] = '9089024,9089020,9089015,9089008,9088999,9088997,9088992,9088990,9088974,9088973,9088970,9088967,9088965,9088963,9088960,9088958,9088955,9088953,9088944,9088938,9088932,9088930,9088921,9088915,9088703,8955258,8951462,8951459,8951458,8951457,8951455,8951454,8951451,8951448,8951443,8951323,8949806,8949001,8948992,8948918,8948894,8948859,8945322,8945318,8945309,8945306,8945301,8945287,8945279,8945211';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gwendoline/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/gwendoline/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 += 'section584261.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 && 'section584261' != '') {
					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 = ': ' + 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="GWENDOLINE">';
			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;
	}
}

			

