function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[452269]=new thumbnail(452269,"","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. ","DSCN4616_thumb.JPG",130,173,1);thumbnails[609287]=new thumbnail(609287,"289183","Roman table £320 (delivery costs by arrangement)","romantable_thumb.jpg",130,87,1);thumbnails[637149]=new thumbnail(637149,"289183","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","Table_thumb.jpg",130,81,1);thumbnails[637151]=new thumbnail(637151,"","High quality cottons, made on a loom. Contact us for more details. Each linen will cost around £95.","Linen_thumb.jpg",130,104,1);thumbnails[825299]=new thumbnail(825299,"203456","Hens made of iron for the garden. £150.00 each","Portugal, Oct 2006_175_thumb.JPG",130,87,1);thumbnails[829771]=new thumbnail(829771,"","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","DPP_000025_thumb.JPG",130,98,1);thumbnails[831524]=new thumbnail(831524,"","«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","DPP_000030_thumb.JPG",130,98,1);thumbnails[831538]=new thumbnail(831538,"","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","DPP_000031_thumb.JPG",130,98,1);thumbnails[833994]=new thumbnail(833994,"","«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","DPP_000039_thumb.JPG",130,97,1);thumbnails[833996]=new thumbnail(833996,"292613","«Tulipas». Made to order (at least 4 months). We can make all sizes. <br>\r\nFrom £1200","DPP_000040_thumb.JPG",130,185,1);thumbnails[834003]=new thumbnail(834003,"292613","«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","DPP_000041_thumb.JPG",130,176,1);thumbnails[1125955]=new thumbnail(1125955,"","«Girl» solar print & watercolor by Sara Rocha<br>\r\n£120.00. <br>\r\nOnly by order.<br>\r\n","DSCN6466_thumb.JPG",130,173,1);thumbnails[1296384]=new thumbnail(1296384,"","","DSC_3195_thumb.jpg",130,170,1);thumbnails[1322451]=new thumbnail(1322451,"184352","Turquoise beads and coral sticks necklace. <br>\r\nBy order only £199","DSCN6560_thumb.JPG",130,221,1);thumbnails[1322454]=new thumbnail(1322454,"184352","Stunning coral necklace made of true coral. Contact us to buy this item.<br>\r\n £400 ","DSCN6562_thumb.JPG",130,93,1);thumbnails[1323306]=new thumbnail(1323306,"184352","Onyx necklace with a chunk of coral. Only by order £155","JLS_000052_thumb.JPG",130,170,1);thumbnails[1658266]=new thumbnail(1658266,"","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 ","coral281_thumb.JPG",130,173,1);thumbnails[1658268]=new thumbnail(1658268,"","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.","DSCN6697_thumb.JPG",130,272,1);thumbnails[1666814]=new thumbnail(1666814,"184353","Brooch Lolly pop made from fabric. Only by order.<br>\r\n£15 ","coral268_thumb.JPG",130,195,1);thumbnails[1666817]=new thumbnail(1666817,"","Lambskin Gilet for children 3-8 years old, £70.89","DSCN6714_thumb.JPG",130,142,1);thumbnails[1666818]=new thumbnail(1666818,"","Solar plate print «Pitbull» by Sara Rocha.<br>\r\n£100","DSCN2521_thumb.JPG",130,182,1);thumbnails[1703604]=new thumbnail(1703604,"","A felt cap handmade with felt leaves embellishments on the front.<br>\r\nSOLD<br>\r\nOnly available by order £70","_MG_0145_thumb.JPG",130,189,1);thumbnails[1727982]=new thumbnail(1727982,"289183","Light Grey chair made of solid wood and iron. £89.00. (Delivery price not included.)","whitechair_1_thumb.jpg",130,195,1);thumbnails[2912284]=new thumbnail(2912284,"184368","Baby's 100% 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.","DSCN7086_thumb.JPG",130,173,1);thumbnails[2912637]=new thumbnail(2912637,"184368","Shepard's blanket<br>\r\n100% lambs wool handcrafted<br>\r\nColour: Ivory + brown. <br>\r\nSize: 1,90cm x1,40cm.<br>\r\nwholesale available.<br>\r\nPrice: £80.50<br>\r\nSOLD OUT<br>\r\nAVAILABLE BY ORDER<br>\r\n","DSCN7090_thumb.JPG",130,185,1);thumbnails[2912638]=new thumbnail(2912638,"184368","Shepard's plaid.<br>\r\n100% lambs wool handcrafted.<br>\r\nColour: Ivory and Brown.<br>\r\nSize: 1,90cm x 1,40cm.<br>\r\nPrice: £80.50.<br>\r\nWholesale available.","DSCN7091_thumb.JPG",130,188,1);thumbnails[2912639]=new thumbnail(2912639,"184368","Shepherd's plaid.<br>\r\n100% natural lambs wool.<br>\r\nColour: Brown, Ivory, Grey. <br>\r\nSize: 1,90 x 1,40 m; 500g/m2.<br>\r\nPrice: £80.50  <br>\r\n","DSCN7092_thumb.JPG",130,170,1);thumbnails[2912641]=new thumbnail(2912641,"184368","Trip blanket.<br>\r\n100% natural lambs wool.<br>\r\n1,80 x 1,30 m.<br>\r\n360 gr.<br>\r\nColour: Ivory, Brown with a red thin line, asymmetrical design. <br>\r\nPrice: 80.50 <br>\r\nWholesale available.","DSCN7093_thumb.JPG",130,182,1);thumbnails[2912644]=new thumbnail(2912644,"184368","Shepherd's Plaid.<br>\r\n100% pure lambs wool.<br>\r\nColour: Brown, Ivory, Beige Stripes. <br>\r\nSize: 1,90 x 1,40 m; 500g/m2.<br>\r\nPrice: £80.50<br>\r\nWholesale available.","DSCN7098_thumb.JPG",130,187,1);thumbnails[2912646]=new thumbnail(2912646,"266912","Venice asymmetric cardigan.<br>\r\n100% Wool.<br>\r\nColour: Light Grey, dark brown or ecru<br>\r\nUK Sizes: 8-14 £85.00","cardigan1_thumb.JPG",130,169,1);thumbnails[2912649]=new thumbnail(2912649,"266914","Unisex Slippers  100% wool.<br>\r\nSize 38.<br>\r\nColour: Beige, Grey, Ivory and red.<br>\r\nPrice: WAS £12.50; NOW £9<br>\r\n<br>\r\nWholesale available for this item. Contact us.","DSCN7106_thumb.JPG",130,171,1);thumbnails[2912653]=new thumbnail(2912653,"","","DSCN7117_thumb.JPG",130,173,1);thumbnails[2912662]=new thumbnail(2912662,"64122","100% Wool handcrafted hat.<br>\r\nSize: M. WAS £15.00, NOW £10<br>\r\n","DSCN71111_thumb.JPG",130,112,1);thumbnails[2926791]=new thumbnail(2926791,"","Santa Claus pendant for Christmas trees, door knobs. <br>\r\nPrice:£4.90","xmasml_thumb.JPG",130,172,1);thumbnails[2952162]=new thumbnail(2952162,"64122","100% wool hat.<br>\r\nColour: Dark Grey. Size-M/L.<br>\r\nPrice: WAS £15, NOW £10<br>\r\n<br>\r\nWholesale available for this item.","DSCN7271_thumb.JPG",130,173,1);thumbnails[2952163]=new thumbnail(2952163,"64122","100%wool hat.<br>\r\nColour: Dark Grey.<br>\r\nSize: M. Price:  WAS £15, NOW £10","DSCN7272_thumb.JPG",130,173,1);thumbnails[2952166]=new thumbnail(2952166,"64122","100% wool hat.<br>\r\nSize: M. Was £15, NOW £10","DSCN7273_thumb.JPG",130,173,1);thumbnails[2952167]=new thumbnail(2952167,"64122","100% Lambs Wool hat.<br>\r\nColour: Light Brown.<br>\r\nSize: M. Price: WAS £15, NOW £10<br>\r\n<br>\r\nWholesale available.","DSCN7274_thumb.JPG",130,173,1);thumbnails[2952172]=new thumbnail(2952172,"184366","100% Eco Lambswool Scarf.<br>\r\nColour: Ivory + Brown. Price WAS £16.00, NOW £11<br>\r\n<br>\r\nWholesale available.","DSCN7276_thumb.JPG",130,173,1);thumbnails[2952186]=new thumbnail(2952186,"184366","100% Eco Lambswool Scarf<br>\r\nColour: Light Brown + Ivory (natural not dyed)<br>\r\nPrice: WAS £16.00, NOW £11 ","DSCN7288_thumb.JPG",130,98,1);thumbnails[2952188]=new thumbnail(2952188,"184366","100% Eco Lambswool Scarf.<br>\r\nColour: Ivory. Herringbone pattern.<br>\r\nPrice: £16.00 <br>\r\n","DSCN7285_thumb.JPG",130,98,1);thumbnails[2952192]=new thumbnail(2952192,"184366","100% Eco Lambs Wool Scarf<br>\r\nColour: Ivory + light Brown - herringbone pattern <br>\r\nPrice: WAS £16.00; NOW £12","DSCN7282_thumb.JPG",130,98,1);thumbnails[2952219]=new thumbnail(2952219,"184366","100% Eco Lambs Wool Scarf<br>\r\nColour: Black + Ivory - Herringbone pattern.<br>\r\nPrice: WAS£16.00; NOW £12<br>\r\nWholesale available.","DSCN7279_thumb.JPG",130,98,1);thumbnails[3337392]=new thumbnail(3337392,"213452","Matilde has a new red cap she is going to show it to her best friends. Do not change clothes.<br>\r\nMatilde is a handmade and one of a kind dolls.<br>\r\n40cm tall<br>\r\n£38.60","mat1_thumb.jpg",130,209,1);thumbnails[3337415]=new thumbnail(3337415,"213452",'Matilde - hand made and one of a kind dolls". 40 cm tall. Clothes do not change.<br>\r\n£38.60',"mat2_thumb.jpg",130,202,1);thumbnails[3463248]=new thumbnail(3463248,"213452","Matilde hand made with high quality fabrics and one of a kind dolls.<br>\r\nCan change clothes and is 40cm tall.<br>\r\nMachine washable with cold or warm water.<br>\r\n£40.60","mat5_thumb.jpg",130,195,1);thumbnails[3463257]=new thumbnail(3463257,"213452",'Boy. "Matilde - handmade and one of a kind dolls". Do not change clothes.<br>\r\n40cm tall<br>\r\n£38.60',"mat7_thumb.jpg",130,203,1);thumbnails[3463766]=new thumbnail(3463766,"184364","A yellow clutch to wear on its own, giving some light to your winter look.<br>\r\n£32.50","Drik1_thumb.jpg",130,130,1);thumbnails[5080474]=new thumbnail(5080474,"213452","Boy. <br>\r\nHandmade and one of a kind doll.<br>\r\nSOLD OUT","IMG_0830_thumb.JPG",130,209,1);thumbnails[5090759]=new thumbnail(5090759,"288966","Lovely 24k solid gold hearings from traditional Portuguese heritage design.<br>\r\n5cm long<br>\r\n£250","Brincos_BR_014_thumb.jpg",130,159,1);thumbnails[5093548]=new thumbnail(5093548,"","SALES - UP TO 50%","Handmade_1_thumb.JPG",130,184,1);thumbnails[5108722]=new thumbnail(5108722,"266912","Venice Cardigan back. <br>\r\nAll our products are new and not pre-owned.","cardigan_2_thumb.JPG",130,134,1);thumbnails[5116671]=new thumbnail(5116671,"","","Portugal_Dec_2006_094_thumb.JPG",130,90,1);thumbnails[5117157]=new thumbnail(5117157,"","Coat with hood and it has an embroidery on the pocket and on the sleeves. Only by order to ensure the perfect fit.<br>\r\n100% Ecological Wool <br>\r\nColour: Brown and ecru<br>\r\nSizes: All<br>\r\n£200","canadiana_capuz__bordada1_thumb.jpg",130,216,1);thumbnails[5117162]=new thumbnail(5117162,"","Scottish style coat. 100% Eco Wool and handmade.<br>\r\nAll sizes by order. Please let us know your size.<br>\r\nEU sizes: S, M, L<br>\r\nFrom £200<br>\r\n<br>\r\n","canadiana_capuz_escocia_thumb.jpg",130,195,1);thumbnails[5117174]=new thumbnail(5117174,"266912","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","casaco_malha_veneza_1_2_thumb.jpg",130,182,1);thumbnails[5117302]=new thumbnail(5117302,"266912","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","echarpe_uma_manga_thumb.jpg",130,199,1);thumbnails[5117305]=new thumbnail(5117305,"184368","","mantas_pastor_filetemarfim_fileteespinha_thumb.jpg",130,139,1);thumbnails[5117312]=new thumbnail(5117312,"","Shepard's plaid, 100% Eco lambswool handcrafted.<br>\r\nCollour: Ivory and brown.<br>\r\nSize: 1,90cm x 1,40cm<br>\r\nPrice: 80.50","manta_pastor_regional_thumb.jpg",130,173,1);thumbnails[5117334]=new thumbnail(5117334,"184368","Blanket made of 100% Eco lambs wool.<br>\r\nSize: 1,80x1,30cm and weighs 360gr.<br>\r\nColour: Ivory and Brown<br>\r\nPrice: 80.50 ","manta_pastor_risca_thumb.jpg",130,136,1);thumbnails[5207033]=new thumbnail(5207033,"","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","Drika_B-_Weekender_bag_99_thumb.jpg",130,130,1);thumbnails[5207066]=new thumbnail(5207066,"184364","This colorful pouch is great for that extra organization inside a larger bag or just to wear on your wrist. Roomy enough for holding important little things. £30.50","il_430xN102105012_thumb.jpg",130,130,1);thumbnails[5379403]=new thumbnail(5379403,"288966","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","IMG_0898_thumb.JPG",130,173,1);thumbnails[5415543]=new thumbnail(5415543,"","This wonderful orange tote bag will definitely lighten up any outfit! Practical, durable and with plenty of room for all your things! 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","91_thumb.jpg",130,130,1);thumbnails[5683804]=new thumbnail(5683804,"213452","Matilde ready for summer diving. Clothes can be changed.<br>\r\n£42.60<br>\r\n<br>\r\n","mergulhadora_thumb.jpg",130,184,1);thumbnails[5683819]=new thumbnail(5683819,"213452","Matilde with a nice spring skirt. Clothes can be changed.<br>\r\n£40.60","com_saia_camisola_e_botas-1_thumb.jpg",130,198,1);thumbnails[5683848]=new thumbnail(5683848,"213452","Bailarina skirt for Matilde<br>\r\n<br>\r\n£7","saia_de_bailarina_thumb.jpg",130,98,1);thumbnails[5683873]=new thumbnail(5683873,"213452","Diving suit<br>\r\n<br>\r\n£12","2105530114_681936461d_o_thumb.jpg",130,166,1);thumbnails[5683917]=new thumbnail(5683917,"213452","Matilde with a lovely spring dress and fury boots. Can change clothes.<br>\r\n<br>\r\n£42.50","esquimó_thumb.jpg",130,191,1);thumbnails[5683926]=new thumbnail(5683926,"213452","Matilde from Polo Norte. Clothes can be changed.<br>\r\n£42.60 ","esquimó2_thumb.jpg",130,186,1);thumbnails[5683965]=new thumbnail(5683965,"213452","","esquimós_thumb.jpg",130,173,1);thumbnails[5683968]=new thumbnail(5683968,"213452","Matilde's Dogs are so cute!<br>\r\nFelt fabric. 16cm long<br>\r\n<br>\r\n£18 each","dogs_thumb.jpg",130,125,1);thumbnails[609278]=new thumbnail(609278,"63508","Iron candlestick for rectangle candles or to electrify.<br>\r\n£100","candlestick_thumb.jpg",130,195,1);thumbnails[1563377]=new thumbnail(1563377,"63508","Little flower and apple that you can make necklaces, brooches or other decor applications.<br>\r\nPrice: Lot of two £ 7.00","JLS_0000582_thumb.JPG",130,98,1);thumbnails[1727958]=new thumbnail(1727958,"63508","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.","Towelrack5_thumb.JPG",130,173,1);thumbnails[2895842]=new thumbnail(2895842,"63508","Marafonas: with silk dresses £5.00 each, and 2 with Liberty dresses £7.00. <br>\r\n","DSCN6993_thumb.JPG",130,62,1);thumbnails[2895843]=new thumbnail(2895843,"63508","3 marafonas for only £27","DSCN6995_thumb.JPG",130,97,1);thumbnails[609285]=new thumbnail(609285,"63507","Iron oak leaves sconce<br>\r\n£390.00 (transport not included)","oaksconce_thumb.jpg",130,195,1);thumbnails[814552]=new thumbnail(814552,"63507","Iron oak leaves lantern (rust colour)<br>\r\n£550.00<br>\r\n","DPP_0001_thumb.JPG",130,258,1);thumbnails[833967]=new thumbnail(833967,"82624","«Cockrell» arraiolos cushion.","DPP_0000035_thumb.JPG",130,129,1);thumbnails[833985]=new thumbnail(833985,"82624","«Hen» arraiolos cushion.","DPP_000037_thumb.JPG",130,126,1);thumbnails[843829]=new thumbnail(843829,"82624","«Seteais» Arraiolos cushion. Please ask us for prices as they depend on size.<br>\r\nFrom £99","DPP_000043_thumb.JPG",130,133,1);var galleries=new Object();galleries[184364]=new gallery(184364,"5207066,3463766","Bags","section73791",[3463766,5207066]);galleries[266912]=new gallery(266912,"5117302,5117174,5108722,2912646","Clothes","section73791",[2912646,5108722,5117174,5117302]);galleries[184352]=new gallery(184352,"1323306,1322454,1322451","Coral ","section73794",[1322451,1322454,1323306]);galleries[184353]=new gallery(184353,"1666814","Fabric accessories","section73794",[1666814]);galleries[213452]=new gallery(213452,"5683804,3337392","Fabric dolls","section114107",[3337392,3337415,3463248,3463257,5080474,5683804,5683819,5683848,5683873,5683917,5683926,5683965,5683968]);galleries[289183]=new gallery(289183,"1727982,637149","Furniture","section73790",[609287,637149,1727982]);galleries[64122]=new gallery(64122,"2952167,2952166,2952163,2952162,2912662","Head accessories","section73791",[2912662,2952162,2952163,2952166,2952167]);galleries[288966]=new gallery(288966,"5379403,5090759","Jewellery","section73794",[5090759,5379403]);galleries[292613]=new gallery(292613,"833996","Rugs","section73790",[833996,834003]);galleries[184366]=new gallery(184366,"2952188","Scarves","section73791",[2952172,2952186,2952188,2952192,2952219]);galleries[203456]=new gallery(203456,"825299","Scultures","section73790",[825299]);galleries[266914]=new gallery(266914,"2912649","Shoes","section73791",[2912649]);galleries[82218]=new gallery(82218,"","Wood toys","section114107",[]);galleries[184368]=new gallery(184368,"5117305","Wools","section73790",[2912284,2912637,2912638,2912639,2912641,2912644,5117305,5117334]);galleries[63508]=new gallery(63508,"609278","Accents","section73790",[609278,1563377,1727958,2895842,2895843]);galleries[63507]=new gallery(63507,"609285","Lighting","section73790",[609285,814552]);galleries[82624]=new gallery(82624,"833967","Cushions","section73790",[833967,833985,843829]);var imageSets=new Object();imageSets[1]="5093548";imageSets[2]="5683804,5117305,3337392,2952188,1727982,1125955,833996,833967,637149,609285,609278,452269";imageSets[3]="5683968,5683965,5683926,5683917,5683873,5683848,5683819,5683804,5415543,5379403,5207066,5207033,5117334,5117312,5117305,5117302,5117174,5117162,5117157,5116671,5108722,5093548,5090759,5080474,3463766,3463257,3463248,3337415,3337392,2952219,2952192,2952188,2952186,2952172,2952167,2952166,2952163,2952162,2926791,2912662,2912653,2912649,2912646,2912644,2912641,2912639,2912638,2912637,2912284,2895843";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/sararocha/images";break}switch(a){case 1:b="http://www1.clikpic.com/sararocha/images";break}switch(a){case 2:b="http://admin.clikpic.com/sararocha/images";break}switch(a){case 24:b="http://tpc15/clikpic/sararocha/images";break}switch(a){case 4:b="http://www.clikchurch.com/sararocha/images";break}switch(a){case 5:b="http://www2.clikpic.com/sararocha/images";break}switch(a){case 22:b="http://tpc5/clikpic/sararocha/images";break}switch(a){case 23:b="http://tpc10/clikpic/sararocha/images";break}switch(a){case 25:b="http://tpc16/clikpic/sararocha/images";break}switch(a){case 15:b="http://www3.clikpic.com/sararocha/images";break}switch(a){case 18:b="http://www4.clikpic.com/sararocha/images";break}switch(a){case 19:b="http://www5.clikpic.com/sararocha/images";break}switch(a){case 31:b="http://www7.clikpic.com/sararocha/images";break}switch(a){case 32:b="http://admin2.clikpic.com/sararocha/images";break}switch(a){case 33:b="http://www8.clikpic.com/sararocha/images";break}switch(a){case 34:b="http://www9.clikpic.com/sararocha/images";break}switch(a){case 35:b="http://admin3.clikpic.com/sararocha/images";break}switch(a){case 37:b="http://admin4.clikpic.com/sararocha/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("section73790"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section73790.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("section73790"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Handmade, please!: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="sareli@tiscali.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="sareli@tiscali.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};