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[4967976]=new thumbnail(4967976,"","Angharad","DSCF0991_thumb.JPG",130,98,32);thumbnails[4991852]=new thumbnail(4991852,"","Olivia","DSCF1004_thumb.JPG",130,98,32);thumbnails[6200964]=new thumbnail(6200964,"","","DSCF1298_thumb.JPG",130,93,32);thumbnails[6284334]=new thumbnail(6284334,"185614","Re-open September. Please email any urgent orders via the contact page. Thanks & happy holidays, Roo.","DSCF1205_thumb.JPG",130,89,32);thumbnails[6284168]=new thumbnail(6284168,"185615","Re-open September. Please email any urgent orders via the contact page. Thanks & happy holidays, Roox ","DSCF1212_thumb.JPG",130,89,32);thumbnails[6284338]=new thumbnail(6284338,"187785","Re-open September. Please email any urgent orders via the contact page. Thanks & happy holidays, Roo.","DSCF1208_thumb.JPG",130,89,32);thumbnails[3471537]=new thumbnail(3471537,"187786","","DSCF0043_thumb.JPG",130,101,32);thumbnails[3458444]=new thumbnail(3458444,"206972","Winter","DSCF0378_thumb.JPG",130,92,32);thumbnails[3475643]=new thumbnail(3475643,"206972","","DSCF0392_thumb.JPG",130,85,32);thumbnails[3686010]=new thumbnail(3686010,"206972","","DSCF0546_thumb.JPG",130,91,32);thumbnails[3686060]=new thumbnail(3686060,"206972","","DSCF0548_thumb.JPG",130,86,32);thumbnails[3686082]=new thumbnail(3686082,"206972","","DSCF0552_thumb.JPG",130,86,32);thumbnails[3686091]=new thumbnail(3686091,"206972","","DSCF0553_thumb.JPG",130,86,32);thumbnails[3686093]=new thumbnail(3686093,"206972","","DSCF0554_thumb.JPG",130,86,32);thumbnails[3686111]=new thumbnail(3686111,"206972","","DSCF0556_thumb.JPG",130,86,32);thumbnails[3686209]=new thumbnail(3686209,"206972","","DSCF0558_thumb.JPG",130,86,32);thumbnails[3686255]=new thumbnail(3686255,"206972","","DSCF0561_thumb.JPG",130,86,32);thumbnails[3686345]=new thumbnail(3686345,"206972","","DSCF0563_thumb.JPG",130,86,32);thumbnails[3746062]=new thumbnail(3746062,"206972","","DSCF0616_thumb.JPG",130,96,32);thumbnails[3746075]=new thumbnail(3746075,"206972","","DSCF0619_thumb.JPG",130,92,32);thumbnails[4525893]=new thumbnail(4525893,"206972","Heart button","DSCF0880_thumb.JPG",130,92,32);thumbnails[4781926]=new thumbnail(4781926,"206972","Turquoise & Lime Charm Set","DSCF0907_thumb.JPG",130,98,32);thumbnails[4826223]=new thumbnail(4826223,"206972","Nigella","DSCF0917_thumb.JPG",130,98,32);thumbnails[4913376]=new thumbnail(4913376,"206972","Stary Gazy Night II","DSCF0941_thumb.JPG",130,98,32);thumbnails[4941277]=new thumbnail(4941277,"206972","Rubina","DSCF0971_thumb.JPG",130,98,32);thumbnails[4941501]=new thumbnail(4941501,"206972","Scarlet O'Hara ","DSCF0977_thumb.JPG",130,98,32);thumbnails[4967965]=new thumbnail(4967965,"206972","Honey","DSCF0996_thumb.JPG",130,98,32);thumbnails[5073027]=new thumbnail(5073027,"206972","Heather","DSCF1012_thumb.JPG",130,98,32);thumbnails[5073118]=new thumbnail(5073118,"206972","Olivia","DSCF1016_thumb.JPG",130,98,32);thumbnails[5086161]=new thumbnail(5086161,"206972","Honey drizzle earrings","DSCF1022_thumb.JPG",130,96,32);thumbnails[5086164]=new thumbnail(5086164,"206972","Melanie","DSCF1050_thumb.JPG",130,98,32);thumbnails[5086166]=new thumbnail(5086166,"206972","Rosa","DSCF1042_thumb.JPG",130,96,32);thumbnails[5086170]=new thumbnail(5086170,"206972","canyon","DSCF1031_thumb.JPG",130,96,32);thumbnails[5088217]=new thumbnail(5088217,"206972","Savannah","DSCF1061_thumb.JPG",130,96,32);thumbnails[5090264]=new thumbnail(5090264,"206972","","DSCF1065_thumb.JPG",130,94,32);thumbnails[5090280]=new thumbnail(5090280,"206972","","DSCF1067_thumb.JPG",130,96,32);thumbnails[5090379]=new thumbnail(5090379,"206972","","DSCF1069_thumb.JPG",130,98,32);thumbnails[5191754]=new thumbnail(5191754,"206972","Twilight  ","DSCF1092_thumb.JPG",130,98,32);thumbnails[5211503]=new thumbnail(5211503,"206972","Tobias & the Angel","DSCF1097_thumb.JPG",130,93,32);thumbnails[5211589]=new thumbnail(5211589,"206972","Blue Moon","DSCF1112_thumb.JPG",130,98,32);thumbnails[5620648]=new thumbnail(5620648,"206972","Snake Eyes","DSCF1169_thumb.JPG",130,98,32);thumbnails[5620677]=new thumbnail(5620677,"206972","Orchard","DSCF1167_thumb.JPG",130,98,32);thumbnails[5811482]=new thumbnail(5811482,"206972","Wing","DSCF1170_thumb.JPG",130,93,32);thumbnails[6015234]=new thumbnail(6015234,"206972","Penny","DSCF1243_thumb.JPG",130,98,32);thumbnails[6142366]=new thumbnail(6142366,"206972","Coast ","DSCF1259_thumb.JPG",130,98,32);thumbnails[6142368]=new thumbnail(6142368,"206972","Sanctuary - Sold","DSCF1286_thumb.JPG",130,98,32);thumbnails[6142370]=new thumbnail(6142370,"206972","Oceana","DSCF1268_thumb.JPG",130,98,32);thumbnails[6142371]=new thumbnail(6142371,"206972","Savana","DSCF1271_thumb.JPG",130,96,32);thumbnails[6142373]=new thumbnail(6142373,"206972","Helta-Skelta","DSCF1273_thumb.JPG",130,98,32);thumbnails[6142380]=new thumbnail(6142380,"206972","Fran - Sold ","DSCF1254_thumb.JPG",130,96,32);thumbnails[6142381]=new thumbnail(6142381,"206972","Martha - Sold","DSCF1255_thumb.JPG",130,98,32);thumbnails[6167170]=new thumbnail(6167170,"206972","Over the Rainbow","DSCF1287_thumb.JPG",130,98,32);thumbnails[6167185]=new thumbnail(6167185,"206972","Kath's Dream","DSCF1284_thumb.JPG",130,98,32);thumbnails[6177304]=new thumbnail(6177304,"206972","Let's do the twist","DSCF1295_thumb.JPG",130,98,32);thumbnails[4913357]=new thumbnail(4913357,"206972","Mardi Gras","DSCF0935_thumb.JPG",130,93,32);thumbnails[5620679]=new thumbnail(5620679,"206972","","DSCF1139_thumb.JPG",130,95,32);thumbnails[5090238]=new thumbnail(5090238,"206972","","DSCF1064_thumb.JPG",130,98,32);thumbnails[5090271]=new thumbnail(5090271,"206972","","DSCF1066_thumb.JPG",130,98,32);thumbnails[5090424]=new thumbnail(5090424,"206972","","DSCF1070_thumb.JPG",130,96,32);thumbnails[5090433]=new thumbnail(5090433,"206972","","DSCF1071_thumb.JPG",130,96,32);thumbnails[5090283]=new thumbnail(5090283,"206972","","DSCF1068_thumb.JPG",130,96,32);thumbnails[3686240]=new thumbnail(3686240,"206972","","DSCF0559_thumb.JPG",130,86,32);thumbnails[3475641]=new thumbnail(3475641,"206972","","DSCF0393_thumb.JPG",130,85,32);thumbnails[4942158]=new thumbnail(4942158,"206972","Lily II","DSCF0982_thumb.JPG",130,98,32);thumbnails[3999595]=new thumbnail(3999595,"206972","Red Cavern","DSCF0712_thumb.JPG",130,98,32);thumbnails[4765088]=new thumbnail(4765088,"206972","Cherry & Ivory Charm Set -<br>\r\nSold thanks!","DSCF0894_thumb.JPG",130,98,32);thumbnails[4913353]=new thumbnail(4913353,"206972","Lily","DSCF0947_thumb.JPG",130,98,32);thumbnails[4941489]=new thumbnail(4941489,"206972","","DSCF0975_thumb.JPG",130,98,32);thumbnails[5086103]=new thumbnail(5086103,"206972","Theresa","DSCF1033_thumb.JPG",130,96,32);thumbnails[4913339]=new thumbnail(4913339,"206972","Very Berry","DSCF0944_thumb.JPG",130,98,32);thumbnails[4826122]=new thumbnail(4826122,"206972","Tempest  - Sold, thanks!","DSCF0911_thumb.JPG",130,98,32);thumbnails[4732287]=new thumbnail(4732287,"206972","Stary Gazy Night - <br>\r\nSold thanks!","DSCF0882_thumb.JPG",130,98,32);thumbnails[4732379]=new thumbnail(4732379,"206972","","DSCF0879_thumb.JPG",130,98,32);thumbnails[3783488]=new thumbnail(3783488,"206972","Juliette","DSCF0623_thumb.JPG",130,98,32);thumbnails[3783594]=new thumbnail(3783594,"206972","Fete","DSCF0632_thumb.JPG",130,98,32);thumbnails[3499298]=new thumbnail(3499298,"206972","Chrysalis  <br>\r\n","DSCF0602_thumb.JPG",130,93,32);thumbnails[3604513]=new thumbnail(3604513,"206972","Angel Lodge Studio","turq-spot-btn-corsage_thumb.jpg",130,98,32);thumbnails[4342440]=new thumbnail(4342440,"206972","Cavern pearls","DSCF0870_thumb.JPG",130,98,32);thumbnails[3600333]=new thumbnail(3600333,"206972","Marianne O'Malley","handmade_by_m_1_005_2_thumb.jpg",130,98,32);thumbnails[3606297]=new thumbnail(3606297,"206972","Pumpkin","DSCF0475_thumb.JPG",130,91,32);thumbnails[3408007]=new thumbnail(3408007,"206972","Emma ","DSCF0510_thumb.JPG",130,98,32);thumbnails[3744192]=new thumbnail(3744192,"206972","Loire","DSCF05871_thumb.JPG",130,98,32);thumbnails[3607108]=new thumbnail(3607108,"206972","Pixie","DSCF0482_thumb.JPG",130,94,32);thumbnails[3861388]=new thumbnail(3861388,"206972","Cerrig y Graig ","DSCF0637_thumb.JPG",130,98,32);thumbnails[3600331]=new thumbnail(3600331,"206972","Marianne O'Malley","handmade_by_M_1_003_2_thumb.jpg",130,90,32);thumbnails[3607141]=new thumbnail(3607141,"206972","Emily","DSCF0540_thumb.JPG",130,94,32);thumbnails[3793883]=new thumbnail(3793883,"206972","Marianne O'Malley","DSCF0636_thumb.JPG",130,91,32);thumbnails[3607092]=new thumbnail(3607092,"206972","Willow II","DSCF0483_thumb.JPG",130,98,32);thumbnails[3467841]=new thumbnail(3467841,"206972","","DSCF0054_thumb.JPG",130,99,32);thumbnails[3604512]=new thumbnail(3604512,"206972","Angel Lodge Studio","corsage-red-spotty_charms-btn-copy_thumb.jpg",130,98,32);thumbnails[3408050]=new thumbnail(3408050,"206972","Kate ","DSCF0513_thumb.JPG",130,98,32);thumbnails[3686051]=new thumbnail(3686051,"206972","","DSCF0547_thumb.JPG",130,88,32);thumbnails[3733154]=new thumbnail(3733154,"206972","Cherry Bomb","DSCF0609_thumb.JPG",130,93,32);thumbnails[3573599]=new thumbnail(3573599,"206972","Willow","DSCF0449_thumb.JPG",130,93,32);thumbnails[3613387]=new thumbnail(3613387,"206972","Surf","Picture_thumb.jpg",130,94,32);thumbnails[3467772]=new thumbnail(3467772,"206972","Galactica","DSCF0374_thumb.JPG",130,98,32);thumbnails[3553799]=new thumbnail(3553799,"206972","Seascape","DSCF0443_thumb.JPG",130,98,32);thumbnails[3467791]=new thumbnail(3467791,"206972","Cosmos","DSCF0375_thumb.JPG",130,108,32);var galleries=new Object();galleries[185614]=new gallery(185614,"6284334","Sets","gallery",[6284334]);galleries[185615]=new gallery(185615,"6284168","Focals","gallery",[6284168]);galleries[187785]=new gallery(187785,"6284338","Buttons","gallery",[6284338]);galleries[187786]=new gallery(187786,"3471537","Curios","gallery",[3471537]);galleries[206972]=new gallery(206972,"6167170,6142371,6142368,6015234,5620679,5620648,4941489,4941277,4826122,4765088,4525893,3686010,3499298,3467841","Gallery","gallery",[3458444,3475643,3686010,3686060,3686082,3686091,3686093,3686111,3686209,3686255,3686345,3746062,3746075,4525893,4781926,4826223,4913376,4941277,4941501,4967965,5073027,5073118,5086161,5086164,5086166,5086170,5088217,5090264,5090280,5090379,5191754,5211503,5211589,5620648,5620677,5811482,6015234,6142366,6142368,6142370,6142371,6142373,6142380,6142381,6167170,6167185,6177304,4913357,5620679,5090238,5090271,5090424,5090433,5090283,3686240,3475641,4942158,3999595,4765088,4913353,4941489,5086103,4913339,4826122,4732287,4732379,3783488,3783594,3499298,3604513,4342440,3600333,3606297,3408007,3744192,3607108,3861388,3600331,3607141,3793883,3607092,3467841,3604512,3408050,3686051,3733154,3573599,3613387,3467772,3553799,3467791]);var imageSets=new Object();imageSets[1]="6284168,6167170,5620679,5620648,5191754,4941277";imageSets[2]="6284338,6284168,6167170,6142371,6142368,6015234,5620679,5620648,4967976,4941489,4941277,4826122,4765088,4525893,3686010,3499298,3471537,3467841";imageSets[3]="6284338,6284334,6284168,6200964,6177304,6167185,6167170,6142381,6142380,6142373,6142371,6142370,6142368,6142366,6015234,5811482,5620679,5620677,5620648,5211589,5211503,5191754,5090433,5090424,5090379,5090283,5090280,5090271,5090264,5090238,5088217,5086170,5086166,5086164,5086161,5086103,5073118,5073027,4991852,4967976,4967965,4942158,4941501,4941489,4941277,4913376,4913357,4913353,4913339,4826223";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/Roowelch1/images";break}switch(a){case 1:b="http://www1.clikpic.com/Roowelch1/images";break}switch(a){case 2:b="http://admin.clikpic.com/Roowelch1/images";break}switch(a){case 24:b="http://tpc15/clikpic/Roowelch1/images";break}switch(a){case 4:b="http://www.clikchurch.com/Roowelch1/images";break}switch(a){case 5:b="http://www2.clikpic.com/Roowelch1/images";break}switch(a){case 22:b="http://tpc5/clikpic/Roowelch1/images";break}switch(a){case 23:b="http://tpc10/clikpic/Roowelch1/images";break}switch(a){case 25:b="http://tpc16/clikpic/Roowelch1/images";break}switch(a){case 15:b="http://www3.clikpic.com/Roowelch1/images";break}switch(a){case 18:b="http://www4.clikpic.com/Roowelch1/images";break}switch(a){case 19:b="http://www5.clikpic.com/Roowelch1/images";break}switch(a){case 31:b="http://www7.clikpic.com/Roowelch1/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Roowelch1/images";break}switch(a){case 33:b="http://www8.clikpic.com/Roowelch1/images";break}switch(a){case 34:b="http://www9.clikpic.com/Roowelch1/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Roowelch1/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Roowelch1/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="Roo Welch Glass Artist: "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="ROOWELCH1">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};