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[2361478]=new thumbnail(2361478,"153687",'<strong>"Minty"</strong> Border Terrier',"border web_thumb.jpg",130,159,32);thumbnails[2361491]=new thumbnail(2361491,"153713",'<strong>"Comfy Spot"</strong>',"Comfy Spot web_thumb.jpg",130,177,32);thumbnails[2361497]=new thumbnail(2361497,"153713",'<strong>"Devon"</strong> Yellow Labrador',"Devon web_thumb.jpg",130,179,32);thumbnails[2361694]=new thumbnail(2361694,"153719",'<strong>"Romeo"</strong><br>\r\nWelsh Section D<br>\r\n',"Romeo web_thumb.jpg",130,174,32);thumbnails[2361701]=new thumbnail(2361701,"153719",'<strong>"Trotting Up"</strong>',"In Hand  web_thumb.jpg",130,102,32);thumbnails[2361712]=new thumbnail(2361712,"153718",'<strong>"Sue\'s Trio"</strong>',"Sue web_thumb.jpg",130,78,32);thumbnails[2361782]=new thumbnail(2361782,"153713",'<strong>"Little Ozzi"</strong> Pug',"Ozzyweb_thumb.jpg",130,98,32);thumbnails[2361795]=new thumbnail(2361795,"153719",'<strong>"Aliah Al Shaqab"</strong> Arab Mare',"Grey Mare web_thumb.jpg",130,107,32);thumbnails[2364932]=new thumbnail(2364932,"153718",'<strong>"Jack The Lad"</strong> Driving Pony',"Jack web_thumb.jpg",130,207,32);thumbnails[2364938]=new thumbnail(2364938,"153687","English Pointer","English Pointer web9_thumb.jpg",130,140,32);thumbnails[2364950]=new thumbnail(2364950,"153687","Black Labrador","black lab web3_thumb.jpg",130,129,32);thumbnails[2364965]=new thumbnail(2364965,"153687","Cavalier King Charles Spaniel","King Charles web_thumb.jpg",130,116,32);thumbnails[2365034]=new thumbnail(2365034,"338012",'<strong>"The Badsworth Boys"</strong><br>\r\n',"hounds web_thumb.jpg",130,42,32);thumbnails[2367846]=new thumbnail(2367846,"153687",'<strong>"Becky"</strong> Springer Spaniel',"Becky web_thumb.jpg",130,149,32);thumbnails[2367848]=new thumbnail(2367848,"153687","Cocker Spaniel","Cocker Web_thumb.jpg",130,168,32);thumbnails[2367854]=new thumbnail(2367854,"153713","Smooth Coated Collie","Collie web_thumb.jpg",130,95,32);thumbnails[2367862]=new thumbnail(2367862,"153719",'<strong>"Foal at Foot"</strong>',"Foal at Foot web_thumb.jpg",130,96,32);thumbnails[2367882]=new thumbnail(2367882,"153713",'<strong>"Pie Eyed"</strong><br>\r\nWire Haired Fox Terrier',"fox terrier web_thumb.jpg",130,174,32);thumbnails[2367893]=new thumbnail(2367893,"153687","Golden Retriever","Golden Retreiver web_thumb.jpg",130,142,32);thumbnails[2367898]=new thumbnail(2367898,"153687","Jack Russell Terrier","Jack Russel web_thumb.jpg",130,142,32);thumbnails[2367901]=new thumbnail(2367901,"153713",'<strong>"Let\'s Go"</strong',"Let's Go web_thumb.jpg",130,177,32);thumbnails[2367912]=new thumbnail(2367912,"153713",'<strong>"Waiting for the Boss"</strong>',"Waiting for the boss web_thumb.jpg",130,173,32);thumbnails[2367947]=new thumbnail(2367947,"154047",'<strong>"Early Delivery"</strong>',"baker web_thumb.jpg",130,114,32);thumbnails[2367951]=new thumbnail(2367951,"154047",'<strong>"Butchers Cart"</strong>',"Butchers cart web_thumb.jpg",130,101,32);thumbnails[2367952]=new thumbnail(2367952,"154047",'<strong>"Garden Seat Omnibus"</strong>',"Omnibus web_thumb.jpg",130,103,32);thumbnails[2367953]=new thumbnail(2367953,"154047",'<strong>"Mr Johnson\'s Team"</strong>',"Ian team web_thumb.jpg",130,92,32);thumbnails[2367955]=new thumbnail(2367955,"154047","Driving pony","Coloured Driving Pony web_thumb.jpg",130,96,32);thumbnails[2367959]=new thumbnail(2367959,"154030",'<strong>"Double Trouble"</strong>',"cats web_thumb.jpg",130,112,32);thumbnails[2368000]=new thumbnail(2368000,"154030",'<strong>"Lawrence"<?strong>',"Lawrence web_thumb.jpg",130,165,32);thumbnails[2368014]=new thumbnail(2368014,"153719",'"<strong>Dao de Courenne"</strong> Lusitano',"big grey web_thumb.jpg",130,92,32);thumbnails[2368018]=new thumbnail(2368018,"153719",'<strong>"Miss Walkers Gelding"</strong>',"Walker web_thumb.jpg",130,178,32);thumbnails[2368023]=new thumbnail(2368023,"153718",'<strong>"Nelly"</stron>',"Nelly web_thumb.jpg",130,189,32);thumbnails[2368026]=new thumbnail(2368026,"153718",'<strong>"Ro"</strong>',"Rollie_thumb.jpg",130,176,32);thumbnails[2368250]=new thumbnail(2368250,"196723",'<strong>"Terrier Man"</strong>',"Terrier Man web_thumb.jpg",130,178,32);thumbnails[2368255]=new thumbnail(2368255,"196723",'<strong>"The Showing Man"</strong>',"Lakeland man 1 web_thumb.jpg",130,177,32);thumbnails[2368279]=new thumbnail(2368279,"153719",'<strong>"Apache"</strong>',"Apache web_thumb.jpg",130,176,32);thumbnails[2369272]=new thumbnail(2369272,"153713","English Pointer","pointer painting web_thumb.jpg",130,177,32);thumbnails[2369364]=new thumbnail(2369364,"154047",'<strong>"Escrick Park 08"</strong>',"Escrick web_thumb.jpg",130,72,32);thumbnails[2372171]=new thumbnail(2372171,"153713",'<strong>"A Fine Brace"</strong>',"A Fine Brace web_thumb.jpg",130,171,32);thumbnails[2372173]=new thumbnail(2372173,"153713",'<strong>"Starting Out"</strong>',"Starting Out web_thumb.jpg",130,177,32);thumbnails[2376841]=new thumbnail(2376841,"338012",'<strong>"Looking On"</strong>',"Looking on web_thumb.jpg",130,43,32);thumbnails[2376851]=new thumbnail(2376851,"153718",'<strong>"Lucy"</strong>',"Lucy web_thumb.jpg",130,179,32);thumbnails[2376875]=new thumbnail(2376875,"338012",'<strong>"One Jan Zero Eight"</strong>',"huntsman web1_thumb.jpg",130,391,32);thumbnails[2427540]=new thumbnail(2427540,"153713","Bedlington Terrier","Bedlington web_thumb.jpg",130,323,32);thumbnails[2427559]=new thumbnail(2427559,"153713","Bull Terrier","Bull Terrier web_thumb.jpg",130,323,32);thumbnails[2527814]=new thumbnail(2527814,"153687",'<strong>"Barney"</strong> Border Collie',"collie drawing web_thumb.jpg",130,143,32);thumbnails[2546227]=new thumbnail(2546227,"153719",'<strong>"The Downfall of Princes"</strong>',"racing web_thumb.jpg",130,57,32);thumbnails[2957320]=new thumbnail(2957320,"153687",'<strong>"Lark"</strong> Lurcher',"Whipet web2_thumb.jpg",130,102,32);thumbnails[2957321]=new thumbnail(2957321,"154047","Driving Cones","dino web_thumb.jpg",130,99,32);thumbnails[3048064]=new thumbnail(3048064,"153687",'<strong>"Clyde"</strong> ',"Clyde1_thumb.jpg",130,112,32);thumbnails[3214330]=new thumbnail(3214330,"153719",'<strong>"Here We Go"</strong>',"Here We Go_thumb.jpg",130,58,32);thumbnails[3219724]=new thumbnail(3219724,"196723","<strong>Portrait as a Young Man</strong>","wedding drwing web_thumb.jpg",130,180,32);thumbnails[3237207]=new thumbnail(3237207,"153687","Beagle","beagle_thumb.jpg",130,103,32);thumbnails[3237210]=new thumbnail(3237210,"153687","Border Terrier","border old web_thumb.jpg",130,156,32);thumbnails[3237211]=new thumbnail(3237211,"153713","Cairn Terrier","cairn terrier_thumb.jpg",130,159,32);thumbnails[3237212]=new thumbnail(3237212,"153713",'<strong>"Max"</strong><br>\r\nEnglish Springer Spaniel<br>\r\n',"English Springer Spaniel web_thumb.jpg",130,163,32);thumbnails[3353098]=new thumbnail(3353098,"153687",'<strong>"Millie"</strong> Boxer',"millie_thumb.jpg",130,132,32);thumbnails[3427207]=new thumbnail(3427207,"196723","<strong>Self Portrait</strong><br>\r\n<br>\r\n","Self Portrait web_thumb.jpg",130,160,32);thumbnails[3427286]=new thumbnail(3427286,"196723","<strong>Portrait as a Young Lady</strong>","mum web_thumb.jpg",130,185,32);thumbnails[3427776]=new thumbnail(3427776,"153719",'<strong>"The Polo Players"</strong>',"The Polo Players1_thumb.jpg",130,40,32);thumbnails[3644054]=new thumbnail(3644054,"222747","<strong>Mad March Hare</strong>","Hare_thumb.jpg",130,180,32);thumbnails[3855183]=new thumbnail(3855183,"338012",'<strong>"On The Trail"</strong>',"on_the_trail_thumb.jpg",130,43,32);thumbnails[3917414]=new thumbnail(3917414,"222747","<strong>Roe Buck</strong>","Roe_Buck_web1_thumb.jpg",130,180,32);thumbnails[3931319]=new thumbnail(3931319,"153719",'<strong>"Shadow"</strong>',"Shadow_thumb.jpg",130,174,32);thumbnails[4023886]=new thumbnail(4023886,"222747","<strong>Wily Person</strong>","Wily_Person_thumb.jpg",130,187,32);thumbnails[4023896]=new thumbnail(4023896,"222747","<strong>Fawn</strong>","Fawn_thumb.jpg",130,90,32);thumbnails[4064473]=new thumbnail(4064473,"153687","<strong>Weimaraner</strong>","Weirmaraner_thumb.jpg",130,140,32);thumbnails[4065031]=new thumbnail(4065031,"153719","<strong>Friday's Dressage</strong>","dressage_web_thumb.jpg",130,102,32);thumbnails[4070628]=new thumbnail(4070628,"153713","<strong>JASPER, LEXI, MEG & PURDY</strong>","Jasper_Lexi_Meg__Purdy_thumb.jpg",130,56,32);thumbnails[4163979]=new thumbnail(4163979,"153713","<strong>Lucy and Tikka</strong>","Black_Brace_thumb.jpg",130,174,32);thumbnails[4163987]=new thumbnail(4163987,"338012","<strong>The Bramham Boys</strong>","Bramham_Boys_thumb.jpg",130,90,32);thumbnails[4316513]=new thumbnail(4316513,"338012","<strong>The Other Bramham Boys</strong>","The_Other_Bramham_Boys_thumb.jpg",130,96,32);thumbnails[4442447]=new thumbnail(4442447,"153713","<strong>Mollie, Jimbo, Brooke & Izzie</strong","Dobermans_thumb.jpg",130,56,32);thumbnails[4492527]=new thumbnail(4492527,"222747","<strong>Bolting Hare</strong>","Bolting_Hare_thumb.jpg",130,97,32);thumbnails[4772058]=new thumbnail(4772058,"153713","<strong>Rufus</strong>","Rufus_thumb.jpg",130,165,32);thumbnails[4875625]=new thumbnail(4875625,"","","voucher1_thumb.jpg",130,60,32);thumbnails[5055704]=new thumbnail(5055704,"222747","<strong>Boxing Hares</strong>","boxing_hares_thumb.jpg",130,157,32);thumbnails[5424862]=new thumbnail(5424862,"153687","<strong>LABRADOODLE</strong>","labradoodle_thumb.jpg",130,177,32);thumbnails[5424876]=new thumbnail(5424876,"153687","<strong>'ROSIE' SPRINGER SPANIEL</strong","springer_Rosie_thumb.jpg",130,167,32);thumbnails[5424886]=new thumbnail(5424886,"153719","<strong>Aislinn and Chesney</strong>","Aislinn_and_Chesney_thumb.jpg",130,94,32);thumbnails[5424939]=new thumbnail(5424939,"153713","<strong>BOXER PUP</strong>","boxer_pup_thumb.jpg",130,178,32);thumbnails[5492424]=new thumbnail(5492424,"153718","<strong>'Sidney'</strong>","Sidney_thumb.jpg",130,100,32);thumbnails[5780828]=new thumbnail(5780828,"153719","<strong>'Monty'</strong>","Monty_thumb.jpg",130,96,32);thumbnails[5780833]=new thumbnail(5780833,"153718","<strong>'Madigan'</strong>","Madigan_thumb.jpg",130,92,32);thumbnails[5780902]=new thumbnail(5780902,"153719","<strong>'Tranquil'</strong>","Tranquil_thumb.jpg",130,102,32);thumbnails[5922738]=new thumbnail(5922738,"153687","<strong>Miniature Schnauzer Pups</strong>","Schnauzers_thumb.jpg",130,101,32);thumbnails[5949011]=new thumbnail(5949011,"153719","<strong>'The Yearling'</strong>","yearling_thumb.jpg",130,171,32);thumbnails[6000137]=new thumbnail(6000137,"338013","<strong>'White'</strong>","coarsing_white_thumb.jpg",130,101,32);var galleries=new Object();galleries[154047]=new gallery(154047,"2957321,2369364,2367955,2367953,2367952,2367951,2367947","Carriage Driving","section196236",[2367947,2367951,2367952,2367953,2367955,2369364,2957321]);galleries[153687]=new gallery(153687,"5424862,2361478","Dog Drawings","gallery",[2361478,2364938,2364950,2364965,2367846,2367848,2367893,2367898,2527814,2957320,3048064,3237207,3237210,3353098,4064473,5424862,5424876,5922738]);galleries[153713]=new gallery(153713,"4772058,2369272","Dog Paintings","gallery",[2361491,2361497,2361782,2367854,2367882,2367901,2367912,2369272,2372171,2372173,2427540,2427559,3237211,3237212,4070628,4163979,4442447,4772058,5424939]);galleries[338013]=new gallery(338013,"6000137","Field Sports","section404710",[6000137]);galleries[153718]=new gallery(153718,"5780833,5492424,2376851,2368026,2368023,2364932,2361712","Horse Drawings","section195919",[2361712,2364932,2368023,2368026,2376851,5492424,5780833]);galleries[153719]=new gallery(153719,"5424886,3214330","Horse Paintings","section195919",[2361694,2361701,2361795,2367862,2368014,2368018,2368279,2546227,3214330,3427776,3931319,4065031,5424886,5780828,5780902,5949011]);galleries[338012]=new gallery(338012,"4316513,4163987,3855183,2376875,2376841,2365034","Hunting","section404710",[2365034,2376841,2376875,3855183,4163987,4316513]);galleries[154030]=new gallery(154030,"2368000,2367959","Other Pets","section196236",[2367959,2368000]);galleries[196723]=new gallery(196723,"3427286,3427207","People","section196236",[2368250,2368255,3219724,3427207,3427286]);galleries[222747]=new gallery(222747,"5055704,3644054","Wildlife","section196236",[3644054,3917414,4023886,4023896,4492527,5055704]);var imageSets=new Object();imageSets[1]="3427776,3427207,3214330,2376841,2369272,2364965,2361712,2361701,2361478";imageSets[2]="5424886,5424862,5055704,4772058,3644054,3427286,3427207,3214330,2369272,2361478";imageSets[3]="6000137,5949011,5922738,5780902,5780833,5780828,5492424,5424939,5424886,5424876,5424862,5055704,4875625,4772058,4492527,4442447,4316513,4163987,4163979,4070628,4065031,4064473,4023896,4023886,3931319,3917414,3855183,3644054,3427776,3427286,3427207,3353098,3237212,3237211,3237210,3237207,3219724,3214330,3048064,2957321,2957320,2546227,2527814,2427559,2427540,2376875,2376851,2376841,2372173,2372171";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/janart/images";break}switch(a){case 1:b="http://www1.clikpic.com/janart/images";break}switch(a){case 2:b="http://admin.clikpic.com/janart/images";break}switch(a){case 24:b="http://tpc15/clikpic/janart/images";break}switch(a){case 4:b="http://www.clikchurch.com/janart/images";break}switch(a){case 5:b="http://www2.clikpic.com/janart/images";break}switch(a){case 22:b="http://tpc5/clikpic/janart/images";break}switch(a){case 23:b="http://tpc10/clikpic/janart/images";break}switch(a){case 25:b="http://tpc16/clikpic/janart/images";break}switch(a){case 15:b="http://www3.clikpic.com/janart/images";break}switch(a){case 18:b="http://www4.clikpic.com/janart/images";break}switch(a){case 19:b="http://www5.clikpic.com/janart/images";break}switch(a){case 31:b="http://www7.clikpic.com/janart/images";break}switch(a){case 32:b="http://admin2.clikpic.com/janart/images";break}switch(a){case 33:b="http://www8.clikpic.com/janart/images";break}switch(a){case 34:b="http://www9.clikpic.com/janart/images";break}switch(a){case 35:b="http://admin3.clikpic.com/janart/images";break}switch(a){case 37:b="http://admin4.clikpic.com/janart/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="Jan Martin Equestrian & Sporting 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].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>Artist </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+'")'})}}};