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[5591928]=new thumbnail(5591928,"287876","The Uists from The West Coast of Skye","PebbleSunset_thumb.jpg",130,85,18);thumbnails[5529880]=new thumbnail(5529880,"287876","Eigg Harbour Navigation Post","Eigg_Harbour_Navigation_Post_thumb.jpg",130,130,18);thumbnails[5529902]=new thumbnail(5529902,"287876","Trawler in the Sound of Eigg","Trawler_thumb.jpg",130,56,18);thumbnails[5532873]=new thumbnail(5532873,"287876","Wave Patterns","Wave_Patterns_thumb.jpg",130,87,18);thumbnails[5532888]=new thumbnail(5532888,"287876","Eider Duck (Male)","Eidr_Duck_Sq_thumb.jpg",130,130,18);thumbnails[5532966]=new thumbnail(5532966,"287876","Trawler Approaching Mallaig","Trawler_Sunset_Clr_thumb.jpg",130,91,18);thumbnails[5357039]=new thumbnail(5357039,"297638","","Deer__Cluanie_1_thumb.jpg",130,86,18);thumbnails[5357059]=new thumbnail(5357059,"297638","","Deer__Cluanie_2_thumb.jpg",130,86,18);thumbnails[5357065]=new thumbnail(5357065,"297638","","Frosty_Trees_Invergarry_thumb.jpg",130,86,18);thumbnails[5331745]=new thumbnail(5331745,"300243","","Tommy__website_thumb.jpg",91,130,18);thumbnails[5292069]=new thumbnail(5292069,"297638","Dusk and the Black Cuillin; from Eynort","Black_Cuilin_at_Dusk_thumb.jpg",130,83,18);thumbnails[5291788]=new thumbnail(5291788,"297638","Frozen Waterfall @ Carbost  (1)","Frozen_Waterfall_3_thumb.jpg",86,130,18);thumbnails[5291838]=new thumbnail(5291838,"297638","Frozen Waterfall (2)","Frozen_Waterfall_11_thumb.jpg",86,130,18);thumbnails[5291840]=new thumbnail(5291840,"297638","Frozen Waterfall 3","Frozen_Waterfall_2_thumb.jpg",130,86,18);thumbnails[5291843]=new thumbnail(5291843,"297638","Frozen Lochan @ Sligachan","Across_to_Marsco_thumb.jpg",130,86,18);thumbnails[5291849]=new thumbnail(5291849,"297638","Marsco @ Sunset from  Sligachan","Marsco_from_Slig_thumb.jpg",130,86,18);thumbnails[5292102]=new thumbnail(5292102,"297638","Ice on the Seashore; Broadford","Ice_on_the_Seashore_thumb.jpg",130,83,18);thumbnails[5292105]=new thumbnail(5292105,"297638","Bru-dearg (Gaelic for Robin) Broadford ","Robin_thumb.jpg",130,130,18);thumbnails[5292182]=new thumbnail(5292182,"297638","Snow on Pampass Grass.  Broadford","Snow_on_Pampas_Grass_thumb.jpg",130,86,18);thumbnails[5074929]=new thumbnail(5074929,"297638","First Frost of Winter","First_Frost_of_WinterWS_thumb.jpg",130,91,18);thumbnails[5075002]=new thumbnail(5075002,"297638","Frosted Tree; Glen Cluanie","Frosted_Tree_1_thumb.jpg",87,130,18);thumbnails[5017431]=new thumbnail(5017431,"287876","Sunset & Rocks","Elgol_Rocks_Portrait_thumb.jpg",87,130,18);thumbnails[5017377]=new thumbnail(5017377,"287876","Dusk @ Elgol","Elgol_Dusk_web_thumb.jpg",130,87,18);thumbnails[5017382]=new thumbnail(5017382,"287876","High Tide @ Elgol","Elgol_Splash__thumb.jpg",130,80,18);thumbnails[5017390]=new thumbnail(5017390,"287876","Freighter in the Minch","BRTR_2_thumb.jpg",130,86,18);thumbnails[5017391]=new thumbnail(5017391,"287876","Coming Home; Dusk @ Waternish","BRTR_1_thumb.jpg",130,86,18);thumbnails[5017396]=new thumbnail(5017396,"287876","Uig Sunset","Uig_Sunset_thumb.jpg",130,83,18);thumbnails[5017829]=new thumbnail(5017829,"287876","Waves; Talisker Bay","Talisker_Bay_Wave_thumb.jpg",130,87,18);thumbnails[5017825]=new thumbnail(5017825,"300243","Kintail Chalet (IR)","Kintail_Chalet_thumb.jpg",130,86,18);thumbnails[5017548]=new thumbnail(5017548,"287876","Loch Hourn","Loch_Hourn_thumb.jpg",130,130,18);thumbnails[5017395]=new thumbnail(5017395,"287876","Sunset @ Talisker Bay","Talisker_Sunset_thumb.jpg",130,87,18);thumbnails[5534781]=new thumbnail(5534781,"284340","Talisker Dusk ","Talisker_Dusk_2010_thumb.jpg",130,87,18);thumbnails[5461377]=new thumbnail(5461377,"284340","","Moonrise_over_the_Cuillin_web_thumb.jpg",130,83,18);thumbnails[5240171]=new thumbnail(5240171,"284340","Mist on the Loch","Moray_Mist_thumb.jpg",130,96,18);thumbnails[5240179]=new thumbnail(5240179,"284340","Pochard on the Loch","Pochard_on_the_Moray_Firth_thumb.jpg",130,96,18);thumbnails[5275211]=new thumbnail(5275211,"284340","Quiraing Dawn","Quiraing_Dawn_thumb.jpg",130,91,18);thumbnails[5054509]=new thumbnail(5054509,"284340","Quiraing","Quiraing__thumb.jpg",130,87,18);thumbnails[5054531]=new thumbnail(5054531,"284340","Tree Silhouettes; Isle of Skye","Tree_Silhouettes__thumb.jpg",130,87,18);thumbnails[5054520]=new thumbnail(5054520,"284340","Sunlight & Mist; Glen Varragill, Isle of Skye","Sunlight__Mist_Glen_Varragill_thumb.jpg",130,116,18);thumbnails[5092557]=new thumbnail(5092557,"284340","Old Chair.","New_Images_6_thumb.jpg",130,105,18);thumbnails[5092551]=new thumbnail(5092551,"284340","Abandoned Croft House; Berneray.","New_Images_4_thumb.jpg",130,87,18);thumbnails[5092553]=new thumbnail(5092553,"284340","New Light Through Old Windows;","New_Images_5_thumb.jpg",83,130,18);thumbnails[5092542]=new thumbnail(5092542,"284340","At Work; Neist Point Isle of Skye","New_Images_3_thumb.jpg",130,85,18);thumbnails[5091487]=new thumbnail(5091487,"284340","Rock Pattern; Elgol","Elgol_Rock_thumb.jpg",130,87,18);thumbnails[5017613]=new thumbnail(5017613,"284340","Reflections 1","Reflections_2_thumb.jpg",87,130,18);thumbnails[5017609]=new thumbnail(5017609,"284340","Reflections 2","Reflections_1_thumb.jpg",87,130,18);thumbnails[5017413]=new thumbnail(5017413,"284340","Portree Harbour","Portree_Harbour__Rainbow_thumb.jpg",130,83,18);thumbnails[5017518]=new thumbnail(5017518,"284340","Sunrise: Sound of Raasay","_Sunrise_Sound_of_Raasay_thumb.jpg",130,84,18);thumbnails[5017573]=new thumbnail(5017573,"284340","Sunrise on the Cleat: Trotternish ","Sunrise_on_the_Cleat_Trotternish_thumb.jpg",130,87,18);thumbnails[5017835]=new thumbnail(5017835,"284340","Birch & Ferns","Birch__Ferns_thumb.jpg",130,93,18);thumbnails[5017707]=new thumbnail(5017707,"284340","Machine Wheels","Dunvegan_Watermill-36_thumb.jpg",130,60,18);thumbnails[5017624]=new thumbnail(5017624,"284340","Red Cuillin from Breakish","BRTR_3_thumb.jpg",130,86,18);thumbnails[5017397]=new thumbnail(5017397,"284340","Sunrise over Loch Duich","Sound_of_Sleat_thumb.jpg",130,87,18);thumbnails[5017393]=new thumbnail(5017393,"284340","Reeds @ Loch Cill Chroisd","Reeds__Loch_Cill_Chroisd_thumb.jpg",130,87,18);thumbnails[5017405]=new thumbnail(5017405,"284340","Storm Approaching Clachan Sands. N Uist","Storm_Aproachin_Clachan_Sands_NUist_thumb.jpg",130,130,18);thumbnails[5017733]=new thumbnail(5017733,"284340","Moon & Clouds: Glen Eynort","Clouds__Moon_Sunset_thumb.jpg",130,86,18);thumbnails[5017541]=new thumbnail(5017541,"284340","Lichen on Broch Wall","Lichen_on_Broch_Wall_thumb.jpg",86,130,18);thumbnails[5017566]=new thumbnail(5017566,"284340","Wrinkley Tin Croft","Wrinkly_Tin_Croft_Detail_thumb.jpg",87,130,18);thumbnails[5017588]=new thumbnail(5017588,"284340","The Old Man of Storr","Storr_Storm__Sunlight_thumb.jpg",130,86,18);thumbnails[5017626]=new thumbnail(5017626,"284340","Rain Shower Clearing Elgol","Rain_Shower_Clearing_Elgol_thumb.jpg",130,86,18);thumbnails[5017392]=new thumbnail(5017392,"284340","Clachan Sands 1","After_the_Storm_Clachan_Sands_N_Uist_thumb.jpg",130,43,18);thumbnails[5017419]=new thumbnail(5017419,"284340","Boats on Loch Duich","Boats__Dusk_Loch_Duich_-_2006-08-04_at_20-40-50_thumb.jpg",130,87,18);thumbnails[5017594]=new thumbnail(5017594,"284340",'"Sgurr Thormaid"',"Sgurr_Thormaid_edited-1_-_2006-08-27_at_21-24-40_thumb.jpg",130,87,18);thumbnails[5017583]=new thumbnail(5017583,"284340",'"The May"  Loch Harport',"The_May_Loch_Harport_Isle_of_Skye_thumb.jpg",130,84,18);thumbnails[5357125]=new thumbnail(5357125,"301765",'The Front Cover for "Skye: Island Beautiful"',"SBI_thumb.jpg",130,121,18);thumbnails[5438500]=new thumbnail(5438500,"284344","","Feral_Goats_thumb.jpg",130,95,18);thumbnails[5033815]=new thumbnail(5033815,"284344","Buzzard on Red Deer's Head","Buzzard_on_Deers_Head_thumb.jpg",130,86,18);thumbnails[5033816]=new thumbnail(5033816,"284344","Buzzard on Grass","Buzzard_onGrass_thumb.jpg",130,86,18);thumbnails[5033817]=new thumbnail(5033817,"284344","White Tailed Sea Eagle","Diving_Across_thumb.jpg",130,86,18);thumbnails[5033818]=new thumbnail(5033818,"284344","Great Skua","Skua_thumb.jpg",130,86,18);thumbnails[5033819]=new thumbnail(5033819,"284344","Up Up & Away","Up_Up__Away_thumb.jpg",130,84,18);thumbnails[5033820]=new thumbnail(5033820,"284344","About to Catch","About_to_Catch_1_thumb.jpg",130,82,18);thumbnails[5033822]=new thumbnail(5033822,"284344","White Tailed Sea Eagle Female","S_Eagle_Female_1_thumb.jpg",130,86,18);thumbnails[5017529]=new thumbnail(5017529,"284344","Gannet; Neist Point","Gannet_Grey_Sky_thumb.jpg",130,87,18);thumbnails[5461379]=new thumbnail(5461379,"284339","Fraser's  Cuff-links","Frasers_Cufflinks_thumb.jpg",86,130,18);thumbnails[5461381]=new thumbnail(5461381,"284339","Keira","Keira_2_thumb.jpg",115,130,18);thumbnails[5461382]=new thumbnail(5461382,"284339","Confetti Shower","Keira__Fraser_Confetti_thumb.jpg",99,130,18);thumbnails[3569444]=new thumbnail(3569444,"284339","Laura & David","Laura__David1_thumb.jpg",130,86,18);thumbnails[2880741]=new thumbnail(2880741,"284339","Kathleen & Andrew","Kathleen & Andrew (C) 170_thumb.jpg",130,93,18);thumbnails[2880811]=new thumbnail(2880811,"284339","Kathleen","Kathleen Vig_thumb.jpg",90,130,18);thumbnails[3569418]=new thumbnail(3569418,"284339","Stuart & Tommy (who sleeps soundly whilst his Mum & Dad get married.","JJ_Tommy_asleep_thumb.jpg",86,130,18);thumbnails[3569438]=new thumbnail(3569438,"284339","Julia & Jay (Tommy's Mum & Dad)","Jay__Julia_J_17_thumb.jpg",130,87,18);thumbnails[4073975]=new thumbnail(4073975,"284339","Colin & Michaela","Colin__Michaela_1941_thumb.jpg",130,86,18);thumbnails[3568436]=new thumbnail(3568436,"284339","Bouquet","NWW_5_thumb.jpg",130,101,18);thumbnails[3568802]=new thumbnail(3568802,"284339","Emma & Andrew","NWW_3123_thumb.jpg",86,130,18);thumbnails[3569134]=new thumbnail(3569134,"284339","Amira & Gregor","NWWS2_5_thumb.jpg",130,84,18);thumbnails[3568192]=new thumbnail(3568192,"284339","Amira","Amir_Bouquet_thumb.jpg",88,130,18);thumbnails[3568768]=new thumbnail(3568768,"284339","Irena","Irena_Veil_thumb.jpg",94,130,18);thumbnails[3569376]=new thumbnail(3569376,"284339","Stephen & Irena","Eilean_Donan_Castle_Wedding_Images_35_thumb.jpg",86,130,18);thumbnails[3569378]=new thumbnail(3569378,"284339","Irena","Eilean_Donan_Castle_Wedding_Images_361_thumb.jpg",86,130,18);thumbnails[5022309]=new thumbnail(5022309,"284339","Sharon & Iain","Sharon__Iain_F182_thumb.jpg",130,51,18);thumbnails[5022333]=new thumbnail(5022333,"284339","Iain ","Sharon__Iain_F43_thumb.jpg",86,130,18);thumbnails[5022358]=new thumbnail(5022358,"284339","Patiently Waiting","Suzanne__Richard_241_thumb.jpg",119,130,18);thumbnails[5022366]=new thumbnail(5022366,"284339","Berenice & Stephen","Berenice__Stephen_1461_thumb.jpg",87,130,18);thumbnails[5033811]=new thumbnail(5033811,"284339","Emma & Andrew","NWWS2_20_thumb.jpg",74,130,18);thumbnails[3627648]=new thumbnail(3627648,"284339","Simply Beautiful","BRJOCD_ADD12_thumb.jpg",130,65,18);thumbnails[3568793]=new thumbnail(3568793,"284339","","Amir__Gregor__60711_thumb.jpg",130,86,18);thumbnails[3569130]=new thumbnail(3569130,"284339","","NWWS2_4_thumb.jpg",86,130,18);thumbnails[4228180]=new thumbnail(4228180,"284339","Suzanne & Richard ","SR_26_thumb.jpg",91,130,18);thumbnails[4228201]=new thumbnail(4228201,"284339","Suzanne & Richard","SR_251_thumb.jpg",130,86,18);var galleries=new Object();galleries[300243]=new gallery(300243,"5331745,5017825","Monochrome","section341023",[5331745,5017825]);galleries[287876]=new gallery(287876,"5017377","Seascapes","section341023",[5591928,5529880,5529902,5532873,5532888,5532966,5017431,5017377,5017382,5017390,5017391,5017396,5017829,5017548,5017395]);galleries[297638]=new gallery(297638,"5357065,5357059,5357039,5292182,5292105,5292102,5292069,5291849,5291843,5291840","Winter On Skye ","section341023",[5357039,5357059,5357065,5292069,5291788,5291838,5291840,5291843,5291849,5292102,5292105,5292182,5074929,5075002]);galleries[284340]=new gallery(284340,"5534781,5461377,5275211,5240179,5240171,5092557,5092553,5092551,5092542,5091487","Landscapes","section341023",[5534781,5461377,5240171,5240179,5275211,5054509,5054531,5054520,5092557,5092551,5092553,5092542,5091487,5017613,5017609,5017413,5017518,5017573,5017835,5017707,5017624,5017397,5017393,5017405,5017733,5017541,5017566,5017588,5017626,5017392,5017419,5017594,5017583]);galleries[301765]=new gallery(301765,"5357125","Skye: Island Beautiful","section361070",[5357125]);galleries[284344]=new gallery(284344,"5438500,5033822,5033820,5033819,5033818,5033817,5033816,5033815,5017529","Wildlife","section341023",[5438500,5033815,5033816,5033817,5033818,5033819,5033820,5033822,5017529]);galleries[284339]=new gallery(284339,"2880741","Weddings ","section341023",[5461379,5461381,5461382,3569444,2880741,2880811,3569418,3569438,4073975,3568436,3568802,3569134,3568192,3568768,3569376,3569378,5022309,5022333,5022358,5022366,5033811,3627648,3568793,3569130,4228180,4228201]);var imageSets=new Object();imageSets[1]="5017825,5017377";imageSets[2]="5357125,5017377,2880741";imageSets[3]="5591928,5534781,5532966,5532888,5532873,5529902,5529880,5461382,5461381,5461379,5461377,5438500,5357125,5357065,5357059,5357039,5331745,5292182,5292105,5292102,5292069,5291849,5291843,5291840,5291838,5291788,5275211,5240179,5240171,5092557,5092553,5092551,5092542,5091487,5075002,5074929,5054531,5054520,5054509,5033822,5033820,5033819,5033818,5033817,5033816,5033815,5033811,5022366,5022358,5022333";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/peardrop/images";break}switch(a){case 1:b="http://www1.clikpic.com/peardrop/images";break}switch(a){case 2:b="http://admin.clikpic.com/peardrop/images";break}switch(a){case 24:b="http://tpc15/clikpic/peardrop/images";break}switch(a){case 4:b="http://www.clikchurch.com/peardrop/images";break}switch(a){case 5:b="http://www2.clikpic.com/peardrop/images";break}switch(a){case 22:b="http://tpc5/clikpic/peardrop/images";break}switch(a){case 23:b="http://tpc10/clikpic/peardrop/images";break}switch(a){case 25:b="http://tpc16/clikpic/peardrop/images";break}switch(a){case 15:b="http://www3.clikpic.com/peardrop/images";break}switch(a){case 18:b="http://www4.clikpic.com/peardrop/images";break}switch(a){case 19:b="http://www5.clikpic.com/peardrop/images";break}switch(a){case 31:b="http://www7.clikpic.com/peardrop/images";break}switch(a){case 32:b="http://admin2.clikpic.com/peardrop/images";break}switch(a){case 33:b="http://www8.clikpic.com/peardrop/images";break}switch(a){case 34:b="http://www9.clikpic.com/peardrop/images";break}switch(a){case 35:b="http://admin3.clikpic.com/peardrop/images";break}switch(a){case 37:b="http://admin4.clikpic.com/peardrop/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("section361070"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section361070.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("section361070"!=""){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=" juicy pear photography: "+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> 				&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="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="PEARDROP">';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<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+'")'})}}};