function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[2303319]=new thumbnail(2303319,"","","shopfront_thumb.jpg",130,98,32);thumbnails[2928441]=new thumbnail(2928441,"","","bryn sheep1_thumb.jpg",130,196,32);thumbnails[2928445]=new thumbnail(2928445,"","","red kite1_thumb.jpg",130,201,32);thumbnails[2928449]=new thumbnail(2928449,"","","bluebell woods_thumb.jpg",130,94,32);thumbnails[6079760]=new thumbnail(6079760,"","Wild garlic","wild_garlic_004_thumb.JPG",130,128,32);thumbnails[5935644]=new thumbnail(5935644,"334919","Spiral Candlesticks","Candle-Four_thumb.jpg",130,166,32);thumbnails[5935655]=new thumbnail(5935655,"334919","Candlesticks","Candle-One_thumb.jpg",130,166,32);thumbnails[5935662]=new thumbnail(5935662,"334919","Kebab","kebab_thumb.jpg",130,262,32);thumbnails[5935666]=new thumbnail(5935666,"334919","Ramshead","ram-2_thumb.jpg",130,288,32);thumbnails[2320176]=new thumbnail(2320176,"151528","Annie Wealleans","mum_thumb.jpg",130,160,32);thumbnails[2850004]=new thumbnail(2850004,"151528","Necklace","necklace_thumb.jpg",130,98,32);thumbnails[3222759]=new thumbnail(3222759,"151528","Beads","20 beads5_thumb.jpg",130,127,32);thumbnails[3223175]=new thumbnail(3223175,"151528","Specials","cyfrin_specials_thumb.jpg",130,67,32);thumbnails[3246605]=new thumbnail(3246605,"151800","","Heavy taffeta with chenille flowers_thumb.jpg",130,173,32);thumbnails[3246608]=new thumbnail(3246608,"151800","","Black with flower pattern_thumb.jpg",130,173,32);thumbnails[3246610]=new thumbnail(3246610,"151800","","Brooch2_thumb.jpg",130,98,32);thumbnails[5935522]=new thumbnail(5935522,"151800","Poppy Clutchbag","Hand_felted_poppy_clutch_thumb.jpg",130,93,32);thumbnails[6075264]=new thumbnail(6075264,"341094","","D_pendant_silver_w_gold_overlay_thumb.jpg",130,90,32);thumbnails[6075265]=new thumbnail(6075265,"341094","","domed_oxidised_thumb.jpg",130,98,32);thumbnails[6075266]=new thumbnail(6075266,"341094","","retic_pendant_thumb.JPG",130,98,32);thumbnails[6075267]=new thumbnail(6075267,"341094","","starts_and_spots_cropped_thumb.JPG",130,99,32);thumbnails[3222007]=new thumbnail(3222007,"177574","Aberaeron","Aberaeron Judy Webb_thumb.jpg",130,95,32);thumbnails[3222014]=new thumbnail(3222014,"177574","Mwnt","Mwnt Judy Webb_thumb.jpg",130,196,32);thumbnails[3222018]=new thumbnail(3222018,"177574","Pentre Ifan","Pentre Ifan Judy Webb_thumb.jpg",130,92,32);thumbnails[6084994]=new thumbnail(6084994,"177574","","12_thumb.jpg",130,87,32);thumbnails[2849836]=new thumbnail(2849836,"151798","1","GN1_thumb.jpg",130,173,32);thumbnails[2849837]=new thumbnail(2849837,"151798","2","GN3_thumb.jpg",130,173,32);thumbnails[2849838]=new thumbnail(2849838,"151798","3","Graham_Newing1_thumb.jpg",130,123,32);thumbnails[3222092]=new thumbnail(3222092,"151798","","pots1_thumb.jpg",130,87,32);thumbnails[2928426]=new thumbnail(2928426,"177576","","Image 1_thumb.jpg",130,184,32);thumbnails[2928427]=new thumbnail(2928427,"177576","","Image 2_thumb.jpg",130,184,32);thumbnails[2928429]=new thumbnail(2928429,"177576","","Image 3_thumb.jpg",130,181,32);thumbnails[2849752]=new thumbnail(2849752,"177415","","bags_thumb.jpg",130,98,32);thumbnails[2849754]=new thumbnail(2849754,"177415","","cushions_thumb.jpg",130,86,32);thumbnails[2583144]=new thumbnail(2583144,"164518","Flower Garden","flower circle w_thumb.jpg",130,195,32);thumbnails[2583147]=new thumbnail(2583147,"164518","Garden Scene","garden scene w_thumb.jpg",130,88,32);thumbnails[2583148]=new thumbnail(2583148,"164518","Island","island w_thumb.jpg",130,88,32);thumbnails[2928405]=new thumbnail(2928405,"177588","","bobbincase_thumb.jpg",130,73,32);thumbnails[2928406]=new thumbnail(2928406,"177588","","Miniaturegoblet_thumb.jpg",130,257,32);thumbnails[2928407]=new thumbnail(2928407,"177588","","TABLE8_thumb.jpg",130,209,32);thumbnails[3222019]=new thumbnail(3222019,"196841","","Roanne Joyson 1_thumb.jpg",130,130,32);thumbnails[3222020]=new thumbnail(3222020,"196841","","Rosanne Joyson 2_thumb.jpg",130,127,32);thumbnails[3222022]=new thumbnail(3222022,"196841","","Rosanne Joyson 3_thumb.jpg",130,130,32);thumbnails[3222024]=new thumbnail(3222024,"196842","","Shirley Norman 1_thumb.jpg",130,272,32);thumbnails[3222025]=new thumbnail(3222025,"196842","","Shirley Norman 2_thumb.jpg",130,274,32);thumbnails[3222026]=new thumbnail(3222026,"196842","","Shirley Norman 3_thumb.jpg",130,277,32);thumbnails[2850148]=new thumbnail(2850148,"151547","Pashminas","pashmina-water-intro_thumb.jpg",130,213,32);thumbnails[2928398]=new thumbnail(2928398,"151547","","06_thumb.JPG",130,87,32);thumbnails[2928400]=new thumbnail(2928400,"151547","","P1000806_thumb.JPG",130,97,32);thumbnails[2928401]=new thumbnail(2928401,"151547","","P1000911_thumb.JPG",130,97,32);thumbnails[3222080]=new thumbnail(3222080,"151794","","untitled 31_thumb.jpg",130,98,32);thumbnails[3222081]=new thumbnail(3222081,"151794","","untitled 2_thumb.jpg",130,98,32);thumbnails[3222082]=new thumbnail(3222082,"151794","","untitled_thumb.jpg",130,98,32);thumbnails[3554148]=new thumbnail(3554148,"177578","Milking Time","Milking_Time_thumb.jpg",130,65,32);thumbnails[3554149]=new thumbnail(3554149,"177578","'Virginia Richards’","Rhodo_Virginia_Richards_jpg_thumb.jpg",130,189,32);thumbnails[3554151]=new thumbnail(3554151,"177578","Wishmaster","Wishmaster_thumb.jpg",130,87,32);thumbnails[5935568]=new thumbnail(5935568,"151794","","IMGP0795_thumb.JPG",130,195,32);thumbnails[2849764]=new thumbnail(2849764,"177416","Stones","2008_0425pixnew0138_thumb.jpg",130,131,32);thumbnails[6075847]=new thumbnail(6075847,"177416","","celtic_moodscape_1_thumb.jpg",130,94,32);thumbnails[6075848]=new thumbnail(6075848,"177416","","llangranog_-crashing_sea_thumb.jpg",130,93,32);thumbnails[6075849]=new thumbnail(6075849,"177416","","mountain_top_mists_thumb.jpg",130,128,32);thumbnails[2849134]=new thumbnail(2849134,"151524","Carew Castle","CarewCastle_thumb.jpg",130,86,32);thumbnails[2849142]=new thumbnail(2849142,"151524","Cothi Bridge","Cothibridge_thumb.jpg",130,94,32);thumbnails[6084988]=new thumbnail(6084988,"151524","","dunbrody_thumb.jpg",130,105,32);thumbnails[2320406]=new thumbnail(2320406,"151524","","markcox_thumb.jpg",130,92,32);thumbnails[5935519]=new thumbnail(5935519,"151535","Tresaith","tresaith-3-ships-100kb_thumb.jpg",130,130,32);thumbnails[6068681]=new thumbnail(6068681,"151535","Porth Dinllaen","portth-dinllaenjpgw560h2091_thumb.jpg",130,49,32);thumbnails[6068830]=new thumbnail(6068830,"151535","Mid-Summer Regatta","Mid-summer-regatta1_thumb.jpg",130,49,32);thumbnails[2320294]=new thumbnail(2320294,"151535","","helenelliot_thumb.jpg",130,144,32);thumbnails[3498859]=new thumbnail(3498859,"151550","","DSC_4537 ws_thumb.jpg",130,86,32);thumbnails[3498862]=new thumbnail(3498862,"151550","","DSC_4546ws_thumb.jpg",130,86,32);thumbnails[3498863]=new thumbnail(3498863,"151550","","DSC_4549_003ws_thumb.jpg",130,86,32);thumbnails[6067840]=new thumbnail(6067840,"340743","","Border_Collie_002_thumb.jpg",130,128,32);thumbnails[6067841]=new thumbnail(6067841,"340743","","HerefordBull_thumb.jpg",130,95,32);thumbnails[6121009]=new thumbnail(6121009,"343057","","DSC00004_thumb.JPG",130,98,32);thumbnails[6121011]=new thumbnail(6121011,"343057","","DSC00009_thumb.JPG",130,98,32);thumbnails[6121015]=new thumbnail(6121015,"343057","","DSC00013_thumb.JPG",130,173,32);thumbnails[6121022]=new thumbnail(6121022,"343057","","DSC00014_thumb.JPG",130,173,32);thumbnails[3498756]=new thumbnail(3498756,"151531","","Dinefwr_thumb.jpg",130,53,32);thumbnails[3498758]=new thumbnail(3498758,"151531","","Kidwelly-Castle_thumb.jpg",130,55,32);thumbnails[3498761]=new thumbnail(3498761,"151531","","Winter-Morning,-Henllan_thumb.jpg",130,48,32);thumbnails[3498766]=new thumbnail(3498766,"151531","","Merlins-Hill_thumb.jpg",130,59,32);thumbnails[3222008]=new thumbnail(3222008,"151539","Blue Mecanopsis","Blue Meconopsis Ann Morgan_thumb.jpg",130,180,32);thumbnails[3222012]=new thumbnail(3222012,"151539","Lili-Wen-Fach","Lili-Wen-Fach Ann Morgan_thumb.jpg",130,177,32);thumbnails[3222017]=new thumbnail(3222017,"151539","Nott Square","Nott Square Ann Morgan_thumb.jpg",130,93,32);thumbnails[3532226]=new thumbnail(3532226,"177579","Cows","8_July_06_Dorothy_Morris_thumb.jpeg",130,42,32);thumbnails[3532229]=new thumbnail(3532229,"177579","Saint Ishmael's Church","Saint_Ishmaels_Church_thumb.jpeg",130,87,32);thumbnails[6079762]=new thumbnail(6079762,"177579","Boats","boats_014_thumb.JPG",130,63,32);thumbnails[6079765]=new thumbnail(6079765,"177579","Tenby","7_Dorothy_Morris_Tenby_Museum_April_08_thumb.jpg",130,131,32);thumbnails[4337103]=new thumbnail(4337103,"151552","","View_1_thumb.jpg",130,130,32);thumbnails[6077151]=new thumbnail(6077151,"151552","After the Rain","After-the-Rain-web-pic_thumb.jpg",130,189,32);thumbnails[6077153]=new thumbnail(6077153,"151552","Hafod Church","Hafod-Church-web-pic_thumb.jpg",130,202,32);thumbnails[6077161]=new thumbnail(6077161,"151552","Night Forest","Night-Forest-web-pic_thumb.jpg",130,170,32);thumbnails[2928424]=new thumbnail(2928424,"151540","Lizard","lizard_thumb.jpg",130,130,32);thumbnails[2928458]=new thumbnail(2928458,"177570","Sunflower Brooch","zoesunpic_thumb.jpg",130,172,32);thumbnails[3810550]=new thumbnail(3810550,"177570","Unicorn","Unicorn_edited-1_thumb.jpg",130,98,32);thumbnails[3810552]=new thumbnail(3810552,"177570","Rose Bud Brooch","Rose_edited-1_thumb.jpg",130,98,32);thumbnails[3810554]=new thumbnail(3810554,"177570","Nice Pussy Cat","Pussy_cat_edited-1_thumb.jpg",130,173,32);thumbnails[5832645]=new thumbnail(5832645,"151540","Copper & Shell","coppershellweb_thumb.jpg",130,140,32);thumbnails[5832648]=new thumbnail(5832648,"151540","Celtic Swirls","Celtic_swirls_in_ring_pendant_web_thumb.jpg",130,130,32);thumbnails[5832651]=new thumbnail(5832651,"151540","Dendritic Pendant","dendritic_pendantweb_thumb.jpg",130,130,32);thumbnails[6069189]=new thumbnail(6069189,"340766","","wpj1_thumb.jpg",130,130,32);thumbnails[6069193]=new thumbnail(6069193,"340766","","wpj21_thumb.jpg",130,90,32);thumbnails[6069195]=new thumbnail(6069195,"340766","","wpj3_thumb.jpg",130,91,32);thumbnails[6069197]=new thumbnail(6069197,"340766","","wpj4_thumb.jpg",130,132,32);thumbnails[3222049]=new thumbnail(3222049,"177569","","DSCF2492_thumb.JPG",130,130,32);thumbnails[3222050]=new thumbnail(3222050,"177569","","DSCF2482_thumb.JPG",130,98,32);thumbnails[3532232]=new thumbnail(3532232,"151546","","DSCF0349_thumb.jpg",130,129,32);thumbnails[3532235]=new thumbnail(3532235,"151546","","DSCF0350_thumb.jpg",130,128,32);thumbnails[5935538]=new thumbnail(5935538,"177569","","DSCF7380_thumb.JPG",130,216,32);thumbnails[5935541]=new thumbnail(5935541,"177569","","DSCF7359_thumb.JPG",130,213,32);thumbnails[6079768]=new thumbnail(6079768,"151546","","DSCF1564_thumb.jpg",130,130,32);thumbnails[6079769]=new thumbnail(6079769,"151546","","DSCF1566_thumb.jpg",130,131,32);thumbnails[2390589]=new thumbnail(2390589,"150700","Towy Valley Sunrise","7401_thumb.jpg",130,53,32);thumbnails[3810571]=new thumbnail(3810571,"150700","Girl Claire's Wheelhouse","Wheelhouse_thumb.jpg",130,184,32);thumbnails[3810604]=new thumbnail(3810604,"150700","Autumn at Gelli Aur","CRW_5023_thumb.jpg",130,184,32);thumbnails[3810581]=new thumbnail(3810581,"150700","Pembrey Sunset","FS02_thumb.jpg",130,50,32);thumbnails[2582613]=new thumbnail(2582613,"151791","Apostles","Apostlesw_thumb.jpg",130,82,32);thumbnails[2582626]=new thumbnail(2582626,"151791","Driftwood","Driftwoodw_thumb.jpg",130,192,32);thumbnails[2582627]=new thumbnail(2582627,"151791","Laugharne Castle","Long Forgottenw_thumb.jpg",130,72,32);thumbnails[3498691]=new thumbnail(3498691,"207927","","Pari 136_thumb.jpg",130,120,32);thumbnails[3498692]=new thumbnail(3498692,"207927","","Pari 237_thumb.jpg",130,152,32);thumbnails[3498693]=new thumbnail(3498693,"207927","","Pari 252_thumb.jpg",130,112,32);thumbnails[6077827]=new thumbnail(6077827,"207927","","Pari_website_pics_126_thumb.jpg",130,130,32);thumbnails[6067157]=new thumbnail(6067157,"151792","","P1010067_thumb.jpg",130,195,32);thumbnails[6067160]=new thumbnail(6067160,"151792","","P1010722_thumb.jpg",130,195,32);thumbnails[6067163]=new thumbnail(6067163,"151792","","P1010818_thumb.jpg",130,195,32);thumbnails[6067165]=new thumbnail(6067165,"151792","","P1010495_thumb.jpg",130,87,32);thumbnails[2303495]=new thumbnail(2303495,"150702","","bowl_thumb.jpg",130,130,32);thumbnails[3675267]=new thumbnail(3675267,"151795","Spring Time","springtime_thumb.jpg",130,159,32);thumbnails[3675269]=new thumbnail(3675269,"177566","Homeward Bound","homeward_bound_thumb.jpg",130,98,32);thumbnails[3675270]=new thumbnail(3675270,"177566","Ivy Leaves","ivyleaves_thumb.jpg",130,98,32);thumbnails[3675307]=new thumbnail(3675307,"177566","Seahorses Greeting","seahorse_greeting_thumb.jpg",130,98,32);thumbnails[6075828]=new thumbnail(6075828,"151795","Copper-rose Moon Pendant","home01_l_thumb.jpg",130,127,32);thumbnails[6075829]=new thumbnail(6075829,"151795","Peacock Dream Eclipse Pendant","pen4_thumb.jpg",130,135,32);thumbnails[6075839]=new thumbnail(6075839,"177566","Summer Days","summer_days_thumb.jpg",130,121,32);thumbnails[6075846]=new thumbnail(6075846,"151795","Hint of Pink","pen27l_thumb.jpg",130,101,32);thumbnails[6238907]=new thumbnail(6238907,"151542","","Polly_and_mum_023w_thumb.jpg",130,98,32);thumbnails[6238909]=new thumbnail(6238909,"151542","","Polly_and_mum_024w_thumb.jpg",130,173,32);thumbnails[6238912]=new thumbnail(6238912,"151542","","Polly_and_mum_025w_thumb.jpg",130,98,32);thumbnails[6238921]=new thumbnail(6238921,"151542","","Polly_and_mum_029w_thumb.jpg",130,98,32);thumbnails[4895179]=new thumbnail(4895179,"151548","","Spoon_1_thumb.jpg",130,195,32);thumbnails[4895192]=new thumbnail(4895192,"151548","","spoon_2_thumb.jpg",130,195,32);thumbnails[4895194]=new thumbnail(4895194,"151548","","Spoon_3_thumb.jpg",130,195,32);thumbnails[5935510]=new thumbnail(5935510,"151551","Jewellery Stand<br>\r\n","Jewellery_stand_a_box_003_thumb.jpg",130,173,32);thumbnails[5953207]=new thumbnail(5953207,"151551","","DSC05180_thumb.JPG",130,173,32);thumbnails[5953212]=new thumbnail(5953212,"151551","","Gwaith_Coed_004_thumb.jpg",130,98,32);thumbnails[5953216]=new thumbnail(5953216,"151551","","Gwaith_Coed_008_thumb.jpg",130,98,32);thumbnails[2390876]=new thumbnail(2390876,"151544","Cat Clock","clock_thumb.jpg",130,195,32);thumbnails[3221981]=new thumbnail(3221981,"151544","Chameleon Clock","chameleon_thumb.jpg",130,173,32);thumbnails[3221983]=new thumbnail(3221983,"151544","Fishcage","fishcage_thumb.jpg",130,104,32);thumbnails[5935551]=new thumbnail(5935551,"177567","Ladies that Lunch","Dsc02203_thumb.jpg",130,180,32);thumbnails[6075877]=new thumbnail(6075877,"177567","","Dsc01637_thumb.jpg",130,128,32);thumbnails[6075878]=new thumbnail(6075878,"177567","","Dsc01626_thumb.jpg",130,135,32);thumbnails[6075910]=new thumbnail(6075910,"177567","","Dsc02130_thumb.jpg",130,91,32);var galleries=new Object();galleries[346141]=new gallery(346141,"","Featured Maker ","section220808",[]);galleries[334919]=new gallery(334919,"5935666,5935662,5935655,5935644","Aaron Peterson - Ferric Fusion","gallery",[5935644,5935655,5935662,5935666]);galleries[150692]=new gallery(150692,"6084994,3222026,3222025,3222024,3222022,3222020,3222019,3222018,3222014,3222007,2928429,2928427,2928426,2583148,2583147","Card Makers","gallery",[]);galleries[150689]=new gallery(150689,"6238921,6238912,6238909,6238907,3222092","Ceramics","gallery",[]);galleries[150690]=new gallery(150690,"6084988,6079765,6079762,6077161,6077153,6077151,6075849,6075848,6075847,6069197,6069195,6069193,6069189,6068830,6068681,6067841,6067840,5935519,4337103,3554151,3554148,3532226,3498863,3498862,3498859,3498766,3498761,3498758,3498756,3222017,3222012,3222008,2320406,2320294","Fine Art","gallery",[]);galleries[177565]=new gallery(177565,"6075839,3675307,3675270,3675269","Glass","gallery",[]);galleries[151528]=new gallery(151528,"3223175,2320176","Black Dragon - Annie Wealleans","gallery",[2320176,2850004,3222759,3223175]);galleries[151526]=new gallery(151526,"6077827,6075846,6075829,6075828,6075267,6075266,6075265,6075264,5935568,5935541,5935538,5832651,5832648,5832645,3675267,3498693,3498692,3498691,3223175,3222082,3222081,3222080,3222050,3222049,2928424,2320176","Jewellery","gallery",[]);galleries[177564]=new gallery(177564,"6075910,6075878,6075877,5935551","Paper","gallery",[]);galleries[150679]=new gallery(150679,"3810604,3810581,3810571,2582627,2582613,2390589","Photography","gallery",[]);galleries[151545]=new gallery(151545,"5935666,5935662,5935655,5935644,3221983,3221981","Sculpture & Metalwork","gallery",[]);galleries[150691]=new gallery(150691,"6121022,6121015,6121011,6121009,6079769,6079768,6067165,6067163,6067160,6067157,5935522,3810554,3810552,3810550,3532235,3532232,3246610,3246608,3246605,2928458","Textiles","gallery",[]);galleries[341094]=new gallery(341094,"6075267,6075266,6075265,6075264","Annie Coombs","gallery",[6075264,6075265,6075266,6075267]);galleries[151800]=new gallery(151800,"5935522,3246610,3246608,3246605","Dawn Beer - Razzy Bags","gallery",[3246605,3246608,3246610,5935522]);galleries[150693]=new gallery(150693,"5953216,5953212,5953207,5935510,2928407,2928406,2928405,2303495","Wood Turning & Love Spoons","gallery",[]);galleries[177574]=new gallery(177574,"6084994,3222018,3222014,3222007","Judy Webb","gallery",[3222007,3222014,3222018,6084994]);galleries[151798]=new gallery(151798,"3222092","Graham Newing - Pembrey Pottery","gallery",[2849836,2849837,2849838,3222092]);galleries[177576]=new gallery(177576,"2928429,2928427,2928426","Jacky Pique - Aeron House","gallery",[2928426,2928427,2928429]);galleries[177415]=new gallery(177415,"2849754,2849752","Tracy-Louise Bartlett - Ivy Moon Designs","gallery",[2849752,2849754]);galleries[164518]=new gallery(164518,"2583148,2583147","Lesley Jones","gallery",[2583144,2583147,2583148]);galleries[177588]=new gallery(177588,"2928407,2928406,2928405","Martin Brockington - Dan y Coed Woodturning","gallery",[2928405,2928406,2928407]);galleries[196841]=new gallery(196841,"3222022,3222020,3222019","Rosanne Joyson","gallery",[3222019,3222020,3222022]);galleries[196842]=new gallery(196842,"3222026,3222025,3222024","Shirley Norman","gallery",[3222024,3222025,3222026]);galleries[151794]=new gallery(151794,"5935568,3222082,3222081,3222080","Mandy Hollinger - Wireworks","gallery",[3222080,3222081,3222082,5935568]);galleries[177578]=new gallery(177578,"3554151,3554148","Stephen & Sarah Adams - Red Fox Editions ","gallery",[3554148,3554149,3554151]);galleries[151547]=new gallery(151547,"2928401,2928400,2928398,2850148","Sue Davies","gallery",[2850148,2928398,2928400,2928401]);galleries[177416]=new gallery(177416,"6075849,6075848,6075847","Tracy-Louise Bartlett -","gallery",[2849764,6075847,6075848,6075849]);galleries[151524]=new gallery(151524,"6084988,2320406","Mark Cox","gallery",[2849134,2849142,6084988,2320406]);galleries[151535]=new gallery(151535,"6068830,6068681,5935519,2320294","Helen Elliot","gallery",[5935519,6068681,6068830,2320294]);galleries[151550]=new gallery(151550,"3498863,3498862,3498859","Hywel Gravell","gallery",[3498859,3498862,3498863]);galleries[340743]=new gallery(340743,"6067841,6067840","Gil Gregory","gallery",[6067840,6067841]);galleries[343057]=new gallery(343057,"6121022,6121015,6121011,6121009","Joanna Kingston - Esgair Fibres","gallery",[6121009,6121011,6121015,6121022]);galleries[151531]=new gallery(151531,"3498766,3498761,3498758,3498756","Diane Mathias","gallery",[3498756,3498758,3498761,3498766]);galleries[151539]=new gallery(151539,"3222017,3222012,3222008","Ann Morgan","gallery",[3222008,3222012,3222017]);galleries[177579]=new gallery(177579,"6079765,6079762,3532226","Dorothy Morris -  Artist","gallery",[3532226,3532229,6079762,6079765]);galleries[151552]=new gallery(151552,"6077161,6077153,6077151,4337103","Jenny Mynett","gallery",[4337103,6077151,6077153,6077161]);galleries[177570]=new gallery(177570,"3810554,3810552,3810550,2928458","Live Lightly","gallery",[2928458,3810550,3810552,3810554]);galleries[151540]=new gallery(151540,"5832651,5832648,5832645,2928424","Phillip Jones , Helen Edwards - Be-gemmed","gallery",[2928424,5832645,5832648,5832651]);galleries[340766]=new gallery(340766,"6069197,6069195,6069193,6069189","Wendy Powell-Jones","gallery",[6069189,6069193,6069195,6069197]);galleries[151546]=new gallery(151546,"6079769,6079768,3532235,3532232","Dorothy Morris","gallery",[3532232,3532235,6079768,6079769]);galleries[177569]=new gallery(177569,"5935541,5935538,3222050,3222049","Jude Riley - Jeweller","gallery",[3222049,3222050,5935538,5935541]);galleries[150700]=new gallery(150700,"3810604,3810581,3810571,2390589","Ric Foot - Greenfeet Photographic","gallery",[2390589,3810571,3810604,3810581]);galleries[151791]=new gallery(151791,"2582627,2582613","Kersten Howard","gallery",[2582613,2582626,2582627]);galleries[207927]=new gallery(207927,"6077827,3498693,3498692,3498691","Kris Ruzecki - Pari Jewellery","gallery",[3498691,3498692,3498693,6077827]);galleries[151792]=new gallery(151792,"6067165,6067163,6067160,6067157","Deryn Wilcox - Lacewing Fairies","gallery",[6067157,6067160,6067163,6067165]);galleries[150702]=new gallery(150702,"2303495","John Nunnerley - Chest & Drawers","gallery",[2303495]);galleries[177566]=new gallery(177566,"6075839,3675307,3675270,3675269","Moira White - Moriath Glass","gallery",[3675269,3675270,3675307,6075839]);galleries[151795]=new gallery(151795,"6075846,6075829,6075828,3675267","Moira White - Moriath Glass Jewellery","gallery",[3675267,6075828,6075829,6075846]);galleries[151542]=new gallery(151542,"6238921,6238912,6238909,6238907","Carol Brinton Thomas","gallery",[6238907,6238909,6238912,6238921]);galleries[151548]=new gallery(151548,"4895194,4895192,4895179","Ken Jones - Crefftau Ken","gallery",[4895179,4895192,4895194]);galleries[151549]=new gallery(151549,"","Duncan Browning","gallery",[]);galleries[151551]=new gallery(151551,"5953216,5953212,5953207,5935510","Ieuan Roberts","gallery",[5935510,5953207,5953212,5953216]);galleries[151544]=new gallery(151544,"3221983,3221981","Juanita Humphris","gallery",[2390876,3221981,3221983]);galleries[177582]=new gallery(177582,"","Rod Evans","gallery",[]);galleries[177587]=new gallery(177587,"","New Artists Cards","gallery",[]);galleries[177567]=new gallery(177567,"6075910,6075878,6075877,5935551","Nia Hobbs - Second Time","gallery",[5935551,6075877,6075878,6075910]);galleries[177572]=new gallery(177572,"","Trudi Finch","gallery",[]);var imageSets=new Object();imageSets[1]="2303319";imageSets[2]="6238921,6238912,6238909,6238907,6121022,6121015,6121011,6121009,6084994,6084988,6079769,6079768,6079765,6079762,6079760,6077827,6077161,6077153,6077151,6075910,6075878,6075877,6075849,6075848,6075847,6075846,6075839,6075829,6075828,6075267,6075266,6075265,6075264,6069197,6069195,6069193,6069189,6068830,6068681,6067841,6067840,6067165,6067163,6067160,6067157,5953216,5953212,5953207,5935666,5935662,5935655,5935644,5935568,5935551,5935541,5935538,5935522,5935519,5935510,5832651,5832648,5832645,4337103,3810604,3810581,3810571,3810554,3810552,3810550,3675307,3675270,3675269,3675267,3554151,3554148,3532235,3532232,3532226,3498863,3498862,3498859,3498766,3498761,3498758,3498756,3498693,3498692,3498691,3246610,3246608,3246605,3223175,3222092,3222082,3222081,3222080,3222050,3222049,3222026,3222025,3222024,3222022,3222020,3222019,3222018,3222017,3222014,3222012,3222008,3222007,3221983,3221981,2928458,2928449,2928445,2928441,2928429,2928427,2928426,2928424,2928407,2928406,2928405,2583148,2583147,2582627,2582613,2390589,2320406,2320294,2320176,2303495";imageSets[3]="6238921,6238912,6238909,6238907,6121022,6121015,6121011,6121009,6084994,6084988,6079769,6079768,6079765,6079762,6079760,6077827,6077161,6077153,6077151,6075910,6075878,6075877,6075849,6075848,6075847,6075846,6075839,6075829,6075828,6075267,6075266,6075265,6075264,6069197,6069195,6069193,6069189,6068830,6068681,6067841,6067840,6067165,6067163,6067160,6067157,5953216,5953212,5953207,5935666,5935662";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/origin/images";break}switch(a){case 1:b="http://www1.clikpic.com/origin/images";break}switch(a){case 2:b="http://admin.clikpic.com/origin/images";break}switch(a){case 24:b="http://tpc15/clikpic/origin/images";break}switch(a){case 4:b="http://www.clikchurch.com/origin/images";break}switch(a){case 5:b="http://www2.clikpic.com/origin/images";break}switch(a){case 22:b="http://tpc5/clikpic/origin/images";break}switch(a){case 23:b="http://tpc10/clikpic/origin/images";break}switch(a){case 25:b="http://tpc16/clikpic/origin/images";break}switch(a){case 15:b="http://www3.clikpic.com/origin/images";break}switch(a){case 18:b="http://www4.clikpic.com/origin/images";break}switch(a){case 19:b="http://www5.clikpic.com/origin/images";break}switch(a){case 31:b="http://www7.clikpic.com/origin/images";break}switch(a){case 32:b="http://admin2.clikpic.com/origin/images";break}switch(a){case 33:b="http://www8.clikpic.com/origin/images";break}switch(a){case 34:b="http://www9.clikpic.com/origin/images";break}switch(a){case 35:b="http://admin3.clikpic.com/origin/images";break}switch(a){case 37:b="http://admin4.clikpic.com/origin/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Origin Dyfed: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};