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[4454220]=new thumbnail(4454220,"","Mira Bogicevic","mira_01_thumb.jpg",130,131,18);thumbnails[4487719]=new thumbnail(4487719,"","Daddy's Girl","A-Daddys_Girl_CC500_thumb.jpg",130,130,18);thumbnails[4452094]=new thumbnail(4452094,"","Rabbit and Mask","Mira_0132_thumb.jpg",130,131,18);thumbnails[4468155]=new thumbnail(4468155,"260244","Rabbit and Mask","Rabbit_and_Mask_CC600_thumb.jpg",130,131,18);thumbnails[5384155]=new thumbnail(5384155,"260244","Pumpkin Parade","Pumpkins_cc600_thumb.jpg",130,82,18);thumbnails[5384160]=new thumbnail(5384160,"260244","Geometric Shapes","Still_Life_with_Mug_cc600_thumb.jpg",130,112,18);thumbnails[5384161]=new thumbnail(5384161,"260244","Wooden Toys","Wooden_Toys_cc500_thumb.jpg",130,175,18);thumbnails[4495348]=new thumbnail(4495348,"260244","Three Figs","three_figs_cc600_thumb.jpg",130,78,18);thumbnails[4495206]=new thumbnail(4495206,"260244","Kohlrabi and Elastic Band","kohlrabi_and_elastic_band_cc600_thumb.jpg",130,174,18);thumbnails[4483282]=new thumbnail(4483282,"260244","Still Life with Pomegranates","Still_Life_with_Pomegranates_CC600_thumb.jpg",130,112,18);thumbnails[4474811]=new thumbnail(4474811,"260244","Asparagus & Egg<br>\r\n","Asparagus_and_Egg_CC600_thumb.jpg",130,142,18);thumbnails[4490760]=new thumbnail(4490760,"260244","Fennel and Book<br>\r\n","fennel_and_book_cc475_thumb.jpg",130,126,18);thumbnails[4495330]=new thumbnail(4495330,"260244","Farmyard","farmyard_cc600_thumb.jpg",130,87,18);thumbnails[4483266]=new thumbnail(4483266,"260244","Dragon Fruit","Dragon_Fruit_CC600_thumb.jpg",130,111,18);thumbnails[4495324]=new thumbnail(4495324,"260244","Elizabethan Gourd","elizabethan_gourd_cc600_thumb.jpg",130,129,18);thumbnails[4495210]=new thumbnail(4495210,"260244","Group of Toys","group_of_toys_cc600_thumb.jpg",130,108,18);thumbnails[4483277]=new thumbnail(4483277,"260244","Golden Mask","Golden_Mask_CC600_thumb.jpg",130,204,18);thumbnails[4483270]=new thumbnail(4483270,"260244","Still Life with Figs<br>\r\n<br>\r\n","Still_Life_with_FigsCC600_thumb.jpg",130,113,18);thumbnails[4483285]=new thumbnail(4483285,"260244","Red Shoes","Red_Shoes_CC600_thumb.jpg",130,150,18);thumbnails[4483274]=new thumbnail(4483274,"260244","Still Life with Melon<br>\r\n","Still_Life_with_Melon_CC600_thumb.jpg",130,98,18);thumbnails[4499871]=new thumbnail(4499871,"260244","Skull","skull_cc600_thumb.jpg",130,114,18);thumbnails[4495337]=new thumbnail(4495337,"260244","Shrine","shrine_cc600_thumb.jpg",130,106,18);thumbnails[4483291]=new thumbnail(4483291,"260244","Three Pears","Three_Pears_CC600_thumb.jpg",130,77,18);thumbnails[4495276]=new thumbnail(4495276,"260244","Chocolate Fish","chocolate_fish_cc600_thumb.jpg",130,124,18);thumbnails[4495316]=new thumbnail(4495316,"260244","Egg Cups","Egg_Cups_CC600_thumb.jpg",130,112,18);thumbnails[4495214]=new thumbnail(4495214,"260244","On Reflection","dancing_shoe_cc600_thumb.jpg",130,122,18);thumbnails[4495200]=new thumbnail(4495200,"260244","Yellow Frenzy","yellow_frenzy_cc600_thumb.jpg",130,111,18);thumbnails[4495248]=new thumbnail(4495248,"260244","Artichoke and Paper Bag","artichoke_and_paper_bag_cc600_thumb.jpg",130,128,18);thumbnails[4495333]=new thumbnail(4495333,"260244","Quince","quince_cc600_thumb.jpg",130,98,18);thumbnails[4483267]=new thumbnail(4483267,"260244","Cascade","cascade_cc450_thumb.jpg",130,239,18);thumbnails[4499785]=new thumbnail(4499785,"260244","Orange Shoes","orange_shoes_cc600_thumb.jpg",130,152,18);thumbnails[4483288]=new thumbnail(4483288,"260244","Utility Shoe","Utility_Shoe_CC600_thumb.jpg",130,111,18);thumbnails[4495794]=new thumbnail(4495794,"260244","Egg Box","egg_box_cc500_thumb.jpg",130,150,18);thumbnails[4482945]=new thumbnail(4482945,"260244","Still Life with Brick<br>\r\n","Still_Life_with_Brick_CC600_thumb.jpg",130,148,18);thumbnails[4495353]=new thumbnail(4495353,"260244","Apples and Feather","apples_and_feather_cc600_thumb.jpg",130,111,18);thumbnails[4588812]=new thumbnail(4588812,"260244","Indian Elephant","Indian_Elephant_CC600_thumb.jpg",130,113,18);thumbnails[4589591]=new thumbnail(4589591,"260244","Scattered Pine Cones (detail)","Scattered_Quail_Eggs_Detail_CC500_thumb.jpg",130,114,18);thumbnails[4838980]=new thumbnail(4838980,"260245","Rabbit","Rabbit_CC6001_thumb.jpg",130,107,18);thumbnails[4485166]=new thumbnail(4485166,"260245","Pat Asleep","Life_Model_c600_thumb.jpg",130,164,18);thumbnails[4832873]=new thumbnail(4832873,"260245","Tonal Still Life 1","Tonal-Still_Life_1_CC600_thumb.jpg",130,92,18);thumbnails[4832877]=new thumbnail(4832877,"260245","Dresser","Dresser_CC600_thumb.jpg",130,188,18);thumbnails[4832927]=new thumbnail(4832927,"260245","Tonal Still Life 3","Tonal_Still_Life_3_CC600_thumb.jpg",130,141,18);thumbnails[4832928]=new thumbnail(4832928,"260245","Stonecarving","Stonecarving_CC600_thumb.jpg",130,180,18);thumbnails[4833659]=new thumbnail(4833659,"260245","Indian Doll with Mona Lisa<br>\r\n","Indian_Doll_CC600_thumb.jpg",130,173,18);thumbnails[4833662]=new thumbnail(4833662,"260245","Indian Ducks","Indian_Ducks_CC600_thumb.jpg",130,49,18);thumbnails[4833669]=new thumbnail(4833669,"260245","Serbian Doll","Serbian_Doll_CC600_thumb.jpg",130,178,18);thumbnails[4833664]=new thumbnail(4833664,"260245","Mantelpiece Clock","Mantelpiece_Clock_CC600_thumb.jpg",130,102,18);thumbnails[4833655]=new thumbnail(4833655,"260245","Disney Curtain","Disney_Curtains_CC600_thumb.jpg",130,170,18);thumbnails[4832874]=new thumbnail(4832874,"260245","Tonal Still Life 2","Tonal_Still__Life_2_CC600_thumb.jpg",130,94,18);thumbnails[4881893]=new thumbnail(4881893,"260353","Devouring Head","Mexican_CC600_thumb.jpg",130,188,18);thumbnails[4630828]=new thumbnail(4630828,"260353","Cuddling Cat (front view)","Cuddling_Cat_F_CC440_thumb.jpg",130,141,18);thumbnails[4630903]=new thumbnail(4630903,"260353","Cuddling Cat (rear view)","Cuddling_Cat_R_CC_490_thumb.jpg",130,141,18);thumbnails[4860183]=new thumbnail(4860183,"260353","Angel Clasp","Angel_Clasp_CC600_thumb.jpg",130,160,18);thumbnails[4860186]=new thumbnail(4860186,"260353","Mermaid","Mermaid_CC600_thumb.jpg",130,207,18);thumbnails[4860211]=new thumbnail(4860211,"260353","Angel Bust","Angel_Bust_CC600_thumb.jpg",130,154,18);thumbnails[4860212]=new thumbnail(4860212,"260353","Twin Bust","Twin_Bust_CC600_thumb.jpg",130,184,18);thumbnails[4468177]=new thumbnail(4468177,"260353","Green Man ","Mira_0191_thumb.jpg",130,126,18);thumbnails[4468505]=new thumbnail(4468505,"260352","New Mothers","New_Mothers_CC550_thumb.jpg",130,91,18);thumbnails[4484238]=new thumbnail(4484238,"260352","Dressing Table with Serbian Doll","Dressing_Table_CC600_thumb.jpg",130,224,18);thumbnails[4591847]=new thumbnail(4591847,"260352","Drawer","Drawer_CC600_thumb.jpg",130,97,18);thumbnails[4591866]=new thumbnail(4591866,"260352","Dressing Table with Gnasher Snapper","Dressing_Table_2_CC600_thumb.jpg",130,178,18);thumbnails[4612850]=new thumbnail(4612850,"260352","Rabbit","Rabbit_CC600_thumb.jpg",130,107,18);thumbnails[4612864]=new thumbnail(4612864,"260352","Father Christmas","Father_Christmas_CC600_thumb.jpg",130,143,18);thumbnails[4612867]=new thumbnail(4612867,"260352","Mechanical Horse","Mechanical_Horse_CC600_thumb.jpg",130,93,18);thumbnails[4838966]=new thumbnail(4838966,"260352","Bird","Bird_2_CC600_thumb.jpg",130,110,18);thumbnails[4838991]=new thumbnail(4838991,"260352","Grotesques ","Majolica_CC600_thumb.jpg",130,93,18);thumbnails[4839226]=new thumbnail(4839226,"260352","Camel Studies","Camel_CC6001_thumb.jpg",130,130,18);thumbnails[4630756]=new thumbnail(4630756,"260354","Parrot Tapestry","Parrot_CC450_thumb.jpg",130,143,18);thumbnails[4851132]=new thumbnail(4851132,"260354","Circus Elephants","Elephants_CC600_thumb.jpg",130,87,18);thumbnails[4851129]=new thumbnail(4851129,"260354","Ghost Riders","Long_Horses_CC600_thumb.jpg",130,371,18);thumbnails[4851139]=new thumbnail(4851139,"260354","Gothic Bird and Flower 1","Gothic_square_thumb.jpg",130,126,18);thumbnails[4851131]=new thumbnail(4851131,"260354","Mad March Hares","Hares_CC600_thumb.jpg",130,104,18);thumbnails[4851137]=new thumbnail(4851137,"260354","Head Border","Head_Border_CC600_thumb.jpg",130,107,18);thumbnails[4485173]=new thumbnail(4485173,"260354","Sun Face with Border","Sun_Head_CC6001_thumb.jpg",130,139,18);thumbnails[4851130]=new thumbnail(4851130,"260354","Angels","Angels_CC600_thumb.jpg",130,87,18);thumbnails[4857508]=new thumbnail(4857508,"260354","Puppets","Puppets_CC600_thumb.jpg",130,113,18);thumbnails[4887310]=new thumbnail(4887310,"260354","Wadsworth Mantle","AAA_CC600_thumb.jpg",130,195,18);thumbnails[4791735]=new thumbnail(4791735,"274192","Still Life with Figs","Still_Life_with_FigsCC4001_thumb.jpg",130,113,18);thumbnails[4791711]=new thumbnail(4791711,"274192","Three Pears","Three_Pears_CC4001_thumb.jpg",130,77,18);thumbnails[4791726]=new thumbnail(4791726,"274192","Yellow Frenzy","yellow_frenzy_cc4001_thumb.jpg",130,111,18);thumbnails[4792198]=new thumbnail(4792198,"274194","Three Figs","three_figs_cc400_thumb.jpg",130,78,18);thumbnails[4792206]=new thumbnail(4792206,"274194","Kohlrabi and Elastic Band","kohlrabi_and_elastic_band_cc400_thumb.jpg",130,175,18);thumbnails[4792217]=new thumbnail(4792217,"274194","Utility Shoe","Utility__Shoe__CC400_thumb.jpg",130,111,18);thumbnails[4792228]=new thumbnail(4792228,"274194","Asparagus and Egg","Asparagus_and_Egg_CC400_thumb.jpg",130,142,18);thumbnails[4792238]=new thumbnail(4792238,"274194","Group of Toys","group_of_toys_cc400_thumb.jpg",130,108,18);thumbnails[4792248]=new thumbnail(4792248,"274194","Turk's Cap (Elizabethan) Gourd","elizabethan_gourd_cc400_thumb.jpg",130,129,18);thumbnails[4792255]=new thumbnail(4792255,"274194","Fennel and Book","fennel_and_book_cc400_thumb.jpg",130,126,18);thumbnails[4796641]=new thumbnail(4796641,"274195","Paintings","Postcards_thumb.jpg",130,120,18);thumbnails[4816769]=new thumbnail(4816769,"274195","Designs","postcardsTD_thumb.jpg",130,116,18);thumbnails[4821968]=new thumbnail(4821968,"274195","Textiles","postcardsT_thumb.jpg",130,121,18);var galleries=new Object();galleries[260244]=new gallery(260244,"4468155","Paintings: Recent","gallery",[4468155,5384155,5384160,5384161,4495348,4495206,4483282,4474811,4490760,4495330,4483266,4495324,4495210,4483277,4483270,4483285,4483274,4499871,4495337,4483291,4495276,4495316,4495214,4495200,4495248,4495333,4483267,4499785,4483288,4495794,4482945,4495353,4588812,4589591]);galleries[260245]=new gallery(260245,"4838980,4833669,4833664,4833662,4833659,4833655,4832928,4832927,4832877,4832874","Paintings: Archive","gallery",[4838980,4485166,4832873,4832877,4832927,4832928,4833659,4833662,4833669,4833664,4833655,4832874]);galleries[260353]=new gallery(260353,"4881893,4860212,4860211,4860186,4860183,4630903,4630828,4468177","Sculpture","gallery",[4881893,4630828,4630903,4860183,4860186,4860211,4860212,4468177]);galleries[260352]=new gallery(260352,"4839226,4838991,4838966,4612867,4612864,4612850,4591866,4591847,4484238,4468505","Sketchbook","gallery",[4468505,4484238,4591847,4591866,4612850,4612864,4612867,4838966,4838991,4839226]);galleries[260354]=new gallery(260354,"4887310,4857508,4851139,4851137,4851132,4851131,4851130,4851129,4630756,4485173","Textiles","gallery",[4630756,4851132,4851129,4851139,4851131,4851137,4485173,4851130,4857508,4887310]);galleries[260356]=new gallery(260356,"4821968,4816769,4796641,4792255,4792248,4792238,4792228,4792217,4792206,4792198","Reproductions","gallery",[]);galleries[274192]=new gallery(274192,"4791735,4791726,4791711","Giclee Prints","gallery",[4791735,4791711,4791726]);galleries[274194]=new gallery(274194,"4792255,4792248,4792238,4792228,4792217,4792206,4792198","Greeting Cards","gallery",[4792198,4792206,4792217,4792228,4792238,4792248,4792255]);galleries[274195]=new gallery(274195,"4821968,4816769,4796641","Postcards","gallery",[4796641,4816769,4821968]);var imageSets=new Object();imageSets[1]="4487719";imageSets[2]="4468155";imageSets[3]="5384161,5384160,5384155,4887310,4881893,4860212,4860211,4860186,4860183,4857508,4851139,4851137,4851132,4851131,4851130,4851129,4839226,4838991,4838980,4838966,4833669,4833664,4833662,4833659,4833655,4832928,4832927,4832877,4832874,4832873,4821968,4816769,4796641,4792255,4792248,4792238,4792228,4792217,4792206,4792198,4791735,4791726,4791711,4630903,4630828,4630756,4612867,4612864,4612850,4591866";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/miroslava/images";break}switch(a){case 1:b="http://www1.clikpic.com/miroslava/images";break}switch(a){case 2:b="http://admin.clikpic.com/miroslava/images";break}switch(a){case 24:b="http://tpc15/clikpic/miroslava/images";break}switch(a){case 4:b="http://www.clikchurch.com/miroslava/images";break}switch(a){case 5:b="http://www2.clikpic.com/miroslava/images";break}switch(a){case 22:b="http://tpc5/clikpic/miroslava/images";break}switch(a){case 23:b="http://tpc10/clikpic/miroslava/images";break}switch(a){case 25:b="http://tpc16/clikpic/miroslava/images";break}switch(a){case 15:b="http://www3.clikpic.com/miroslava/images";break}switch(a){case 18:b="http://www4.clikpic.com/miroslava/images";break}switch(a){case 19:b="http://www5.clikpic.com/miroslava/images";break}switch(a){case 31:b="http://www7.clikpic.com/miroslava/images";break}switch(a){case 32:b="http://admin2.clikpic.com/miroslava/images";break}switch(a){case 33:b="http://www8.clikpic.com/miroslava/images";break}switch(a){case 34:b="http://www9.clikpic.com/miroslava/images";break}switch(a){case 35:b="http://admin3.clikpic.com/miroslava/images";break}switch(a){case 37:b="http://admin4.clikpic.com/miroslava/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="Mira Bogicevic: "+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>"}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="MIROSLAVA">';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+'")'})}}};