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[3458592]=new thumbnail(3458592,"211465","Regina's work place.","Shop front 1_thumb.jpg",130,97,15);thumbnails[3458596]=new thumbnail(3458596,"211465","Regina's work place","Shop front 2_thumb.jpg",130,97,15);thumbnails[3458598]=new thumbnail(3458598,"211465","Lassana, proud owner","Stall holder_thumb.jpg",130,97,15);thumbnails[3458601]=new thumbnail(3458601,"211465","Lassana at his market stall","Stall holder 2_thumb.jpg",130,174,15);thumbnails[3458608]=new thumbnail(3458608,"211465","Lassana at his embroidery machine","Tailor1_thumb.jpg",130,97,15);thumbnails[3458614]=new thumbnail(3458614,"211465","Regina at work with her baby","Woman tailor_thumb.jpg",130,97,15);thumbnails[3458616]=new thumbnail(3458616,"211465","Mirco project making clothes","Woman tailor 2_thumb.jpg",130,174,15);thumbnails[3511185]=new thumbnail(3511185,"211465","Outside the J&D Ofices","DSCN54662_thumb.jpg",130,97,15);thumbnails[5368772]=new thumbnail(5368772,"","Kader on his new bike","Kader_on_new_bikejpg3_thumb.jpg",130,98,15);thumbnails[5368759]=new thumbnail(5368759,"","A student with his work","student_with_work_jpg5_thumb.jpg",130,92,15);thumbnails[3402549]=new thumbnail(3402549,"207839","Oumar with two of the children","Boysandbogolan2_thumb.jpeg",130,97,15);thumbnails[3402712]=new thumbnail(3402712,"207839","Completed bogolan items","Bogolanexamples_thumb.jpg",130,97,15);thumbnails[3402724]=new thumbnail(3402724,"207839","Items for sale","Bogolanonline2_thumb.jpg",130,97,15);thumbnails[3402731]=new thumbnail(3402731,"207839","Finished items","Dress_thumb.jpg",130,97,15);thumbnails[3402736]=new thumbnail(3402736,"207839","Appying mud to the cloth","Boybogolan_thumb.jpg",130,97,15);thumbnails[3402742]=new thumbnail(3402742,"207839","Bassidy with two young artists","Courtyard1_thumb.jpg",130,97,15);thumbnails[3402747]=new thumbnail(3402747,"207839","Tim under instruction","Timandboyswithbogolan_thumb.jpg",130,97,15);thumbnails[3402758]=new thumbnail(3402758,"207839","Mud drying on the cloth","bogolandrying_thumb.jpg",130,174,15);thumbnails[3403002]=new thumbnail(3403002,"207839","Raw cotton and fabric and treated fabric.","Cottoncloth_thumb.jpg",130,97,15);thumbnails[3403045]=new thumbnail(3403045,"207839","Bassidy teaching Tim how to rub the dried mud off.","Rubbingoffclay1_thumb.jpg",130,97,15);thumbnails[3403046]=new thumbnail(3403046,"207839","Dipping cloth in the fixative.","bogolandye_thumb.jpg",130,174,15);thumbnails[3403048]=new thumbnail(3403048,"207839","Cooking up the fixative.","bogolanleavesboiling_thumb.jpg",130,97,15);thumbnails[3403049]=new thumbnail(3403049,"207839","Bassidy with a local taylor","Tailor_thumb.jpg",130,174,15);thumbnails[3403728]=new thumbnail(3403728,"207839","Kader Keita","kaderandcotton_thumb.jpg",130,97,15);thumbnails[3403731]=new thumbnail(3403731,"207839","The Footprints of Children with Noma","footprint_thumb.jpg",130,91,15);thumbnails[3403823]=new thumbnail(3403823,"207839","Dra and Papou stitching bogolan cloth","boysewing_thumb.jpeg",130,97,15);thumbnails[3403826]=new thumbnail(3403826,"207839","The Team and some bogolan artists ","group1_thumb.jpeg",130,97,15);thumbnails[3403828]=new thumbnail(3403828,"207839","The Team. Oumar, Kader, Awa, Amy and Bassidy, with little Sidi, Kader and Awa's baby.","group2_thumb.jpeg",130,97,15);thumbnails[3403829]=new thumbnail(3403829,"207839","Kader, Awa, Sidi and Amy, in the courtyard outside their home.","group3_thumb.jpeg",130,174,15);thumbnails[3458562]=new thumbnail(3458562,"207839","Oumar brings school work for Bassidy to check","Boy and bogolan_thumb.jpg",130,97,15);thumbnails[3458564]=new thumbnail(3458564,"207839","Dra at work","Boy doing stencil_thumb.jpg",130,174,15);thumbnails[3458565]=new thumbnail(3458565,"207839","Work in progress","Boy doing stencil 2_thumb.jpg",130,97,15);thumbnails[3458566]=new thumbnail(3458566,"207839","Dra serves tea for all.","Boys and tea_thumb.jpg",130,97,15);thumbnails[3458568]=new thumbnail(3458568,"207839","Dra and Papou at work","Boys doing stencil 3_thumb.jpg",130,174,15);thumbnails[3458582]=new thumbnail(3458582,"207839","Kader and Tim eating crickets","Kader and Tim meal_thumb.jpg",130,97,15);thumbnails[3458583]=new thumbnail(3458583,"207839","Amy, who cooks for the children","Lovely lady_thumb.jpg",130,174,15);thumbnails[3458585]=new thumbnail(3458585,"207839","Bassidy with fixed texile and raw cotton","Man and cloth_thumb.jpg",130,97,15);thumbnails[3458586]=new thumbnail(3458586,"207839","Examples of recent work","Map bogolan_thumb.jpg",130,97,15);thumbnails[3458590]=new thumbnail(3458590,"207839","Dra, with Oumar Papou and Bassidy","Pension_thumb.jpg",130,97,15);thumbnails[3458604]=new thumbnail(3458604,"207839","Bassidy removes a stencil","Stencil_thumb.jpg",130,174,15);thumbnails[3458606]=new thumbnail(3458606,"207839","The street after washing time","Street_thumb.jpg",130,97,15);thumbnails[3458813]=new thumbnail(3458813,"207839","Kader feeds children at night","DSCN54532_thumb.jpg",130,97,15);thumbnails[3463478]=new thumbnail(3463478,"207839","A Hand print shirt.","Hand shirt_thumb.jpg",130,87,15);thumbnails[3510720]=new thumbnail(3510720,"207839","Artist at work","DSCN5556_thumb.jpg",130,97,15);thumbnails[3510739]=new thumbnail(3510739,"207839","Finished design","Picture 003_thumb.jpg",130,87,15);thumbnails[3511067]=new thumbnail(3511067,"207839","Papou and Dra","DSCN5266_thumb.jpg",130,97,15);thumbnails[3511070]=new thumbnail(3511070,"207839","Concentration.","DSCN5267_thumb.jpg",130,174,15);thumbnails[3511079]=new thumbnail(3511079,"207839","Textile drying in the street","DSCN5277_thumb.jpg",130,174,15);thumbnails[3511083]=new thumbnail(3511083,"207839","Dra, brews up some Mali tea","DSCN5283_thumb.jpg",130,174,15);thumbnails[3511094]=new thumbnail(3511094,"207839","Playtime outside the Assn.","DSCN52972_thumb.jpg",130,174,15);thumbnails[3511098]=new thumbnail(3511098,"207839","Oumar and Bassidy with two young students","DSCN5302_thumb.jpg",130,97,15);thumbnails[3511102]=new thumbnail(3511102,"207839","The Association left on the stret","DSCN5314_thumb.jpg",130,97,15);thumbnails[3511109]=new thumbnail(3511109,"207839","Preparing the fixative","DSCN53741_thumb.jpg",130,97,15);thumbnails[3511115]=new thumbnail(3511115,"207839","Association Office","DSCN5398_thumb.jpg",130,174,15);thumbnails[3511199]=new thumbnail(3511199,"207839"," A student being supervised","DSCN55282_thumb.jpg",130,97,15);thumbnails[3511201]=new thumbnail(3511201,"207839","Kader speaks with parents","DSCN55341_thumb.jpg",130,97,15);thumbnails[3533454]=new thumbnail(3533454,"207839","Bogolan shopping bag","kader_bags_1_thumb.jpg",130,173,15);thumbnails[3533458]=new thumbnail(3533458,"207839","","kader_bags_2_thumb.jpg",130,98,15);thumbnails[3533465]=new thumbnail(3533465,"207839","Kader teaching","kader_bags_3_thumb.jpg",130,98,15);thumbnails[3533883]=new thumbnail(3533883,"207839","","DSCN55561_thumb.jpg",130,97,15);thumbnails[5368740]=new thumbnail(5368740,"207839","Kadet and Awa at graduation","Kader_and_Awajpg2_thumb.jpg",130,95,15);thumbnails[5368779]=new thumbnail(5368779,"207839","'Youssouf' please see the 'news article' ","Kader_presenting_certificatejpg4_thumb.jpg",130,97,15);thumbnails[5368778]=new thumbnail(5368778,"207839","Graduation for students","Class_and_certificatesjpg1_thumb.jpg",130,92,15);thumbnails[3403058]=new thumbnail(3403058,"207840","Bazin bashers inside","market_thumb.jpg",130,97,15);thumbnails[3403059]=new thumbnail(3403059,"207840","Bazin bashers, 'pressing clothes","bashingcotton_thumb.jpg",130,97,15);thumbnails[3403089]=new thumbnail(3403089,"207840","Scooters everywhere","scooter_thumb.jpg",130,89,15);thumbnails[3403091]=new thumbnail(3403091,"207840","Bus service","Taxi_thumb.jpg",130,97,15);thumbnails[3403093]=new thumbnail(3403093,"207840","Washing drying by the Niger","washingonroads_thumb.jpg",130,174,15);thumbnails[3407593]=new thumbnail(3407593,"207840","","streetchildren1_thumb.jpg",130,97,15);thumbnails[3407598]=new thumbnail(3407598,"207840","","DSCN5443_thumb.jpg",130,97,15);thumbnails[3407599]=new thumbnail(3407599,"207840","","DSCN5448_thumb.jpg",130,174,15);thumbnails[3407602]=new thumbnail(3407602,"207840","","DSCN5453_thumb.jpg",130,97,15);thumbnails[3407606]=new thumbnail(3407606,"207840","","DSCN5459_thumb.jpg",130,97,15);thumbnails[3407607]=new thumbnail(3407607,"207840","","DSCN5461_thumb.jpg",130,97,15);thumbnails[3458570]=new thumbnail(3458570,"207840","Cattle market","Cattle Mkt 1_thumb.jpg",130,97,15);thumbnails[3458571]=new thumbnail(3458571,"207840","Cattle market","Cattle Mkt 2_thumb.jpg",130,174,15);thumbnails[3458610]=new thumbnail(3458610,"207840","Wedding celebrations","Wedding1_thumb.jpg",130,97,15);thumbnails[3458612]=new thumbnail(3458612,"207840","A local wedding","Wedding2_thumb.jpg",130,174,15);thumbnails[3511118]=new thumbnail(3511118,"207840","Children give Tim a 'begging tin'","DSCN5450_thumb.jpg",130,97,15);thumbnails[3511125]=new thumbnail(3511125,"207840","Hungry children with Tim","DSCN5452_thumb.jpg",130,97,15);thumbnails[3511127]=new thumbnail(3511127,"207840","Kader feeds children on the street","DSCN5454_thumb.jpg",130,97,15);thumbnails[3511136]=new thumbnail(3511136,"207840","Kader and his ex-student","DSCN54592_thumb.jpg",130,97,15);thumbnails[3511139]=new thumbnail(3511139,"207840","City centre for homless","DSCN54611_thumb.jpg",130,97,15);thumbnails[3511141]=new thumbnail(3511141,"207840","Lafiabougou football ground","DSCN5465_thumb.jpg",130,97,15);thumbnails[3511188]=new thumbnail(3511188,"207840","Relaxed by traffic!","DSCN5468_thumb.jpg",130,174,15);thumbnails[3511191]=new thumbnail(3511191,"207840","A street cattle market","DSCN54701_thumb.jpg",130,97,15);thumbnails[3511194]=new thumbnail(3511194,"207840","Walking into Bamako","DSCN54731_thumb.jpg",130,174,15);thumbnails[3511195]=new thumbnail(3511195,"207840","Dust in the air at night","DSCN5485_thumb.jpg",130,174,15);thumbnails[3403101]=new thumbnail(3403101,"207870","","art1_thumb.jpg",130,226,15);thumbnails[3403735]=new thumbnail(3403735,"207870","","art2_thumb.jpg",130,174,15);thumbnails[3403736]=new thumbnail(3403736,"207870","","art3_thumb.jpg",130,174,15);thumbnails[3403737]=new thumbnail(3403737,"207870","","art4_thumb.jpg",130,180,15);thumbnails[3403738]=new thumbnail(3403738,"207870","","art5_thumb.jpg",130,269,15);thumbnails[3403816]=new thumbnail(3403816,"207870","","art6_thumb.jpeg",130,185,15);thumbnails[3403817]=new thumbnail(3403817,"207870","","art7_thumb.jpeg",130,206,15);thumbnails[3403818]=new thumbnail(3403818,"207870","","art8_thumb.jpeg",130,96,15);thumbnails[3403821]=new thumbnail(3403821,"207870","","art9_thumb.jpeg",130,169,15);thumbnails[3403822]=new thumbnail(3403822,"207870","","art10_thumb.jpeg",130,246,15);thumbnails[3407588]=new thumbnail(3407588,"207870","","Kader1_thumb.jpg",130,190,15);thumbnails[3407590]=new thumbnail(3407590,"207870","","Kader12_thumb.jpg",130,196,15);thumbnails[3407614]=new thumbnail(3407614,"207870","","Kader13_thumb.jpg",130,188,15);thumbnails[3407616]=new thumbnail(3407616,"207870","","Kader19_thumb.jpg",130,192,15);thumbnails[3407619]=new thumbnail(3407619,"207870","","Kader20_thumb.jpg",130,193,15);thumbnails[3533475]=new thumbnail(3533475,"207870","Kader Keita","KaderHome_thumb.jpg",130,181,15);var galleries=new Object();galleries[211465]=new gallery(211465,"3511185,3458616,3458614,3458608,3458601,3458598,3458596,3458592","Gallery 4","gallery",[3458592,3458596,3458598,3458601,3458608,3458614,3458616,3511185]);galleries[207839]=new gallery(207839,"5368740,3403828","Mali Assn. of Culture and Hope","gallery",[3402549,3402712,3402724,3402731,3402736,3402742,3402747,3402758,3403002,3403045,3403046,3403048,3403049,3403728,3403731,3403823,3403826,3403828,3403829,3458562,3458564,3458565,3458566,3458568,3458582,3458583,3458585,3458586,3458590,3458604,3458606,3458813,3463478,3510720,3510739,3511067,3511070,3511079,3511083,3511094,3511098,3511102,3511109,3511115,3511199,3511201,3533454,3533458,3533465,3533883,5368740,5368779,5368778]);galleries[207840]=new gallery(207840,"3511195,3511194,3511191,3511188,3511141,3511139,3511136,3511127,3511125,3511118","Bamako","gallery",[3403058,3403059,3403089,3403091,3403093,3407593,3407598,3407599,3407602,3407606,3407607,3458570,3458571,3458610,3458612,3511118,3511125,3511127,3511136,3511139,3511141,3511188,3511191,3511194,3511195]);galleries[207870]=new gallery(207870,"3403822,3403738","Kader","gallery",[3403101,3403735,3403736,3403737,3403738,3403816,3403817,3403818,3403821,3403822,3407588,3407590,3407614,3407616,3407619,3533475]);var imageSets=new Object();imageSets[1]="5368779,5368778,5368740,3403826";imageSets[2]="5368740,3403828,3403822,3403738";imageSets[3]="3533883,3533475,3533465,3533458,3533454,3511201,3511199,3511195,3511194,3511191,3511188,3511185,3511141,3511139,3511136,3511127,3511125,3511118,3511115,3511109,3511102,3511098,3511094,3511083,3511079,3511070,3511067,3510739,3510720,3463478,3458813,3458616,3458614,3458612,3458610,3458608,3458606,3458604,3458601,3458598,3458596,3458592,3458590,3458586,3458585";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/timhewes/images";break}switch(a){case 1:b="http://www1.clikpic.com/timhewes/images";break}switch(a){case 2:b="http://admin.clikpic.com/timhewes/images";break}switch(a){case 24:b="http://tpc15/clikpic/timhewes/images";break}switch(a){case 4:b="http://www.clikchurch.com/timhewes/images";break}switch(a){case 5:b="http://www2.clikpic.com/timhewes/images";break}switch(a){case 22:b="http://tpc5/clikpic/timhewes/images";break}switch(a){case 23:b="http://tpc10/clikpic/timhewes/images";break}switch(a){case 25:b="http://tpc16/clikpic/timhewes/images";break}switch(a){case 15:b="http://www3.clikpic.com/timhewes/images";break}switch(a){case 18:b="http://www4.clikpic.com/timhewes/images";break}switch(a){case 19:b="http://www5.clikpic.com/timhewes/images";break}switch(a){case 31:b="http://www7.clikpic.com/timhewes/images";break}switch(a){case 32:b="http://admin2.clikpic.com/timhewes/images";break}switch(a){case 33:b="http://www8.clikpic.com/timhewes/images";break}switch(a){case 34:b="http://www9.clikpic.com/timhewes/images";break}switch(a){case 35:b="http://admin3.clikpic.com/timhewes/images";break}switch(a){case 37:b="http://admin4.clikpic.com/timhewes/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="Mali Association of Culture and Hope: "+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+'")'})}}};