window.thumbnails = {};
															thumbnails[452269] = clik.newPhoto({"id":452269,"src":"DSCN4616_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Castelo Branco embroidery designs date from the 12th century. It is a luxury product, bespoke handmade by  artisans in a working museum, using linen made on a loom and embroidered with silk threads. ","height":173});
															thumbnails[637151] = clik.newPhoto({"id":637151,"src":"Linen_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"High quality cottons, made on a loom. Contact us for more details. Each linen will cost around £95.","height":104});
															thumbnails[829771] = clik.newPhoto({"id":829771,"src":"DPP_000025_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Solar plate print «Nº1» by Sara Rocha.<br>\r\n«Nº1» is a record of Sara's significant daily places in London. £110.00","height":98});
															thumbnails[831524] = clik.newPhoto({"id":831524,"src":"DPP_000030_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"«Screaming Soul» by Sara Rocha is a solar plate print and a version of this print was on display at the Faulkner Gallery in Santa Barbara - California, USA.  £250<br>\r\nOnly by Order","height":98});
															thumbnails[831538] = clik.newPhoto({"id":831538,"src":"DPP_000031_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Solar plate print «Imaginary Bird» by Sara Rocha.<br>\r\nBirds have always been a object of fascination for Sara. £100.00 <br>\r\nSOLD OUT","height":98});
															thumbnails[833994] = clik.newPhoto({"id":833994,"src":"DPP_000039_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"«Espiga» Arraiolos rug. (made to order - it takes  at least 4 months to make it). We make all sizes.<br>\r\ne.g. 2.00 x 1.45 = 2.9 sq.m<br>\r\n","height":97});
															thumbnails[1125955] = clik.newPhoto({"id":1125955,"src":"DSCN6466_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"«Girl» solar print & watercolor by Sara Rocha<br>\r\n£120.00. <br>\r\nOnly by order.<br>\r\n","height":173});
															thumbnails[1296384] = clik.newPhoto({"id":1296384,"src":"DSC_3195_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":170});
															thumbnails[1658266] = clik.newPhoto({"id":1658266,"src":"coral281_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Felt hand-made head of Santa Claus. The size is 5,3cm\/2,5cm.<br>\r\nPrice: £6.00<br>\r\n<br>\r\n ","height":173});
															thumbnails[1658268] = clik.newPhoto({"id":1658268,"src":"DSCN6697_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Beautiful and very exclusive linen towel embroidered by hand.<br>\r\nBy order only. Contact us if you need to know the price and select the monograms.","height":272});
															thumbnails[1666817] = clik.newPhoto({"id":1666817,"src":"DSCN6714_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lambskin Gilet for children 3-8 years old, £79.99","height":142});
															thumbnails[1666818] = clik.newPhoto({"id":1666818,"src":"DSCN2521_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Solar plate print «Pitbull» by Sara Rocha.<br>\r\n£100","height":182});
															thumbnails[1703604] = clik.newPhoto({"id":1703604,"src":"_MG_0145_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A felt cap handmade with felt leaves embellishments on the front.<br>\r\nSOLD<br>\r\nOnly available by order £70","height":189});
															thumbnails[2926791] = clik.newPhoto({"id":2926791,"src":"xmasml_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Santa Claus pendant for Christmas trees, door knobs. <br>\r\nPrice:£4.90","height":172});
															thumbnails[5093548] = clik.newPhoto({"id":5093548,"src":"Handmade_1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SALES - UP TO 50%","height":184});
															thumbnails[5116671] = clik.newPhoto({"id":5116671,"src":"Portugal_Dec_2006_094_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":90});
															thumbnails[5117312] = clik.newPhoto({"id":5117312,"src":"manta_pastor_regional_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Shepard's plaid, 100% organic lambswool handcrafted.Collour: Ivory and brown.Size: 1,90cm x 1,40cmPrice: £65","height":173});
															thumbnails[5207033] = clik.newPhoto({"id":5207033,"src":"Drika_B-_Weekender_bag_99_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"This colourful tote bag will definitely lighten up any outfit! Practical, durable and with plenty of room for all your things! It makes a great lap top bag! No two are the same, but they are pretty close! Also remember that different monitors may show a slight difference in colors. £110<br>\r\n","height":130});
															thumbnails[6716139] = clik.newPhoto({"id":6716139,"src":"_MG_1506_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Brazil cardigan 100% organic wool.One size fits all.Colours: dark green£49.99","height":195});
															thumbnails[6716151] = clik.newPhoto({"id":6716151,"src":"_MG_1520_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Brazil cardigan","height":195});
															thumbnails[6716360] = clik.newPhoto({"id":6716360,"src":"_MG_0883_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hand knitted 100% wool sleeveless pullover.   Colours: Brown, ecru, brick Sizes: S, M, L Only by order £39.99","height":195});
															thumbnails[6716374] = clik.newPhoto({"id":6716374,"src":"_MG_0886_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Multi colored shawl made on the traditional looms;  100% wool. Price on request","height":195});
															thumbnails[609278] = clik.newPhoto({"id":609278,"src":"candlestick_thumb.jpg","galleries_id":63508,"server_id":1,"link":"photo_609278.html","width":130,"caption":"Iron candlestick for rectangle candles or to electrify.<br>\r\n£100","height":195});
															thumbnails[609285] = clik.newPhoto({"id":609285,"src":"oaksconce_thumb.jpg","galleries_id":63507,"server_id":1,"link":"photo_609285.html","width":130,"caption":"Iron oak leaves sconce<br>\r\n£390.00 (transport not included)","height":195});
															thumbnails[609287] = clik.newPhoto({"id":609287,"src":"romantable_thumb.jpg","galleries_id":289183,"server_id":1,"link":"photo_609287.html","width":130,"caption":"Roman table £320 (delivery costs by arrangement)","height":87});
															thumbnails[637149] = clik.newPhoto({"id":637149,"src":"Table_thumb.jpg","galleries_id":289183,"server_id":1,"link":"photo_637149.html","width":130,"caption":"Wrought iron table, rust-coloured with a white marble top. £3000.00<br>\r\nYou can select other tops as you prefer. <br>\r\n<br>\r\nWholesale available for this item. Contact us for more information.<br>\r\n","height":81});
															thumbnails[814552] = clik.newPhoto({"id":814552,"src":"DPP_0001_thumb.JPG","galleries_id":63507,"server_id":1,"link":"photo_814552.html","width":130,"caption":"Iron oak leaves lantern (rust colour)<br>\r\n£550.00<br>\r\n","height":258});
															thumbnails[825299] = clik.newPhoto({"id":825299,"src":"Portugal, Oct 2006_175_thumb.JPG","galleries_id":203456,"server_id":1,"link":"photo_825299.html","width":130,"caption":"Hens made of iron for the garden. £150.00 each","height":87});
															thumbnails[833967] = clik.newPhoto({"id":833967,"src":"DPP_0000035_thumb.JPG","galleries_id":82624,"server_id":1,"link":"photo_833967.html","width":130,"caption":"«Cockrell» arraiolos cushion.","height":129});
															thumbnails[833985] = clik.newPhoto({"id":833985,"src":"DPP_000037_thumb.JPG","galleries_id":82624,"server_id":1,"link":"photo_833985.html","width":130,"caption":"«Hen» arraiolos cushion.","height":126});
															thumbnails[833996] = clik.newPhoto({"id":833996,"src":"DPP_000040_thumb.JPG","galleries_id":292613,"server_id":1,"link":"photo_833996.html","width":130,"caption":"«Tulipas». Made to order (at least 4 months). We can make all sizes. <br>\r\nFrom £1200","height":185});
															thumbnails[834003] = clik.newPhoto({"id":834003,"src":"DPP_000041_thumb.JPG","galleries_id":292613,"server_id":1,"link":"photo_834003.html","width":130,"caption":"«Abóboras» Arraiolos rug, made to order (it takes at least 4 months to make it). We make all sizes.<br>\r\ne.g. 2.65m x 1.80m (4.77 sq.m).<br>\r\n£3000","height":176});
															thumbnails[843829] = clik.newPhoto({"id":843829,"src":"DPP_000043_thumb.JPG","galleries_id":82624,"server_id":1,"link":"photo_843829.html","width":130,"caption":"«Seteais» Arraiolos cushion. Please ask us for prices as they depend on size.<br>\r\nFrom £99","height":133});
															thumbnails[1666814] = clik.newPhoto({"id":1666814,"src":"coral268_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_1666814.html","width":130,"caption":"Brooch Lolly pop made from fabric. Only by order.£15 ","height":195});
															thumbnails[1727958] = clik.newPhoto({"id":1727958,"src":"Towelrack5_thumb.JPG","galleries_id":289183,"server_id":1,"link":"photo_1727958.html","width":130,"caption":"Bath towel stand. Size large - £89.00<br>\r\nWe have the same model in small size. £80 (Contact us to order it).<br>\r\nWholesale available.","height":173});
															thumbnails[1727982] = clik.newPhoto({"id":1727982,"src":"whitechair_1_thumb.jpg","galleries_id":289183,"server_id":1,"link":"photo_1727982.html","width":130,"caption":"Light Grey chair made of solid wood and iron. £89.00. (Delivery price not included.)","height":195});
															thumbnails[2912284] = clik.newPhoto({"id":2912284,"src":"_MG_1473_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912284.html","width":130,"caption":"Baby's 100% organic lambs wool blanket. <br>\r\nSize 59 in. x 39 in. (1,50cm x 1,00m). <br>\r\nColour: Ivory. <br>\r\nPrice: £35<br>\r\n<br>\r\nWholesale available.","height":195});
															thumbnails[2912637] = clik.newPhoto({"id":2912637,"src":"DSCN7090_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912637.html","width":130,"caption":"Shepard's blanket 100% organic lambs wool handcraftedColour: Ivory + brown. Size: 1,90cm x1,40cm.wholesale available.Price: £65","height":185});
															thumbnails[2912638] = clik.newPhoto({"id":2912638,"src":"DSCN7091_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912638.html","width":130,"caption":"Shepard's plaid.100% organic lambs wool handcrafted.Colour: Ivory and Brown.Size: 1,90cm x 1,40cm.Price: £65 Wholesale available.","height":188});
															thumbnails[2912639] = clik.newPhoto({"id":2912639,"src":"DSCN7092_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912639.html","width":130,"caption":"Shepherd's plaid.100% organic lambs wool.Colour: Brown, Ivory, Grey. Size: 1,90 x 1,40 m; 500g\/m2.Price: £65","height":170});
															thumbnails[2912641] = clik.newPhoto({"id":2912641,"src":"DSCN7093_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912641.html","width":130,"caption":"Trip blanket.100% organic lambs wool.1,80 x 1,30 m.360 gr.Colour: Ivory, Brown with a red thin line, asymmetrical design. Price: £65 Wholesale available.","height":182});
															thumbnails[2912644] = clik.newPhoto({"id":2912644,"src":"DSCN7098_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912644.html","width":130,"caption":"Shepherd's Plaid.100% organic lambs wool.Colour: Brown, Ivory, Beige Stripes. Size: 1,90 x 1,40 m; 500g\/m2.Price: £65 Wholesale available.","height":187});
															thumbnails[2912649] = clik.newPhoto({"id":2912649,"src":"DSCN7106_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_2912649.html","width":130,"caption":"Unisex Slippers  100% organic wool.<br>\r\nSize 5 (UK) or 38 (EU).<br>\r\nColour: Beige, Grey, Ivory and red.<br>\r\nPrice:  £12.50<br>\r\n<br>\r\nWholesale available for this item. Contact us.","height":171});
															thumbnails[5117305] = clik.newPhoto({"id":5117305,"src":"mantas_pastor_filetemarfim_fileteespinha_thumb.jpg","galleries_id":184368,"server_id":1,"link":"photo_5117305.html","width":130,"caption":"","height":139});
															thumbnails[5117334] = clik.newPhoto({"id":5117334,"src":"manta_pastor_risca_thumb.jpg","galleries_id":184368,"server_id":1,"link":"photo_5117334.html","width":130,"caption":"Blanket made of 100% organic lambs wool.Size: 1,80x1,30cm and weighs 360gr.Colour: Ivory and BrownPrice: £65","height":136});
															thumbnails[6714921] = clik.newPhoto({"id":6714921,"src":"_MG_1448_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_6714921.html","width":130,"caption":"Wonderful 100% organic wool handmade slippers from Serra da Estrela, Portugal. Size 4 (UK) or 37 (EU)<br>\r\n£19.00","height":87});
															thumbnails[6715034] = clik.newPhoto({"id":6715034,"src":"_MG_1449_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_6715034.html","width":130,"caption":"","height":87});
															thumbnails[6715280] = clik.newPhoto({"id":6715280,"src":"_MG_1457_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_6715280.html","width":130,"caption":"Trip blanket 100% organic wool.Colours: ecru, brown and redSize: 1m80cm x1,40Price: £65","height":195});
															thumbnails[6715299] = clik.newPhoto({"id":6715299,"src":"_MG_1463_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_6715299.html","width":130,"caption":"Two trip blankets made of 100% organic wool.Size: 1m,80x1,40Colours: Ecru, Brown and redPrice for two: £120","height":195});
															thumbnails[6715304] = clik.newPhoto({"id":6715304,"src":"_MG_1466_thumb.JPG","galleries_id":184368,"server_id":1,"link":"photo_6715304.html","width":130,"caption":"100% organic wool shepard's plaid.Size: 1m95cmx1,40Colours: Ecru, BrownPrice: £65","height":195});
															thumbnails[6716221] = clik.newPhoto({"id":6716221,"src":"_MG_15701_thumb.JPG","galleries_id":366451,"server_id":1,"link":"photo_6716221.html","width":130,"caption":"100% extra virgin olive oil from Portugal<br>\r\n500ml<br>\r\nmax. acidity- 0.5%<br>\r\n£ 8.50","height":195});
															thumbnails[6716353] = clik.newPhoto({"id":6716353,"src":"_MG_0890_thumb.JPG","galleries_id":82624,"server_id":1,"link":"photo_6716353.html","width":130,"caption":"100% wool cushion made on the loom.<br>\r\n<br>\r\nAsk for price","height":98});
															thumbnails[6716381] = clik.newPhoto({"id":6716381,"src":"_MG_0904_thumb.JPG","galleries_id":292613,"server_id":1,"link":"photo_6716381.html","width":130,"caption":"100% wool runner made on the traditional looms. Extremely soft!<br>\r\nColour: cream, red<br>\r\nOnly by order<br>\r\nLength: 215cm; Width: 60cm <br>\r\nPrice: £29.99","height":87});
															thumbnails[6716386] = clik.newPhoto({"id":6716386,"src":"_MG_0910_thumb.JPG","galleries_id":292613,"server_id":1,"link":"photo_6716386.html","width":130,"caption":"Rug made of wool and cotton.<br>\r\nOnly by order.<br>\r\n215x 120<br>\r\n£90<br>\r\n","height":87});
															thumbnails[6716394] = clik.newPhoto({"id":6716394,"src":"_MG_0931_thumb.JPG","galleries_id":292613,"server_id":1,"link":"photo_6716394.html","width":130,"caption":"100% wool rug.<br>\r\nColours: cream and lilac<br>\r\nOnly by order.<br>\r\n110x60 cm<br>\r\n£29.99","height":87});
															thumbnails[6716414] = clik.newPhoto({"id":6716414,"src":"_MG_1371_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716414.html","width":130,"caption":"Barcelos' hen made by hand.<br>\r\nMaterial: clay<br>\r\n£38.00","height":195});
															thumbnails[6716426] = clik.newPhoto({"id":6716426,"src":"_MG_1372_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716426.html","width":130,"caption":"Jasmin soap with embroidery of Viana do Castelo packet.<br>\r\n£14<br>\r\n","height":87});
															thumbnails[6716533] = clik.newPhoto({"id":6716533,"src":"_MG_1393_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716533.html","width":130,"caption":"Bordalo Pinheiro's serving plate.<br>\r\nColour: cream<br>\r\nPrice: £19.99","height":87});
															thumbnails[6716582] = clik.newPhoto({"id":6716582,"src":"_MG_1423_thumb.JPG","galleries_id":366451,"server_id":1,"link":"photo_6716582.html","width":130,"caption":"\"Temperamento\" extra Virgin Olive Oil  with Fleur de Sel & Bay Leaf from Portugal. Silver medal in 2007 in Los Angeles Extra Virgin Olive Oil Competition. 500ml or 16,9 fl. oz<br>\r\n£9.99<br>\r\n","height":195});
															thumbnails[6716621] = clik.newPhoto({"id":6716621,"src":"_MG_1424_thumb.JPG","galleries_id":366451,"server_id":1,"link":"photo_6716621.html","width":130,"caption":"Extra virgin organic olive oil from Herdade da Tapada da Tojeira, Portugal.<br>\r\n500ml or 16,9 fl oz<br>\r\n£8.50","height":195});
															thumbnails[6716639] = clik.newPhoto({"id":6716639,"src":"_MG_1428_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716639.html","width":130,"caption":"Porcelane from Viana do Castelo. Coat of Arms engraved.<br>\r\n£27.50","height":195});
															thumbnails[6716654] = clik.newPhoto({"id":6716654,"src":"_MG_1429_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716654.html","width":130,"caption":"Porcelane bottle from Viana do Castelo.<br>\r\n£27.50","height":195});
															thumbnails[6716843] = clik.newPhoto({"id":6716843,"src":"IMG_2038_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716843.html","width":130,"caption":"Angels: two mats for glasses made of plastic with Portuguese tiles design.<br>\r\n£4.69<br>\r\n","height":69});
															thumbnails[6716862] = clik.newPhoto({"id":6716862,"src":"IMG_2037_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716862.html","width":130,"caption":"Boats: two place mats for glasses made of plastic with the design of a Portuguese tile.<br>\r\n£4.69","height":70});
															thumbnails[6716866] = clik.newPhoto({"id":6716866,"src":"IMG_2035_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6716866.html","width":130,"caption":"Art Nouveau design on a plastic place mat.<br>\r\n2 place mats<br>\r\n£4.69<br>\r\n ","height":108});
															thumbnails[6717615] = clik.newPhoto({"id":6717615,"src":"_MG_1575_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6717615.html","width":130,"caption":"\"Love is Blind\" - Folk Art from Estremoz. Ideal for a wedding present. Handmade with clay.<br>\r\n<br>\r\nOnly by order<br>\r\n£199","height":195});
															thumbnails[6717642] = clik.newPhoto({"id":6717642,"src":"_MG_1574_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6717642.html","width":130,"caption":"\"Azulejo\" is a scented citrus soap<br>\r\n£14","height":87});
															thumbnails[6718624] = clik.newPhoto({"id":6718624,"src":"_MG_1389_thumb.JPG","galleries_id":63508,"server_id":1,"link":"photo_6718624.html","width":130,"caption":"Bordalo Pinheiro's ceramic small \"Andorinha\".<br>\r\n£9.99<br>\r\n<br>\r\n","height":87});
															thumbnails[2912646] = clik.newPhoto({"id":2912646,"src":"cardigan1_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_2912646.html","width":130,"caption":"Venice asymmetric cardigan.<br>\r\n100% organic wool.<br>\r\nColour: Light Grey, dark brown or ecru<br>\r\nSizes: S, M, L £85.00","height":169});
															thumbnails[2912662] = clik.newPhoto({"id":2912662,"src":"DSCN71111_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_2912662.html","width":130,"caption":"100% organic burel handcrafted hat.<br>\r\nSize: M. £10<br>\r\n","height":112});
															thumbnails[2952162] = clik.newPhoto({"id":2952162,"src":"DSCN7271_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_2952162.html","width":130,"caption":"100% wool (burel) hat.<br>\r\nColour: Dark Grey. Size-M\/L.<br>\r\nPrice: £10<br>\r\n<br>\r\nWholesale available for this item.","height":173});
															thumbnails[2952163] = clik.newPhoto({"id":2952163,"src":"DSCN7272_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_2952163.html","width":130,"caption":"100%wool hat.<br>\r\nColour: Dark Grey.<br>\r\nSize: M. Price: £10","height":173});
															thumbnails[2952166] = clik.newPhoto({"id":2952166,"src":"DSCN7273_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_2952166.html","width":130,"caption":"100% wool hat.<br>\r\nSize: M. £10","height":173});
															thumbnails[2952167] = clik.newPhoto({"id":2952167,"src":"DSCN7274_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_2952167.html","width":130,"caption":"100% Lambs Wool hat.<br>\r\nColour: Light Brown.<br>\r\nSize: M. Price: £10<br>\r\n<br>\r\nWholesale available.","height":173});
															thumbnails[2952172] = clik.newPhoto({"id":2952172,"src":"DSCN7276_thumb.JPG","galleries_id":184366,"server_id":1,"link":"photo_2952172.html","width":130,"caption":"100% organic lambswool Scarf.<br>\r\nColour: Ivory + Brown. Price £12<br>\r\n<br>\r\nWholesale available.","height":173});
															thumbnails[2952186] = clik.newPhoto({"id":2952186,"src":"DSCN7288_thumb.JPG","galleries_id":184366,"server_id":1,"link":"photo_2952186.html","width":130,"caption":"100% organic lambswool Scarf<br>\r\nColour: Light Brown + Ivory (natural not dyed)<br>\r\nPrice: WAS £12 ","height":98});
															thumbnails[2952188] = clik.newPhoto({"id":2952188,"src":"DSCN7285_thumb.JPG","galleries_id":184366,"server_id":1,"link":"photo_2952188.html","width":130,"caption":"100% organic lambs wool Scarf.<br>\r\nColour: Ivory. Herringbone pattern.<br>\r\nPrice: £12.00 <br>\r\n","height":98});
															thumbnails[2952192] = clik.newPhoto({"id":2952192,"src":"DSCN7282_thumb.JPG","galleries_id":184366,"server_id":1,"link":"photo_2952192.html","width":130,"caption":"100% organic lambs Wool Scarf<br>\r\nColour: Ivory + light Brown - herringbone pattern <br>\r\nPrice: £12","height":98});
															thumbnails[2952219] = clik.newPhoto({"id":2952219,"src":"DSCN7279_thumb.JPG","galleries_id":184366,"server_id":1,"link":"photo_2952219.html","width":130,"caption":"100% organic lambs Wool Scarf<br>\r\nColour: Black + Ivory - Herringbone pattern.<br>\r\nPrice: £12<br>\r\nWholesale available.","height":98});
															thumbnails[3463766] = clik.newPhoto({"id":3463766,"src":"Drik1_thumb.jpg","galleries_id":184364,"server_id":1,"link":"photo_3463766.html","width":130,"caption":"A yellow clutch to wear on its own, giving some light to your winter look.<br>\r\n£32.50","height":130});
															thumbnails[5108722] = clik.newPhoto({"id":5108722,"src":"cardigan_2_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_5108722.html","width":130,"caption":"Venice Cardigan back. <br>\r\nAll our products are new and not pre-owned.","height":134});
															thumbnails[5117174] = clik.newPhoto({"id":5117174,"src":"casaco_malha_veneza_1_2_thumb.jpg","galleries_id":266912,"server_id":1,"link":"photo_5117174.html","width":130,"caption":"Venice asymmetric cardigan. So stylish and so versatile! You can wear it over anything. 100% Eco Woll.<br>\r\nColour: Ecru<br>\r\nUK Sizes: 8-14 Please let us know which size you want.<br>\r\n£85.00","height":182});
															thumbnails[5117302] = clik.newPhoto({"id":5117302,"src":"echarpe_uma_manga_thumb.jpg","galleries_id":266912,"server_id":1,"link":"photo_5117302.html","width":130,"caption":"Absolutely fabulous! This stylish pure wool wrap with only one sleeve to make it more comfortable to wear.<br>\r\nCollours: Ecru <br>\r\nUK Sizes: 8-16 Please ask for more sizes, we can make other sizes.<br>\r\nPrice: £69","height":199});
															thumbnails[6715474] = clik.newPhoto({"id":6715474,"src":"_MG_1477_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6715474.html","width":130,"caption":"100% organic wool hand knitted scarf and knitted hat<br>\r\nColours: ecru and brown<br>\r\n£19.99","height":195});
															thumbnails[6716077] = clik.newPhoto({"id":6716077,"src":"_MG_1485_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6716077.html","width":130,"caption":"Venice cardigan, 100% organic wool.","height":87});
															thumbnails[6716090] = clik.newPhoto({"id":6716090,"src":"_MG_1484_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6716090.html","width":130,"caption":"Brazil cardigan. 100% organic wool.<br>\r\nOne size fits all.<br>\r\nColours: dark green or brown<br>\r\n£49.99<br>\r\n<br>\r\n","height":87});
															thumbnails[6716104] = clik.newPhoto({"id":6716104,"src":"_MG_1489_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6716104.html","width":130,"caption":"100% organic wool versatile shawl.<br>\r\nOne size fits all.<br>\r\nPrice: £38","height":87});
															thumbnails[6716132] = clik.newPhoto({"id":6716132,"src":"_MG_1503_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6716132.html","width":130,"caption":"Versatile shawl  100% organic wool<br>\r\nOne size fits all.<br>\r\n£38","height":87});
															thumbnails[6716570] = clik.newPhoto({"id":6716570,"src":"_MG_1392_thumb.JPG","galleries_id":184364,"server_id":1,"link":"photo_6716570.html","width":130,"caption":"Folding bad with \"lenço dos namorados\" design.<br>\r\n<br>\r\n£8.50","height":195});
															thumbnails[6717515] = clik.newPhoto({"id":6717515,"src":"_MG_1545_thumb.JPG","galleries_id":266912,"server_id":1,"link":"photo_6717515.html","width":130,"caption":"100% wool hand knitted.","height":195});
															thumbnails[6717518] = clik.newPhoto({"id":6717518,"src":"_MG_1551_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_6717518.html","width":130,"caption":"100% organic wool hat","height":195});
															thumbnails[6717521] = clik.newPhoto({"id":6717521,"src":"_MG_1552_thumb.JPG","galleries_id":64122,"server_id":1,"link":"photo_6717521.html","width":130,"caption":"100% organic wool hat","height":195});
															thumbnails[5090759] = clik.newPhoto({"id":5090759,"src":"Brincos_BR_014_thumb.jpg","galleries_id":288966,"server_id":1,"link":"photo_5090759.html","width":130,"caption":"Lovely 24k solid gold earrings from traditional Portuguese heritage design.<br>\r\n5cm long<br>\r\n£250","height":159});
															thumbnails[5379403] = clik.newPhoto({"id":5379403,"src":"IMG_0898_thumb.JPG","galleries_id":288966,"server_id":1,"link":"photo_5379403.html","width":130,"caption":"Wonderful hand-crafted earrings from traditional Portuguese heritage designs. They are made of solid silver, <br>\r\n8 cm long\/ 3 in<br>\r\n£69","height":173});
															thumbnails[6716337] = clik.newPhoto({"id":6716337,"src":"_MG_1559_thumb.JPG","galleries_id":288966,"server_id":1,"link":"photo_6716337.html","width":130,"caption":"Oxidized solid silver \"rainha\" earrings from Portugal.Material: silverPrice: £79.99","height":195});
															thumbnails[6716348] = clik.newPhoto({"id":6716348,"src":"_MG_1555_thumb.JPG","galleries_id":288966,"server_id":1,"link":"photo_6716348.html","width":130,"caption":"Very small solid silver earrings \"rainha\"<br>\r\n£15","height":249});
															thumbnails[3337392] = clik.newPhoto({"id":3337392,"src":"mat1_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_3337392.html","width":130,"caption":"Matilde has a new red cap she is going to show it to her best friends. Do not change clothes. Matilde is a handmade and one of a kind dolls. 40cm tall £38.50","height":209});
															thumbnails[3337415] = clik.newPhoto({"id":3337415,"src":"mat2_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_3337415.html","width":130,"caption":"Matilde - hand made and one of a kind dolls","height":202});
															thumbnails[3463248] = clik.newPhoto({"id":3463248,"src":"mat5_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_3463248.html","width":130,"caption":"Matilde hand made with high quality fabrics and one of a kind dolls. Can change clothes and is 40cm tall. Machine washable with cold or warm water. £45.50","height":195});
															thumbnails[3463257] = clik.newPhoto({"id":3463257,"src":"mat7_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_3463257.html","width":130,"caption":"Boy 38.50","height":203});
															thumbnails[5080474] = clik.newPhoto({"id":5080474,"src":"IMG_0830_thumb.JPG","galleries_id":213452,"server_id":1,"link":"photo_5080474.html","width":130,"caption":"Boy. <br>\r\nHandmade and one of a kind doll.<br>\r\nNOT AVAILABLE","height":209});
															thumbnails[5683804] = clik.newPhoto({"id":5683804,"src":"mergulhadora_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683804.html","width":130,"caption":"Matilde ready for summer diving. Clothes can be changed. £49.99","height":184});
															thumbnails[5683819] = clik.newPhoto({"id":5683819,"src":"com_saia_camisola_e_botas-1_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683819.html","width":130,"caption":"Matilde with a nice spring skirt. Clothes can be changed. £45.50","height":198});
															thumbnails[5683848] = clik.newPhoto({"id":5683848,"src":"saia_de_bailarina_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683848.html","width":130,"caption":"Bailarina skirt for Matilde<br>\r\n<br>\r\n£7","height":98});
															thumbnails[5683873] = clik.newPhoto({"id":5683873,"src":"2105530114_681936461d_o_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683873.html","width":130,"caption":"Diving suit<br>\r\n<br>\r\n£12","height":166});
															thumbnails[5683917] = clik.newPhoto({"id":5683917,"src":"esquimó_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683917.html","width":130,"caption":"Matilde with a lovely spring dress and fury boots. Can change clothes.<br>\r\nSOLD<br>\r\n<br>\r\n","height":191});
															thumbnails[5683926] = clik.newPhoto({"id":5683926,"src":"esquimó2_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683926.html","width":130,"caption":"Matilde from North Pole. Clothes can be changed. £45.50","height":186});
															thumbnails[5683965] = clik.newPhoto({"id":5683965,"src":"esquimós_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683965.html","width":130,"caption":"","height":173});
															thumbnails[5683968] = clik.newPhoto({"id":5683968,"src":"dogs_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_5683968.html","width":130,"caption":"Matilde's Dogs are so cute! Felt fabric. 16cm long  £18 each","height":125});
															thumbnails[6716945] = clik.newPhoto({"id":6716945,"src":"IMG_2042_thumb.JPG","galleries_id":213452,"server_id":1,"link":"photo_6716945.html","width":130,"caption":"Matilde's dog<br>\r\n£18","height":69});
															thumbnails[6716957] = clik.newPhoto({"id":6716957,"src":"IMG_2045_thumb.JPG","galleries_id":213452,"server_id":1,"link":"photo_6716957.html","width":130,"caption":"Matilde's dog<br>\r\n£18","height":63});
															thumbnails[6718639] = clik.newPhoto({"id":6718639,"src":"_MG_1378_thumb.JPG","galleries_id":82218,"server_id":1,"link":"photo_6718639.html","width":130,"caption":"Wooden spinning top<br>\r\n£9<br>\r\n","height":87});
															thumbnails[7100950] = clik.newPhoto({"id":7100950,"src":"959-_patinha_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7100950.html","width":130,"caption":"Matilde duck from the Farm Collection. £45.50","height":137});
															thumbnails[7153280] = clik.newPhoto({"id":7153280,"src":"957-_ursinha_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7153280.html","width":130,"caption":"Matilde bear from the forest collection. £45.50","height":137});
															thumbnails[7153440] = clik.newPhoto({"id":7153440,"src":"960-_esquimó_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7153440.html","width":130,"caption":"Matilde from the North Pole. £45.50","height":127});
															thumbnails[7153735] = clik.newPhoto({"id":7153735,"src":"IMG_2082_thumb.JPG","galleries_id":213452,"server_id":1,"link":"photo_7153735.html","width":130,"caption":"Lovely sheep. It can take off its woolen coat. £33.14","height":99});
															thumbnails[7153750] = clik.newPhoto({"id":7153750,"src":"IMG_2091_thumb.JPG","galleries_id":213452,"server_id":1,"link":"photo_7153750.html","width":130,"caption":"","height":98});
															thumbnails[7182920] = clik.newPhoto({"id":7182920,"src":"ovelhinha_2_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7182920.html","width":130,"caption":"sheep with removable fur","height":111});
															thumbnails[7182925] = clik.newPhoto({"id":7182925,"src":"ovelhinha_21_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7182925.html","width":130,"caption":"Sweet sheep. Can take off her fur for spring and summer days. SOLD","height":111});
															thumbnails[7182929] = clik.newPhoto({"id":7182929,"src":"ovelha_I_thumb.jpg","galleries_id":213452,"server_id":1,"link":"photo_7182929.html","width":130,"caption":"Sweet sheep by Matilde B. it can take her fur off for spring and summer days. £33.14","height":104});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[184364] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bags","link":"section73791_184364.html","maxRecords":0.0,"photoIDs":[3463766.0,6716570.0],"skipIndex":0,"section_code":"section73791","featured_images":"6716570,3463766","id":184364,"singleSection":false});				  						galleries[266912] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Clothes","link":"section73791_266912.html","maxRecords":0.0,"photoIDs":[2912646.0,5108722.0,5117174.0,5117302.0,6715474.0,6716077.0,6716090.0,6716104.0,6716132.0,6717515.0],"skipIndex":0,"section_code":"section73791","featured_images":"6717515,6716132,6716104,6716090,6716077,6715474,5117302,5117174,5108722,2912646","id":266912,"singleSection":false});				  						galleries[184353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fabric accessories","link":"section73794_184353.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section73794","featured_images":"","id":184353,"singleSection":false});				  						galleries[213452] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fabric dolls","link":"section114107_213452.html","maxRecords":0.0,"photoIDs":[3337392.0,3337415.0,3463248.0,3463257.0,5080474.0,5683804.0,5683819.0,5683848.0,5683873.0,5683917.0,5683926.0,5683965.0,5683968.0,6716945.0,6716957.0,7100950.0,7153280.0,7153440.0,7153735.0,7153750.0,7182920.0,7182925.0,7182929.0],"skipIndex":0,"section_code":"section114107","featured_images":"7100950,5683804,3337392","id":213452,"singleSection":false});				  						galleries[64122] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Head accessories","link":"section73791_64122.html","maxRecords":0.0,"photoIDs":[2912662.0,2952162.0,2952163.0,2952166.0,2952167.0,6717518.0,6717521.0],"skipIndex":0,"section_code":"section73791","featured_images":6717521.0,"id":64122,"singleSection":false});				  						galleries[288966] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jewellery","link":"section73794_288966.html","maxRecords":0.0,"photoIDs":[5090759.0,5379403.0,6716337.0,6716348.0],"skipIndex":0,"section_code":"section73794","featured_images":"6716348,6716337,5379403,5090759","id":288966,"singleSection":false});				  						galleries[184366] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scarves","link":"section73791_184366.html","maxRecords":0.0,"photoIDs":[2952172.0,2952186.0,2952188.0,2952192.0,2952219.0],"skipIndex":0,"section_code":"section73791","featured_images":2952188.0,"id":184366,"singleSection":false});				  						galleries[266914] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shoes","link":"section73791_266914.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section73791","featured_images":"","id":266914,"singleSection":false});				  						galleries[82218] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wooden toys","link":"section114107_82218.html","maxRecords":0.0,"photoIDs":[6718639.0],"skipIndex":0,"section_code":"section114107","featured_images":6718639.0,"id":82218,"singleSection":false});				  						galleries[184368] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wools","link":"section73790_184368.html","maxRecords":0.0,"photoIDs":[2912284.0,2912637.0,2912638.0,2912639.0,2912641.0,2912644.0,2912649.0,5117305.0,5117334.0,6714921.0,6715034.0,6715280.0,6715299.0,6715304.0],"skipIndex":0,"section_code":"section73790","featured_images":5117305.0,"id":184368,"singleSection":false});				  						galleries[63508] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Accents","link":"section73790_63508.html","maxRecords":0.0,"photoIDs":[609278.0,1666814.0,6716414.0,6716426.0,6716533.0,6716639.0,6716654.0,6716843.0,6716862.0,6716866.0,6717615.0,6717642.0,6718624.0],"skipIndex":0,"section_code":"section73790","featured_images":"6717642,609278","id":63508,"singleSection":false});				  						galleries[366451] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Delicatessen","link":"section73790_366451.html","maxRecords":0.0,"photoIDs":[6716221.0,6716582.0,6716621.0],"skipIndex":0,"section_code":"section73790","featured_images":"6716621,6716582,6716221","id":366451,"singleSection":false});				  						galleries[289183] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Furniture","link":"section73790_289183.html","maxRecords":0.0,"photoIDs":[609287.0,637149.0,1727958.0,1727982.0],"skipIndex":0,"section_code":"section73790","featured_images":"1727982,637149","id":289183,"singleSection":false});				  						galleries[63507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lighting","link":"section73790_63507.html","maxRecords":0.0,"photoIDs":[609285.0,814552.0],"skipIndex":0,"section_code":"section73790","featured_images":609285.0,"id":63507,"singleSection":false});				  						galleries[292613] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rugs","link":"section73790_292613.html","maxRecords":0.0,"photoIDs":[833996.0,834003.0,6716381.0,6716386.0,6716394.0],"skipIndex":0,"section_code":"section73790","featured_images":833996.0,"id":292613,"singleSection":false});				  						galleries[82624] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cushions","link":"section73790_82624.html","maxRecords":0.0,"photoIDs":[833967.0,833985.0,843829.0,6716353.0],"skipIndex":0,"section_code":"section73790","featured_images":833967.0,"id":82624,"singleSection":false});				  						galleries[203456] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scultures","link":"section73790_203456.html","maxRecords":0.0,"photoIDs":[825299.0],"skipIndex":0,"section_code":"section73790","featured_images":825299.0,"id":203456,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5093548';
imageSets[2] = '7100950,6718639,6717642,6717521,6716151,5683804,5117305,3337392,2952188,1727982,1125955,833996,833967,637149,609285,609278,452269';
imageSets[3] = '7182929,7182925,7182920,7153750,7153735,7153440,7153280,7100950,6718639,6718624,6717642,6717615,6717521,6717518,6717515,6716957,6716945,6716866,6716862,6716843,6716654,6716639,6716621,6716582,6716570,6716533,6716426,6716414,6716394,6716386,6716381,6716374,6716360,6716353,6716348,6716337,6716221,6716151,6716139,6716132,6716104,6716090,6716077,6715474,6715304,6715299,6715280,6715034,6714921,5683968';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sararocha/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sararocha/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sararocha/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sararocha/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sararocha/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sararocha/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sararocha/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section73790.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 && 'section73790' != '') {
					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 = 'Handmade, please!: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="sareli@tiscali.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="sareli@tiscali.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

