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[1230256]=new thumbnail(1230256,"","Claire Plastow","claire black & white edit1.jpg",130,173,1);thumbnails[1222969]=new thumbnail(1222969,"71332","Front Elevation before","FRONT 1 edit1.jpg",130,98,1);thumbnails[1222989]=new thumbnail(1222989,"71332","Dining Room before","D B 1 edit1.jpg",130,98,1);thumbnails[1222991]=new thumbnail(1222991,"71332","Drawing Room before","DR B 1 edit1.jpg",130,98,1);thumbnails[1223000]=new thumbnail(1223000,"71332","Master Bedroom before","MB B 1 edit1.jpg",130,98,1);thumbnails[1223009]=new thumbnail(1223009,"71332","Front Elevation","EX 1 edit1.jpg",130,86,1);thumbnails[1223021]=new thumbnail(1223021,"71332","Rear Elevation","EX 2 edit1.jpg",130,86,1);thumbnails[1223026]=new thumbnail(1223026,"71332","Dining Room 1","D 2 edit1.jpg",130,195,1);thumbnails[1223028]=new thumbnail(1223028,"71332","Dining Room 2","D 3 edit1.jpg",130,86,1);thumbnails[1223032]=new thumbnail(1223032,"71332","Drawing Room 1","DR 1 edit1.jpg",130,86,1);thumbnails[1223036]=new thumbnail(1223036,"71332","Drawing Room 2","DR 4 edit1.jpg",130,195,1);thumbnails[1223081]=new thumbnail(1223081,"71332","Kitchen 1","K 4 edit1.jpg",130,86,1);thumbnails[1227229]=new thumbnail(1227229,"71332","Kitchen Floor Plan","Kitchen floor plan edit3.jpg",130,116,1);thumbnails[1223082]=new thumbnail(1223082,"71332","Kitchen 2","K 5 edit1.jpg",130,86,1);thumbnails[1223085]=new thumbnail(1223085,"71332","Kitchen 3","K 7 eidt1.jpg",130,86,1);thumbnails[1223077]=new thumbnail(1223077,"71332","Kitchen 4","K 1a edit1.jpg",130,86,1);thumbnails[1223078]=new thumbnail(1223078,"71332","Kitchen 5","K 2 edit1.jpg",130,107,1);thumbnails[1223045]=new thumbnail(1223045,"71332","Entrance Hall","H 2 edit1.jpg",130,86,1);thumbnails[1223069]=new thumbnail(1223069,"71332","Gallery Landings","H 3 edit1.jpg",130,86,1);thumbnails[1223072]=new thumbnail(1223072,"71332","Boy's Bedroom 1","J 1 edit1.jpg",130,86,1);thumbnails[1223075]=new thumbnail(1223075,"71332","Boy's Bedroom 2","J 2 edit1.jpg",130,195,1);thumbnails[1223087]=new thumbnail(1223087,"71332","Girl's Bedroom","L edit1.jpg",130,195,1);thumbnails[1223091]=new thumbnail(1223091,"71332","Guest Bedroom","LIL edit1.jpg",130,86,1);thumbnails[1223094]=new thumbnail(1223094,"71332","Master Bedroom 1","MB 1 edit1.jpg",130,86,1);thumbnails[1227234]=new thumbnail(1227234,"71332","Master Bedroom Floor Plan","Complete layout edit3.jpg",130,179,1);thumbnails[1223096]=new thumbnail(1223096,"71332","Master Bedroom 2","MB 2 edit1.jpg",130,195,1);thumbnails[1223100]=new thumbnail(1223100,"71332","Master Bedroom 3","MB 4 edit1.jpg",130,91,1);thumbnails[1223104]=new thumbnail(1223104,"71332","En Suite to Master Bedroom","MBES 2 edit1.jpg",130,86,1);thumbnails[1223107]=new thumbnail(1223107,"71332","Cloakroom 1","WC 1 edit1.jpg",130,195,1);thumbnails[1223112]=new thumbnail(1223112,"71332","Cloakroom 2","WC 3 edit1.jpg",130,195,1);thumbnails[1223037]=new thumbnail(1223037,"71332","Family Bathroom 1","FB 1 edit1.jpg",130,195,1);thumbnails[1223040]=new thumbnail(1223040,"71332","Family Bathroom 2","FB 2 edit1.jpg",130,86,1);thumbnails[1223041]=new thumbnail(1223041,"71332","Gym","G edit1.jpg",130,86,1);thumbnails[1225846]=new thumbnail(1225846,"71327","Before","before edit3.jpg",130,173,1);thumbnails[1225913]=new thumbnail(1225913,"71327","Ideas sketch","scale sketch edit1.jpg",130,181,1);thumbnails[1225851]=new thumbnail(1225851,"71327","After","after edit1.jpg",130,173,1);thumbnails[1226398]=new thumbnail(1226398,"71326","Before","before edit5.jpg",130,98,1);thumbnails[1226407]=new thumbnail(1226407,"71326","After 1","_MG_4715_thumb.jpg",130,85,1);thumbnails[1226412]=new thumbnail(1226412,"71326","After 2","_MG_4753_thumb.jpg",130,195,1);thumbnails[1226415]=new thumbnail(1226415,"71326","After 3","_MG_4769_thumb.jpg",130,197,1);thumbnails[1226418]=new thumbnail(1226418,"71326","After 4","_MG_4760_thumb.jpg",130,195,1);thumbnails[1226427]=new thumbnail(1226427,"71326","After 5","_MG_4777_thumb.jpg",129,200,1);thumbnails[2908498]=new thumbnail(2908498,"71326","","_MG_4785_thumb.jpg",130,199,1);thumbnails[1226451]=new thumbnail(1226451,"71326","After 6","picture edit1.jpg",130,173,1);thumbnails[1226456]=new thumbnail(1226456,"71326","After 7","floor 1 edit1.jpg",130,173,1);thumbnails[1226457]=new thumbnail(1226457,"71326","After 8","floor 2 edit1.jpg",130,173,1);thumbnails[2908497]=new thumbnail(2908497,"71326","After 9","_MG_4828_thumb.jpg",130,86,1);thumbnails[1226525]=new thumbnail(1226525,"87766","Before","before edit7.jpg",130,98,1);thumbnails[1226528]=new thumbnail(1226528,"87766","After 1","frenchwin edit1.jpg",130,98,1);thumbnails[1226531]=new thumbnail(1226531,"87766","After 2","floordetail edit1.jpg",130,173,1);thumbnails[1226532]=new thumbnail(1226532,"87766","After 3","ruglrg edit1.jpg",130,98,1);thumbnails[1226554]=new thumbnail(1226554,"71321","Before","before edit9.jpg",130,98,1);thumbnails[1226557]=new thumbnail(1226557,"71321","After 1","after edit5.jpg",130,98,1);thumbnails[1226559]=new thumbnail(1226559,"71321","After 2","after detail edit1.jpg",130,173,1);thumbnails[1226560]=new thumbnail(1226560,"71321","After 3","light edit1.jpg",130,173,1);thumbnails[1226902]=new thumbnail(1226902,"71308","Before","hall b efore edit1.jpg",130,173,1);thumbnails[1226915]=new thumbnail(1226915,"71308","After 1","hall edit1.jpg",130,173,1);thumbnails[1226909]=new thumbnail(1226909,"71308","After 2","bath edit1.jpg",130,173,1);thumbnails[1226925]=new thumbnail(1226925,"71308","After 3","shower eidt1.jpg",130,173,1);thumbnails[1226929]=new thumbnail(1226929,"71308","After 4","sitting edit1.jpg",130,98,1);thumbnails[1226912]=new thumbnail(1226912,"71308","After 5","bed 1 edit1.jpg",130,173,1);thumbnails[1226919]=new thumbnail(1226919,"71308","After 6","kitchen edit1.jpg",130,98,1);thumbnails[3170174]=new thumbnail(3170174,"194091","","1 Chatsworth bedroom edit_thumb.jpg",130,86,1);thumbnails[3170183]=new thumbnail(3170183,"194091","","2 Den edit_thumb.jpg",130,86,1);thumbnails[3170187]=new thumbnail(3170187,"194091","","3 Dining room edit_thumb.jpg",130,184,1);thumbnails[3170189]=new thumbnail(3170189,"194091","","5 La belle vie bedroom edit_thumb.jpg",130,86,1);thumbnails[3170215]=new thumbnail(3170215,"194091","","6 Mandalay bedroom edit_thumb.jpg",130,184,1);thumbnails[3170225]=new thumbnail(3170225,"194091","","8 Milano bedroom edit_thumb.jpg",130,86,1);thumbnails[3170282]=new thumbnail(3170282,"194091","","7 Manhattan bedroom edit_thumb.jpg",130,86,1);thumbnails[3170286]=new thumbnail(3170286,"194091","","4 Glacier bedroom edit_thumb.jpg",130,86,1);thumbnails[1188795]=new thumbnail(1188795,"71331","Before","before edit1.jpg",130,173,1);thumbnails[1188799]=new thumbnail(1188799,"71331","After 1","bed edit1.jpg",130,98,1);thumbnails[1188800]=new thumbnail(1188800,"71331","After 2","Lamp detail edit1.jpg",130,173,1);thumbnails[1188803]=new thumbnail(1188803,"71331","After 4","art detail edit1.jpg",130,98,1);thumbnails[1226966]=new thumbnail(1226966,"71309","Before","before edit11.jpg",130,98,1);thumbnails[1226969]=new thumbnail(1226969,"71309","After 1","bed view edit1.jpg",130,98,1);thumbnails[1226975]=new thumbnail(1226975,"71309","After 2","wardrobe view edit1.jpg",130,98,1);thumbnails[1226981]=new thumbnail(1226981,"71309","After 3","cushions 1 edit1.jpg",130,98,1);thumbnails[1226982]=new thumbnail(1226982,"71309","After 4","lamp 1 edit1.jpg",130,98,1);thumbnails[1226985]=new thumbnail(1226985,"71309","After 5","window 1 edit1.jpg",130,173,1);thumbnails[1226994]=new thumbnail(1226994,"71337","Before","before edit13.jpg",130,98,1);thumbnails[1226997]=new thumbnail(1226997,"71337","After 1","bed 1 edit6.jpg",130,98,1);thumbnails[1226998]=new thumbnail(1226998,"71337","After 2","window edit1.jpg",130,173,1);thumbnails[1226999]=new thumbnail(1226999,"71337","After 3","bedside table edit1.jpg",130,173,1);thumbnails[1227000]=new thumbnail(1227000,"71337","After 4","lamp edit1.jpg",130,173,1);thumbnails[1227030]=new thumbnail(1227030,"71337","After 5","dressing table edit1.jpg",130,98,1);thumbnails[1227037]=new thumbnail(1227037,"71337","After 6","cushions 2 edit1.jpg",130,173,1);thumbnails[1226495]=new thumbnail(1226495,"71335","Before","s before edit1.jpg",130,173,1);thumbnails[1226496]=new thumbnail(1226496,"71335","After 1","A 1 edit1.jpg",130,173,1);thumbnails[1226497]=new thumbnail(1226497,"71335","After 2","BLINDS edit1.jpg",130,98,1);thumbnails[1226499]=new thumbnail(1226499,"71335","After 3","PICTURES edit1.jpg",130,173,1);thumbnails[1227048]=new thumbnail(1227048,"71340","Occassional Chair","chair edit1.jpg",130,173,1);thumbnails[1227050]=new thumbnail(1227050,"71340","Character Standard Lamp","light 2 edit1.jpg",130,173,1);thumbnails[1227053]=new thumbnail(1227053,"71340","Character Chair","wooden chair edit1.jpg",130,173,1);thumbnails[1227054]=new thumbnail(1227054,"71340","Contemporary Blinds","blinds edit3.jpg",130,98,1);thumbnails[1227056]=new thumbnail(1227056,"71340","Modern Style Curtain","BRADLEY edit1.jpg",130,98,1);thumbnails[1227059]=new thumbnail(1227059,"71340","Indian Silk Curtain","SILK edit1.jpg",130,173,1);var galleries=new Object();galleries[70216]=new gallery(70216,"1225851,1223112,1223107,1223104,1223100,1223096,1223094,1223091,1223087,1223085,1223082,1223081,1223078,1223077,1223075,1223072,1223069,1223045,1223040,1223037,1223036,1223032,1223028,1223026,1223021,1223009","Extension & Conversion Projects","gallery",[]);galleries[71332]=new gallery(71332,"1223112,1223107,1223104,1223100,1223096,1223094,1223091,1223087,1223085,1223082,1223081,1223078,1223077,1223075,1223072,1223069,1223045,1223040,1223037,1223036,1223032,1223028,1223026,1223021,1223009","Family Home","gallery",[1222969,1222989,1222991,1223000,1223009,1223021,1223026,1223028,1223032,1223036,1223081,1227229,1223082,1223085,1223077,1223078,1223045,1223069,1223072,1223075,1223087,1223091,1223094,1227234,1223096,1223100,1223104,1223107,1223112,1223037,1223040,1223041]);galleries[71327]=new gallery(71327,"1225851","Front Entrance re-modelling","gallery",[1225846,1225913,1225851]);galleries[71307]=new gallery(71307,"2908498,2908497,1226560,1226559,1226557,1226532,1226531,1226528,1226457,1226456,1226451,1226427,1226418,1226415,1226412,1226407"," Refurbishment Projects","gallery",[]);galleries[71326]=new gallery(71326,"2908498,2908497,1226457,1226456,1226451,1226427,1226418,1226415,1226412,1226407","Kitchen","gallery",[1226398,1226407,1226412,1226415,1226418,1226427,2908498,1226451,1226456,1226457,2908497]);galleries[87766]=new gallery(87766,"1226532,1226531,1226528","Sitting Room","gallery",[1226525,1226528,1226531,1226532]);galleries[71321]=new gallery(71321,"1226560,1226559,1226557","Dining Room","gallery",[1226554,1226557,1226559,1226560]);galleries[194090]=new gallery(194090,"3170286,3170282,3170225,3170215,3170189,3170187,3170174,1226929,1226925,1226915,1226912,1226909","Buy-to-let & Styling Projects","gallery",[]);galleries[71308]=new gallery(71308,"1226929,1226925,1226915,1226912,1226909","Buy-to-let","gallery",[1226902,1226915,1226909,1226925,1226929,1226912,1226919]);galleries[194091]=new gallery(194091,"3170286,3170282,3170225,3170215,3170189,3170187,3170174","Styling","gallery",[3170174,3170183,3170187,3170189,3170215,3170225,3170282,3170286]);galleries[71310]=new gallery(71310,"1227037,1227030,1227000,1226999,1226998,1226997,1226985,1226982,1226981,1226975,1226969,1226499,1226497,1226496,1188803,1188800,1188799","Decorative Projects","gallery",[]);galleries[71331]=new gallery(71331,"1188803,1188800,1188799","Guest Bedroom 1","gallery",[1188795,1188799,1188800,1188803]);galleries[71309]=new gallery(71309,"1226985,1226982,1226981,1226975,1226969","Guest Bedroom 2","gallery",[1226966,1226969,1226975,1226981,1226982,1226985]);galleries[71337]=new gallery(71337,"1227037,1227030,1227000,1226999,1226998,1226997","Master Bedroom","gallery",[1226994,1226997,1226998,1226999,1227000,1227030,1227037]);galleries[71335]=new gallery(71335,"1226499,1226497,1226496","Teenagers' Sitting Room","gallery",[1226495,1226496,1226497,1226499]);galleries[71340]=new gallery(71340,"1227059,1227056,1227054,1227053,1227050,1227048","Room Tweaking & Sourcing","gallery",[1227048,1227050,1227053,1227054,1227056,1227059]);var imageSets=new Object();imageSets[1]="3170282,1226407,1223094,1223091,1223087,1223085,1223037,1223036,1223028";imageSets[2]="3170286,3170282,3170225,3170215,3170189,3170187,3170174,2908498,2908497,1227059,1227056,1227054,1227053,1227050,1227048,1227037,1227030,1227000,1226999,1226998,1226997,1226985,1226982,1226981,1226975,1226969,1226929,1226925,1226915,1226912,1226909,1226560,1226559,1226557,1226532,1226531,1226528,1226499,1226497,1226496,1226457,1226456,1226451,1226427,1226418,1226415,1226412,1226407,1225851,1223112,1223107,1223104,1223100,1223096,1223094,1223091,1223087,1223085,1223082,1223081,1223078,1223077,1223075,1223072,1223069,1223045,1223040,1223037,1223036,1223032,1223028,1223026,1223021,1223009,1188803,1188800,1188799";imageSets[3]="3170286,3170282,3170225,3170215,3170189,3170187,3170183,3170174,2908498,2908497,1230256,1227234,1227229,1227059,1227056,1227054,1227053,1227050,1227048,1227037,1227030,1227000,1226999,1226998,1226997,1226994,1226985,1226982,1226981,1226975,1226969,1226966,1226929,1226925,1226919,1226915,1226912,1226909,1226902,1226560,1226559,1226557,1226554,1226532,1226531,1226528,1226525,1226499,1226497,1226496";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/interiornotion/images";break}switch(a){case 1:b="http://www1.clikpic.com/interiornotion/images";break}switch(a){case 2:b="http://admin.clikpic.com/interiornotion/images";break}switch(a){case 24:b="http://tpc15/clikpic/interiornotion/images";break}switch(a){case 4:b="http://www.clikchurch.com/interiornotion/images";break}switch(a){case 5:b="http://www2.clikpic.com/interiornotion/images";break}switch(a){case 22:b="http://tpc5/clikpic/interiornotion/images";break}switch(a){case 23:b="http://tpc10/clikpic/interiornotion/images";break}switch(a){case 25:b="http://tpc16/clikpic/interiornotion/images";break}switch(a){case 15:b="http://www3.clikpic.com/interiornotion/images";break}switch(a){case 18:b="http://www4.clikpic.com/interiornotion/images";break}switch(a){case 19:b="http://www5.clikpic.com/interiornotion/images";break}switch(a){case 31:b="http://www7.clikpic.com/interiornotion/images";break}switch(a){case 32:b="http://admin2.clikpic.com/interiornotion/images";break}switch(a){case 33:b="http://www8.clikpic.com/interiornotion/images";break}switch(a){case 34:b="http://www9.clikpic.com/interiornotion/images";break}switch(a){case 35:b="http://admin3.clikpic.com/interiornotion/images";break}switch(a){case 37:b="http://admin4.clikpic.com/interiornotion/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="Interior Design and interiors in South West London: "+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+'")'})}}};