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[6584963]=new thumbnail(6584963,"32724","","005astrantia-major_thumb.jpg",130,130,15);thumbnails[6584964]=new thumbnail(6584964,"32724","","022-Festive-Flags_thumb.jpg",130,98,15);thumbnails[6584966]=new thumbnail(6584966,"32724","","023venice-nights_thumb.jpg",130,96,15);thumbnails[6584967]=new thumbnail(6584967,"32724","","026-JPM---Pictorial---Sunset-over-Sherringham-1_thumb.jpg",130,99,15);thumbnails[6584968]=new thumbnail(6584968,"32724","","027-Pictorial---Culzean-Castle---Scotland_thumb.jpg",130,99,15);thumbnails[6584970]=new thumbnail(6584970,"32724","","028Pictorial---One-over-the-eight_thumb.jpg",130,101,15);thumbnails[6584973]=new thumbnail(6584973,"32724","","010Mappleton-church_thumb.jpg",130,98,15);thumbnails[6584975]=new thumbnail(6584975,"32724","","016wlil05asg2_thumb.jpg",130,88,15);thumbnails[6584736]=new thumbnail(6584736,"32728","","024JPM---Pictorial---A-Wintery-Cow-and-Calf_thumb.jpg",130,98,15);thumbnails[6584735]=new thumbnail(6584735,"32728","","017CRUMMOCK-WATER_thumb.jpg",130,98,15);thumbnails[6584733]=new thumbnail(6584733,"32728","","014-En-route-to-Alcock-Tarn_thumb.jpg",130,92,15);thumbnails[6584731]=new thumbnail(6584731,"32728","","008PATTERDALE-FROM-PRIESTS-HOLE-CAVE_thumb.jpg",130,98,15);thumbnails[6584722]=new thumbnail(6584722,"32728","","006Arriving_thumb.jpg",130,77,15);thumbnails[6584721]=new thumbnail(6584721,"32728","","005-Glen-Banchor_thumb.jpg",130,98,15);thumbnails[6584718]=new thumbnail(6584718,"32728","","004lake-district-dale-bottom_thumb.jpg",130,43,15);thumbnails[6584715]=new thumbnail(6584715,"32728","","001gisburn-waterfall_thumb.jpg",130,45,15);thumbnails[6584951]=new thumbnail(6584951,"32723","","036Annie_thumb.jpg",130,132,15);thumbnails[6584952]=new thumbnail(6584952,"32723","","039-egyptian-sailor_thumb.jpg",130,195,15);thumbnails[6584953]=new thumbnail(6584953,"32723","","040Portrait---London-street-entertainer_thumb.jpg",130,117,15);thumbnails[6584954]=new thumbnail(6584954,"32723","","044-Carnival-Girl_thumb.jpg",130,107,15);thumbnails[6584955]=new thumbnail(6584955,"32723","","048Lou_thumb.jpg",130,181,15);thumbnails[6584956]=new thumbnail(6584956,"32723","","049murphy_thumb.jpg",130,87,15);thumbnails[6584957]=new thumbnail(6584957,"32723","","050cult_thumb.jpg",130,202,15);thumbnails[6584958]=new thumbnail(6584958,"32723","","052Candid-Portrait---Where-am-I_thumb.jpg",130,171,15);thumbnails[6584959]=new thumbnail(6584959,"32723","","053-venetian-witch_thumb.jpg",130,198,15);thumbnails[6584960]=new thumbnail(6584960,"32723","","054-The-Blues-Singer_thumb.jpg",130,100,15);thumbnails[6584961]=new thumbnail(6584961,"32723","","055RTRAIT-1_thumb.jpg",130,98,15);thumbnails[6585011]=new thumbnail(6585011,"32726","","061gugenheim-bilbao_thumb.jpg",130,146,15);thumbnails[6585012]=new thumbnail(6585012,"32726","","062RECORD-1_thumb.jpg",130,199,15);thumbnails[6585013]=new thumbnail(6585013,"32726","","065-Record-No1-The-John-Hancock-Tower-Boston-Mass_thumb.jpg",130,173,15);thumbnails[6585014]=new thumbnail(6585014,"32726","","067door-panel-Rochefort-en-Terre-france_thumb.jpg",130,127,15);thumbnails[6585058]=new thumbnail(6585058,"32726","","068stglass36as2_thumb.jpg",130,67,15);thumbnails[6585061]=new thumbnail(6585061,"32726","","069Dome-detail-Santiago-de-Campastilla_thumb.jpg",130,124,15);thumbnails[6585063]=new thumbnail(6585063,"32726","","070lighthouse-whitby_thumb.jpg",130,173,15);thumbnails[6585066]=new thumbnail(6585066,"32726","","072ead-water-feature-at-Chateau-Trevarez_thumb.jpg",130,173,15);thumbnails[6585067]=new thumbnail(6585067,"32726","","075-Record---Eden-Teatro---Art-deco-Building--Lisbon_thumb.jpg",130,99,15);thumbnails[6585068]=new thumbnail(6585068,"32726","","076doorway-head-venice_thumb.jpg",130,189,15);thumbnails[6585070]=new thumbnail(6585070,"32726","","077Anderson-Sports-Car---Glasgow-Museum_thumb.jpg",130,98,15);thumbnails[6585071]=new thumbnail(6585071,"32726","","079sheep_brands_settle_forge_thumb.jpg",130,114,15);thumbnails[6585073]=new thumbnail(6585073,"32726","","080RECORD-3_thumb.jpg",130,173,15);thumbnails[6585074]=new thumbnail(6585074,"32726","","083Mushrooms-on-dislpay--Borough-Market-London_thumb.jpg",130,95,15);thumbnails[6585075]=new thumbnail(6585075,"32726","","084St-Marys-church-window_thumb.jpg",130,186,15);thumbnails[6585077]=new thumbnail(6585077,"32726","","087lizard-bench-beacon-fell_thumb.jpg",130,173,15);thumbnails[6584978]=new thumbnail(6584978,"32725","","002-Marbled-White-Butterfly-Melanargia-galathea_thumb.jpg",130,103,15);thumbnails[6584979]=new thumbnail(6584979,"32725","","004Red-Squirrel-Sciurus-vulgaris_thumb.jpg",130,126,15);thumbnails[6584981]=new thumbnail(6584981,"32725","","007spwd03asg_thumb.jpg",130,98,15);thumbnails[6584982]=new thumbnail(6584982,"32725","","008Magpie-Pica-pica_thumb.jpg",130,99,15);thumbnails[6584983]=new thumbnail(6584983,"32725","","011NatHistNo1-Baby-elephant-in-Malaysia_thumb.jpg",130,83,15);thumbnails[6584984]=new thumbnail(6584984,"32725","","012pink-dogrose_thumb.jpg",130,132,15);thumbnails[6584985]=new thumbnail(6584985,"32725","","020Bird-of-prey_thumb.jpg",130,111,15);thumbnails[6584986]=new thumbnail(6584986,"32725","","021crop_thumb.jpg",130,92,15);thumbnails[6584987]=new thumbnail(6584987,"32725","","022myosoton-aquaticum_water-chickweed_thumb.jpg",130,89,15);thumbnails[6584988]=new thumbnail(6584988,"32727","","050Glen-Nevis-canoe-race_thumb.jpg",130,173,15);thumbnails[6584989]=new thumbnail(6584989,"32727","","051competitors-3-peaks-race-09_thumb.jpg",130,98,15);thumbnails[6584990]=new thumbnail(6584990,"32727","","054british-juggling-convention_norwich_thumb.jpg",130,198,15);thumbnails[6584991]=new thumbnail(6584991,"32727","","056Tug-o-War---Kettlewell-S-F-09_thumb.jpg",130,57,15);thumbnails[6584992]=new thumbnail(6584992,"32727","","058Guiseley-music-festival-09_thumb.jpg",130,98,15);thumbnails[6584993]=new thumbnail(6584993,"32727","","059P1100204pboat01s2_thumb.jpg",130,98,15);thumbnails[6584995]=new thumbnail(6584995,"32727","","060for-sale_2_thumb.jpg",130,125,15);thumbnails[6584996]=new thumbnail(6584996,"32727","","062-Performers-at-Bradford-Cultural-Olympiad-1_thumb.jpg",130,87,15);thumbnails[6584998]=new thumbnail(6584998,"32727","","064Gargrave-show-015_thumb.jpg",130,98,15);thumbnails[6585000]=new thumbnail(6585000,"32727","","067yachts02s2_thumb.jpg",130,92,15);thumbnails[6585001]=new thumbnail(6585001,"32727","","068mouse-judg_bingley-show_thumb.jpg",130,171,15);thumbnails[6585003]=new thumbnail(6585003,"32727","","072The-Penny-Plain-Theatre-Company-at-Ilkley-Summer-Festival_thumb.jpg",130,96,15);thumbnails[6585006]=new thumbnail(6585006,"32727","","074-DM-Photo-Journalism--------End-of-the-line_thumb.jpg",130,99,15);thumbnails[6585008]=new thumbnail(6585008,"32727","","078Friendly-contact_thumb.jpg",130,80,15);thumbnails[6583272]=new thumbnail(6583272,"31336","Snow in the lakes - Dale Bottom","011snow-in-lakes-dale-bottom-1_thumb.jpg",130,98,15);thumbnails[6583034]=new thumbnail(6583034,"31336","Dale Bottom","3-Dale-Bottom-Cumbria_thumb.jpg",130,73,15);thumbnails[6583031]=new thumbnail(6583031,"31336","Feather","2Feather_thumb.jpg",130,87,15);thumbnails[6583044]=new thumbnail(6583044,"31336","Carnival Queen","043-carnival-queen-Beverly_thumb.jpg",130,100,15);thumbnails[6583277]=new thumbnail(6583277,"31336","Red and Blue (Venice Carnival)","047red-and-blue-Venice-carnival--Scott-1_thumb.jpg",130,173,15);thumbnails[6585084]=new thumbnail(6585084,"31336","","048-The-Chinese-Dancer-Tamsin-adj_thumb.jpg",130,194,15);thumbnails[6583027]=new thumbnail(6583027,"31336","Stained glass window-St Oswalds Guiseley","085-Stained-Glass-Window-detail-St-Oswalds-Church--Guiseley-tamsin_thumb.jpg",130,262,15);thumbnails[6583030]=new thumbnail(6583030,"31336","Working Graffiti Artist","1Photo-Journalism------Work-of-Graffiti-Art_thumb.jpg",130,98,15);thumbnails[6583026]=new thumbnail(6583026,"31336","Garffiti-House wall-Loule- Portugal","066-Record-of-Graffiti-on-house-wall--Loule---Portugal-Jean_thumb.jpg",130,99,15);thumbnails[6583035]=new thumbnail(6583035,"31336","Otley Cycle Race","3Otley-Cycle-Race_thumb.jpg",130,195,15);thumbnails[6583032]=new thumbnail(6583032,"31336","Try","2Try_thumb.jpg",130,87,15);thumbnails[6583038]=new thumbnail(6583038,"31336","Down Hebden Gill","14downhebden_thumb.jpg",130,98,15);thumbnails[6583037]=new thumbnail(6583037,"31336","Hebden Gill","2hebgj38gasb_thumb.jpg",130,98,15);thumbnails[6583036]=new thumbnail(6583036,"31336","Midland Hotel Morcambe","3midland_hotel_morecambe_thumb.jpg",130,98,15);thumbnails[6583025]=new thumbnail(6583025,"31336","Common dart","001comdart10gas-Harry_thumb.jpg",130,98,15);thumbnails[6583023]=new thumbnail(6583023,"31336","Robin","014Robin-Erithacus-Rubecula-Scott_thumb.jpg",130,93,15);thumbnails[6583018]=new thumbnail(6583018,"31336","Stag","015stag0208as-Harry_thumb.jpg",130,98,15);thumbnails[6583269]=new thumbnail(6583269,"31336","Mayflower","086-10-Record-No2-Mayflower-Plymouth-Mass-1_thumb.jpg",130,130,15);var galleries=new Object();galleries[32724]=new gallery(32724,"6584975,6584973,6584970,6584968,6584967,6584966,6584964,6584963","<strong>Pictorial</strong>","gallery",[6584963,6584964,6584966,6584967,6584968,6584970,6584973,6584975]);galleries[32728]=new gallery(32728,"6584736,6584735,6584733,6584731,6584722,6584721,6584718,6584715","<strong>Landscapes</strong>","gallery",[6584736,6584735,6584733,6584731,6584722,6584721,6584718,6584715]);galleries[32723]=new gallery(32723,"6584961,6584960,6584959,6584958,6584957,6584956,6584955,6584954,6584953,6584952,6584951","<strong>Portraits</strong","gallery",[6584951,6584952,6584953,6584954,6584955,6584956,6584957,6584958,6584959,6584960,6584961]);galleries[32726]=new gallery(32726,"6585077,6585075,6585074,6585073,6585071,6585070,6585068,6585067,6585066,6585063,6585061,6585058,6585014,6585013,6585012,6585011","<strong>Record</strong>","gallery",[6585011,6585012,6585013,6585014,6585058,6585061,6585063,6585066,6585067,6585068,6585070,6585071,6585073,6585074,6585075,6585077]);galleries[32725]=new gallery(32725,"6584987,6584986,6584985,6584984,6584983,6584982,6584981,6584979,6584978","<strong>Natural History</strong>","gallery",[6584978,6584979,6584981,6584982,6584983,6584984,6584985,6584986,6584987]);galleries[32727]=new gallery(32727,"6585008,6585006,6585003,6585001,6585000,6584998,6584996,6584995,6584993,6584992,6584991,6584990,6584989,6584988","<strong>Photo-Journalism</strong>","gallery",[6584988,6584989,6584990,6584991,6584992,6584993,6584995,6584996,6584998,6585000,6585001,6585003,6585006,6585008]);galleries[31336]=new gallery(31336,"6585084,6583277,6583272,6583269,6583044,6583038,6583037,6583036,6583035,6583034,6583032,6583031,6583030,6583027,6583026,6583025,6583023,6583018","<strong>Competition winners</strong>","gallery",[6583272,6583034,6583031,6583044,6583277,6585084,6583027,6583030,6583026,6583035,6583032,6583038,6583037,6583036,6583025,6583023,6583018,6583269]);var imageSets=new Object();imageSets[1]="6585084,6585077,6585075,6585074,6585073,6585071,6585070,6585068,6585067,6585066,6585063,6585061,6585058,6585014,6585013,6585012,6585011,6585008,6585006,6585003,6585001,6585000,6584998,6584996,6584995,6584993,6584992,6584991,6584990,6584989,6584988,6584987,6584986,6584985,6584984,6584983,6584982,6584981,6584979,6584978,6584975,6584973,6584970,6584968,6584967,6584966,6584964,6584963,6584961,6584960,6584959,6584958,6584957,6584956,6584955,6584954,6584953,6584952,6584951,6584736,6584735,6584733,6584731,6584722,6584721,6584718,6584715,6583277,6583272,6583269,6583044,6583038,6583037,6583036,6583035,6583034,6583032,6583031,6583030,6583027,6583026,6583025,6583023,6583018";imageSets[2]="6585084,6585077,6585075,6585074,6585073,6585071,6585070,6585068,6585067,6585066,6585063,6585061,6585058,6585014,6585013,6585012,6585011,6585008,6585006,6585003,6585001,6585000,6584998,6584996,6584995,6584993,6584992,6584991,6584990,6584989,6584988,6584987,6584986,6584985,6584984,6584983,6584982,6584981,6584979,6584978,6584975,6584973,6584970,6584968,6584967,6584966,6584964,6584963,6584961,6584960,6584959,6584958,6584957,6584956,6584955,6584954,6584953,6584952,6584951,6584736,6584735,6584733,6584731,6584722,6584721,6584718,6584715,6583277,6583272,6583269,6583044,6583038,6583037,6583036,6583035,6583034,6583032,6583031,6583030,6583027,6583026,6583025,6583023,6583018";imageSets[3]="6585084,6585077,6585075,6585074,6585073,6585071,6585070,6585068,6585067,6585066,6585063,6585061,6585058,6585014,6585013,6585012,6585011,6585008,6585006,6585003,6585001,6585000,6584998,6584996,6584995,6584993,6584992,6584991,6584990,6584989,6584988,6584987,6584986,6584985,6584984,6584983,6584982,6584981,6584979,6584978,6584975,6584973,6584970,6584968,6584967,6584966,6584964,6584963,6584961,6584960,6584959,6584958,6584957,6584956,6584955,6584954,6584953,6584952,6584951,6584736,6584735,6584733,6584731,6584722,6584721,6584718,6584715";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/aireboroughcameraclub/images";break}switch(a){case 1:b="http://www1.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 2:b="http://admin.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 24:b="http://tpc15/clikpic/aireboroughcameraclub/images";break}switch(a){case 4:b="http://www.clikchurch.com/aireboroughcameraclub/images";break}switch(a){case 5:b="http://www2.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 22:b="http://tpc5/clikpic/aireboroughcameraclub/images";break}switch(a){case 23:b="http://tpc10/clikpic/aireboroughcameraclub/images";break}switch(a){case 25:b="http://tpc16/clikpic/aireboroughcameraclub/images";break}switch(a){case 15:b="http://www3.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 18:b="http://www4.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 19:b="http://www5.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 31:b="http://www7.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 32:b="http://admin2.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 33:b="http://www8.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 34:b="http://www9.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 35:b="http://admin3.clikpic.com/aireboroughcameraclub/images";break}switch(a){case 37:b="http://admin4.clikpic.com/aireboroughcameraclub/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="AIREBOROUGH CAMERA CLUB-Leeds.: "+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+'")'})}}};