window.thumbnails = {};
															thumbnails[2240895] = clik.newPhoto({"id":2240895,"src":"Wendy_Couling_-_Passage_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Passage - Mixed Media","height":107});
															thumbnails[3275016] = clik.newPhoto({"id":3275016,"src":"Existence_-_Wendy_Couling_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Existence - Wendy Couling (Ink, Acrylic, on Paper)","height":173});
															thumbnails[3631513] = clik.newPhoto({"id":3631513,"src":"Forgotten_Places_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Forgotten Places - Mixed Media","height":179});
															thumbnails[2242346] = clik.newPhoto({"id":2242346,"src":"Memory Foundations 61cm x 61cm_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242346.html","width":130,"caption":"Memory Foundations 61cm x 61cm","height":132});
															thumbnails[2242347] = clik.newPhoto({"id":2242347,"src":"The Guardian- 61cm x 61cm_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242347.html","width":130,"caption":"The Guardian- 61cm x 61cm","height":131});
															thumbnails[2242348] = clik.newPhoto({"id":2242348,"src":"THE WITNESS - WENDY COULING 30cm x 30cm_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242348.html","width":130,"caption":"THE WITNESS - 30cm x 30cm","height":173});
															thumbnails[2242354] = clik.newPhoto({"id":2242354,"src":"Untitled I_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242354.html","width":130,"caption":"Untitled I- Mixed Media  SOLD","height":85});
															thumbnails[2242355] = clik.newPhoto({"id":2242355,"src":"untitled II_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242355.html","width":130,"caption":"untitled II SOLD","height":90});
															thumbnails[2242359] = clik.newPhoto({"id":2242359,"src":"Untitled III_thumb.jpg","galleries_id":147529,"server_id":32,"link":"photo_2242359.html","width":130,"caption":"Untitled III- Mixed Media NFS","height":96});
															thumbnails[2242717] = clik.newPhoto({"id":2242717,"src":"CHAMBER- 100cm x100cm_thumb.jpg","galleries_id":147545,"server_id":32,"link":"photo_2242717.html","width":130,"caption":"Chamber- 100cm x 100cm, Mixed Media","height":133});
															thumbnails[2242721] = clik.newPhoto({"id":2242721,"src":"STILL ECHOES 100cm x100cm_thumb.jpg","galleries_id":147545,"server_id":32,"link":"photo_2242721.html","width":130,"caption":"Still Echoes 100cm x100cm, Mixed Media","height":131});
															thumbnails[2242723] = clik.newPhoto({"id":2242723,"src":"The Cradle 100cm x 100cm_thumb.jpg","galleries_id":147545,"server_id":32,"link":"photo_2242723.html","width":130,"caption":"The Cradle 100cm x 100cm, Mixed Media","height":129});
															thumbnails[2242728] = clik.newPhoto({"id":2242728,"src":"Fallen- 30cm x 30cm_thumb.jpg","galleries_id":147546,"server_id":32,"link":"photo_2242728.html","width":130,"caption":"Fallen- 30cm x 30cm, Mixed Media","height":128});
															thumbnails[2242730] = clik.newPhoto({"id":2242730,"src":"Foundation 30cm x30cm_thumb.jpg","galleries_id":147546,"server_id":32,"link":"photo_2242730.html","width":130,"caption":"Foundation 30cm x30cm, Mixed Media","height":130});
															thumbnails[2242734] = clik.newPhoto({"id":2242734,"src":"No Escape- 30cm x 30cm_thumb.jpg","galleries_id":147546,"server_id":32,"link":"photo_2242734.html","width":130,"caption":"No Escape- 30cm x 30cm, Mixed Media<br>\r\n","height":131});
															thumbnails[2242735] = clik.newPhoto({"id":2242735,"src":"Untitled I - 30cm x 30cm_thumb.jpg","galleries_id":147546,"server_id":32,"link":"photo_2242735.html","width":130,"caption":"Window - 30cm x 30cm, Mixed Media NFS","height":127});
															thumbnails[2242739] = clik.newPhoto({"id":2242739,"src":"Untitled V - 30cm x 30cm_thumb.jpg","galleries_id":147546,"server_id":32,"link":"photo_2242739.html","width":130,"caption":"Untitled V - 30cm x 30cm, Mixed Media","height":138});
															thumbnails[2242746] = clik.newPhoto({"id":2242746,"src":"Image 1_thumb.jpg","galleries_id":147547,"server_id":32,"link":"photo_2242746.html","width":130,"caption":"","height":164});
															thumbnails[2242747] = clik.newPhoto({"id":2242747,"src":"Image 2_thumb.jpg","galleries_id":147547,"server_id":32,"link":"photo_2242747.html","width":130,"caption":"","height":173});
															thumbnails[2242750] = clik.newPhoto({"id":2242750,"src":"Image 5_thumb.jpg","galleries_id":147547,"server_id":32,"link":"photo_2242750.html","width":130,"caption":"","height":200});
															thumbnails[2242752] = clik.newPhoto({"id":2242752,"src":"Image 7_thumb.jpg","galleries_id":147547,"server_id":32,"link":"photo_2242752.html","width":130,"caption":"","height":186});
															thumbnails[2242753] = clik.newPhoto({"id":2242753,"src":"Image 8_thumb.jpg","galleries_id":147547,"server_id":32,"link":"photo_2242753.html","width":130,"caption":"","height":202});
															thumbnails[3275085] = clik.newPhoto({"id":3275085,"src":"Untitled I1_thumb.jpg","galleries_id":199699,"server_id":32,"link":"photo_3275085.html","width":130,"caption":"Untitled I- Mixed Media","height":173});
															thumbnails[3275108] = clik.newPhoto({"id":3275108,"src":"Nowhere_thumb.jpg","galleries_id":199699,"server_id":32,"link":"photo_3275108.html","width":130,"caption":"Nowhere - Mixed Media","height":157});
															thumbnails[3366021] = clik.newPhoto({"id":3366021,"src":"workshops image 1_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366021.html","width":130,"caption":"3 D Portrait Sculpture Workshop","height":148});
															thumbnails[3366027] = clik.newPhoto({"id":3366027,"src":"3D portait mad_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366027.html","width":130,"caption":"3 D Portrait Sculpture Workshop","height":179});
															thumbnails[3366029] = clik.newPhoto({"id":3366029,"src":"3D portait 2_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366029.html","width":130,"caption":"3 D Portrait Sculpture Workshop","height":86});
															thumbnails[3366036] = clik.newPhoto({"id":3366036,"src":"kad3_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366036.html","width":130,"caption":"KANDINSKY ABSTRACT PAINTING WORKSHOPS","height":98});
															thumbnails[3366040] = clik.newPhoto({"id":3366040,"src":"kad 1_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366040.html","width":130,"caption":"KANDINSKY ABSTRACT PAINTING WORKSHOPS","height":93});
															thumbnails[3366043] = clik.newPhoto({"id":3366043,"src":"kad2_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366043.html","width":130,"caption":"KANDINSKY ABSTRACT PAINTING WORKSHOPS","height":98});
															thumbnails[3366060] = clik.newPhoto({"id":3366060,"src":"ALevel 007_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366060.html","width":130,"caption":"SKETCHBOOK WORKSHOP- Based on Mixed Media & Drawing ","height":190});
															thumbnails[3366063] = clik.newPhoto({"id":3366063,"src":"sketchbook 3_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366063.html","width":130,"caption":"SKETCHBOOK WORKSHOP- Based on Mixed Media & Drawing ","height":177});
															thumbnails[3366065] = clik.newPhoto({"id":3366065,"src":"A level sketchbook 12_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366065.html","width":130,"caption":"SKETCHBOOK WORKSHOP- Based on Mixed Media & Drawing ","height":88});
															thumbnails[3366077] = clik.newPhoto({"id":3366077,"src":"window image 54_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366077.html","width":130,"caption":"LLANDUDNO MUSEUM WINDOW PROJECT- Several Workshops, Masterclass, Precious Things Project","height":156});
															thumbnails[3366087] = clik.newPhoto({"id":3366087,"src":"win 1_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366087.html","width":130,"caption":"Window Project - Precious Things Project","height":100});
															thumbnails[3366091] = clik.newPhoto({"id":3366091,"src":"window project image_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366091.html","width":130,"caption":"Window Project - Precious Things Project","height":87});
															thumbnails[3366098] = clik.newPhoto({"id":3366098,"src":"window project mine_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366098.html","width":130,"caption":"Window Project - Precious Things Project","height":97});
															thumbnails[3366109] = clik.newPhoto({"id":3366109,"src":"Master_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366109.html","width":130,"caption":"Wendy Couling Masterclass Images- Develop new techniques with Mixed Media","height":173});
															thumbnails[3366112] = clik.newPhoto({"id":3366112,"src":"wendy couling masterclas 33_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366112.html","width":130,"caption":"Wendy Couling Masterclass ","height":101});
															thumbnails[3366122] = clik.newPhoto({"id":3366122,"src":"wendy couling masterclass museum_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366122.html","width":130,"caption":"Wendy Couling Masterclass ","height":127});
															thumbnails[3366129] = clik.newPhoto({"id":3366129,"src":"wendy coulingbug image_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366129.html","width":130,"caption":"BUG WORKSHOP- Made by Local Brownies","height":83});
															thumbnails[3366140] = clik.newPhoto({"id":3366140,"src":"bug 4 web_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366140.html","width":130,"caption":"BUGS DISPLAYED IN lLANDUDNO MUSEUM WINDOW (on display now)","height":173});
															thumbnails[3366145] = clik.newPhoto({"id":3366145,"src":"bug 23 window_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366145.html","width":130,"caption":"BUGS DISPLAYED IN lLANDUDNO MUSEUM WINDOW (on display now)","height":165});
															thumbnails[3366149] = clik.newPhoto({"id":3366149,"src":"woodland image 2_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366149.html","width":130,"caption":"3D WOODLAND MASK WORKSHOP","height":123});
															thumbnails[3366151] = clik.newPhoto({"id":3366151,"src":"woodland image_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366151.html","width":130,"caption":"3D WOODLAND MASK WORKSHOP","height":133});
															thumbnails[3366159] = clik.newPhoto({"id":3366159,"src":"sea 1_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366159.html","width":130,"caption":"CHILDRENS ABSTRACT SEA PAINTING WORKSHOP- Inspired by the sound of the sea and Colours","height":98});
															thumbnails[3366165] = clik.newPhoto({"id":3366165,"src":"workshops image 3_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366165.html","width":130,"caption":"3D DOUBLE PORTAIT WORKSHOP- KS1 & KS2","height":98});
															thumbnails[3366171] = clik.newPhoto({"id":3366171,"src":"workshops image 2_thumb.jpg","galleries_id":205519,"server_id":32,"link":"photo_3366171.html","width":130,"caption":"WINTER LANDSPACE PAINTING - Saturday Art Club","height":98});
															thumbnails[3631507] = clik.newPhoto({"id":3631507,"src":"Untitled_I_-_Mixed_Media_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_3631507.html","width":130,"caption":"Untitled I - Mixed Media","height":193});
															thumbnails[4079728] = clik.newPhoto({"id":4079728,"src":"Image_1_-_Wendy_Couling_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_4079728.html","width":130,"caption":"","height":107});
															thumbnails[4079748] = clik.newPhoto({"id":4079748,"src":"Wendy_Couling_-_Image_31_thumb.JPG","galleries_id":222052,"server_id":32,"link":"photo_4079748.html","width":130,"caption":"","height":101});
															thumbnails[4828565] = clik.newPhoto({"id":4828565,"src":"green_lady_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_4828565.html","width":130,"caption":"","height":93});
															thumbnails[4828589] = clik.newPhoto({"id":4828589,"src":"Blue_cowboy_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_4828589.html","width":130,"caption":"He picked up his Hat and left - Mixed Media","height":99});
															thumbnails[5338523] = clik.newPhoto({"id":5338523,"src":"PALACE_OF_LIGHT_web_-_WENDY_COULING_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_5338523.html","width":130,"caption":"","height":173});
															thumbnails[5338580] = clik.newPhoto({"id":5338580,"src":"TY_NAIN_Web_-_WENDY_COULING_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_5338580.html","width":130,"caption":"TY NAIN - RCA OPEN EXHIBITION 2010","height":166});
															thumbnails[5338583] = clik.newPhoto({"id":5338583,"src":"Web_Watchman_of_My_Dreams_-_Wendy_Couling_34_thumb.jpg","galleries_id":222052,"server_id":32,"link":"photo_5338583.html","width":130,"caption":"WATCHMAN OF MY DREAMS - WENDY COULING","height":100});
															thumbnails[6669807] = clik.newPhoto({"id":6669807,"src":"Fill_a_Pill_Pot_with_Copper__thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6669807.html","width":130,"caption":"Fill a Pill Pot with Coins","height":173});
															thumbnails[6684598] = clik.newPhoto({"id":6684598,"src":"Looking_through_2_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684598.html","width":130,"caption":"Looking through II","height":173});
															thumbnails[6684631] = clik.newPhoto({"id":6684631,"src":"My_Alcove_2_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684631.html","width":130,"caption":"Alcove II","height":173});
															thumbnails[6684680] = clik.newPhoto({"id":6684680,"src":"As_he_turned_his_Back_he_heard_laughter_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684680.html","width":130,"caption":"As he turned his Back, he heard laughter.....","height":98});
															thumbnails[6684690] = clik.newPhoto({"id":6684690,"src":"On_the_ladder_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684690.html","width":130,"caption":"On the ladder","height":98});
															thumbnails[6684693] = clik.newPhoto({"id":6684693,"src":"Balance_I_E8C4CF09-24E8-5EC4-4F728ED0E8FD47D6_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684693.html","width":130,"caption":"Balance I","height":125});
															thumbnails[6684698] = clik.newPhoto({"id":6684698,"src":"Lair_I_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684698.html","width":130,"caption":"Lair II","height":173});
															thumbnails[6684787] = clik.newPhoto({"id":6684787,"src":"Untitled_III_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684787.html","width":130,"caption":"Untitled III","height":98});
															thumbnails[6684812] = clik.newPhoto({"id":6684812,"src":"Balance_II1_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684812.html","width":130,"caption":"Balance II","height":121});
															thumbnails[6684817] = clik.newPhoto({"id":6684817,"src":"So_it_happened_like_this1_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684817.html","width":130,"caption":"So it happened like this........","height":130});
															thumbnails[6684819] = clik.newPhoto({"id":6684819,"src":"Sound_of_the_Drums_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684819.html","width":130,"caption":"Sound of the Drums","height":98});
															thumbnails[6684922] = clik.newPhoto({"id":6684922,"src":"Counting_to_10_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684922.html","width":130,"caption":"Counting to Ten","height":98});
															thumbnails[6684945] = clik.newPhoto({"id":6684945,"src":"through_Here_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_6684945.html","width":130,"caption":"Through Here","height":127});
															thumbnails[7107741] = clik.newPhoto({"id":7107741,"src":"yellow_ribbon_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_7107741.html","width":130,"caption":"","height":183});
															thumbnails[7107742] = clik.newPhoto({"id":7107742,"src":"Orange_Love_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_7107742.html","width":130,"caption":"","height":193});
															thumbnails[7107746] = clik.newPhoto({"id":7107746,"src":"Red_Collar_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_7107746.html","width":130,"caption":"Red Collar...","height":98});
															thumbnails[7473941] = clik.newPhoto({"id":7473941,"src":"The_Alcove_mixed_media-_Wendy_Couling_thumb.jpg","galleries_id":344262,"server_id":32,"link":"photo_7473941.html","width":130,"caption":"","height":136});
															thumbnails[8268339] = clik.newPhoto({"id":8268339,"src":"Existence_Series_-_Untitled_II_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268339.html","width":130,"caption":"Existence - Untitled II (Ink, Acrylic, on Paper)","height":178});
															thumbnails[8268352] = clik.newPhoto({"id":8268352,"src":"Existence_Series_-_Untitled_I1_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268352.html","width":130,"caption":"Existence - Untitled I (Ink, Acrylic, on Paper)","height":96});
															thumbnails[8268357] = clik.newPhoto({"id":8268357,"src":"Existence_Series_-_Untitled_III_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268357.html","width":130,"caption":"Existence - Untitled Iii (Ink, Acrylic, on Paper)","height":98});
															thumbnails[8268361] = clik.newPhoto({"id":8268361,"src":"Existence_Series_-_Untitled_IV_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268361.html","width":130,"caption":"Existence - Untitled IV (Ink, Acrylic, on Paper)","height":173});
															thumbnails[8268365] = clik.newPhoto({"id":8268365,"src":"Existence_Series_-_Untitled_V_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268365.html","width":130,"caption":"Existence - Untitled V (Ink, Acrylic, on Paper)","height":173});
															thumbnails[8268368] = clik.newPhoto({"id":8268368,"src":"Existence_Series_-_Untitled_V_detail_1_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268368.html","width":130,"caption":"Existence - Untitled V Detail I (Ink, Acrylic, on Paper)","height":98});
															thumbnails[8268371] = clik.newPhoto({"id":8268371,"src":"Existence_Series_-_Untitled_V_detail_2_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268371.html","width":130,"caption":"Existence - Untitled V Detail II(Ink, Acrylic, on Paper)","height":98});
															thumbnails[8268374] = clik.newPhoto({"id":8268374,"src":"Existence_Series_-_Untitled_VI_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268374.html","width":130,"caption":"","height":173});
															thumbnails[8268380] = clik.newPhoto({"id":8268380,"src":"Existence_Series_-_Untitled_VII_thumb.jpg","galleries_id":440304,"server_id":32,"link":"photo_8268380.html","width":130,"caption":"Existence - Untitled VII (Ink, Acrylic, on Paper) ","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[440304] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Existence 2011 - Wendy Couling","link":"gallery_440304.html","maxRecords":0.0,"photoIDs":[8268339.0,8268352.0,8268357.0,8268361.0,8268365.0,8268368.0,8268371.0,8268374.0,8268380.0],"skipIndex":0,"section_code":"gallery","featured_images":"8268380,8268374,8268371,8268368,8268365,8268361,8268357,8268352,8268339","id":440304,"singleSection":false});				  						galleries[344262] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Work 2010 - Tales of Identity","link":"gallery_344262.html","maxRecords":0.0,"photoIDs":[6669807.0,6684598.0,6684631.0,6684680.0,6684690.0,6684693.0,6684698.0,6684787.0,6684812.0,6684817.0,6684819.0,6684922.0,6684945.0,7107741.0,7107742.0,7107746.0,7473941.0],"skipIndex":0,"section_code":"gallery","featured_images":"7473941,7107746,7107742,7107741,6684945,6684922,6684819,6684817,6684812,6684787","id":344262,"singleSection":false});				  						galleries[222052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wendy Couling - Work 2009 ","link":"gallery_222052.html","maxRecords":0.0,"photoIDs":[3631507.0,4079728.0,4079748.0,4828565.0,4828589.0,5338523.0,5338580.0,5338583.0],"skipIndex":0,"section_code":"gallery","featured_images":"5338583,5338580,5338523,4828589,4828565,4079748,4079728,3631507","id":222052,"singleSection":false});				  						galleries[147547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sketchbook Images","link":"gallery_147547.html","maxRecords":0.0,"photoIDs":[2242746.0,2242747.0,2242750.0,2242752.0,2242753.0],"skipIndex":0,"section_code":"gallery","featured_images":"2242753,2242752,2242750,2242747,2242746","id":147547,"singleSection":false});				  						galleries[147546] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Smaller Works","link":"gallery_147546.html","maxRecords":0.0,"photoIDs":[2242728.0,2242730.0,2242734.0,2242735.0,2242739.0],"skipIndex":0,"section_code":"gallery","featured_images":"2242739,2242735,2242734,2242730,2242728","id":147546,"singleSection":false});				  						galleries[147529] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Young Wales VIII & VII","link":"gallery_147529.html","maxRecords":0.0,"photoIDs":[2242346.0,2242347.0,2242348.0,2242354.0,2242355.0,2242359.0],"skipIndex":0,"section_code":"gallery","featured_images":"2242359,2242355,2242354,2242348,2242347,2242346","id":147529,"singleSection":false});				  						galleries[147545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Threshold (2007)","link":"gallery_147545.html","maxRecords":0.0,"photoIDs":[2242717.0,2242721.0,2242723.0],"skipIndex":0,"section_code":"gallery","featured_images":"2242723,2242721,2242717","id":147545,"singleSection":false});				  						galleries[205519] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Workshop Images","link":"gallery_205519.html","maxRecords":0.0,"photoIDs":[3366021.0,3366027.0,3366029.0,3366036.0,3366040.0,3366043.0,3366060.0,3366063.0,3366065.0,3366077.0,3366087.0,3366091.0,3366098.0,3366109.0,3366112.0,3366122.0,3366129.0,3366140.0,3366145.0,3366149.0,3366151.0,3366159.0,3366165.0,3366171.0],"skipIndex":0,"section_code":"gallery","featured_images":"3366171,3366165,3366159,3366151,3366149,3366145,3366140,3366129,3366122,3366112","id":205519,"singleSection":false});				  						galleries[199699] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Llandudno Museum Residency 2008","link":"gallery_199699.html","maxRecords":0.0,"photoIDs":[3275085.0,3275108.0],"skipIndex":0,"section_code":"gallery","featured_images":"3275108,3275085","id":199699,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3275016';
imageSets[3] = '8268380,8268374,8268371,8268368,8268365,8268361,8268357,8268352,8268339,7473941,7107746,7107742,7107741,6684945,6684922,6684819,6684817,6684812,6684787,6684698,6684693,6684690,6684680,6684631,6684598,6669807,5338583,5338580,5338523,4828589,4828565,4079748,4079728,3631513,3631507,3366171,3366165,3366159,3366151,3366149,3366145,3366140,3366129,3366122,3366112,3366109,3366098,3366091,3366087,3366077';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/wcouling/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/wcouling/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/wcouling/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 = 'Wendy Couling Artist: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				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;
	}
}

			

