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[695459]=new thumbnail(695459,"230952","Dancers in blue","dancers_thumb.jpg",130,130,1);thumbnails[1949201]=new thumbnail(1949201,"230952","Waiting in the Wings","waiting in the wings_thumb.JPG",130,129,1);thumbnails[1981126]=new thumbnail(1981126,"230952","Copy of Degas' Blue Dancers","degas clikpic_thumb.jpg",130,128,1);thumbnails[3796276]=new thumbnail(3796276,"230952","Swan Lake, Hands","swan_lake_hands_thumb.jpg",130,133,1);thumbnails[3796285]=new thumbnail(3796285,"230952","The bar","the_bar_thumb.jpg",130,130,1);thumbnails[3832768]=new thumbnail(3832768,"230952","Tonal Sketch study","Ballet_Brsitol_sketch_thumb.jpg",130,130,1);thumbnails[3893427]=new thumbnail(3893427,"230952","Ballerinas resting","tired_dancers_thumb.jpg",130,130,1);thumbnails[3915606]=new thumbnail(3915606,"230952","Young Ballerina","young_ballerina_thumb.jpg",130,128,1);thumbnails[4205568]=new thumbnail(4205568,"230952","Low second arabesque","laura_1_thumb.jpg",130,134,1);thumbnails[4305351]=new thumbnail(4305351,"230952","Young Ballerina","ballet_blue_thumb.jpg",130,130,1);thumbnails[4552336]=new thumbnail(4552336,"230952","Young ballerina watching older dancers","young_ballerina_1_thumb.jpg",130,130,1);thumbnails[4552341]=new thumbnail(4552341,"230952","Classic Dying Swan","laura_in_blue_lo_res_thumb.jpg",130,130,1);thumbnails[4572137]=new thumbnail(4572137,"230952","'Degas style' tying of pointe shoes","laura_3_thumb.jpg",130,130,1);thumbnails[4601605]=new thumbnail(4601605,"230952","Attitude derriere","hp_scanDS_98279525129_thumb.jpg",130,130,1);thumbnails[4892024]=new thumbnail(4892024,"230952","Graceful arms","ballet_arms_thumb.jpg",130,130,1);thumbnails[4947264]=new thumbnail(4947264,"230952","Pas de Dessus","emily_thumb.jpg",130,130,1);thumbnails[4991199]=new thumbnail(4991199,"230952","Swan lake legs","swan_lake_legs_thumb.jpg",130,130,1);thumbnails[5143198]=new thumbnail(5143198,"230952","","ballet_poster_thumb.jpg",130,184,1);thumbnails[5363689]=new thumbnail(5363689,"230952","Giselle","giselle_thumb.jpg",130,130,1);thumbnails[5591774]=new thumbnail(5591774,"230952","Tonal Sketch study","balet_compilation_1_thumb.jpg",130,130,1);thumbnails[5591778]=new thumbnail(5591778,"230952","Tonal Sketch study","balet_compilation_2_thumb.jpg",130,130,1);thumbnails[5591783]=new thumbnail(5591783,"230952","Tonal sketch study","balet_compilation_4_thumb.jpg",130,130,1);thumbnails[5591787]=new thumbnail(5591787,"230952","Tonal sketch study","balet_compilation_5_thumb.jpg",130,130,1);thumbnails[386238]=new thumbnail(386238,"230952","Dancer tying pointe shoes","dancer1.jpg",130,130,1);thumbnails[3832377]=new thumbnail(3832377,"230952","Ballet Bristol","laura_thumb.jpg",130,130,1);thumbnails[4382283]=new thumbnail(4382283,"230952","Tying of Pointe shoes","dancers_tying_shoes_copy_thumb.jpg",130,130,1);thumbnails[1949193]=new thumbnail(1949193,"230952","Flower Fairy ","flower fairy_thumb.JPG",130,132,1);thumbnails[387020]=new thumbnail(387020,"195964","Catching a Crab","catching_a_crab_thumb.jpg",130,130,1);thumbnails[389656]=new thumbnail(389656,"195964","Gathering seashells","gathering_seashells_thumb.jpg",130,130,1);thumbnails[389694]=new thumbnail(389694,"195964","Summer breeze","windy_square_thumb.jpg",130,130,1);thumbnails[695763]=new thumbnail(695763,"195964","First Steps on the beach, Bude","charlie_square_thumb.jpg",130,130,1);thumbnails[695768]=new thumbnail(695768,"195964","Holding back the tide","holding_back_the_tide_thumb.jpg",130,130,1);thumbnails[695769]=new thumbnail(695769,"195964","Rockpool","rockpool_thumb.jpg",130,130,1);thumbnails[1541410]=new thumbnail(1541410,"195964","Going Fishing, Port Isaac, Cornwall","going_fishing_thumb.jpg",130,130,1);thumbnails[2123654]=new thumbnail(2123654,"195964","Running to the sea","running_to_the_sea_thumb.jpg",130,130,1);thumbnails[3239432]=new thumbnail(3239432,"195964","Low tide at Fowey, Cornwall","issy_fowey_thumb.jpg",130,130,1);thumbnails[3832348]=new thumbnail(3832348,"195964","Sisters","sisters2_thumb.jpg",130,130,1);thumbnails[4205702]=new thumbnail(4205702,"195964","Brothers on the beach","boys_bucket_square_thumb.jpg",130,130,1);thumbnails[386383]=new thumbnail(386383,"195964","Summer Walk","summer walk1.jpg",130,130,1);thumbnails[598128]=new thumbnail(598128,"195964","Home from the Park","home-from-the-park1.jpg",130,139,1);thumbnails[643470]=new thumbnail(643470,"195964","Tea in the Park","tea_in_the_park_thumb.jpg",130,130,1);thumbnails[672106]=new thumbnail(672106,"195964","Skating in Central Park, New York.","skating in cenral park3.jpg",130,130,1);thumbnails[818437]=new thumbnail(818437,"195964","Weeding the Allotment","allotment_weeding_cmyk_thumb.jpg",130,130,1);thumbnails[818441]=new thumbnail(818441,"195964","Working on the Allotment","allotment_thumb.jpg",130,130,1);thumbnails[1278473]=new thumbnail(1278473,"195964","Fishermen, Island of Gozo, Near Malta","fishermen_gozo_mediteranean_thumb.jpg",130,130,1);thumbnails[1394902]=new thumbnail(1394902,"195964","Bus stop, Medina, Malta","bus_thumb.jpg",130,130,1);thumbnails[1804064]=new thumbnail(1804064,"195964","Fishing for minnows, Late summer ","fishing_for_minnows_thumb.jpg",130,130,1);thumbnails[2209407]=new thumbnail(2209407,"195964","Little Maltese Town","little_maltese_town_thumb.jpg",130,130,1);thumbnails[3080402]=new thumbnail(3080402,"195964","Skating in Nice, Christmas Day 2007","nice_thumb.jpg",130,130,1);thumbnails[1948841]=new thumbnail(1948841,"195964","Nude reclining","nude_thumb.jpg",130,130,1);thumbnails[1949202]=new thumbnail(1949202,"195964","Copy of Degas' Women Bathing","tub_thumb.jpg",130,130,1);thumbnails[2022118]=new thumbnail(2022118,"195964","Before the Bath by Candlelight","nude_before_the_bath_thumb.jpg",130,130,1);thumbnails[2834217]=new thumbnail(2834217,"195964","Burlesque legs","burlesque_legs_thumb.jpg",130,130,1);thumbnails[999683]=new thumbnail(999683,"195964","Professor Hugh Coakham","hugh_coakham_thumb.jpg",130,130,1);thumbnails[1060968]=new thumbnail(1060968,"195964","Kate","kate_thumb.jpg",130,130,1);thumbnails[5363703]=new thumbnail(5363703,"195964","Sadie","sadie_2_thumb.jpg",130,194,1);thumbnails[5587217]=new thumbnail(5587217,"195964","Rosalind and Alexander","Alexander_and_rosalind_2_thumb.jpg",130,182,1);thumbnails[4304213]=new thumbnail(4304213,"253732","Ballet Bristol","ballet_feet_thumb.jpg",130,130,1);thumbnails[4359204]=new thumbnail(4359204,"253732","Ballet Bristol","ballet_bristol_2_354_grey_copy_thumb.jpg",130,130,1);thumbnails[4489733]=new thumbnail(4489733,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_016_thumb.JPG",130,130,1);thumbnails[4489737]=new thumbnail(4489737,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_117_thumb.JPG",130,130,1);thumbnails[4489744]=new thumbnail(4489744,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_198_thumb.JPG",130,130,1);thumbnails[4489752]=new thumbnail(4489752,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_208_thumb.JPG",130,130,1);thumbnails[4489758]=new thumbnail(4489758,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_421_thumb.JPG",130,130,1);thumbnails[4489760]=new thumbnail(4489760,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_427_thumb.JPG",130,130,1);thumbnails[4489767]=new thumbnail(4489767,"253732","Ballet Bristol","ballet_bristol_at_school_of_dance_442_thumb.JPG",130,130,1);thumbnails[4359201]=new thumbnail(4359201,"253732","Ballet Bristol","065_thumb.jpg",130,130,1);thumbnails[4359202]=new thumbnail(4359202,"253732","Ballet Bristol","157_thumb.jpg",130,130,1);thumbnails[4359203]=new thumbnail(4359203,"253732","Ballet Bristol","181_thumb.jpg",130,130,1);thumbnails[4359205]=new thumbnail(4359205,"253732","Bristol College of Dance","ballet_class_grey_thumb.jpg",130,130,1);thumbnails[4359206]=new thumbnail(4359206,"253732","Bristol College of Dance","bristol_school_of_dancing_025_thumb.jpg",130,130,1);thumbnails[4359207]=new thumbnail(4359207,"253732","Brsitol College of Dance","bristol_school_of_dancing_065_thumb.jpg",130,130,1);thumbnails[4359209]=new thumbnail(4359209,"253732","Bristol College of Dance","ballet_rehearsal_thumb.jpg",130,130,1);thumbnails[4359210]=new thumbnail(4359210,"253732","Brsitol College of Dance","bristol_school_of_dancing_114_thumb.jpg",130,130,1);thumbnails[4359211]=new thumbnail(4359211,"253732","Ballet Bristol","IMG_8031_thumb.jpg",130,130,1);thumbnails[4359212]=new thumbnail(4359212,"253732","Ballet Bristol","IMG_8035_thumb.jpg",130,130,1);thumbnails[4359213]=new thumbnail(4359213,"253732","Ballet Bristol","IMG_8226_thumb.jpg",130,130,1);thumbnails[4359215]=new thumbnail(4359215,"253732","Ballet Bristol","IMG_82991_thumb.jpg",130,130,1);thumbnails[4359220]=new thumbnail(4359220,"253732","Ballet Bristol","IMG_8379_thumb.jpg",130,130,1);thumbnails[4359221]=new thumbnail(4359221,"253732","Ballet Bristol","kate_1_thumb.jpg",130,130,1);thumbnails[4359222]=new thumbnail(4359222,"253732","Ballet Bristol","laura_2_thumb.jpg",130,130,1);thumbnails[4304217]=new thumbnail(4304217,"253733","Sand Dunes","sand_dunes_thumb.jpg",130,130,1);thumbnails[4359691]=new thumbnail(4359691,"253733","Frosty morning","1_frosty_morning_035_thumb.jpg",130,130,1);thumbnails[4359692]=new thumbnail(4359692,"253733","Snow people with dog","2_snowmen_on_the_downs__bridge_043_thumb.jpg",130,130,1);thumbnails[4359697]=new thumbnail(4359697,"253733","Spanish Quarter","3_perpignan_093_thumb.jpg",130,130,1);thumbnails[4359699]=new thumbnail(4359699,"253733","Street Performers","4_032_thumb.jpg",130,130,1);thumbnails[4359701]=new thumbnail(4359701,"253733","Street Entertainers","5_brolly_street_entertainers_thumb.jpg",130,130,1);thumbnails[4359703]=new thumbnail(4359703,"253733","Umbrella Tree","6_umbrella_tree_thumb.jpg",130,130,1);thumbnails[4359706]=new thumbnail(4359706,"253733","Fan Dancer","7__thumb.jpg",130,130,1);thumbnails[4359708]=new thumbnail(4359708,"253733","Keda Breeze","8_keda_breeze_thumb.jpg",130,130,1);thumbnails[4359711]=new thumbnail(4359711,"253733","Saw player","9_saw_player_thumb.jpg",130,130,1);thumbnails[4359714]=new thumbnail(4359714,"253733","The Tooth Fairy","10_tooth_fairy_thumb.jpg",130,130,1);thumbnails[4482905]=new thumbnail(4482905,"31596","Criminal Records Bureau Checked and approved.<br>\r\n","crb-logo_thumb.jpg",130,78,1);thumbnails[3328847]=new thumbnail(3328847,"31596","Click for Artist's Biography","bob_in_nice_grey_thumb.jpg",130,130,1);thumbnails[2000995]=new thumbnail(2000995,"31596","Artists & Illustrators Magazine","artist and illustrators_thumb.jpg",130,163,1);var galleries=new Object();galleries[230952]=new gallery(230952,"3796276","Ballet Pastel Paintings","gallery",[695459,1949201,1981126,3796276,3796285,3832768,3893427,3915606,4205568,4305351,4552336,4552341,4572137,4601605,4892024,4947264,4991199,5143198,5363689,5591774,5591778,5591783,5591787,386238,3832377,4382283,1949193]);galleries[195964]=new gallery(195964,"1541410","Pastel Paintings","gallery",[387020,389656,389694,695763,695768,695769,1541410,2123654,3239432,3832348,4205702,386383,598128,643470,672106,818437,818441,1278473,1394902,1804064,2209407,3080402,1948841,1949202,2022118,2834217,999683,1060968,5363703,5587217]);galleries[253732]=new gallery(253732,"4359204","Ballet Photography ","gallery",[4304213,4359204,4489733,4489737,4489744,4489752,4489758,4489760,4489767,4359201,4359202,4359203,4359205,4359206,4359207,4359209,4359210,4359211,4359212,4359213,4359215,4359220,4359221,4359222]);galleries[253733]=new gallery(253733,"4359691","Photography","gallery",[4304217,4359691,4359692,4359697,4359699,4359701,4359703,4359706,4359708,4359711,4359714]);galleries[31596]=new gallery(31596,"3328847","The Artist","gallery",[4482905,3328847,2000995]);var imageSets=new Object();imageSets[1]="4892024";imageSets[2]="4359691,4359204,3796276,3328847,1541410";imageSets[3]="5591787,5591783,5591778,5591774,5587217,5363703,5363689,5143198,4991199,4947264,4892024,4601605,4572137,4552341,4552336,4489767,4489760,4489758,4489752,4489744,4489737,4489733,4482905,4382283,4359714,4359711,4359708,4359706,4359703,4359701,4359699,4359697,4359692,4359691,4359222,4359221,4359220,4359215,4359213,4359212,4359211,4359210,4359209,4359207,4359206,4359205,4359204,4359203,4359202,4359201";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/antell/images";break}switch(a){case 1:b="http://www1.clikpic.com/antell/images";break}switch(a){case 2:b="http://admin.clikpic.com/antell/images";break}switch(a){case 24:b="http://tpc15/clikpic/antell/images";break}switch(a){case 4:b="http://www.clikchurch.com/antell/images";break}switch(a){case 5:b="http://www2.clikpic.com/antell/images";break}switch(a){case 22:b="http://tpc5/clikpic/antell/images";break}switch(a){case 23:b="http://tpc10/clikpic/antell/images";break}switch(a){case 25:b="http://tpc16/clikpic/antell/images";break}switch(a){case 15:b="http://www3.clikpic.com/antell/images";break}switch(a){case 18:b="http://www4.clikpic.com/antell/images";break}switch(a){case 19:b="http://www5.clikpic.com/antell/images";break}switch(a){case 31:b="http://www7.clikpic.com/antell/images";break}switch(a){case 32:b="http://admin2.clikpic.com/antell/images";break}switch(a){case 33:b="http://www8.clikpic.com/antell/images";break}switch(a){case 34:b="http://www9.clikpic.com/antell/images";break}switch(a){case 35:b="http://admin3.clikpic.com/antell/images";break}switch(a){case 37:b="http://admin4.clikpic.com/antell/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="'+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="Robert Antell Pastel Artist & Photographer: "+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="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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="antell5547@btinternet.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="antell5547@btinternet.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};