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[1432504]=new thumbnail(1432504,"","","color therapyOK_thumb.jpg",130,120,15);thumbnails[1848967]=new thumbnail(1848967,"124459","TECH SPECS","techspek_thumb.jpg",130,98,15);thumbnails[1851519]=new thumbnail(1851519,"124601","JAUNE/YELLOW","refsJAUNE2_thumb.jpg",130,78,15);thumbnails[4555684]=new thumbnail(4555684,"112309","","lee0908_thumb.jpg",130,184,15);thumbnails[1851522]=new thumbnail(1851522,"124601","ORANGE/CORAIL/CORAL","refsORANGE2_thumb.jpg",130,96,15);thumbnails[1851524]=new thumbnail(1851524,"124601","ROUGE/RED","refsROUGE2_thumb.jpg",130,78,15);thumbnails[1851527]=new thumbnail(1851527,"124601","VIOLET/PURPLE","refsVIOLET2_thumb.jpg",130,97,15);thumbnails[1851523]=new thumbnail(1851523,"124601","ROSE/PINK","refsROSE21_thumb.jpg",130,96,15);thumbnails[1851520]=new thumbnail(1851520,"124601","MAGENTA","refsMAGENTA2_thumb.jpg",130,78,15);thumbnails[1764433]=new thumbnail(1764433,"","","laura F_thumb.jpg",130,94,15);thumbnails[1851525]=new thumbnail(1851525,"124601","TURQUOISE/TURCOISE","refsTURQUOISE2_thumb.jpg",130,78,15);thumbnails[1851515]=new thumbnail(1851515,"124601","BLEU/BLUE","refsBLEU21_thumb.jpg",130,80,15);thumbnails[1851526]=new thumbnail(1851526,"124601","VERT/GREEN","refsVERT2_thumb.jpg",130,114,15);thumbnails[1851514]=new thumbnail(1851514,"124601","BLANC/WHITE","refsBLANC2_thumb.jpg",130,44,15);thumbnails[4555685]=new thumbnail(4555685,"112309","","cacam09_thumb.jpg",130,184,15);thumbnails[1851521]=new thumbnail(1851521,"124601","NOIR/BLACK","refsNOIR2_thumb.jpg",130,46,15);thumbnails[1851518]=new thumbnail(1851518,"124601","GRIS/GREY","refsGRIS2_thumb.jpg",130,78,15);thumbnails[1851516]=new thumbnail(1851516,"124601","BRUN/BROWN","refsBRUN2_thumb.jpg",130,78,15);thumbnails[1851517]=new thumbnail(1851517,"124601","FLUO","refsFLUO2_thumb.jpg",130,101,15);thumbnails[1854638]=new thumbnail(1854638,"124601","COLLIER/NECKLACE","refsCOLLIER_thumb.jpg",130,87,15);thumbnails[2497811]=new thumbnail(2497811,"124601","PERLES/PEARLS","refsPERLES_thumb.jpg",130,87,15);thumbnails[4555686]=new thumbnail(4555686,"112309","","09_thumb.jpg",130,184,15);thumbnails[4555692]=new thumbnail(4555692,"112309","","081_thumb.jpg",130,184,15);thumbnails[4555697]=new thumbnail(4555697,"112309","","ginza0509_thumb.jpg",130,184,15);thumbnails[4555698]=new thumbnail(4555698,"112309","","fudge097_thumb.jpg",130,184,15);thumbnails[4555699]=new thumbnail(4555699,"112309","","lee0906_thumb.jpg",130,184,15);thumbnails[4555700]=new thumbnail(4555700,"112309","","pynky09_thumb.jpg",130,184,15);thumbnails[4578432]=new thumbnail(4578432,"112309","","anecan09_thumb.jpg",130,184,15);thumbnails[4578433]=new thumbnail(4578433,"112309","","gview_thumb.jpg",130,177,15);thumbnails[4578436]=new thumbnail(4578436,"112309","","ninas09_thumb.jpg",130,184,15);thumbnails[5261111]=new thumbnail(5261111,"112309","","soen12092_thumb.jpg",130,184,15);thumbnails[5261110]=new thumbnail(5261110,"112309","","soen1209_thumb.jpg",130,184,15);thumbnails[1694239]=new thumbnail(1694239,"112309","","COUVERTURE OUI_thumb.jpg",130,175,15);thumbnails[5261112]=new thumbnail(5261112,"112309","","voce101_thumb.jpg",130,184,15);thumbnails[1763754]=new thumbnail(1763754,"112309","","marie claire_thumb.jpg",130,130,15);thumbnails[1664077]=new thumbnail(1664077,"112309","","le colette_thumb.jpg",130,130,15);thumbnails[1764402]=new thumbnail(1764402,"112309","","CANCAN_thumb.jpg",130,130,15);thumbnails[1764358]=new thumbnail(1764358,"112309","","DHC_thumb.jpg",130,130,15);thumbnails[1764297]=new thumbnail(1764297,"112309","","elle japan_thumb.jpg",130,130,15);thumbnails[1432530]=new thumbnail(1432530,"99203","","_MG_2380_thumb.jpg",130,195,15);thumbnails[1585401]=new thumbnail(1585401,"99203","","_MG_2444_thumb.jpg",130,87,15);thumbnails[1586136]=new thumbnail(1586136,"99203","","_MG_2394_thumb.jpg",130,195,15);thumbnails[1598111]=new thumbnail(1598111,"99203","","KAWAII_2_thumb.jpg",130,78,15);thumbnails[1598115]=new thumbnail(1598115,"99203","","KAWAII_C_thumb.jpg",130,87,15);thumbnails[1598116]=new thumbnail(1598116,"99203","","Image 026_thumb.jpg",130,138,15);thumbnails[1585411]=new thumbnail(1585411,"99203","","_MG_2402_thumb.jpg",130,214,15);thumbnails[1585348]=new thumbnail(1585348,"99203","","_MG_2416_thumb.jpg",130,195,15);thumbnails[1598103]=new thumbnail(1598103,"99203","","_MG_24171_thumb.jpg",130,260,15);thumbnails[1585512]=new thumbnail(1585512,"99203","","_MG_2419_thumb.jpg",130,213,15);thumbnails[1585931]=new thumbnail(1585931,"99203","","_MG_2412_thumb.jpg",130,142,15);thumbnails[1432790]=new thumbnail(1432790,"98432","","_MG_2316_thumb.jpg",130,87,15);thumbnails[1586158]=new thumbnail(1586158,"98432","","_MG_2320_thumb.jpg",130,87,15);thumbnails[1586189]=new thumbnail(1586189,"98432","","_MG_2325_thumb.jpg",130,87,15);thumbnails[1663993]=new thumbnail(1663993,"98432","","PREMIERE_thumb.jpg",130,105,15);thumbnails[1663997]=new thumbnail(1663997,"98432","","PREMIERE2_thumb.jpg",130,98,15);thumbnails[1597974]=new thumbnail(1597974,"106255","","JAUNE copie_thumb.jpg",130,91,15);thumbnails[1587126]=new thumbnail(1587126,"106255","","_MG_2062jaune_thumb.jpg",130,87,15);thumbnails[1587095]=new thumbnail(1587095,"106255","","_MG_2053jaune_thumb.jpg",130,87,15);thumbnails[1587146]=new thumbnail(1587146,"106255","","_MG_2057JAUNE_thumb.jpg",130,87,15);thumbnails[1587729]=new thumbnail(1587729,"106255","","refsJAUNE_thumb.jpg",130,78,15);thumbnails[1597979]=new thumbnail(1597979,"99227","","ORANGE copie_thumb.jpg",130,91,15);thumbnails[1589846]=new thumbnail(1589846,"99227","","_MG_2059_thumb.JPG",130,87,15);thumbnails[1589849]=new thumbnail(1589849,"99227","","_MG_2054_thumb.JPG",130,87,15);thumbnails[1589851]=new thumbnail(1589851,"99227","","_MG_2062_thumb.JPG",130,87,15);thumbnails[1657838]=new thumbnail(1657838,"99227","","refsORANGE_thumb.jpg",130,96,15);thumbnails[1597982]=new thumbnail(1597982,"99226","","ROUGE copie_thumb.jpg",130,91,15);thumbnails[1589862]=new thumbnail(1589862,"99226","","_MG_2039_thumb.JPG",130,87,15);thumbnails[1589856]=new thumbnail(1589856,"99226","","_MG_2034_thumb.JPG",130,87,15);thumbnails[1589864]=new thumbnail(1589864,"99226","","_MG_2043_thumb.JPG",130,87,15);thumbnails[1657612]=new thumbnail(1657612,"99226","","refsROUGE_thumb.jpg",130,78,15);thumbnails[1597986]=new thumbnail(1597986,"99231","","VIOLET21_thumb.jpg",130,91,15);thumbnails[1847922]=new thumbnail(1847922,"99231","","violet2_thumb.jpg",130,87,15);thumbnails[1657692]=new thumbnail(1657692,"99231","","refsVIOLET_thumb.jpg",130,97,15);thumbnails[1598113]=new thumbnail(1598113,"108459","","ROSE copie1_thumb.jpg",130,91,15);thumbnails[1657237]=new thumbnail(1657237,"108459","","refsROSE_thumb.jpg",130,96,15);thumbnails[1597976]=new thumbnail(1597976,"108461","","MAGENTA copie_thumb.jpg",130,91,15);thumbnails[1657429]=new thumbnail(1657429,"108461","","refsMAGENTA_thumb.jpg",130,78,15);thumbnails[1597983]=new thumbnail(1597983,"99232","","TURQUOISE copie_thumb.jpg",130,91,15);thumbnails[1657895]=new thumbnail(1657895,"99232","","refsTURQUOISE_thumb.jpg",130,78,15);thumbnails[1597972]=new thumbnail(1597972,"99229","","BLEU copie_thumb.jpg",130,91,15);thumbnails[1606357]=new thumbnail(1606357,"99229","","_MG_2011_thumb.JPG",130,87,15);thumbnails[1606360]=new thumbnail(1606360,"99229","","_MG_2006_thumb.JPG",130,87,15);thumbnails[1606362]=new thumbnail(1606362,"99229","","_MG_2003_thumb.JPG",130,87,15);thumbnails[1657914]=new thumbnail(1657914,"99229","","refsBLEU_thumb.jpg",130,80,15);thumbnails[1598114]=new thumbnail(1598114,"99228","","VERT copie1_thumb.jpg",130,91,15);thumbnails[1606339]=new thumbnail(1606339,"99228","","_MG_2085_thumb.JPG",130,87,15);thumbnails[1606341]=new thumbnail(1606341,"99228","","_MG_2081_thumb.JPG",130,87,15);thumbnails[1606343]=new thumbnail(1606343,"99228","","_MG_2074_thumb.JPG",130,87,15);thumbnails[1849267]=new thumbnail(1849267,"99228","","_MG_2086_thumb.JPG",130,87,15);thumbnails[1849268]=new thumbnail(1849268,"99228","","_MG_2096_thumb.JPG",130,87,15);thumbnails[1657862]=new thumbnail(1657862,"99228","","refsVERT_thumb.jpg",130,114,15);thumbnails[1597998]=new thumbnail(1597998,"99216","","BLANC copie1_thumb.jpg",130,91,15);thumbnails[1849104]=new thumbnail(1849104,"99216","","_MG_2174_thumb.JPG",130,87,15);thumbnails[1849155]=new thumbnail(1849155,"99216","","_MG_2264_thumb.jpg",130,87,15);thumbnails[1849181]=new thumbnail(1849181,"99216","","_MG_2253_thumb.jpg",130,94,15);thumbnails[1658006]=new thumbnail(1658006,"99216","","refsBLANC_thumb.jpg",130,44,15);thumbnails[1597977]=new thumbnail(1597977,"108482","","NOIR copie_thumb.jpg",130,91,15);thumbnails[1849128]=new thumbnail(1849128,"108482","","_MG_2118_thumb.JPG",130,87,15);thumbnails[1658049]=new thumbnail(1658049,"108482","","refsNOIR_thumb.jpg",130,46,15);thumbnails[1597973]=new thumbnail(1597973,"108483","","GRIS copie_thumb.jpg",130,91,15);thumbnails[1849093]=new thumbnail(1849093,"108483","","gris2_thumb.jpg",130,81,15);thumbnails[1849211]=new thumbnail(1849211,"108483","","2124_thumb.jpg",130,103,15);thumbnails[1658086]=new thumbnail(1658086,"108483","","refsGRIS_thumb.jpg",130,78,15);thumbnails[1597997]=new thumbnail(1597997,"99233","","BRUN copie_thumb.jpg",130,91,15);thumbnails[1606332]=new thumbnail(1606332,"99233","","_MG_2029_thumb.JPG",130,87,15);thumbnails[1606333]=new thumbnail(1606333,"99233","","_MG_2020_thumb.JPG",130,87,15);thumbnails[1606335]=new thumbnail(1606335,"99233","","_MG_2023_thumb.JPG",130,87,15);thumbnails[1657984]=new thumbnail(1657984,"99233","","refsBRUN_thumb.jpg",130,78,15);thumbnails[1658135]=new thumbnail(1658135,"111918","","_MG_2181_thumb.jpg",130,87,15);thumbnails[1658125]=new thumbnail(1658125,"111918","","refsFLUO_thumb.jpg",130,108,15);thumbnails[1764538]=new thumbnail(1764538,"114177","","_MG_2251_thumb.JPG",130,87,15);thumbnails[1849077]=new thumbnail(1849077,"114177","","_MG_2248_thumb.JPG",130,87,15);thumbnails[1847608]=new thumbnail(1847608,"109023","","collier_thumb.jpg",130,100,15);thumbnails[1585889]=new thumbnail(1585889,"109023","","_MG_2373_thumb.jpg",130,92,15);thumbnails[1585541]=new thumbnail(1585541,"109023","","_MG_2370_thumb.jpg",130,87,15);var galleries=new Object();galleries[124601]=new gallery(124601,"2497811,1854638,1851527,1851526,1851525,1851524,1851523,1851522,1851521,1851520","Acheter / Buy","section162839",[1851519,1851522,1851524,1851527,1851523,1851520,1851525,1851515,1851526,1851514,1851521,1851518,1851516,1851517,1854638,2497811]);galleries[112309]=new gallery(112309,"1664077","PRESS","section147186",[4555684,4555685,4555686,4555692,4555697,4555698,4555699,4555700,4578432,4578433,4578436,5261111,5261110,1694239,5261112,1763754,1664077,1764402,1764358,1764297]);galleries[124459]=new gallery(124459,"1848967","TECH SPECH","section162627",[1848967]);galleries[99203]=new gallery(99203,"1432530","Bijoux / Jewels","section156759",[1432530,1585401,1586136,1598111,1598115,1598116,1585411,1585348,1598103,1585512,1585931]);galleries[98432]=new gallery(98432,"1663993","Private Label","section156760",[1432790,1586158,1586189,1663993,1663997]);galleries[106255]=new gallery(106255,"1597974","JAUNE/YELLOW","gallery",[1597974,1587126,1587095,1587146,1587729]);galleries[99227]=new gallery(99227,"1597979","ORANGE","gallery",[1597979,1589846,1589849,1589851,1657838]);galleries[99226]=new gallery(99226,"1597982","ROUGE / RED","gallery",[1597982,1589862,1589856,1589864,1657612]);galleries[99231]=new gallery(99231,"1597986","VIOLET / PURPLE","gallery",[1597986,1847922,1657692]);galleries[108459]=new gallery(108459,"1598113","ROSE / PINK","gallery",[1598113,1657237]);galleries[108461]=new gallery(108461,"1597976","MAGENTA","gallery",[1597976,1657429]);galleries[99232]=new gallery(99232,"1597983","TURQUOISE / TURCOISE","gallery",[1597983,1657895]);galleries[99229]=new gallery(99229,"1597972","BLEU / BLUE","gallery",[1597972,1606357,1606360,1606362,1657914]);galleries[99228]=new gallery(99228,"1598114","VERT / GREEN","gallery",[1598114,1606339,1606341,1606343,1849267,1849268,1657862]);galleries[99216]=new gallery(99216,"1597998","BLANC / WHITE","gallery",[1597998,1849104,1849155,1849181,1658006]);galleries[108482]=new gallery(108482,"1597977","NOIR / BLACK","gallery",[1597977,1849128,1658049]);galleries[108483]=new gallery(108483,"1597973","GRIS / GREY","gallery",[1597973,1849093,1849211,1658086]);galleries[99233]=new gallery(99233,"1597997","BRUN / BROWN","gallery",[1597997,1606332,1606333,1606335,1657984]);galleries[111918]=new gallery(111918,"1658135","FLUO","gallery",[1658135,1658125]);galleries[114177]=new gallery(114177,"1764538","Perle/Pearl","gallery",[1764538,1849077]);galleries[109023]=new gallery(109023,"1585541","COLLIERS/NECKLACE","gallery",[1847608,1585889,1585541]);galleries[99198]=new gallery(99198,"","Bracelets Sensylo","section156759",[]);var imageSets=new Object();imageSets[1]="1432504";imageSets[2]="1764538,1664077,1663993,1658135,1598114,1598113,1597998,1597997,1597986,1597983,1597982,1597979,1597977,1597976,1597974,1597973,1597972,1585541,1432530,1432504";imageSets[3]="5261112,5261111,5261110,4578436,4578433,4578432,4555700,4555699,4555698,4555697,4555692,4555686,4555685,4555684,2497811,1854638,1851527,1851526,1851525,1851524,1851523,1851522,1851521,1851520,1851519,1851518,1851517,1851516,1851515,1851514,1849268,1849267,1849211,1849181,1849155,1849128,1849104,1849093,1849077,1848967,1847922,1847608,1764538,1764433,1764402,1764358,1764297,1763754,1694239,1664077";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 34:b="http://www9.clikpic.com/laurafarbiarz/images";break}switch(a){case 1:b="http://www1.clikpic.com/laurafarbiarz/images";break}switch(a){case 2:b="http://admin.clikpic.com/laurafarbiarz/images";break}switch(a){case 4:b="http://www.clikchurch.com/laurafarbiarz/images";break}switch(a){case 5:b="http://www2.clikpic.com/laurafarbiarz/images";break}switch(a){case 15:b="http://www3.clikpic.com/laurafarbiarz/images";break}switch(a){case 21:b="http://www6.clikpic.com/laurafarbiarz/images";break}switch(a){case 18:b="http://www4.clikpic.com/laurafarbiarz/images";break}switch(a){case 19:b="http://www5.clikpic.com/laurafarbiarz/images";break}switch(a){case 22:b="http://tpc5/clikpic/laurafarbiarz/images";break}switch(a){case 23:b="http://tpc10/clikpic/laurafarbiarz/images";break}switch(a){case 24:b="http://tpc15/clikpic/laurafarbiarz/images";break}switch(a){case 25:b="http://tpc16/clikpic/laurafarbiarz/images";break}switch(a){case 31:b="http://www7.clikpic.com/laurafarbiarz/images";break}switch(a){case 32:b="http://admin2.clikpic.com/laurafarbiarz/images";break}switch(a){case 33:b="http://www8.clikpic.com/laurafarbiarz/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Bijoux de couleur thérapie/color therapy  jewelry: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}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> 				&euro;"+(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 jewel / Acheter ce bijou</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="laurafarbiarz@hotmail.fr">';b=b+'<input type="hidden" name="currency_code" value="EUR">';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="Ajouter au panier / 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="laurafarbiarz@hotmail.fr">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="Détails du panier / 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+'")'})}}};