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[5321705]=new thumbnail(5321705,"","ABC Aerials","ABC_LOGO_CHRIS1_thumb.jpg",130,83,18);thumbnails[18807]=new thumbnail(18807,"11893"," ","logo graphics2_thumb.jpg",130,94,18);thumbnails[1405742]=new thumbnail(1405742,"52644","A splash of colour","E Cockerill-a slash of colour_thumb.jpg",130,92,18);thumbnails[1405753]=new thumbnail(1405753,"52644","Red","H Kain-red_thumb.jpg",130,92,18);thumbnails[1405755]=new thumbnail(1405755,"52644","Green arrow","H Kain-green arrow1_thumb.jpg",130,104,18);thumbnails[1422669]=new thumbnail(1422669,"52644","Rounding the mark","Paul Brown-PICT0351w Rounding the mark1_thumb.jpg",130,86,18);thumbnails[1424108]=new thumbnail(1424108,"52644","Deserted arcade","Eric - deserted arcade_thumb.jpg",130,100,18);thumbnails[1424114]=new thumbnail(1424114,"52644","Normanton church","Eric - normanton church_thumb.jpg",130,77,18);thumbnails[1583624]=new thumbnail(1583624,"52644","Travelling companion","Eric - travelling companion_thumb.jpg",130,93,18);thumbnails[1583641]=new thumbnail(1583641,"52644","Marooned","Eric - Marooned_thumb.jpg",130,93,18);thumbnails[1669583]=new thumbnail(1669583,"52644","Digging for England","Martin-Digging-for-England_thumb.jpg",130,86,18);thumbnails[1669594]=new thumbnail(1669594,"52644","Adelaide","Anne-F-Adelaide_thumb.jpg",130,98,18);thumbnails[1685697]=new thumbnail(1685697,"52644","Amsterdam flower market","Paul-B-amsterdam-flower-mar_thumb.jpg",130,87,18);thumbnails[1685698]=new thumbnail(1685698,"52644","Amsterdam lights","Paul-B-amsterdam-lights_thumb.jpg",130,77,18);thumbnails[1794870]=new thumbnail(1794870,"52644","Musical tryptych","Anne-G-3-Musical-TRIPTYCH__thumb.jpg",130,92,18);thumbnails[2846049]=new thumbnail(2846049,"52644","Robin","Robin_thumb.jpg",130,87,18);thumbnails[2846051]=new thumbnail(2846051,"52644","RGB an experiment","rgb Stone & Pebbles 02 WEB_thumb.jpg",130,59,18);thumbnails[2846055]=new thumbnail(2846055,"52644","I think I can make it..","I think i can make it_thumb.jpg",130,92,18);thumbnails[2889620]=new thumbnail(2889620,"52644","Poppies","Poppies_thumb.jpg",130,86,18);thumbnails[2889625]=new thumbnail(2889625,"52644","Trinity","Trinity_thumb.jpg",130,130,18);thumbnails[3090798]=new thumbnail(3090798,"52644","New-York, a conversation","conversation-in-New-York_thumb.jpg",130,87,18);thumbnails[3155180]=new thumbnail(3155180,"52644","The Victory ","seavision victory 3_thumb.jpg",130,86,18);thumbnails[3155190]=new thumbnail(3155190,"52644","","seavision iots 5_thumb.jpg",130,121,18);thumbnails[3155196]=new thumbnail(3155196,"52644","Yacht","seavision yacht 3_thumb.jpg",130,86,18);thumbnails[3155200]=new thumbnail(3155200,"52644","The Warrior","seavision warrior 4_thumb.jpg",130,94,18);thumbnails[3484735]=new thumbnail(3484735,"52644","TAKE OFF","TAKE-OFF-by-Nigel-Spencer_thumb.jpg",130,98,18);thumbnails[3484738]=new thumbnail(3484738,"52644","SUNSET BULLEVARD","SUNSET-BULLEVARD-by-Ian-Williams_thumb.jpg",130,80,18);thumbnails[3484748]=new thumbnail(3484748,"52644","AUTUMN WILLOWS ","AUTUMN-WILLOWS-by-Ruth-Hirst_thumb.jpg",130,61,18);thumbnails[3484751]=new thumbnail(3484751,"52644","WALKING ON ICE","WALKING-ON-ICE-by-Nigel-Spencer_thumb.jpg",130,98,18);thumbnails[4704264]=new thumbnail(4704264,"52644","Wing Over","IMG_3543_edited-1_thumb.jpg",130,87,18);thumbnails[5066266]=new thumbnail(5066266,"52644","Look Into My Eye","Look_Into_My_Eye_thumb.jpg",130,91,18);thumbnails[5066284]=new thumbnail(5066284,"52644","The Gathering Storm","The_Gathering_Storm_thumb.jpg",130,86,18);thumbnails[687977]=new thumbnail(687977,"52644","Stormy light in Gdansk","Eric-stormy-light-in-Gdansk_thumb.JPG",130,92,18);thumbnails[690742]=new thumbnail(690742,"52644","Lunch time","Alan H - Lunch time_thumb.JPG",130,92,18);thumbnails[693616]=new thumbnail(693616,"52644","Girl and hat","Mark Shorley 2006-09-22 (140)_thumb.JPG",130,114,18);thumbnails[693608]=new thumbnail(693608,"52644","View from Donnington","Mark Shorley 2006-09-22 (36)_thumb.JPG",130,85,18);thumbnails[693609]=new thumbnail(693609,"52644","First over","Mark Shorley 2006-09-22 (137)_thumb.JPG",130,74,18);thumbnails[1583595]=new thumbnail(1583595,"52644","'Little Rob'","COL-C-Martin-Little-Rob_thumb.jpg",130,86,18);thumbnails[1706362]=new thumbnail(1706362,"52644","De Havilland Club ","SMALL-HC-DeHaviland-AnneF_thumb.jpg",130,74,18);thumbnails[1422665]=new thumbnail(1422665,"52646","Furling sails","Paul Brown - Furling Sails - PICT0059c1_thumb.jpg",130,195,18);thumbnails[1424120]=new thumbnail(1424120,"52646","Reaching for the sky","Eric - reaching for the sky_thumb.jpg",130,181,18);thumbnails[1669553]=new thumbnail(1669553,"52646","Amsterdam canal scene","paul-B-Amsterdam-Canal-Scen_thumb.jpg",130,182,18);thumbnails[1669580]=new thumbnail(1669580,"52646","Memories","Martin--Memories_thumb.jpg",130,131,18);thumbnails[1794863]=new thumbnail(1794863,"52646","Lunch","Anne-G-Lunch-Break_thumb.jpg",130,186,18);thumbnails[1794864]=new thumbnail(1794864,"52646","Catch","Anne-G-2-Catch_thumb.jpg",130,195,18);thumbnails[1794866]=new thumbnail(1794866,"52646","Mime Artist","Anne-G-Mime-Artist_thumb.jpg",130,172,18);thumbnails[2846053]=new thumbnail(2846053,"52646","Sharp Shinned Hawk","Sharp-shinned-Hawk_thumb.jpg",130,184,18);thumbnails[2846057]=new thumbnail(2846057,"52646","Pebbles on a beach","AMY AND DAN SHERRINGHAM 2008-7 small_thumb.jpg",130,173,18);thumbnails[2889624]=new thumbnail(2889624,"52646","Tangled Web","Tangled Web_thumb.jpg",129,198,18);thumbnails[3090814]=new thumbnail(3090814,"52646","Smoke and steam","smoke-and-steam_thumb.jpg",130,152,18);thumbnails[3484746]=new thumbnail(3484746,"52646","RESTAURANT WINDOW","RESTAURANT-WINDOW-by-Anne-Gilmore_thumb.jpg",130,202,18);thumbnails[5066272]=new thumbnail(5066272,"52646","Heated Debate","Heated_Debate_thumb.jpg",130,196,18);thumbnails[687997]=new thumbnail(687997,"52646","Me, a swan","Martin-Me a Swan_thumb.JPG",130,152,18);thumbnails[1405754]=new thumbnail(1405754,"52646","The swan family","H Kain-the swan family_thumb.jpg",130,173,18);thumbnails[693612]=new thumbnail(693612,"52646","War memorial","Mark Shorley 2006-09-22 (141)_thumb.JPG",130,173,18);thumbnails[5048608]=new thumbnail(5048608,"177232","BEE ON ALSTROMENIA","1_90_BEE_ON_ALSTROMENIA_by_Anne_French_thumb.jpg",130,98,18);thumbnails[5048642]=new thumbnail(5048642,"177232","COTTAGE GARDEN","2_91_COTTAGE_GARDEN_by_Paul_Brown1_thumb.jpg",130,86,18);thumbnails[5048648]=new thumbnail(5048648,"177232","SUNSET BULLEVARD","3_92_SUNSET_BULLEVARD_by_Ian_Williams_thumb.jpg",130,75,18);thumbnails[5048655]=new thumbnail(5048655,"177232","BARN OWL","5_113_BARN_OWL_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048662]=new thumbnail(5048662,"177232"," PITTS SPECIAL IN FLIGHT ","6_94_PITTS_SPECIAL_IN_FLIGHT_by_Anne_French_thumb.jpg",130,87,18);thumbnails[5048679]=new thumbnail(5048679,"177232","TUDOR COOK ","7_95_TUDOR_COOK_by_Paul_Brown_thumb.jpg",130,137,18);thumbnails[5048682]=new thumbnail(5048682,"177232","BLUEBELL WOOD","8_96_BLUEBELL_WOOD_by_Ian_Williams_thumb.jpg",130,87,18);thumbnails[5048684]=new thumbnail(5048684,"177232","THE MISTS OF TIME ","9_97_THE_MISTS_OF_TIME_by_Martin_Cock_thumb.jpg",130,85,18);thumbnails[5048690]=new thumbnail(5048690,"177232","BROWN BEAR ","10_114_BROWN_BEAR_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048691]=new thumbnail(5048691,"177232","MANDARIN DUCK ","11_98_MANDARIN_DUCK_by_Anne_French_thumb.jpg",130,82,18);thumbnails[5048693]=new thumbnail(5048693,"177232","SAILING BARGE ON THE MEDWAY ","12_99_SAILING_BARGE_ON_THE_MEDWAY_by_Paul_Brown_thumb.jpg",130,197,18);thumbnails[5048696]=new thumbnail(5048696,"177232","HERRINGFLEET SMOCK MILL ","13_100_HERRINGFLEET_SMOCK_MILL_by_Martin_Cock_thumb.jpg",130,87,18);thumbnails[5048698]=new thumbnail(5048698,"177232","CRESTED TIT ","14_115_CRESTED_TIT_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048746]=new thumbnail(5048746,"177232","KOOKABURRA CONVERSATION ","15_101_KOOKABURRA_CONVERSATION_by_Anne_French-1_thumb.jpg",130,129,18);thumbnails[5048748]=new thumbnail(5048748,"177232","KINGS COLLEGE","16_102_KINGS_COLLEGE_by_Martin_Cock_thumb.jpg",130,86,18);thumbnails[5048749]=new thumbnail(5048749,"177232","EYE ","17_103_EYE_by_Anne_French_thumb.jpg",130,85,18);thumbnails[5048750]=new thumbnail(5048750,"177232","ALL STEAMED UP ","18_104_ALL_STEAMED_UP_by_Martin_Cock_thumb.jpg",130,89,18);thumbnails[5048751]=new thumbnail(5048751,"177232","FEMALE GREAT SPOTTED WOODPECKER ","19_116_FEMALE_GREAT_SPOTTED_WOODPECKER_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048753]=new thumbnail(5048753,"177232","HUCKA FALLS ","20_105_HUCKA_FALLS_by_Anne_French-1_thumb.jpg",130,80,18);thumbnails[5048754]=new thumbnail(5048754,"177232","FUN GUYS SURFING ","21_106_FUN_GUYS_SURFING_by_Martin_Cock_thumb.jpg",130,98,18);thumbnails[5048755]=new thumbnail(5048755,"177232","LONG EARED OWL ","22_117_LONG_EARED_OWL_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048756]=new thumbnail(5048756,"177232","CATS EYES  ","23_107_CATS_EYES_by_Anne_French_thumb.jpg",130,87,18);thumbnails[5048803]=new thumbnail(5048803,"177232","BRITAINS GOT TALONS ","24_108_BRITAINS_GOT_TALONS_by_Martin_Cock_thumb.jpg",130,105,18);thumbnails[5048809]=new thumbnail(5048809,"177232","PAINTED LADY ","25_118_PAINTED_LADY_by_Nigel_spencer_thumb.jpg",130,98,18);thumbnails[5048810]=new thumbnail(5048810,"177232","ORCHESTRA ","26_109_ORCHESTRA_by_Anne_French_thumb.jpg",130,98,18);thumbnails[5048813]=new thumbnail(5048813,"177232","FORTIFIED WINE ","27_110_FORTIFIED_WINE_by_Martin_Cock_thumb.jpg",130,78,18);thumbnails[5048814]=new thumbnail(5048814,"177232","SMALL PEARL BORDERED FRITILLARY ","28_119_SMALL_PEARL_BORDERED_FRITILLARY_by_Nigel_Spencer_thumb.jpg",130,98,18);thumbnails[5048816]=new thumbnail(5048816,"177232","OWL ","29_111_OWL_by_Anne_French_thumb.jpg",130,91,18);thumbnails[5048818]=new thumbnail(5048818,"177232","WAXWING ","30_120_WAXWING_by_Nigel_Spencer-1_thumb.jpg",130,98,18);thumbnails[5048821]=new thumbnail(5048821,"177232","SWALLOW ","31_112_SWALLOW_by_Anne_French_thumb.jpg",130,130,18);thumbnails[5048822]=new thumbnail(5048822,"177232","MORNING RUSH ","44_93_MORNING_RUSH_by_Martin_Cock_thumb.jpg",130,72,18);thumbnails[5066239]=new thumbnail(5066239,"177232","Ready and Waiting","Ready_and_Waiting_thumb.jpg",130,181,18);thumbnails[5066280]=new thumbnail(5066280,"177232","Southwold Lighthouse Blues","Southwold_Lighthouse_Blues_thumb.jpg",130,149,18);var galleries=new Object();galleries[11893]=new gallery(11893,"18807","Logo","gallery",[18807]);galleries[52644]=new gallery(52644,"5066284,5066266,4704264,3484751,3484748,3484738,3484735,3155200,3155196,3155190","Gallery 1","gallery",[1405742,1405753,1405755,1422669,1424108,1424114,1583624,1583641,1669583,1669594,1685697,1685698,1794870,2846049,2846051,2846055,2889620,2889625,3090798,3155180,3155190,3155196,3155200,3484735,3484738,3484748,3484751,4704264,5066266,5066284,687977,690742,693616,693608,693609,1583595,1706362]);galleries[52646]=new gallery(52646,"687997","Gallery 2","gallery",[1422665,1424120,1669553,1669580,1794863,1794864,1794866,2846053,2846057,2889624,3090814,3484746,5066272,687997,1405754,693612]);galleries[177232]=new gallery(177232,"5066280,5066239,5048822,5048821,5048818,5048816,5048814,5048813,5048810,5048809","Gallery 3 our 2009 EXHIBITION","gallery",[5048608,5048642,5048648,5048655,5048662,5048679,5048682,5048684,5048690,5048691,5048693,5048696,5048698,5048746,5048748,5048749,5048750,5048751,5048753,5048754,5048755,5048756,5048803,5048809,5048810,5048813,5048814,5048816,5048818,5048821,5048822,5066239,5066280]);var imageSets=new Object();imageSets[233272]="5066280,5066239,5048822,5048821,5048818,5048816,5048814,5048813,5048810,5048809,5048803,5048756,5048755,5048754,5048753,5048751,5048750,5048749,5048748,5048746,5048698,5048696,5048693,5048691,5048690,5048684,5048682,5048679,5048662,5048655,5048648,5048642,5048608";imageSets[1]="18807";imageSets[2]="687997";imageSets[3]="5321705,5066284,5066280,5066272,5066266,5066239,5048822,5048821,5048818,5048816,5048814,5048813,5048810,5048809,5048803,5048756,5048755,5048754,5048753,5048751,5048750,5048749,5048748,5048746,5048698,5048696,5048693,5048691,5048690,5048684,5048682,5048679,5048662,5048655,5048648,5048642,5048608,4704264,3484751,3484748,3484746,3484738,3484735,3155200,3155196,3155190,3155180,3090814,3090798,2889625";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/mhpsorg/images";break}switch(a){case 1:b="http://www1.clikpic.com/mhpsorg/images";break}switch(a){case 2:b="http://admin.clikpic.com/mhpsorg/images";break}switch(a){case 24:b="http://tpc15/clikpic/mhpsorg/images";break}switch(a){case 4:b="http://www.clikchurch.com/mhpsorg/images";break}switch(a){case 5:b="http://www2.clikpic.com/mhpsorg/images";break}switch(a){case 22:b="http://tpc5/clikpic/mhpsorg/images";break}switch(a){case 23:b="http://tpc10/clikpic/mhpsorg/images";break}switch(a){case 25:b="http://tpc16/clikpic/mhpsorg/images";break}switch(a){case 15:b="http://www3.clikpic.com/mhpsorg/images";break}switch(a){case 18:b="http://www4.clikpic.com/mhpsorg/images";break}switch(a){case 19:b="http://www5.clikpic.com/mhpsorg/images";break}switch(a){case 31:b="http://www7.clikpic.com/mhpsorg/images";break}switch(a){case 32:b="http://admin2.clikpic.com/mhpsorg/images";break}switch(a){case 33:b="http://www8.clikpic.com/mhpsorg/images";break}switch(a){case 34:b="http://www9.clikpic.com/mhpsorg/images";break}switch(a){case 35:b="http://admin3.clikpic.com/mhpsorg/images";break}switch(a){case 37:b="http://admin4.clikpic.com/mhpsorg/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="Market Harborough Photographic Society: "+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;resizePhotoInfo();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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};