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[845125]=new thumbnail(845125,"80164","","2007 06 30 112 copyjpg_thumb.jpg",130,87,18);thumbnails[845192]=new thumbnail(845192,"80164","","2007 06 30 071_edited-1 copyjpg_thumb.jpg",130,194,18);thumbnails[845194]=new thumbnail(845194,"80164","","2007 06 30 045 copyjpg_thumb.jpg",130,87,18);thumbnails[845195]=new thumbnail(845195,"80164","The deed done!","2007 06 03 091jpg_thumb.jpg",130,87,18);thumbnails[845199]=new thumbnail(845199,"80164","","2007 06 03 179jpg_thumb.jpg",130,87,18);thumbnails[845332]=new thumbnail(845332,"80164","","2007 06 30 017 copyjpg_thumb.jpg",130,96,18);thumbnails[854133]=new thumbnail(854133,"80164","","2007 06 30 030 copyjpg_thumb.jpg",130,194,18);thumbnails[854145]=new thumbnail(854145,"80164","","2007 06 30 026 copy2 copyjpg_thumb.jpg",130,130,18);thumbnails[854148]=new thumbnail(854148,"80164","","2007 06 30 155 copyjpg_thumb.jpg",130,87,18);thumbnails[867434]=new thumbnail(867434,"80164","","2007 06 30 120 copyjpg_thumb.jpg",130,194,18);thumbnails[867439]=new thumbnail(867439,"80164","","copy 3 copyjpg_thumb.jpg",130,194,18);thumbnails[1086972]=new thumbnail(1086972,"80164","","2007 05 28 007 copyjpg_thumb.jpg",130,233,18);thumbnails[1087005]=new thumbnail(1087005,"80164","","2007 05 28 013jpg_thumb.jpg",130,194,18);thumbnails[1087024]=new thumbnail(1087024,"80164","","2007 06 03 200jpg_thumb.jpg",130,87,18);thumbnails[1087158]=new thumbnail(1087158,"80164","","2007 05 28 036jpg_thumb.jpg",130,194,18);thumbnails[1087165]=new thumbnail(1087165,"80164","","2007 05 28 096jpg_thumb.jpg",130,194,18);thumbnails[1087167]=new thumbnail(1087167,"80164","","2007 05 28 030jpg2_thumb.jpg",130,194,18);thumbnails[1087168]=new thumbnail(1087168,"80164","","2007 05 28 101jpg_thumb.jpg",130,87,18);thumbnails[1087170]=new thumbnail(1087170,"80164","","2007 05 28 097jpg1_thumb.jpg",130,194,18);thumbnails[1087173]=new thumbnail(1087173,"80164","","2007 05 28 104jpg1_thumb.jpg",130,194,18);thumbnails[1087178]=new thumbnail(1087178,"80164","","2007 05 28 167jpg_thumb.jpg",130,194,18);thumbnails[1087180]=new thumbnail(1087180,"80164","","2007 05 28 122jpg_thumb.jpg",130,194,18);thumbnails[1087181]=new thumbnail(1087181,"80164","","2007 06 03 027jpg_thumb.jpg",130,194,18);thumbnails[1087183]=new thumbnail(1087183,"80164","","2007 06 03 055jpg_thumb.jpg",130,194,18);thumbnails[1087197]=new thumbnail(1087197,"80164","","2007 06 03 096jpg_thumb.jpg",130,87,18);thumbnails[1087234]=new thumbnail(1087234,"80164","","2007 06 03 109jpg_thumb.jpg",130,194,18);thumbnails[1087261]=new thumbnail(1087261,"80164","","2007 06 03 183jpg_thumb.jpg",130,194,18);thumbnails[1087274]=new thumbnail(1087274,"80164","","2007 06 03 189jpg_thumb.jpg",130,87,18);thumbnails[1165905]=new thumbnail(1165905,"80164","","2007 06 30 123 copy 2jpg_thumb.jpg",130,87,18);thumbnails[1410541]=new thumbnail(1410541,"80164","","11 Aug 2007 033 copyjpg_thumb.jpg",130,194,18);thumbnails[1410542]=new thumbnail(1410542,"80164","","11 Aug 2007 051jpg_thumb.jpg",130,194,18);thumbnails[1410544]=new thumbnail(1410544,"80164","","11 Aug 2007 061 copyjpg_thumb.jpg",130,194,18);thumbnails[1410545]=new thumbnail(1410545,"80164","","2007 06 30 001 copyjpg_thumb.jpg",130,194,18);thumbnails[1410546]=new thumbnail(1410546,"80164","","2007 08 01 104jpg_thumb.jpg",130,87,18);thumbnails[1410547]=new thumbnail(1410547,"80164","","2007 08 01 148jpg_thumb.jpg",130,183,18);thumbnails[1410548]=new thumbnail(1410548,"80164","","2007 08 01 151jpg_thumb.jpg",130,87,18);thumbnails[1410550]=new thumbnail(1410550,"80164","","2007 08 01 206jpg_thumb.jpg",130,194,18);thumbnails[1410551]=new thumbnail(1410551,"80164","","2007 08 01 232jpg_thumb.jpg",130,194,18);thumbnails[1411787]=new thumbnail(1411787,"80164","","038 copyjpg_thumb.jpg",130,201,18);thumbnails[1411789]=new thumbnail(1411789,"80164","","08 Sep 2007 106jpg_thumb.jpg",130,194,18);thumbnails[1411792]=new thumbnail(1411792,"80164","","039jpg_thumb.jpg",130,87,18);thumbnails[1827337]=new thumbnail(1827337,"80164","shoes and head dress","2007 07 18 004JPG_thumb.jpg",130,87,18);thumbnails[1827339]=new thumbnail(1827339,"80164","Blushing Bride!","2007 07 18 016 copyJPG_thumb.jpg",130,192,18);thumbnails[1827349]=new thumbnail(1827349,"80164","The Look of Love!","2007 07 18 018 copyJPG_thumb.jpg",130,194,18);thumbnails[1827350]=new thumbnail(1827350,"80164","Shall we do it too?!!","2007 07 18 020 copyJPG_thumb.jpg",130,98,18);thumbnails[1827352]=new thumbnail(1827352,"80164","Getting ready","2007 07 18 023JPG_thumb.jpg",130,194,18);thumbnails[1827355]=new thumbnail(1827355,"80164","Putting on shoes","2007 07 18 024JPG_thumb.jpg",130,194,18);thumbnails[1827357]=new thumbnail(1827357,"80164",'"My Pride and Joy" - Dad',"2007 07 18 047JPG_thumb.jpg",130,87,18);thumbnails[1827358]=new thumbnail(1827358,"80164","First Kiss!","2007 07 18 058 copyJPG_thumb.jpg",130,93,18);thumbnails[1827360]=new thumbnail(1827360,"80164","Joined Together....","2007 07 18 062 copyJPG_thumb.jpg",130,194,18);thumbnails[1827362]=new thumbnail(1827362,"80164","The Little Details...","2007 07 18 064JPG_thumb.jpg",130,194,18);thumbnails[1827363]=new thumbnail(1827363,"80164","The Groom's last dance!!","2007 07 18 100JPG_thumb.jpg",130,87,18);thumbnails[2074270]=new thumbnail(2074270,"80164","The Happy Couple","_DSC0005 copy_thumb.jpg",130,194,18);thumbnails[2074273]=new thumbnail(2074273,"80164","A Windy Day for it!!","_DSC0018 copy001_thumb.jpg",130,83,18);thumbnails[2074276]=new thumbnail(2074276,"80164","A Loving Look","_DSC0047 copy_thumb.jpg",130,194,18);thumbnails[2074280]=new thumbnail(2074280,"80164","Arriving at the Church","_DSC1970_thumb.jpg",130,194,18);thumbnails[2074288]=new thumbnail(2074288,"80164","Dad, I'm getting married!","_DSC1976 copy_thumb.jpg",130,193,18);thumbnails[2074290]=new thumbnail(2074290,"80164","Order of Service","_DSC1996 copy_thumb.jpg",130,87,18);thumbnails[2074301]=new thumbnail(2074301,"80164","Confetti!","_DSC2018 copy1_thumb.jpg",130,87,18);thumbnails[2074306]=new thumbnail(2074306,"80164","A glass of champagne","_DSC2024 copy_thumb.jpg",130,87,18);thumbnails[2074312]=new thumbnail(2074312,"80164","Groom and Bestman taking a stroll","_DSC0017_thumb.jpg",130,87,18);thumbnails[2074317]=new thumbnail(2074317,"80164","It will do up!Getting Ready","_DSC0028 copy_thumb.jpg",130,194,18);thumbnails[2074324]=new thumbnail(2074324,"80164","Shoes","_DSC0037 copy_thumb.jpg",130,99,18);thumbnails[2074328]=new thumbnail(2074328,"80164","Bride's Flowers","_DSC0038 copy_thumb.jpg",130,194,18);thumbnails[2074337]=new thumbnail(2074337,"80164","The Ceremony's about to start!","_DSC0069_thumb.jpg",130,87,18);thumbnails[2074339]=new thumbnail(2074339,"80164","Taking it easy!","_DSC0114_thumb.jpg",130,194,18);thumbnails[2074351]=new thumbnail(2074351,"80164","Detail","_DSC0061_thumb.jpg",130,87,18);thumbnails[2585635]=new thumbnail(2585635,"80164","Thats my wife!","_DSC4625JPG_thumb.jpg",130,194,18);thumbnails[2585636]=new thumbnail(2585636,"80164","","_DSC4772JPG_thumb.jpg",130,194,18);thumbnails[2585637]=new thumbnail(2585637,"80164","","_DSC4803JPG_thumb.jpg",130,194,18);thumbnails[2585639]=new thumbnail(2585639,"80164","","_DSC4799JPG_thumb.jpg",130,194,18);thumbnails[2585641]=new thumbnail(2585641,"80164","","_DSC0040JPG_thumb.jpg",130,180,18);thumbnails[2585649]=new thumbnail(2585649,"80164","Italian Villa - Wedding Breakfast","_DSC4741JPG_thumb.jpg",130,87,18);thumbnails[2585654]=new thumbnail(2585654,"80164","Don't lose them!!","_DSC3252JPG_thumb.jpg",130,87,18);thumbnails[2585656]=new thumbnail(2585656,"80164","Chilling!","_DSC3224JPG_thumb.jpg",130,116,18);thumbnails[2585659]=new thumbnail(2585659,"80164","A walk in the Golf course...Four!!","_DSC3353JPG_thumb.jpg",130,87,18);thumbnails[2585675]=new thumbnail(2585675,"80164","First Dance","_DSC5025JPG_thumb.jpg",130,194,18);thumbnails[3328563]=new thumbnail(3328563,"80164","","Sarah_Aaron_001_thumb.jpg",130,196,18);thumbnails[3328568]=new thumbnail(3328568,"80164","Nervous but gorgeous!","Sarah_Aaron_047_thumb.jpg",130,196,18);thumbnails[845196]=new thumbnail(845196,"65163","Princess!","lifestyle portraits 006_thumb.jpg",130,173,18);thumbnails[845197]=new thumbnail(845197,"65163","Lovely Abi","lifestyle portraits 007_thumb.jpg",130,173,18);thumbnails[845203]=new thumbnail(845203,"65163","","Picture 339 copyjpg_thumb.jpg",130,216,18);thumbnails[845205]=new thumbnail(845205,"65163","Water babe","lifestyle portraits 012_thumb.jpg",130,97,18);thumbnails[845206]=new thumbnail(845206,"65163","Moody Lucy!","lifestyle portraits 033_thumb.jpg",130,194,18);thumbnails[845329]=new thumbnail(845329,"65163","Belle of the Ball","lifestyle portraits 015_thumb.jpg",130,87,18);thumbnails[845330]=new thumbnail(845330,"65163","Tiny toes","lifestyle portraits 011_thumb.jpg",130,97,18);thumbnails[847666]=new thumbnail(847666,"65163","","_DSC0131 copyjpg_thumb.jpg",130,194,18);thumbnails[847669]=new thumbnail(847669,"65163","Cheeky monkey","lifestyle portraits 029_thumb.jpg",130,87,18);thumbnails[847672]=new thumbnail(847672,"65163","","Picture 341 copyjpg_thumb.jpg",130,194,18);thumbnails[847675]=new thumbnail(847675,"65163","The Boys x","lifestyle portraits 046_thumb.jpg",130,141,18);thumbnails[847677]=new thumbnail(847677,"65163","Jenny and Tom","lifestyle portraits 052_thumb.jpg",130,101,18);thumbnails[854131]=new thumbnail(854131,"65163","Meg and Rowie","lifestyle portraits 016_thumb.jpg",130,85,18);thumbnails[854135]=new thumbnail(854135,"65163","Daddy magic!","lifestyle portraits 030_thumb.jpg",130,87,18);thumbnails[854136]=new thumbnail(854136,"65163","","_DSC0168 copyjpg_thumb.jpg",130,194,18);thumbnails[854137]=new thumbnail(854137,"65163","Russia with laughs!","lifestyle portraits 035_thumb.jpg",130,87,18);thumbnails[854141]=new thumbnail(854141,"65163","Girls just wanna have fun!","lifestyle portraits 017_thumb.jpg",130,173,18);thumbnails[854147]=new thumbnail(854147,"65163","Baby Louis","lifestyle portraits 023_thumb.jpg",130,71,18);thumbnails[929298]=new thumbnail(929298,"65163","Happy couple","radha and john 011jpg_thumb.jpg",130,87,18);thumbnails[929314]=new thumbnail(929314,"65163","Radha and John","radha and john 044jpg_thumb.jpg",130,194,18);thumbnails[929323]=new thumbnail(929323,"65163","a cuddle!","radha and john 036jpg_thumb.jpg",130,194,18);thumbnails[929326]=new thumbnail(929326,"65163","Trendy couple","radha and john 059jpg_thumb.jpg",130,194,18);thumbnails[929333]=new thumbnail(929333,"65163","A kiss!","radha and john 081jpg_thumb.jpg",130,87,18);thumbnails[929335]=new thumbnail(929335,"65163","Looking good","radha and john 058jpg_thumb.jpg",130,194,18);thumbnails[1410606]=new thumbnail(1410606,"65163","","21 Aug 2007 030 copyjpg_thumb.jpg",130,87,18);thumbnails[1411794]=new thumbnail(1411794,"65163","","21 Aug 2007 032jpg_thumb.jpg",130,194,18);thumbnails[1411796]=new thumbnail(1411796,"65163","","21 Aug 2007 044 copyjpg_thumb.jpg",130,84,18);thumbnails[1411798]=new thumbnail(1411798,"65163","","21 Aug 2007 057 copyjpg_thumb.jpg",130,194,18);thumbnails[2585660]=new thumbnail(2585660,"65163","","_DSC2736JPG_thumb.jpg",130,87,18);thumbnails[2585667]=new thumbnail(2585667,"65163","","_DSC3148JPG_thumb.jpg",130,87,18);thumbnails[2585669]=new thumbnail(2585669,"65163","","_DSC3016JPG_thumb.jpg",130,194,18);thumbnails[2585671]=new thumbnail(2585671,"65163","","BECKY 30-5-09-38JPG_thumb.jpg",130,94,18);thumbnails[2585672]=new thumbnail(2585672,"65163","","_DSC3636 copyJPG_thumb.jpg",130,87,18);thumbnails[3029168]=new thumbnail(3029168,"186304","The Bump","DSC_0506_thumb.jpg",130,130,18);thumbnails[3029175]=new thumbnail(3029175,"186304","Pretty in pink","DSC_0533 copy_thumb.jpg",130,196,18);thumbnails[3029184]=new thumbnail(3029184,"186304","","DSC_0512-2_thumb.jpg",130,217,18);thumbnails[3029188]=new thumbnail(3029188,"186304","","DSC_0550_thumb.jpg",130,196,18);thumbnails[3072173]=new thumbnail(3072173,"186304","Lilly Rose ","DSC_0627-3_thumb.jpg",130,93,18);thumbnails[3072175]=new thumbnail(3072175,"186304","","DSC_0599_thumb.jpg",130,86,18);thumbnails[3072177]=new thumbnail(3072177,"186304","Proud Dad!","DSC_0635-2_thumb.jpg",130,130,18);var galleries=new Object();galleries[80164]=new gallery(80164,"1827363,1827358,1827339,1411792,1410544,1165905,867439","Weddings","gallery",[845125,845192,845194,845195,845199,845332,854133,854145,854148,867434,867439,1086972,1087005,1087024,1087158,1087165,1087167,1087168,1087170,1087173,1087178,1087180,1087181,1087183,1087197,1087234,1087261,1087274,1165905,1410541,1410542,1410544,1410545,1410546,1410547,1410548,1410550,1410551,1411787,1411789,1411792,1827337,1827339,1827349,1827350,1827352,1827355,1827357,1827358,1827360,1827362,1827363,2074270,2074273,2074276,2074280,2074288,2074290,2074301,2074306,2074312,2074317,2074324,2074328,2074337,2074339,2074351,2585635,2585636,2585637,2585639,2585641,2585649,2585654,2585656,2585659,2585675,3328563,3328568]);galleries[65163]=new gallery(65163,"1411794","Lifestyle Portraits","gallery",[845196,845197,845203,845205,845206,845329,845330,847666,847669,847672,847675,847677,854131,854135,854136,854137,854141,854147,929298,929314,929323,929326,929333,929335,1410606,1411794,1411796,1411798,2585660,2585667,2585669,2585671,2585672]);galleries[186304]=new gallery(186304,"3072173","Bump2baby","gallery",[3029168,3029175,3029184,3029188,3072173,3072175,3072177]);var imageSets=new Object();imageSets[1]="3029188,3029175,2585667,2585660,2585639,2585636,2585635,1827363,1827358,1827339,1411794,1411792,1410544,1165905,1087261,1087197,1087180,1087178,1087168,1087167,1086972,867439,854136,845206,845205,845203,845197";imageSets[2]="3072173,1827363,1827358,1827339,1411794,1411792,1410544,1165905,867439";imageSets[3]="3328568,3328563,3072177,3072175,3072173,3029188,3029184,3029175,3029168,2585675,2585672,2585671,2585669,2585667,2585660,2585659,2585656,2585654,2585649,2585641,2585639,2585637,2585636,2585635,2074351,2074339,2074337,2074328,2074324,2074317,2074312,2074306,2074301,2074290,2074288,2074280,2074276,2074273,2074270,1827363,1827362,1827360,1827358,1827357,1827355,1827352,1827350,1827349,1827339,1827337";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/nwestlake/images";break}switch(a){case 1:b="http://www1.clikpic.com/nwestlake/images";break}switch(a){case 2:b="http://admin.clikpic.com/nwestlake/images";break}switch(a){case 4:b="http://www.clikchurch.com/nwestlake/images";break}switch(a){case 5:b="http://www2.clikpic.com/nwestlake/images";break}switch(a){case 15:b="http://www3.clikpic.com/nwestlake/images";break}switch(a){case 21:b="http://www6.clikpic.com/nwestlake/images";break}switch(a){case 18:b="http://www4.clikpic.com/nwestlake/images";break}switch(a){case 19:b="http://www5.clikpic.com/nwestlake/images";break}switch(a){case 22:b="http://tpc5/clikpic/nwestlake/images";break}switch(a){case 23:b="http://tpc10/clikpic/nwestlake/images";break}switch(a){case 24:b="http://tpc15/clikpic/nwestlake/images";break}switch(a){case 25:b="http://tpc16/clikpic/nwestlake/images";break}switch(a){case 31:b="http://www7.clikpic.com/nwestlake/images";break}switch(a){case 32:b="http://admin2.clikpic.com/nwestlake/images";break}switch(a){case 33:b="http://www8.clikpic.com/nwestlake/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="Nickie Westlake 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>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(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+'<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+'")'})}}};