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[2744962]=new thumbnail(2744962,"270953","Leave only footprints","IMG_2602_thumb.jpg",130,195,5);thumbnails[2744978]=new thumbnail(2744978,"270953","Man Friday","IMG_2609_thumb.jpg",130,195,5);thumbnails[2744982]=new thumbnail(2744982,"270953","Cradle Mountain summit","IMG_2624 bandw_thumb.jpg",130,194,5);thumbnails[2829579]=new thumbnail(2829579,"270953","Tolkien in strange places","IMG_3833_thumb.jpg",130,195,5);thumbnails[2841569]=new thumbnail(2841569,"270953","Convict graves ","grave3bw_thumb.jpg",130,92,5);thumbnails[3053242]=new thumbnail(3053242,"270953","Rusty tap","IMG_4531a_thumb.jpg",130,200,5);thumbnails[3116669]=new thumbnail(3116669,"270953","Lone Tree","IMG_4692a_thumb.jpg",130,86,5);thumbnails[3264188]=new thumbnail(3264188,"270953","Cam cleats on Mirami","cam-cleat_thumb.jpg",130,92,5);thumbnails[3410683]=new thumbnail(3410683,"270953","","IMG_7311bw_thumb.jpg",130,185,5);thumbnails[3410684]=new thumbnail(3410684,"270953","","IMG_7160_thumb.jpg",130,85,5);thumbnails[3410685]=new thumbnail(3410685,"270953","","IMG_7299_thumb.jpg",130,195,5);thumbnails[3545451]=new thumbnail(3545451,"270953","Dandelion clock","IMG_7813_thumb.jpg",130,87,5);thumbnails[4116227]=new thumbnail(4116227,"270953","Murlough at low tide","Murlough-runnels_thumb.jpg",130,192,5);thumbnails[4116231]=new thumbnail(4116231,"270953","","Pillar-to-post_thumb.jpg",130,86,5);thumbnails[4827294]=new thumbnail(4827294,"270953","Feet at the G","feet_at_the_G2_thumb.jpg",130,196,5);thumbnails[5285296]=new thumbnail(5285296,"270953","Billy's coffee stall at Rusty's market","billy1_thumb.jpg",130,199,5);thumbnails[5285297]=new thumbnail(5285297,"270953","Billy's","billy3_thumb.jpg",130,99,5);thumbnails[6417695]=new thumbnail(6417695,"354657","Formica Leo","crater_thumb.jpg",130,87,5);thumbnails[6424089]=new thumbnail(6424089,"354657","The moonscape of Enclos Fouque, Piton de la Fournaise","volcano_gill_cormac_thumb.jpg",130,43,5);thumbnails[6424129]=new thumbnail(6424129,"354657","Hiking in the volcano","piton_de_la_fournaise_thumb.jpg",130,195,5);thumbnails[6424139]=new thumbnail(6424139,"354657","Piton de la Fournaise","_MG_6337_thumb.jpg",130,87,5);thumbnails[6424155]=new thumbnail(6424155,"354657","Pebble Beach, Grande Anse","slot_grande_anse_thumb.jpg",130,196,5);thumbnails[6424158]=new thumbnail(6424158,"354657","big, big world","chairs_cormac_thumb.jpg",130,89,5);thumbnails[6424161]=new thumbnail(6424161,"354657","","piton_de_les_neiges_thumb.jpg",130,163,5);thumbnails[6424164]=new thumbnail(6424164,"354657","Nephila spider","nephila_spider_thumb.jpg",130,87,5);thumbnails[6424174]=new thumbnail(6424174,"354657","boys, and their toys","best_toy_in_world_thumb.jpg",130,195,5);thumbnails[6424195]=new thumbnail(6424195,"354657","Well I never...","walking_thumb.jpg",130,90,5);thumbnails[6424199]=new thumbnail(6424199,"354657","Red roots in a Bras Rouge cascade","waterfall_roots_thumb.jpg",130,190,5);thumbnails[6424201]=new thumbnail(6424201,"354657","Cilaos from Bras Sec","cilaos_thumb.jpg",130,195,5);thumbnails[6424209]=new thumbnail(6424209,"354657","Bras Sec goat","goat_thumb.jpg",130,194,5);thumbnails[6424210]=new thumbnail(6424210,"354657","Street, St Pierre","mother_baby_ad_thumb.jpg",130,181,5);thumbnails[6424217]=new thumbnail(6424217,"354657","Street scene St Pierre","moules_frites2_thumb.jpg",130,200,5);thumbnails[6424223]=new thumbnail(6424223,"354657","Cormac exploring Reunion streets","cormac_moules_frites_thumb.jpg",130,194,5);thumbnails[6424224]=new thumbnail(6424224,"354657","Maddy","maddy1_thumb.jpg",130,190,5);thumbnails[6424240]=new thumbnail(6424240,"354657","Bike rack, Reunion style","bike_rack_thumb.jpg",119,200,5);thumbnails[6424259]=new thumbnail(6424259,"354657","bag of chickens, anyone?","bag_o_chickens_thumb.jpg",130,95,5);thumbnails[6424277]=new thumbnail(6424277,"354657","happy boy!","joy_thumb.jpg",130,95,5);thumbnails[5431731]=new thumbnail(5431731,"270953","Pandani, Lot and his Wife, from Mt Anne","dumbrovskis_plants_anne_bw_thumb.jpg",130,189,5);thumbnails[2744209]=new thumbnail(2744209,"184915","Snow patterns on Mount Field, Tasmania","IMG_3360b_thumb.jpg",130,83,5);thumbnails[2744973]=new thumbnail(2744973,"184915","Cradle mountain summit","IMG_25891_thumb.jpg",130,195,5);thumbnails[2744984]=new thumbnail(2744984,"184915","Colour mini sastrugi","IMG_3365a_thumb.jpg",130,184,5);thumbnails[2744986]=new thumbnail(2744986,"184915","Josh and Jo on the summit of Cradle","IMG_2624_thumb.jpg",130,195,5);thumbnails[2744988]=new thumbnail(2744988,"184915","Rime ice at Mount Field","IMG_3425_thumb.jpg",130,87,5);thumbnails[2781387]=new thumbnail(2781387,"184915","Solitary confinement ","IMG_2836_thumb.jpg",130,87,5);thumbnails[3116671]=new thumbnail(3116671,"184915","Barbed Wire","IMG_4694_thumb.jpg",130,195,5);thumbnails[4116234]=new thumbnail(4116234,"184915","","Fields-of-Gold_thumb.jpg",130,195,5);thumbnails[4116260]=new thumbnail(4116260,"184915","The Mourne Wall","Mourne-wall_thumb.jpg",130,195,5);thumbnails[4116285]=new thumbnail(4116285,"184915","","Murlough-Bluebells_thumb.jpg",130,91,5);thumbnails[5211947]=new thumbnail(5211947,"184915","Trike","trike2colour_thumb.jpg",130,87,5);thumbnails[5747309]=new thumbnail(5747309,"354658","Silver Ridge in morning mist","mists_silverridge1_thumb.jpg",130,87,5);thumbnails[5747315]=new thumbnail(5747315,"354658","Mt Roland with the prominent and classic line of Rysavy Ridge just right of the summit","mt_roland_mono2_thumb.jpg",130,191,5);thumbnails[5747329]=new thumbnail(5747329,"354658","The slopes of Mt Roland in morning mist","mt_roland_mono1_thumb.jpg",130,195,5);thumbnails[2781378]=new thumbnail(2781378,"174225","Bluestone Bay 2","IMG_3676_thumb.jpg",130,185,5);thumbnails[2792127]=new thumbnail(2792127,"174225","Remarkable Cave","IMG_3771_thumb.jpg",130,195,5);thumbnails[2816056]=new thumbnail(2816056,"174225","","IMG_2102b_thumb.jpg",130,195,5);thumbnails[2840570]=new thumbnail(2840570,"174225","Bluestone Bay duotone","IMG_3675e_thumb.jpg",130,188,5);thumbnails[3340421]=new thumbnail(3340421,"174225","Hazards sunset 2","IMG_6844_thumb.jpg",130,195,5);thumbnails[3420641]=new thumbnail(3420641,"174225","Painted Cliffs","painted1__1__2a_thumb.jpg",130,195,5);thumbnails[3545448]=new thumbnail(3545448,"174225","Tamar River","IMG_7824final_thumb.jpg",130,87,5);thumbnails[3647900]=new thumbnail(3647900,"174225","Cape Tourville Lighthouse","cape-tourville2__1__2_thumb.jpg",130,195,5);thumbnails[3647902]=new thumbnail(3647902,"174225","Whitewater Wall ","IMG_7998_thumb.jpg",130,91,5);thumbnails[4116210]=new thumbnail(4116210,"174225","Murlough 1","murlough_thumb.jpg",130,87,5);thumbnails[5371500]=new thumbnail(5371500,"174225","A lone fisherman in bushfire haze at Caloundra, Queensland","fisherman_smoke_morning_2_thumb.jpg",130,85,5);thumbnails[2781451]=new thumbnail(2781451,"174223","","IMG_3318_thumb.jpg",130,87,5);thumbnails[2781458]=new thumbnail(2781458,"174223","Gill on Apline","IMG_3469_thumb.jpg",130,199,5);thumbnails[2781474]=new thumbnail(2781474,"174223","","IMG_3579_thumb.jpg",130,186,5);thumbnails[2876700]=new thumbnail(2876700,"174223","Josh on the summit of Cradle Mountain ","joshHDR1final_thumb.jpg",130,196,5);thumbnails[3002267]=new thumbnail(3002267,"174223","Nick soloing on the Rubik Cube","IMG_4488_thumb.jpg",130,187,5);thumbnails[3141336]=new thumbnail(3141336,"174223","Arthur River in the Tarkine Wilderness","IMG_4788-b__a_thumb.jpg",130,87,5);thumbnails[3647906]=new thumbnail(3647906,"174223","Kellevie 24 hour race 2009","IMG_8761_thumb.jpg",130,97,5);thumbnails[3647908]=new thumbnail(3647908,"174223","Kellevie 24 hr MTB race 2009","IMG_8792_thumb.jpg",130,87,5);thumbnails[4116221]=new thumbnail(4116221,"174223","","Eagle-rock_thumb.jpg",130,195,5);thumbnails[5168609]=new thumbnail(5168609,"181994","Wren Greenplum red-handed","wren_thumb.jpg",130,87,5);thumbnails[2947247]=new thumbnail(2947247,"181994","Rings","IMG_4035_thumb.jpg",130,86,5);thumbnails[3340436]=new thumbnail(3340436,"181994","Cormac and Gill","IMG_6627_thumb.jpg",130,92,5);thumbnails[3410680]=new thumbnail(3410680,"181994","","IMG_6931a_thumb.jpg",130,185,5);thumbnails[3413585]=new thumbnail(3413585,"181994","Phil","IMG_5031_thumb.jpg",130,155,5);thumbnails[3413586]=new thumbnail(3413586,"181994","","IMG_5056_thumb.jpg",130,108,5);thumbnails[3413588]=new thumbnail(3413588,"181994","Leah","IMG_5149_thumb.jpg",130,103,5);thumbnails[3413590]=new thumbnail(3413590,"181994","a wee Scot","IMG_4999_thumb.jpg",98,200,5);thumbnails[3475127]=new thumbnail(3475127,"181994","","mother-and-child-bw_thumb.jpg",130,96,5);thumbnails[3722168]=new thumbnail(3722168,"181994","Cormac","cormac-at-cardwells_thumb.jpg",130,194,5);thumbnails[5017414]=new thumbnail(5017414,"181994","Cormac on black sand beach","cormac_eating_sand_HP_thumb.jpg",130,110,5);thumbnails[5071448]=new thumbnail(5071448,"181994","Cormac and self portrait at Kewarra beach","cormac_shadowme2_thumb.jpg",130,194,5);thumbnails[5211940]=new thumbnail(5211940,"181994","Luke and Wren","Fatherhood1_thumb.jpg",130,194,5);thumbnails[5176289]=new thumbnail(5176289,"174222","Monitor Lizard, Litchfield National Park","monitor_thumb.jpg",130,87,5);thumbnails[5168611]=new thumbnail(5168611,"174222","Green treefrog 2","treefrog2_thumb.jpg",130,91,5);thumbnails[2781389]=new thumbnail(2781389,"174222","Sandi's garden","IMG_3309_thumb.jpg",130,95,5);thumbnails[2781390]=new thumbnail(2781390,"174222","Late leaf","wellington huts june 2008 005a copy_thumb.jpg",130,87,5);thumbnails[2787179]=new thumbnail(2787179,"174222","Pumpkin<br>\r\n ","pumpkin1_thumb.jpg",130,87,5);thumbnails[3447267]=new thumbnail(3447267,"174222","Bluetongue Lizard on Bruny Island","bluetongue_thumb.jpg",130,87,5);thumbnails[3517751]=new thumbnail(3517751,"174222","","bluetongue2_thumb.jpg",130,87,5);thumbnails[4116215]=new thumbnail(4116215,"174222","Mourne Cattle","Mourne-Cattle_thumb.jpg",130,181,5);thumbnails[5017415]=new thumbnail(5017415,"174222","Bamboozled","_MG_1651_thumb.jpg",130,188,5);thumbnails[5034467]=new thumbnail(5034467,"174222","Nautilus shell on Blacksand beach","nautilus_thumb.jpg",130,87,5);thumbnails[5255779]=new thumbnail(5255779,"174222","lorakeet","lorakeet_thumb.jpg",130,106,5);thumbnails[5312539]=new thumbnail(5312539,"174222","Waterlily","waterlily_thumb.jpg",130,87,5);thumbnails[5625529]=new thumbnail(5625529,"174222","Koala on Magnetic Island","koala2_thumb.jpg",130,196,5);thumbnails[2816153]=new thumbnail(2816153,"174224","Hobart","IMG_1355_thumb.jpg",130,85,5);thumbnails[2829578]=new thumbnail(2829578,"174224","","IMG_3828_thumb.jpg",130,89,5);thumbnails[2829586]=new thumbnail(2829586,"174224","","IMG_3867_thumb.jpg",130,195,5);thumbnails[3410688]=new thumbnail(3410688,"174224","","IMG_7140_1_2_thumb.jpg",130,91,5);thumbnails[3517749]=new thumbnail(3517749,"174224","Flying Saucers?","flying-saucers_thumb.jpg",130,87,5);thumbnails[4116230]=new thumbnail(4116230,"174224","","petanquesmall1_thumb.jpg",130,72,5);thumbnails[5092618]=new thumbnail(5092618,"174224","The stinger nets are out for the season","stingernet_thumb.jpg",130,184,5);thumbnails[2805482]=new thumbnail(2805482,"175422","Skinscape","IMG_3781_thumb.jpg",130,184,5);thumbnails[2805483]=new thumbnail(2805483,"175422","Dad","IMG_3783_thumb.jpg",130,190,5);var galleries=new Object();galleries[270958]=new gallery(270958,"6424277,6424259,6424240,6424224,6424223,6424217,6424210,6424209,6424201,6424199","nua - new","gallery",[]);galleries[354657]=new gallery(354657,"6424277,6424259,6424240,6424224,6424223,6424217,6424210,6424209,6424201,6424199","La Reunion","gallery",[6417695,6424089,6424129,6424139,6424155,6424158,6424161,6424164,6424174,6424195,6424199,6424201,6424209,6424210,6424217,6424223,6424224,6424240,6424259,6424277]);galleries[270953]=new gallery(270953,"3053242","monacrómacha ","gallery",[2744962,2744978,2744982,2829579,2841569,3053242,3116669,3264188,3410683,3410684,3410685,3545451,4116227,4116231,4827294,5285296,5285297,5431731]);galleries[354658]=new gallery(354658,"5747329,5747315,5747309","Mt Roland Monochrome","gallery",[5747309,5747315,5747329]);galleries[184915]=new gallery(184915,"5211947,4116285,4116260,4116234,3116671,2781387,2744988,2744986,2744984,2744973","sliabh & gleann","gallery",[2744209,2744973,2744984,2744986,2744988,2781387,3116671,4116234,4116260,4116285,5211947]);galleries[174225]=new gallery(174225,"5371500,4116210,3647902,3647900,3545448,3420641,3340421,2840570,2816056,2792127","cladach","gallery",[2781378,2792127,2816056,2840570,3340421,3420641,3545448,3647900,3647902,4116210,5371500]);galleries[174223]=new gallery(174223,"4116221,3647908,3647906,3141336,3002267,2876700,2781474,2781458,2781451","fiontar","gallery",[2781451,2781458,2781474,2876700,3002267,3141336,3647906,3647908,4116221]);galleries[181994]=new gallery(181994,"5211940,5168609,5071448,5017414,3722168,3475127,3413590,3413588,3413586,3413585","daoine","gallery",[5168609,2947247,3340436,3410680,3413585,3413586,3413588,3413590,3475127,3722168,5017414,5071448,5211940]);galleries[174222]=new gallery(174222,"5625529,5312539,5255779,5176289,5168611,5034467,5017415,4116215,3517751,3447267","fiadhúlra","gallery",[5176289,5168611,2781389,2781390,2787179,3447267,3517751,4116215,5017415,5034467,5255779,5312539,5625529]);galleries[174224]=new gallery(174224,"5092618,4116230,3517749,3410688,2829586,2829578,2816153","monaraithe","gallery",[2816153,2829578,2829586,3410688,3517749,4116230,5092618]);galleries[175422]=new gallery(175422,"2805483,2805482","péinteáil","gallery",[2805482,2805483]);var imageSets=new Object();imageSets[1]="6424277,6424259,6424164,6424158,6424139,6424089,6417695";imageSets[2]="3053242";imageSets[3]="6424277,6424259,6424240,6424224,6424223,6424217,6424210,6424209,6424201,6424199,6424195,6424174,6424164,6424161,6424158,6424155,6424139,6424129,6424089,6417695,5747329,5747315,5747309,5625529,5431731,5371500,5312539,5285297,5285296,5255779,5211947,5211940,5176289,5168611,5168609,5092618,5071448,5034467,5017415,5017414,4827294,4116285,4116260,4116234,4116231,4116230,4116227,4116221,4116215,4116210";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/dreapadoir/images";break}switch(a){case 1:b="http://www1.clikpic.com/dreapadoir/images";break}switch(a){case 2:b="http://admin.clikpic.com/dreapadoir/images";break}switch(a){case 24:b="http://tpc15/clikpic/dreapadoir/images";break}switch(a){case 4:b="http://www.clikchurch.com/dreapadoir/images";break}switch(a){case 5:b="http://www2.clikpic.com/dreapadoir/images";break}switch(a){case 22:b="http://tpc5/clikpic/dreapadoir/images";break}switch(a){case 23:b="http://tpc10/clikpic/dreapadoir/images";break}switch(a){case 25:b="http://tpc16/clikpic/dreapadoir/images";break}switch(a){case 15:b="http://www3.clikpic.com/dreapadoir/images";break}switch(a){case 18:b="http://www4.clikpic.com/dreapadoir/images";break}switch(a){case 19:b="http://www5.clikpic.com/dreapadoir/images";break}switch(a){case 31:b="http://www7.clikpic.com/dreapadoir/images";break}switch(a){case 32:b="http://admin2.clikpic.com/dreapadoir/images";break}switch(a){case 33:b="http://www8.clikpic.com/dreapadoir/images";break}switch(a){case 34:b="http://www9.clikpic.com/dreapadoir/images";break}switch(a){case 35:b="http://admin3.clikpic.com/dreapadoir/images";break}switch(a){case 37:b="http://admin4.clikpic.com/dreapadoir/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="'+escape(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="www.dreapadoir.com: "+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> 				AU$"+(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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="DREAPADOIR">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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<100){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+'")'})}}};