window.thumbnails = {};
															thumbnails[5082981] = clik.newPhoto({"id":5082981,"src":"june_07mud_people_0161_thumb.jpg","galleries_id":257769,"server_id":18,"link":"photo_5082981.html","width":130,"caption":"","height":98});
															thumbnails[5082990] = clik.newPhoto({"id":5082990,"src":"Narberth_Market_409_0091_thumb.jpg","galleries_id":257769,"server_id":18,"link":"photo_5082990.html","width":130,"caption":"","height":130});
															thumbnails[5082995] = clik.newPhoto({"id":5082995,"src":"Summer_2009_0031_thumb.jpg","galleries_id":257769,"server_id":18,"link":"photo_5082995.html","width":130,"caption":"","height":130});
															thumbnails[6122761] = clik.newPhoto({"id":6122761,"src":"41lX-B6BqRL_SS500__thumb.jpg","galleries_id":261515,"server_id":18,"link":"photo_6122761.html","width":130,"caption":"","height":130});
															thumbnails[6122784] = clik.newPhoto({"id":6122784,"src":"1566460_thumb.jpg","galleries_id":257774,"server_id":18,"link":"photo_6122784.html","width":130,"caption":"","height":131});
															thumbnails[6122809] = clik.newPhoto({"id":6122809,"src":"FC01-6674_thumb.jpg","galleries_id":257770,"server_id":18,"link":"photo_6122809.html","width":130,"caption":"","height":104});
															thumbnails[6847577] = clik.newPhoto({"id":6847577,"src":"Aug_pics_050_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_6847577.html","width":130,"caption":"","height":133});
															thumbnails[6847589] = clik.newPhoto({"id":6847589,"src":"Cormorant_Bosherston_Ponds_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_6847589.html","width":130,"caption":"","height":166});
															thumbnails[6847593] = clik.newPhoto({"id":6847593,"src":"Little_Haven_Pebbles_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_6847593.html","width":130,"caption":"","height":210});
															thumbnails[6847618] = clik.newPhoto({"id":6847618,"src":"DSCF08091_thumb.jpg","galleries_id":257757,"server_id":18,"link":"photo_6847618.html","width":130,"caption":"","height":179});
															thumbnails[6875830] = clik.newPhoto({"id":6875830,"src":"Picture_0141_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_6875830.html","width":130,"caption":"","height":175});
															thumbnails[6875834] = clik.newPhoto({"id":6875834,"src":"rockpool2sm1_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_6875834.html","width":130,"caption":"","height":97});
															thumbnails[7410059] = clik.newPhoto({"id":7410059,"src":"mandy_web_new_060_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_7410059.html","width":130,"caption":"","height":98});
															thumbnails[8708307] = clik.newPhoto({"id":8708307,"src":"0482_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_8708307.html","width":130,"caption":"","height":98});
															thumbnails[8708309] = clik.newPhoto({"id":8708309,"src":"054_thumb.jpg","galleries_id":257764,"server_id":18,"link":"photo_8708309.html","width":130,"caption":"","height":173});
															thumbnails[8708311] = clik.newPhoto({"id":8708311,"src":"058_thumb.jpg","galleries_id":257764,"server_id":18,"link":"photo_8708311.html","width":130,"caption":"","height":173});
															thumbnails[8708314] = clik.newPhoto({"id":8708314,"src":"082_thumb.jpg","galleries_id":256984,"server_id":18,"link":"photo_8708314.html","width":130,"caption":"","height":98});
															thumbnails[8708316] = clik.newPhoto({"id":8708316,"src":"086_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_8708316.html","width":130,"caption":"","height":173});
															thumbnails[8708317] = clik.newPhoto({"id":8708317,"src":"088_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_8708317.html","width":130,"caption":"","height":173});
															thumbnails[8708319] = clik.newPhoto({"id":8708319,"src":"093_thumb.jpg","galleries_id":256984,"server_id":18,"link":"photo_8708319.html","width":130,"caption":"","height":98});
															thumbnails[8708320] = clik.newPhoto({"id":8708320,"src":"098_thumb.jpg","galleries_id":257778,"server_id":18,"link":"photo_8708320.html","width":130,"caption":"","height":131});
															thumbnails[8708321] = clik.newPhoto({"id":8708321,"src":"099_thumb.jpg","galleries_id":257778,"server_id":18,"link":"photo_8708321.html","width":130,"caption":"","height":134});
															thumbnails[8708327] = clik.newPhoto({"id":8708327,"src":"105_thumb.jpg","galleries_id":257758,"server_id":18,"link":"photo_8708327.html","width":130,"caption":"","height":98});
															thumbnails[8708328] = clik.newPhoto({"id":8708328,"src":"107_thumb.jpg","galleries_id":257758,"server_id":18,"link":"photo_8708328.html","width":130,"caption":"","height":173});
															thumbnails[8708331] = clik.newPhoto({"id":8708331,"src":"108_thumb.jpg","galleries_id":257758,"server_id":18,"link":"photo_8708331.html","width":130,"caption":"","height":98});
															thumbnails[8708335] = clik.newPhoto({"id":8708335,"src":"114_thumb.jpg","galleries_id":257764,"server_id":18,"link":"photo_8708335.html","width":130,"caption":"","height":173});
															thumbnails[8708337] = clik.newPhoto({"id":8708337,"src":"117_thumb.jpg","galleries_id":257764,"server_id":18,"link":"photo_8708337.html","width":130,"caption":"","height":173});
															thumbnails[8708338] = clik.newPhoto({"id":8708338,"src":"128_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_8708338.html","width":130,"caption":"","height":173});
															thumbnails[8708344] = clik.newPhoto({"id":8708344,"src":"158_thumb.jpg","galleries_id":257764,"server_id":18,"link":"photo_8708344.html","width":130,"caption":"","height":173});
															thumbnails[8708345] = clik.newPhoto({"id":8708345,"src":"186_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_8708345.html","width":130,"caption":"","height":173});
															thumbnails[4395776] = clik.newPhoto({"id":4395776,"src":"Stefan_Jakubowski_Pembrokeshire_Creative_fusion_Author_Strange_Relations12_thumb.jpg","galleries_id":257768,"server_id":18,"link":"photo_4395776.html","width":130,"caption":"Strange Relations","height":130});
															thumbnails[4395778] = clik.newPhoto({"id":4395778,"src":"Stefan_Jakubowski_Pembrokeshire_Creative_Fusion_Craft_Author_Dead_Peculiar12_thumb.jpg","galleries_id":257768,"server_id":18,"link":"photo_4395778.html","width":130,"caption":"Dead Peculiar","height":130});
															thumbnails[6122753] = clik.newPhoto({"id":6122753,"src":"MISCREATION_11_thumb.jpg","galleries_id":257768,"server_id":18,"link":"photo_6122753.html","width":130,"caption":"Miscreation","height":130});
															thumbnails[6122760] = clik.newPhoto({"id":6122760,"src":"Once_Upon_A_Tyme_front_cover_web1_thumb.jpg","galleries_id":257768,"server_id":18,"link":"photo_6122760.html","width":130,"caption":"Once Upon a Tyme","height":130});
															thumbnails[6289202] = clik.newPhoto({"id":6289202,"src":"1815704_A40B4AA0-1EC9-D45B-1CF4E5C1B65F5A14_thumb.jpg","galleries_id":343156,"server_id":18,"link":"photo_6289202.html","width":130,"caption":"Newspapers will rise again?","height":130});
															thumbnails[6875155] = clik.newPhoto({"id":6875155,"src":"new_web_pics_020_96EE6498-1D09-001F-9988E3C2805A77B1_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_6875155.html","width":130,"caption":"Loop scarf","height":98});
															thumbnails[6875291] = clik.newPhoto({"id":6875291,"src":"02_april_2009_111_2_96FB065C-1D09-001F-99E25C9BAAC8F6F9_thumb.jpg","galleries_id":373303,"server_id":18,"link":"photo_6875291.html","width":130,"caption":"","height":182});
															thumbnails[7320727] = clik.newPhoto({"id":7320727,"src":"Elissa pics 008 1_thumb.jpg","galleries_id":343158,"server_id":18,"link":"photo_7320727.html","width":130,"caption":"Chainsaw sculpture","height":173});
															thumbnails[7320728] = clik.newPhoto({"id":7320728,"src":"Elissa pics 017 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320728.html","width":130,"caption":"","height":98});
															thumbnails[7320748] = clik.newPhoto({"id":7320748,"src":"Elissa pics 065 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320748.html","width":130,"caption":"","height":98});
															thumbnails[7321005] = clik.newPhoto({"id":7321005,"src":"Beth rock pools_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321005.html","width":130,"caption":"Rock pools","height":174});
															thumbnails[7321013] = clik.newPhoto({"id":7321013,"src":"Molly keeping an eye on things_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321013.html","width":130,"caption":"Molly keeping an eye on things","height":129});
															thumbnails[7321018] = clik.newPhoto({"id":7321018,"src":"breezy August day at Newport beach_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321018.html","width":130,"caption":"Breezy August day at Newport beach","height":95});
															thumbnails[7321024] = clik.newPhoto({"id":7321024,"src":"moonlight cove_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321024.html","width":130,"caption":"Moonlight cove","height":69});
															thumbnails[6289203] = clik.newPhoto({"id":6289203,"src":"1818392_A40B4CA3-1EC9-D45B-1C5DD2B3FAF4EF45_thumb.jpg","galleries_id":343156,"server_id":18,"link":"photo_6289203.html","width":130,"caption":"Brave heart","height":130});
															thumbnails[6875156] = clik.newPhoto({"id":6875156,"src":"new_web_pics_030_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_6875156.html","width":130,"caption":"Loop scarf","height":98});
															thumbnails[6875292] = clik.newPhoto({"id":6875292,"src":"pwll_deri_pink_desat_96FB0850-1D09-001F-99B9053C30FF2825_thumb.jpg","galleries_id":373303,"server_id":18,"link":"photo_6875292.html","width":130,"caption":"","height":173});
															thumbnails[7320729] = clik.newPhoto({"id":7320729,"src":"Elissa pics 021 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320729.html","width":130,"caption":"","height":98});
															thumbnails[7320749] = clik.newPhoto({"id":7320749,"src":"Elissa pics 071 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320749.html","width":130,"caption":"","height":173});
															thumbnails[7320757] = clik.newPhoto({"id":7320757,"src":"Elissa pics 110 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320757.html","width":130,"caption":"","height":98});
															thumbnails[7321006] = clik.newPhoto({"id":7321006,"src":"Caerfai 2011_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321006.html","width":130,"caption":"Caerfai 2011","height":94});
															thumbnails[7321014] = clik.newPhoto({"id":7321014,"src":"Pembrokeshire evening_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321014.html","width":130,"caption":"Pembrokeshire evening","height":91});
															thumbnails[7321019] = clik.newPhoto({"id":7321019,"src":"early one September morning on Newport beach_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321019.html","width":130,"caption":"Early one September morning on Newport beach","height":96});
															thumbnails[7321025] = clik.newPhoto({"id":7321025,"src":"NightOwlatSnowdropTime_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321025.html","width":130,"caption":"Night Owl at Snowdrop Time","height":88});
															thumbnails[8707977] = clik.newPhoto({"id":8707977,"src":"0051_thumb.gif","galleries_id":256641,"server_id":18,"link":"photo_8707977.html","width":130,"caption":"","height":173});
															thumbnails[8708225] = clik.newPhoto({"id":8708225,"src":"0291_thumb.gif","galleries_id":256641,"server_id":18,"link":"photo_8708225.html","width":130,"caption":"","height":98});
															thumbnails[4395631] = clik.newPhoto({"id":4395631,"src":"Pembrokeshire_Creative_Furniture_Chair12_thumb.jpg","galleries_id":257765,"server_id":18,"link":"photo_4395631.html","width":130,"caption":"","height":130});
															thumbnails[4395633] = clik.newPhoto({"id":4395633,"src":"Pembrokeshire_Creative_Furniture_Chair_Set12_thumb.jpg","galleries_id":257765,"server_id":18,"link":"photo_4395633.html","width":130,"caption":"","height":130});
															thumbnails[6289204] = clik.newPhoto({"id":6289204,"src":"1818660_A40B4EB6-1EC9-D45B-1CF86539B2C904C8_thumb.jpg","galleries_id":343156,"server_id":18,"link":"photo_6289204.html","width":130,"caption":"Wode prince","height":130});
															thumbnails[6875157] = clik.newPhoto({"id":6875157,"src":"new_web_pics_056_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_6875157.html","width":130,"caption":"Loop scarf","height":98});
															thumbnails[6875293] = clik.newPhoto({"id":6875293,"src":"pwll_deri_pink_96FB0A25-1D09-001F-990ED9632BF847F2_thumb.jpg","galleries_id":373303,"server_id":18,"link":"photo_6875293.html","width":130,"caption":"","height":195});
															thumbnails[7320730] = clik.newPhoto({"id":7320730,"src":"Elissa pics 030 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320730.html","width":130,"caption":"","height":98});
															thumbnails[7320750] = clik.newPhoto({"id":7320750,"src":"Elissa pics 077 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320750.html","width":130,"caption":"","height":98});
															thumbnails[7321007] = clik.newPhoto({"id":7321007,"src":"caerfai_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321007.html","width":130,"caption":"Caerfai","height":98});
															thumbnails[7321015] = clik.newPhoto({"id":7321015,"src":"rook_thumb.JPG","galleries_id":257771,"server_id":18,"link":"photo_7321015.html","width":130,"caption":"Rook","height":145});
															thumbnails[7321020] = clik.newPhoto({"id":7321020,"src":"Golden Autumn morning at Pentre Ifan_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321020.html","width":130,"caption":"Golden Autumn morning at Pentre Ifan","height":95});
															thumbnails[7321026] = clik.newPhoto({"id":7321026,"src":"Summer night near StDavids_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321026.html","width":130,"caption":"Summer night near St Davids","height":87});
															thumbnails[7410007] = clik.newPhoto({"id":7410007,"src":"mandy web new 020_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_7410007.html","width":130,"caption":"","height":101});
															thumbnails[4395645] = clik.newPhoto({"id":4395645,"src":"Elissa_Hudson_Pembrokeshire_Creative_Fusion_Craft_Textile_Artist_Handmade_Purple_Box12_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_4395645.html","width":130,"caption":"Hand made heirloom box","height":130});
															thumbnails[4395649] = clik.newPhoto({"id":4395649,"src":"Elissa_Hudson_Pembrokeshire_Creative_Fusion_Craft_Textile_Artist_Handmade_Rose_Boxes12_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_4395649.html","width":130,"caption":"Hand made heirloom boxes","height":130});
															thumbnails[4395651] = clik.newPhoto({"id":4395651,"src":"Elissa_Hudson_Pembrokeshire_Creative_Fusion_Craft_Textile_Artist_Patchwork_Handbag_Pastel_shades12_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_4395651.html","width":130,"caption":"Hand stitched patchwork bag","height":130});
															thumbnails[4395652] = clik.newPhoto({"id":4395652,"src":"Elissa_Hudson_Pembrokeshire_Creative_Fusion_Craft_Textile_Artist_Purple_Handbag12_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_4395652.html","width":130,"caption":"Hand stitched patchwork bag","height":130});
															thumbnails[6289205] = clik.newPhoto({"id":6289205,"src":"1818937_A40B5108-1EC9-D45B-1CA0DFAF6468FA3B_thumb.jpg","galleries_id":343156,"server_id":18,"link":"photo_6289205.html","width":130,"caption":"The magic of magazines","height":130});
															thumbnails[6875158] = clik.newPhoto({"id":6875158,"src":"new_web_pics_069_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_6875158.html","width":130,"caption":"Loop scarf","height":98});
															thumbnails[7320731] = clik.newPhoto({"id":7320731,"src":"Elissa pics 038 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320731.html","width":130,"caption":"","height":98});
															thumbnails[7320751] = clik.newPhoto({"id":7320751,"src":"Elissa pics 091 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320751.html","width":130,"caption":"","height":173});
															thumbnails[7321009] = clik.newPhoto({"id":7321009,"src":"carn meini_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321009.html","width":130,"caption":"Carn meini","height":154});
															thumbnails[7321016] = clik.newPhoto({"id":7321016,"src":"spring rain_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321016.html","width":130,"caption":"Spring rain","height":121});
															thumbnails[7321021] = clik.newPhoto({"id":7321021,"src":"june buzzards at Cwm yr Eglwys_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321021.html","width":130,"caption":"June buzzards at Cwm yr Eglwys","height":95});
															thumbnails[7321028] = clik.newPhoto({"id":7321028,"src":"summer swallows under Carningli_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321028.html","width":130,"caption":"Summer swallows under Carningli","height":88});
															thumbnails[7410009] = clik.newPhoto({"id":7410009,"src":"mandy web new 025_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_7410009.html","width":130,"caption":"","height":98});
															thumbnails[8707979] = clik.newPhoto({"id":8707979,"src":"0441_thumb.gif","galleries_id":256641,"server_id":18,"link":"photo_8707979.html","width":130,"caption":"","height":98});
															thumbnails[8708227] = clik.newPhoto({"id":8708227,"src":"0301_thumb.gif","galleries_id":256641,"server_id":18,"link":"photo_8708227.html","width":130,"caption":"","height":98});
															thumbnails[6875159] = clik.newPhoto({"id":6875159,"src":"new_web_pics_158_96EE6CD6-1D09-001F-9994DBD2041B11D1_thumb.jpg","galleries_id":257762,"server_id":18,"link":"photo_6875159.html","width":130,"caption":"Loop scarf","height":99});
															thumbnails[7320732] = clik.newPhoto({"id":7320732,"src":"Elissa pics 050 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320732.html","width":130,"caption":"","height":173});
															thumbnails[7320752] = clik.newPhoto({"id":7320752,"src":"Elissa pics 100 1_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_7320752.html","width":130,"caption":"","height":173});
															thumbnails[7321010] = clik.newPhoto({"id":7321010,"src":"Kip at work_thumb.jpg","galleries_id":257771,"server_id":18,"link":"photo_7321010.html","width":130,"caption":"Kip at work","height":132});
															thumbnails[7321022] = clik.newPhoto({"id":7321022,"src":"mid-summer kestrel at Porthclais_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321022.html","width":130,"caption":"Mid-summer kestrel at Porthclais","height":95});
															thumbnails[7321029] = clik.newPhoto({"id":7321029,"src":"the first swallow_thumb.jpg","galleries_id":257777,"server_id":18,"link":"photo_7321029.html","width":130,"caption":"The first swallow","height":90});
															thumbnails[7410008] = clik.newPhoto({"id":7410008,"src":"mandy web new 025 bl_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_7410008.html","width":130,"caption":"","height":98});
															thumbnails[7410019] = clik.newPhoto({"id":7410019,"src":"mandy web new 025 er_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_7410019.html","width":130,"caption":"","height":98});
															thumbnails[7410021] = clik.newPhoto({"id":7410021,"src":"mandy web new 028_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_7410021.html","width":130,"caption":"","height":89});
															thumbnails[8708229] = clik.newPhoto({"id":8708229,"src":"0381_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_8708229.html","width":130,"caption":"","height":98});
															thumbnails[4395725] = clik.newPhoto({"id":4395725,"src":"Neil_Croucher_Mellangth_Pembrokeshire_Creative_Fusion_Craft_glass_Stained_Glass_window_foxgloves12_thumb.jpg","galleries_id":257763,"server_id":18,"link":"photo_4395725.html","width":130,"caption":"Foxglove - stained glass window","height":130});
															thumbnails[4395744] = clik.newPhoto({"id":4395744,"src":"Nia_Kate_Pembrokeshire_Creative_Fusion_Photography_Bosherston_Lily12_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_4395744.html","width":130,"caption":"Bosherston Lily","height":130});
															thumbnails[4395745] = clik.newPhoto({"id":4395745,"src":"Nia_Kate_Pembrokeshire_Creative_Fusion_Photography_Bosherston_Ponds12_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_4395745.html","width":130,"caption":"Bosherston Ponds","height":130});
															thumbnails[4395746] = clik.newPhoto({"id":4395746,"src":"Nia_Kate_Pembrokeshire_Creative_Fusion_Photography_Broad_Haven_Beach12_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_4395746.html","width":130,"caption":"Broad Haven Beach, South Pembrokeshire","height":130});
															thumbnails[4395750] = clik.newPhoto({"id":4395750,"src":"Nia_Kate_Pembrokeshire_Creative_Fusion_Photography_Pwllderi12_thumb.jpg","galleries_id":257773,"server_id":18,"link":"photo_4395750.html","width":130,"caption":"Pwllderi, North Pembrokeshire","height":130});
															thumbnails[4395755] = clik.newPhoto({"id":4395755,"src":"Roger_Sztencel_Pembrokeshire_Creative_Fusion_Craft_Box_Maker_craft_box_312_thumb.jpg","galleries_id":257776,"server_id":18,"link":"photo_4395755.html","width":130,"caption":"Hand made wooden box","height":130});
															thumbnails[4395757] = clik.newPhoto({"id":4395757,"src":"Roger_Sztencel_Pembrokeshire_Creative_fusion_craft_Box_Maker_craft_box_412_thumb.jpg","galleries_id":257776,"server_id":18,"link":"photo_4395757.html","width":130,"caption":"Hand made wooden box","height":130});
															thumbnails[8708233] = clik.newPhoto({"id":8708233,"src":"0461_thumb.jpg","galleries_id":256641,"server_id":18,"link":"photo_8708233.html","width":130,"caption":"","height":98});
															thumbnails[4404365] = clik.newPhoto({"id":4404365,"src":"IMG_00391_thumb.jpg","galleries_id":258292,"server_id":18,"link":"photo_4404365.html","width":130,"caption":"Hand stitched bag","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[257764] = clik.newGallery({"parentGallery":256974,"usePopups":false,"title":"Alan Carrier ","link":"section310299_257764.html","maxRecords":0.0,"photoIDs":[8708309.0,8708311.0,8708335.0,8708337.0,8708344.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708311,8708309","id":257764,"singleSection":false});				  						galleries[257769] = clik.newGallery({"parentGallery":256973,"usePopups":false,"title":"Banana Meinhoff","link":"section310299_257769.html","maxRecords":0.0,"photoIDs":[5082981.0,5082990.0,5082995.0],"skipIndex":0,"section_code":"section310299","featured_images":"5082995,5082990,5082981","id":257769,"singleSection":false});				  						galleries[257771] = clik.newGallery({"parentGallery":256971,"usePopups":false,"title":"Beth Robinson","link":"section310299_257771.html","maxRecords":0.0,"photoIDs":[7321005.0,7321013.0,7321006.0,7321014.0,7321007.0,7321015.0,7321009.0,7321016.0,7321010.0],"skipIndex":0,"section_code":"section310299","featured_images":"7321016,7321015,7321014,7321013,7321010,7321009,7321007,7321006,7321005","id":257771,"singleSection":false});				  						galleries[257778] = clik.newGallery({"parentGallery":256971,"usePopups":false,"title":"Carol Brinton Thomas","link":"section310299_257778.html","maxRecords":0.0,"photoIDs":[8708320.0,8708321.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708321,8708320","id":257778,"singleSection":false});				  						galleries[257758] = clik.newGallery({"parentGallery":256970,"usePopups":false,"title":"Carol Brinton Thomas Ceramics","link":"section310299_257758.html","maxRecords":0.0,"photoIDs":[8708327.0,8708328.0,8708331.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708331,8708328,8708327","id":257758,"singleSection":false});				  						galleries[256970] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramics","link":"section310299_256970.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"8708331,8708328,8708327","id":256970,"singleSection":false});				  						galleries[343158] = clik.newGallery({"parentGallery":256974,"usePopups":false,"title":"Dan & Matt Badham","link":"section310299_343158.html","maxRecords":0.0,"photoIDs":[7320727.0],"skipIndex":0,"section_code":"section310299","featured_images":7320727.0,"id":343158,"singleSection":false});				  						galleries[343156] = clik.newGallery({"parentGallery":256971,"usePopups":false,"title":"Deborah Withey","link":"section310299_343156.html","maxRecords":0.0,"photoIDs":[6289202.0,6289203.0,6289204.0,6289205.0],"skipIndex":0,"section_code":"section310299","featured_images":"6289205,6289204,6289203,6289202","id":343156,"singleSection":false});				  						galleries[258292] = clik.newGallery({"parentGallery":256973,"usePopups":false,"title":"Elissa Hudson","link":"section310299_258292.html","maxRecords":0.0,"photoIDs":[7320728.0,7320748.0,7320729.0,7320749.0,7320757.0,7320730.0,7320750.0,4395645.0,4395649.0,4395651.0,4395652.0,7320731.0,7320751.0,7320732.0,7320752.0,4404365.0],"skipIndex":0,"section_code":"section310299","featured_images":"7320752,4395652,4395645","id":258292,"singleSection":false});				  						galleries[256971] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fine Art","link":"section310299_256971.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"7321029,7321028,7321026,7321025,7321024,7321022,7321021,7321020,7321019,7321018,7321016,7321015,7321014,7321013,7321010,7321009,7321007,7321006,7321005,6847593,6847589,6847577,6289205,6289204,6289203,6289202","id":256971,"singleSection":false});				  						galleries[257756] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Food","link":"section310299_257756.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":6122809.0,"id":257756,"singleSection":false});				  						galleries[256976] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glass","link":"section310299_256976.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"8708317,8708316,6875834,6875830,4395725","id":256976,"singleSection":false});				  						galleries[257755] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Health & Beauty","link":"section310299_257755.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":6847618.0,"id":257755,"singleSection":false});				  						galleries[257770] = clik.newGallery({"parentGallery":257756,"usePopups":false,"title":"Helen Cecil","link":"section310299_257770.html","maxRecords":0.0,"photoIDs":[6122809.0],"skipIndex":0,"section_code":"section310299","featured_images":6122809.0,"id":257770,"singleSection":false});				  						galleries[257774] = clik.newGallery({"parentGallery":256977,"usePopups":false,"title":"James Crisp","link":"section310299_257774.html","maxRecords":0.0,"photoIDs":[6122784.0],"skipIndex":0,"section_code":"section310299","featured_images":6122784.0,"id":257774,"singleSection":false});				  						galleries[261515] = clik.newGallery({"parentGallery":256977,"usePopups":false,"title":"Jean Bonnin","link":"section310299_261515.html","maxRecords":0.0,"photoIDs":[6122761.0],"skipIndex":0,"section_code":"section310299","featured_images":6122761.0,"id":261515,"singleSection":false});				  						galleries[256969] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jewellery","link":"section310299_256969.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"8708319,8708314,8708307,8707979,8707977,7410009,7410008,7410007","id":256969,"singleSection":false});				  						galleries[256977] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Literature & Music","link":"section310299_256977.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":6122784.0,"id":256977,"singleSection":false});				  						galleries[257757] = clik.newGallery({"parentGallery":257755,"usePopups":false,"title":"Nia Kate Organics","link":"section310299_257757.html","maxRecords":0.0,"photoIDs":[6847618.0],"skipIndex":0,"section_code":"section310299","featured_images":6847618.0,"id":257757,"singleSection":false});				  						galleries[257773] = clik.newGallery({"parentGallery":256971,"usePopups":false,"title":"Nia Kate Photography","link":"section310299_257773.html","maxRecords":0.0,"photoIDs":[6847577.0,6847589.0,6847593.0,4395744.0,4395745.0,4395746.0,4395750.0],"skipIndex":0,"section_code":"section310299","featured_images":"6847593,6847589,6847577","id":257773,"singleSection":false});				  						galleries[373303] = clik.newGallery({"parentGallery":256973,"usePopups":false,"title":"Nia Kate Textiles","link":"section310299_373303.html","maxRecords":0.0,"photoIDs":[6875291.0,6875292.0,6875293.0],"skipIndex":0,"section_code":"section310299","featured_images":"6875293,6875292,6875291","id":373303,"singleSection":false});				  						galleries[257765] = clik.newGallery({"parentGallery":256974,"usePopups":false,"title":"Pembrokeshire Creative Furniture","link":"section310299_257765.html","maxRecords":0.0,"photoIDs":[4395631.0,4395633.0],"skipIndex":0,"section_code":"section310299","featured_images":"4395633,4395631","id":257765,"singleSection":false});				  						galleries[257776] = clik.newGallery({"parentGallery":256974,"usePopups":false,"title":"Roger Sztencel","link":"section310299_257776.html","maxRecords":0.0,"photoIDs":[4395755.0,4395757.0],"skipIndex":0,"section_code":"section310299","featured_images":"4395757,4395755","id":257776,"singleSection":false});				  						galleries[257777] = clik.newGallery({"parentGallery":256971,"usePopups":false,"title":"Sarah Earl","link":"section310299_257777.html","maxRecords":0.0,"photoIDs":[7321018.0,7321024.0,7321019.0,7321025.0,7321020.0,7321026.0,7321021.0,7321028.0,7321022.0,7321029.0],"skipIndex":0,"section_code":"section310299","featured_images":"7321029,7321028,7321026,7321025,7321024,7321022,7321021,7321020,7321019,7321018","id":257777,"singleSection":false});				  						galleries[257768] = clik.newGallery({"parentGallery":256977,"usePopups":false,"title":"Stefan Jakubowski ","link":"section310299_257768.html","maxRecords":0.0,"photoIDs":[4395776.0,4395778.0,6122753.0,6122760.0],"skipIndex":0,"section_code":"section310299","featured_images":"6122760,6122753,4395778,4395776","id":257768,"singleSection":false});				  						galleries[256973] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Textiles","link":"section310299_256973.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"7410059,7320752,6875157,6875155,4395652,4395645","id":256973,"singleSection":false});				  						galleries[256984] = clik.newGallery({"parentGallery":256969,"usePopups":false,"title":"The Glass Gallery Jewellery","link":"section310299_256984.html","maxRecords":0.0,"photoIDs":[8708314.0,8708319.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708319,8708314","id":256984,"singleSection":false});				  						galleries[257763] = clik.newGallery({"parentGallery":256976,"usePopups":false,"title":"The Glass Gallery Stained Glass ","link":"section310299_257763.html","maxRecords":0.0,"photoIDs":[6875830.0,6875834.0,8708316.0,8708317.0,8708338.0,4395725.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708317,8708316,6875834,6875830,4395725","id":257763,"singleSection":false});				  						galleries[257762] = clik.newGallery({"parentGallery":256973,"usePopups":false,"title":"Twisted Thread ","link":"section310299_257762.html","maxRecords":0.0,"photoIDs":[7410059.0,6875155.0,6875156.0,6875157.0,6875158.0,6875159.0],"skipIndex":0,"section_code":"section310299","featured_images":"7410059,6875157,6875155","id":257762,"singleSection":false});				  						galleries[256641] = clik.newGallery({"parentGallery":256969,"usePopups":false,"title":"Wireworks Jewellery","link":"section310299_256641.html","maxRecords":0.0,"photoIDs":[8708307.0,8708345.0,8707977.0,8708225.0,7410007.0,7410009.0,8707979.0,8708227.0,7410008.0,7410019.0,7410021.0,8708229.0,8708233.0],"skipIndex":0,"section_code":"section310299","featured_images":"8708307,8707979,8707977,7410009,7410008,7410007","id":256641,"singleSection":false});				  						galleries[256974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wood","link":"section310299_256974.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section310299","featured_images":"8708311,8708309","id":256974,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8708319,8708317,8708316,8708314,8708311,8708309,8708307,7410059,6875834,6875830,6847593,6847589,6847577,7321024,7321018,7321013,7321005,7320748,7320728,6289202,8707977,7321025,7321019,7321014,7321006,7320749,6289203,7410007,7321026,7321020,7321015,7321007,6875157,6289204,4395645,4395649,4395651,4395652,8707979,7410009,7321028,7321021,7321016,7321009,7320751,6289205,7410008,7321029,7321022,7321010,7320752,7410019,7410021,4395725,4395744,4395745,4395746,4395750';
imageSets[2] = '8708319,8708317,8708316,8708314,8708311,8708309,8708307,7410059,6875834,6875830,6847593,6847589,6847577,6122784,7321024,7321018,7321013,7321005,6875155,6289202,8707977,7321025,7321019,7321014,7321006,6289203,7410007,7321026,7321020,7321015,7321007,6875157,6289204,4395645,4395652,8707979,7410009,7321028,7321021,7321016,7321009,6289205,7410008,7321029,7321022,7321010,7320752,4395725';
imageSets[3] = '4395652,8707979,4395725,4395744,4395745,4395746,4395750,4404365';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/CREATIVEF/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/CREATIVEF/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 += 'section310299.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 && 'section310299' != '') {
					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 = 'Creative Fusion Crafts: ' + 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;
	}
}

			

