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[1314126]=new thumbnail(1314126,"92406","Sydney 1","Sydney11_thumb.jpg",67,100,15);thumbnails[1314127]=new thumbnail(1314127,"92406","Sydney 2","Sydney21_thumb.jpg",66,100,15);thumbnails[1314129]=new thumbnail(1314129,"92406","Abbaye de Fontenay","Abbaye1_thumb.jpg",77,100,15);thumbnails[1314199]=new thumbnail(1314199,"92406","Castle Ashby","CastleAshby_thumb.jpg",70,100,15);thumbnails[1314200]=new thumbnail(1314200,"92406","Heavy Metal","SydneyBridge_thumb.jpg",69,100,15);thumbnails[1318281]=new thumbnail(1318281,"92406","Hulks","HULKS_thumb.jpg",130,92,15);thumbnails[1318285]=new thumbnail(1318285,"92406","Johnny Onion","JohnnyOnion_thumb.jpg",63,100,15);thumbnails[1318286]=new thumbnail(1318286,"92406","Ploumanach","PLOUMANACH_thumb.jpg",130,82,15);thumbnails[1318294]=new thumbnail(1318294,"92406","The Boathouse","TheBoathouse_thumb.jpg",75,100,15);thumbnails[1318297]=new thumbnail(1318297,"92406","Three Buoys","ThreeBouys_thumb.jpg",75,100,15);thumbnails[1328293]=new thumbnail(1328293,"92406","Prague","Prague_thumb.jpg",130,98,15);thumbnails[1328474]=new thumbnail(1328474,"92406","Monolith","MONOLITH_thumb.jpg",62,100,15);thumbnails[1328477]=new thumbnail(1328477,"92406","Oxford","Oxford_thumb.jpg",67,100,15);thumbnails[1328493]=new thumbnail(1328493,"92406","Tank traps","TankTraps_thumb.jpg",100,100,15);thumbnails[1493872]=new thumbnail(1493872,"92406","Joshua Tree 01","Joshua-Tree_thumb.jpg",130,88,15);thumbnails[1866651]=new thumbnail(1866651,"92406","Wreck of the Helvetia.","Helvetia_thumb.jpg",130,72,15);thumbnails[1866667]=new thumbnail(1866667,"92406","The Haywain.<br>\r\n","The_Haywain_thumb.jpg",130,85,15);thumbnails[1866670]=new thumbnail(1866670,"92406","Rooster.","Rooster_thumb.jpg",81,100,15);thumbnails[1866673]=new thumbnail(1866673,"92406","The Arcade","The_Arcade_thumb.jpg",74,100,15);thumbnails[6489044]=new thumbnail(6489044,"92406","Sage & Tyne","SAGE-AND-TYNE-by-Simon-Raynor_thumb.jpg",68,100,15);thumbnails[6489050]=new thumbnail(6489050,"92406","Lamplight","LAMPLIGHT-by-Simon-Raynor_thumb.jpg",130,93,15);thumbnails[6489055]=new thumbnail(6489055,"92406","L'Eglise","LEGLISE_thumb.jpg",69,100,15);thumbnails[6489056]=new thumbnail(6489056,"92406","Mont St Michel","LE-MONT-ST-MICHEL-by-Simon-Raynor_thumb.jpg",130,87,15);thumbnails[6489058]=new thumbnail(6489058,"92406","Loch a'Chumain","LOCH-A-CHUMHAINN-by-Simon-Raynor_thumb.jpg",130,42,15);thumbnails[6489066]=new thumbnail(6489066,"92406","Theatregoers","THEATREGOERS-by-Simon-Raynor_thumb.jpg",130,90,15);thumbnails[6489068]=new thumbnail(6489068,"92406","The Crystal","THE-CRYSTAL-by-Simon-Raynor_thumb.jpg",69,100,15);thumbnails[6489071]=new thumbnail(6489071,"92406","Skyline","TORONTO-by-Simon-Raynor_thumb.jpg",130,90,15);thumbnails[6489073]=new thumbnail(6489073,"92406","Canary Wharf","UNDER-CANARY-WHARF-by-Simon-Raynor-copy_thumb.jpg",130,94,15);thumbnails[6489074]=new thumbnail(6489074,"92406","Zapata","ZAPATA-by-Simon-Raynor_thumb.jpg",130,98,15);thumbnails[1306588]=new thumbnail(1306588,"92406","Dusty Road","RedRoad_thumb.jpg",130,86,15);thumbnails[1306587]=new thumbnail(1306587,"92406","Red River Gum","RedRiver_thumb.jpg",130,87,15);thumbnails[1305940]=new thumbnail(1305940,"92406","Dervaig","DERVAIG_thumb.jpg",130,90,15);thumbnails[1306583]=new thumbnail(1306583,"92406","Metropolis","Metropolis_thumb.jpg",130,86,15);thumbnails[1305932]=new thumbnail(1305932,"92406","Dawn Tide","Dawntide_thumb.jpg",130,42,15);thumbnails[1305941]=new thumbnail(1305941,"92406","Dunstanburgh","DUNSTANBURGH_thumb.jpg",130,69,15);thumbnails[1305931]=new thumbnail(1305931,"92406","Gathering storm","GATHERING-STORM_thumb.jpg",130,85,15);thumbnails[1306589]=new thumbnail(1306589,"92406","Ribblehead","Ribblehead_thumb.jpg",130,86,15);thumbnails[1305939]=new thumbnail(1305939,"92406","Bamburgh Castle","Bamburgh_thumb.jpg",130,93,15);thumbnails[1493867]=new thumbnail(1493867,"92406","Brignogan","Brignogan1_thumb.jpg",130,87,15);thumbnails[1493878]=new thumbnail(1493878,"92406","Worm's Head","Worms-head_thumb.jpg",130,64,15);thumbnails[1493848]=new thumbnail(1493848,"92406","The Gower","Gower_thumb.jpg",130,91,15);thumbnails[1493874]=new thumbnail(1493874,"92406","Joshua Tree 02","Joshua-Tree-2_thumb.jpg",70,100,15);thumbnails[1493887]=new thumbnail(1493887,"92406","Wall of tyres","Wall-of-tyres_thumb.jpg",130,84,15);thumbnails[1310565]=new thumbnail(1310565,"92624","Chinese Fiddler","ChineseFiddler_thumb.jpg",68,100,15);thumbnails[1310587]=new thumbnail(1310587,"92624","Gret","Gret_thumb.jpg",75,100,15);thumbnails[1314119]=new thumbnail(1314119,"92624","Solo","Solo2_thumb.jpg",59,100,15);thumbnails[1314209]=new thumbnail(1314209,"92624","Sax in the City","PragueSax_thumb.jpg",71,100,15);thumbnails[1318276]=new thumbnail(1318276,"92624","The Cardinal","Cardinal_thumb.jpg",66,100,15);thumbnails[1318295]=new thumbnail(1318295,"92624","Fire Eater","TheFireEater_thumb.jpg",130,95,15);thumbnails[1328258]=new thumbnail(1328258,"92624","Togfest 1","Bass_01_thumb.jpg",80,100,15);thumbnails[1328260]=new thumbnail(1328260,"92624","The Caretaker","Caretaker_01_thumb.jpg",100,100,15);thumbnails[1328284]=new thumbnail(1328284,"92624","Happy Days 1","HappyDays_01_thumb.jpg",130,90,15);thumbnails[1328287]=new thumbnail(1328287,"92624","Happy Days 2","HappyDays_02_thumb.jpg",130,90,15);thumbnails[1328291]=new thumbnail(1328291,"92624","Krapp's Last Tape","Krapp_thumb.jpg",67,100,15);thumbnails[1328296]=new thumbnail(1328296,"92624","Togfest 2","Singer_thumb.jpg",60,100,15);thumbnails[1330799]=new thumbnail(1330799,"92624","Duet","Duet_thumb.jpg",130,96,15);thumbnails[1866657]=new thumbnail(1866657,"92624","Girl in a yellow jacket.","Girl_in_yellow_thumb.jpg",90,100,15);thumbnails[1866662]=new thumbnail(1866662,"92624","The Philosopher","The_Philosopher_thumb.jpg",130,95,15);thumbnails[1866664]=new thumbnail(1866664,"92624","Pause for thought.","Pause_for_thought_thumb.jpg",130,94,15);thumbnails[6489053]=new thumbnail(6489053,"92624","La Senorita","LA-SENORITA-by-Simon-Raynor_thumb.jpg",67,100,15);thumbnails[6489061]=new thumbnail(6489061,"92624","Nell Gwynne","NELL-GWYNNE-by-Simon-Raynor_thumb.jpg",78,100,15);thumbnails[6489065]=new thumbnail(6489065,"92624","Dancing girl","OAXACA-DANCE-FESTIVAL-by-Simon-Raynor_thumb.jpg",69,100,15);thumbnails[6489403]=new thumbnail(6489403,"92624","Terrafolk","Terrafolk_3005_thumb.jpg",130,91,15);thumbnails[6489406]=new thumbnail(6489406,"92624","Terrafolk","Terrafolk_3022_thumb.jpg",130,98,15);thumbnails[6489408]=new thumbnail(6489408,"92624","Terrafolk","Terrafolk_3054c_thumb.jpg",130,91,15);thumbnails[6489410]=new thumbnail(6489410,"92624","Terrafolk","Terrafolk_3064_thumb.jpg",130,89,15);thumbnails[6489412]=new thumbnail(6489412,"92624","Terrafolk","Terrafolk_3071_thumb.jpg",130,99,15);thumbnails[6490964]=new thumbnail(6490964,"92624","Akademi","Akademi_3105_thumb.jpg",81,100,15);thumbnails[6490966]=new thumbnail(6490966,"92624","Akademi","Akademi_3226_thumb.jpg",130,97,15);thumbnails[1493828]=new thumbnail(1493828,"92624","The organ grinder","Organ grinder_thumb.jpg",70,100,15);thumbnails[1493894]=new thumbnail(1493894,"92624","Patriots","Patriots_thumb.jpg",80,100,15);thumbnails[1310613]=new thumbnail(1310613,"92625","Cycling with balloons","Cycling_thumb.jpg",84,100,15);thumbnails[1310620]=new thumbnail(1310620,"92625","My House","MyHouse_thumb.jpg",130,100,15);thumbnails[1310622]=new thumbnail(1310622,"92625","In the park","WalkingInThePark_thumb.jpg",130,92,15);thumbnails[1314207]=new thumbnail(1314207,"92625","The Durian","Durian_thumb.jpg",76,100,15);thumbnails[1318293]=new thumbnail(1318293,"92625","Solitude","Solitude_thumb.jpg",130,47,15);thumbnails[1328254]=new thumbnail(1328254,"92625","Alone","Alone_thumb.jpg",69,100,15);thumbnails[1328262]=new thumbnail(1328262,"92625","Flying","Flying_thumb.jpg",130,98,15);thumbnails[1328289]=new thumbnail(1328289,"92625","Joy Rider","JoyRider_thumb.jpg",121,100,15);thumbnails[6489040]=new thumbnail(6489040,"92625","Santo Domingo Monastry","IN-SANTO-DOMINGO-MONASTRY_thumb.jpg",71,100,15);thumbnails[6489060]=new thumbnail(6489060,"92625","Sunday morning","MEXICAN-DANCE-TROUPE-by-Simon-Raynor_thumb.jpg",130,94,15);thumbnails[6489062]=new thumbnail(6489062,"92625","Nighthawks","NIGHTHAWKS-by-Simon-Raynor_thumb.jpg",76,100,15);thumbnails[1493834]=new thumbnail(1493834,"92625","Stepping out","Stepping out_3_A3_thumb.jpg",71,100,15);thumbnails[1493892]=new thumbnail(1493892,"92625","Jump for joy","Jump-for-joy_thumb.jpg",130,92,15);thumbnails[1310529]=new thumbnail(1310529,"92626","Black Lace","BlackLace_thumb.jpg",73,100,15);thumbnails[1310533]=new thumbnail(1310533,"92626","Red Petals","RedPetals_thumb.jpg",72,100,15);thumbnails[1310536]=new thumbnail(1310536,"92626","Scarlet","Scarlet_thumb.jpg",66,100,15);thumbnails[1310538]=new thumbnail(1310538,"92626","Under the veil","UnderTheVeil_thumb.jpg",67,100,15);thumbnails[1318287]=new thumbnail(1318287,"92626","Proud","Proud_thumb.jpg",68,100,15);thumbnails[1328465]=new thumbnail(1328465,"92626","Contours","Contours_thumb.jpg",48,100,15);thumbnails[6488978]=new thumbnail(6488978,"92626","Red veil","GREY-LADY_thumb.jpg",63,100,15);thumbnails[1314220]=new thumbnail(1314220,"93147","Lily","Lily_thumb.jpg",130,87,15);thumbnails[1318279]=new thumbnail(1318279,"93147","Ladybird","CROSSINGPOINT_thumb.jpg",130,83,15);thumbnails[1328468]=new thumbnail(1328468,"93147","Daisy","Daisy_thumb.jpg",130,87,15);thumbnails[1328471]=new thumbnail(1328471,"93147","Koala","Koala_thumb.jpg",113,100,15);thumbnails[1328480]=new thumbnail(1328480,"93147","Rose","Rose_thumb.jpg",100,100,15);thumbnails[1328484]=new thumbnail(1328484,"93147","Sea Art","Sea_Art_thumb.jpg",130,98,15);thumbnails[1866678]=new thumbnail(1866678,"93147","Symmetry.","Symmetry_thumb.jpg",77,100,15);thumbnails[1314217]=new thumbnail(1314217,"92935","Dressing Table","DressingTable_thumb.jpg",130,87,15);thumbnails[1314218]=new thumbnail(1314218,"92935","Red and Gold","RedAndGold_thumb.jpg",130,86,15);thumbnails[1328462]=new thumbnail(1328462,"92935","Black and silver","Black-and-silver_thumb.jpg",130,87,15);thumbnails[1328489]=new thumbnail(1328489,"92935","Silk","Silk_thumb.jpg",74,100,15);thumbnails[1328491]=new thumbnail(1328491,"92935","Sunday morning","Sunday-morning_thumb.jpg",130,83,15);var galleries=new Object();galleries[102577]=new gallery(102577,"","New work","gallery",[]);galleries[92406]=new gallery(92406,"1306588,1305931","Places","gallery",[1314126,1314127,1314129,1314199,1314200,1318281,1318285,1318286,1318294,1318297,1328293,1328474,1328477,1328493,1493872,1866651,1866667,1866670,1866673,6489044,6489050,6489055,6489056,6489058,6489066,6489068,6489071,6489073,6489074,1306588,1306587,1305940,1306583,1305932,1305941,1305931,1306589,1305939,1493867,1493878,1493848,1493874,1493887]);galleries[92624]=new gallery(92624,"1318295","Performers","gallery",[1310565,1310587,1314119,1314209,1318276,1318295,1328258,1328260,1328284,1328287,1328291,1328296,1330799,1866657,1866662,1866664,6489053,6489061,6489065,6489403,6489406,6489408,6489410,6489412,6490964,6490966,1493828,1493894]);galleries[92625]=new gallery(92625,"1310620","Private lives","gallery",[1310613,1310620,1310622,1314207,1318293,1328254,1328262,1328289,6489040,6489060,6489062,1493834,1493892]);galleries[92626]=new gallery(92626,"1318287","Figure studies","gallery",[1310529,1310533,1310536,1310538,1318287,1328465,6488978]);galleries[93147]=new gallery(93147,"1314220","Nature","gallery",[1314220,1318279,1328468,1328471,1328480,1328484,1866678]);galleries[92935]=new gallery(92935,"1314217","Still Life","gallery",[1314217,1314218,1328462,1328489,1328491]);var imageSets=new Object();imageSets[1]="1493867,1318295,1318293,1318281,1305931";imageSets[2]="1318295,1318287,1314220,1314217,1310620,1306588,1305931";imageSets[3]="6489066";imageSets[28091]="6489062,6489060,6489040";imageSets[236812]="6490966,6490964,6489412,6489410,6489408,6489406,6489403";imageSets[28090]="6490966,6489065,6489061,6489053,1866664,1866662,1866657";imageSets[28089]="6489074,6489073,6489071,6489068,6489066,6489058,6489056,6489055,6489050,6489044,1866673,1866670,1866667,1866651";imageSets[28092]="6488978";imageSets[28093]="1866678";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/sraynor/images";break}switch(a){case 1:b="http://www1.clikpic.com/sraynor/images";break}switch(a){case 2:b="http://admin.clikpic.com/sraynor/images";break}switch(a){case 24:b="http://tpc15/clikpic/sraynor/images";break}switch(a){case 4:b="http://www.clikchurch.com/sraynor/images";break}switch(a){case 5:b="http://www2.clikpic.com/sraynor/images";break}switch(a){case 22:b="http://tpc5/clikpic/sraynor/images";break}switch(a){case 23:b="http://tpc10/clikpic/sraynor/images";break}switch(a){case 25:b="http://tpc16/clikpic/sraynor/images";break}switch(a){case 15:b="http://www3.clikpic.com/sraynor/images";break}switch(a){case 18:b="http://www4.clikpic.com/sraynor/images";break}switch(a){case 19:b="http://www5.clikpic.com/sraynor/images";break}switch(a){case 31:b="http://www7.clikpic.com/sraynor/images";break}switch(a){case 32:b="http://admin2.clikpic.com/sraynor/images";break}switch(a){case 33:b="http://www8.clikpic.com/sraynor/images";break}switch(a){case 34:b="http://www9.clikpic.com/sraynor/images";break}switch(a){case 35:b="http://admin3.clikpic.com/sraynor/images";break}switch(a){case 37:b="http://admin4.clikpic.com/sraynor/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="Simon Raynor 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+'")'})}}};
