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[1899312]=new thumbnail(1899312,"313969","Still life February 2008","stilllifegabsbuckingham2_thumb.jpg",130,130,1);thumbnails[2559134]=new thumbnail(2559134,"313969","The Corner of my Garden","swingweb_thumb.jpg",130,130,1);thumbnails[5541161]=new thumbnail(5541161,"313969","Journey Home - Feb 2010","journeyhomeclicpic1_thumb.jpg",130,130,1);thumbnails[5545862]=new thumbnail(5545862,"313969","Spring Blossom 2009 - Acrylic on paper<br>\r\n","blossomsky_thumb.jpg",130,130,1);thumbnails[5545934]=new thumbnail(5545934,"313969","Acrylic on canvas - Freya at the Beach","gabriellaBuckinghamFreyaatthebeach_thumb.jpg",130,130,1);thumbnails[5546078]=new thumbnail(5546078,"313969","Cherry Tree - Acrylic on paper","cherryblossom_thumb.jpg",130,130,1);thumbnails[5546082]=new thumbnail(5546082,"313969","The Hedge - acrylic on canvas","clicpichedge_thumb.jpg",130,130,1);thumbnails[5546181]=new thumbnail(5546181,"313969","Poppies - Acrylic on canvas","clicpicpoppies_thumb.jpg",130,130,1);thumbnails[5546214]=new thumbnail(5546214,"313969","Dahlias - Oil on canvas","dhalias_thumb.jpg",130,127,1);thumbnails[5546222]=new thumbnail(5546222,"313969","Garden view - acrylic on canvas board","rooftopsinthegarden_thumb.jpg",130,130,1);thumbnails[5546314]=new thumbnail(5546314,"313969","Little Beads - acrylic on canvas","sequinsandbeads_thumb.jpg",130,130,1);thumbnails[5546339]=new thumbnail(5546339,"313969","mackerel - acrylic on little chunky canvas","mackerel_thumb.jpg",130,130,1);thumbnails[5546345]=new thumbnail(5546345,"313969","Shells and Stones - acrylic on canvas","shellsandstones_thumb.jpg",130,130,1);thumbnails[5546356]=new thumbnail(5546356,"313969","Three Trees - Acrylic on Canvas - sold","threetrees_thumb.jpg",130,130,1);thumbnails[5546363]=new thumbnail(5546363,"313969","Spot the ironing board - acrylic on little chunky canvas","Spottheironingboard_thumb.jpg",130,130,1);thumbnails[5546368]=new thumbnail(5546368,"313969","Cromer View - acrylic on chunky canvas","thebowlinggreen_thumb.jpg",130,130,1);thumbnails[5546396]=new thumbnail(5546396,"313969","Red Tulips - oil on paper - sold","tulipstillife_thumb.jpg",130,130,1);thumbnails[5546458]=new thumbnail(5546458,"313969","Watch the phone - acrylic on little chunky canvas","Watchthephone_thumb.jpg",130,130,1);thumbnails[5546463]=new thumbnail(5546463,"313969","The Chair - oil on canvas","thechair_thumb.jpg",130,130,1);thumbnails[5546485]=new thumbnail(5546485,"313969","","whitetulips_thumb.jpg",130,130,1);thumbnails[5546595]=new thumbnail(5546595,"313969","Rowan Tree - acrylic on canvasboard","winterscene_thumb.jpg",130,130,1);thumbnails[1837480]=new thumbnail(1837480,"121080",'Page from "Grandma\'s Garden" - Red Robin Books',"grandma_thumb.jpg",130,130,1);thumbnails[1856215]=new thumbnail(1856215,"121080",'Page from "Sam\'s Sack from Santa"- Red Robin Books',"saminbed_thumb.jpg",130,130,1);thumbnails[1856223]=new thumbnail(1856223,"121080",'Another page from "Sam\'s Sack from Santa"',"samlooksout1_thumb.jpg",130,130,1);thumbnails[1856224]=new thumbnail(1856224,"121080",'Page from "Grandma\'s Garden"',"grandmabed_thumb.jpg",130,130,1);thumbnails[1856511]=new thumbnail(1856511,"121080","Baby Jesus - Board book - Ladybird","jesusborn_thumb.jpg",130,130,1);thumbnails[1857979]=new thumbnail(1857979,"121080","Magic Shapes - Armadillo Books","henseggs_thumb.jpg",130,130,1);thumbnails[1857993]=new thumbnail(1857993,"121080","Spread for Heads, Shoulders, Knees and Toes - a board book by Nicola Baxter - Armadillo","kneespread_thumb.jpg",130,130,1);thumbnails[1858932]=new thumbnail(1858932,"121080",'Cover for "Moses" - Ladybird board book',"mosescover_thumb.jpg",130,130,1);thumbnails[1858938]=new thumbnail(1858938,"121080","Illustration for Now You Are One - Lion Publishing","panda_thumb.jpg",130,130,1);thumbnails[1860158]=new thumbnail(1860158,"121080",'Cover for "Heads,Shoulders,Knees and Toes" - Armadillo',"kneescover_thumb.jpg",130,130,1);thumbnails[1860165]=new thumbnail(1860165,"121080",'Illustration from "Magic Shapes" - Armadillo,Nicola Baxter',"sheeprun_thumb.jpg",130,130,1);thumbnails[1863075]=new thumbnail(1863075,"121080",'Double page spread for "Wheels on the Bus" - Armadillo ',"wheels_thumb.jpg",130,130,1);thumbnails[1863079]=new thumbnail(1863079,"121080",'"Magic Colours" - Armadillo',"magiccolours_thumb.jpg",130,130,1);thumbnails[1863361]=new thumbnail(1863361,"121080",'"Molly Maran and the Fox" - Ladybird',"foxoff_thumb.jpg",130,130,1);thumbnails[1865386]=new thumbnail(1865386,"121080","Incy Wincy Spider - Armadillo","coverincy_thumb.jpg",130,130,1);thumbnails[1865395]=new thumbnail(1865395,"121080",'"Baby Moses" - Ladybird ',"egypt_thumb.jpg",130,130,1);thumbnails[1865409]=new thumbnail(1865409,"121080",'"Incy Wincy Spider" - Armadillo',"incy-washed-out_thumb.jpg",130,130,1);thumbnails[1865417]=new thumbnail(1865417,"121080",'"Baby Jesus" - Ladybird Books',"annunc_thumb.jpg",130,130,1);thumbnails[1865528]=new thumbnail(1865528,"121080",'"Heads Shoulders Knees and Toes" - Armadillo',"applepic_thumb.jpg",130,130,1);thumbnails[1865530]=new thumbnail(1865530,"121080",'"Wheels on the Bus" - Armadillo',"bus_thumb.jpg",130,130,1);thumbnails[1865533]=new thumbnail(1865533,"121080",'"Five Little Stars" - Ladybird',"cat_thumb.jpg",130,130,1);thumbnails[1865534]=new thumbnail(1865534,"121080",'"Heads, Shoulders,Knees and Toes" - Armadillo',"comeback-birds_thumb.jpg",130,130,1);thumbnails[1865537]=new thumbnail(1865537,"121080",'"Wheels on the Bus" - Armadillo',"knitbus_thumb.jpg",130,130,1);thumbnails[1865547]=new thumbnail(1865547,"121080",'"Five Little Stars" - Ladybird',"roof_thumb.jpg",130,130,1);thumbnails[1865558]=new thumbnail(1865558,"121080",'"Row Your Boat" - Armadillo',"trow_thumb.jpg",130,130,1);thumbnails[1865615]=new thumbnail(1865615,"121080","Two illustrations from a set of four small<br>\r\ngift books for Lion Publishing","daisies_thumb.jpg",130,130,1);thumbnails[1865618]=new thumbnail(1865618,"121080",'Hellebores from "Thinking of You" a gift book for Lion Publishing',"helle_thumb.jpg",130,130,1);thumbnails[1865657]=new thumbnail(1865657,"121080",'"Row,Row,Row Your Boat" - Armadillo',"ring_thumb.jpg",130,130,1);thumbnails[1869800]=new thumbnail(1869800,"121080","Lion Publishing","hyacinth_thumb.jpg",130,130,1);thumbnails[1869819]=new thumbnail(1869819,"121080","Lion Publishing","roses_thumb.jpg",130,130,1);thumbnails[1870763]=new thumbnail(1870763,"121080","Lion Publishing","animals_thumb.jpg",130,130,1);thumbnails[1870765]=new thumbnail(1870765,"121080","Lion Publishing","cowduck_thumb.jpg",130,130,1);thumbnails[1870767]=new thumbnail(1870767,"121080","Lion Publishing","exhauted_thumb.jpg",130,130,1);thumbnails[1870769]=new thumbnail(1870769,"121080","Lion Publishing","peepo_thumb.jpg",130,130,1);thumbnails[1870771]=new thumbnail(1870771,"121080","Lion Publishing","play_thumb.jpg",130,130,1);thumbnails[1870774]=new thumbnail(1870774,"121080","Lion Publishing","rabbit1_thumb.jpg",130,130,1);thumbnails[1870776]=new thumbnail(1870776,"121080","Lion Publishing","sleepy-moon_thumb.jpg",130,130,1);thumbnails[1870785]=new thumbnail(1870785,"121080","Lion Publishing","sun_thumb.jpg",130,130,1);thumbnails[1870788]=new thumbnail(1870788,"121080","Lion Publishing","undertab_thumb.jpg",130,130,1);thumbnails[1871853]=new thumbnail(1871853,"121080","Lion Publishing","koala1_thumb.jpg",130,130,1);thumbnails[1856270]=new thumbnail(1856270,"121082","Magnolia Stellata - Ling Design","magnoliastellata_thumb.jpg",130,130,1);thumbnails[1856389]=new thumbnail(1856389,"121082","Anniversary - Hallmark","moonlight_thumb.jpg",130,130,1);thumbnails[1856508]=new thumbnail(1856508,"121082","Gerberas - PaperHouse","gerberas_thumb.jpg",130,130,1);thumbnails[1856517]=new thumbnail(1856517,"121082","Santa on Skis - Ling Design","santa_thumb.jpg",130,130,1);thumbnails[1863318]=new thumbnail(1863318,"121082","Paperlink","arch-artwork_thumb.jpg",130,130,1);thumbnails[1863350]=new thumbnail(1863350,"121082","Paperlink","fishermn_thumb.jpg",130,130,1);thumbnails[1863444]=new thumbnail(1863444,"121082","Hallmark","washingline_thumb.jpg",130,130,1);thumbnails[1869786]=new thumbnail(1869786,"121082","Gibson Greetings","anitrain_thumb.jpg",130,130,1);thumbnails[1869791]=new thumbnail(1869791,"121082","Medici","champ_thumb.jpg",130,130,1);thumbnails[1869794]=new thumbnail(1869794,"121082","Gibson","underwatcat062_thumb.jpg",130,130,1);thumbnails[1869796]=new thumbnail(1869796,"121082","Gibson","daisy_thumb.jpg",130,130,1);thumbnails[1869801]=new thumbnail(1869801,"121082","Card Connection","irises_thumb.jpg",130,130,1);thumbnails[1869808]=new thumbnail(1869808,"121082","Medici","melons_thumb.jpg",130,130,1);thumbnails[1869813]=new thumbnail(1869813,"121082","Medici","rabbgrape_thumb.jpg",130,130,1);thumbnails[1869814]=new thumbnail(1869814,"121082","PaperHouse","rabbit_thumb.jpg",130,130,1);thumbnails[1869825]=new thumbnail(1869825,"121082","Gibson","sheepchick_thumb.jpg",130,130,1);thumbnails[1869827]=new thumbnail(1869827,"121082","Card Connection","stilllife_thumb.jpg",130,130,1);thumbnails[1869830]=new thumbnail(1869830,"121082","Gibson","xmasfloral_thumb.jpg",130,130,1);thumbnails[5545753]=new thumbnail(5545753,"121082","Noah's Ark - acrylic on paper","ark_thumb.jpg",130,130,1);thumbnails[5545922]=new thumbnail(5545922,"121082","Circus Train - acrylic on paper - Notelet design","circustrain_thumb.jpg",130,130,1);thumbnails[5546172]=new thumbnail(5546172,"121082","Claire Maddicott ","hirespeach_plate_thumb.jpg",130,130,1);thumbnails[5546474]=new thumbnail(5546474,"121082","Claire Maddicott ","yellowplate2_thumb.jpg",130,130,1);thumbnails[1856360]=new thumbnail(1856360,"121084","Advent Calendar - Jarrolds<br>\r\nThis image is available.","treeclic_thumb.jpg",130,130,1);thumbnails[1857974]=new thumbnail(1857974,"121084","Silent Night - for a children's carol book - Tormont Publications, Canada","silentnight_thumb.jpg",130,130,1);thumbnails[1857984]=new thumbnail(1857984,"121084","These are the interior artworks for the Christmas tree advent calendar I did for Jarrolds.","iconslarge_thumb.jpg",130,130,1);thumbnails[1860161]=new thumbnail(1860161,"121084","RNLI Calendar cover - Jarrolds","rnlical_thumb.jpg",130,130,1);thumbnails[1865326]=new thumbnail(1865326,"121084","Artwork for a children's puzzle - Living and Learning","shakemake_thumb.jpg",130,130,1);thumbnails[1865650]=new thumbnail(1865650,"121084","Images used on the RNLI calendar - Jarrolds","rnliimages_thumb.jpg",130,130,1);thumbnails[1807497]=new thumbnail(1807497,"121081","Earl Grey","tea_thumb.jpg",130,130,1);thumbnails[1853460]=new thumbnail(1853460,"121081","Allium on canvas","allium_thumb.jpg",130,130,1);thumbnails[1856184]=new thumbnail(1856184,"121081","Pirate Ted - private commission before child's name was added!","pirateted_thumb.jpg",130,130,1);thumbnails[1856191]=new thumbnail(1856191,"121081","Mermaid ","mermdclic_thumb.jpg",130,130,1);thumbnails[1856193]=new thumbnail(1856193,"121081","Camper on canvas","camper_thumb.jpg",130,130,1);thumbnails[1863367]=new thumbnail(1863367,"121081","Personal Christmas card in early 2000's!","santacat_thumb.jpg",130,130,1);thumbnails[1865536]=new thumbnail(1865536,"121081","Angel","fairy044_thumb.jpg",130,130,1);thumbnails[1869788]=new thumbnail(1869788,"121081","Beehive","beehive_thumb.jpg",130,130,1);thumbnails[1869802]=new thumbnail(1869802,"121081","Get Well","lemons_thumb.jpg",130,130,1);thumbnails[1869818]=new thumbnail(1869818,"121081","Fast Food?","ricenpeas047_thumb.jpg",130,130,1);thumbnails[1869824]=new thumbnail(1869824,"121081","Wooly Jumper","sheep_thumb.jpg",130,130,1);thumbnails[2617295]=new thumbnail(2617295,"121081","An image from my Moobaacluck range - see links","princessclik_thumb.jpg",128,130,1);thumbnails[4363724]=new thumbnail(4363724,"121081","Red Plate on Pink - Acrylic on Canvas","redspotclikpic_thumb.jpg",130,130,1);thumbnails[5546492]=new thumbnail(5546492,"121081","Artwork sold privately but image available","whitetulips1_thumb.jpg",130,130,1);var galleries=new Object();galleries[313969]=new gallery(313969,"5546595,5546396,5546368,5546356,5546345,5546222,5546214,5541161,1899312","Fine Art","gallery",[1899312,2559134,5541161,5545862,5545934,5546078,5546082,5546181,5546214,5546222,5546314,5546339,5546345,5546356,5546363,5546368,5546396,5546458,5546463,5546485,5546595]);galleries[121080]=new gallery(121080,"1871853,1870788,1870785,1870776,1870774,1870771,1870769,1870767,1870765,1870763","Book Illustrations","gallery",[1837480,1856215,1856223,1856224,1856511,1857979,1857993,1858932,1858938,1860158,1860165,1863075,1863079,1863361,1865386,1865395,1865409,1865417,1865528,1865530,1865533,1865534,1865537,1865547,1865558,1865615,1865618,1865657,1869800,1869819,1870763,1870765,1870767,1870769,1870771,1870774,1870776,1870785,1870788,1871853]);galleries[121082]=new gallery(121082,"5546474,5546172,5545922,5545753","Greeting Cards","gallery",[1856270,1856389,1856508,1856517,1863318,1863350,1863444,1869786,1869791,1869794,1869796,1869801,1869808,1869813,1869814,1869825,1869827,1869830,5545753,5545922,5546172,5546474]);galleries[121084]=new gallery(121084,"1865650,1865326,1860161,1857984,1857974,1856360","Other Published Work","gallery",[1856360,1857974,1857984,1860161,1865326,1865650]);galleries[121081]=new gallery(121081,"4363724,1853460","Unpublished","gallery",[1807497,1853460,1856184,1856191,1856193,1863367,1865536,1869788,1869802,1869818,1869824,2617295,4363724,5546492]);var imageSets=new Object();imageSets[1]="5541161,1899312,1837480";imageSets[2]="5546595,5546474,5546396,5546368,5546356,5546345,5546222,5546214,5546172,5545922,5545753,5541161,4363724,1899312,1853460";imageSets[3]="2559134";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/gabsbuckingham/images";break}switch(a){case 1:b="http://www1.clikpic.com/gabsbuckingham/images";break}switch(a){case 2:b="http://admin.clikpic.com/gabsbuckingham/images";break}switch(a){case 24:b="http://tpc15/clikpic/gabsbuckingham/images";break}switch(a){case 4:b="http://www.clikchurch.com/gabsbuckingham/images";break}switch(a){case 5:b="http://www2.clikpic.com/gabsbuckingham/images";break}switch(a){case 22:b="http://tpc5/clikpic/gabsbuckingham/images";break}switch(a){case 23:b="http://tpc10/clikpic/gabsbuckingham/images";break}switch(a){case 25:b="http://tpc16/clikpic/gabsbuckingham/images";break}switch(a){case 15:b="http://www3.clikpic.com/gabsbuckingham/images";break}switch(a){case 18:b="http://www4.clikpic.com/gabsbuckingham/images";break}switch(a){case 19:b="http://www5.clikpic.com/gabsbuckingham/images";break}switch(a){case 31:b="http://www7.clikpic.com/gabsbuckingham/images";break}switch(a){case 32:b="http://admin2.clikpic.com/gabsbuckingham/images";break}switch(a){case 33:b="http://www8.clikpic.com/gabsbuckingham/images";break}switch(a){case 34:b="http://www9.clikpic.com/gabsbuckingham/images";break}switch(a){case 35:b="http://admin3.clikpic.com/gabsbuckingham/images";break}switch(a){case 37:b="http://admin4.clikpic.com/gabsbuckingham/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="Gabriella Buckingham: "+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].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+'")'})}}};