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[635049]=new thumbnail(635049,"","","KitechickYellowTag_thumb.jpg",130,77,1);thumbnails[635052]=new thumbnail(635052,"","","Kitechick1_thumb.jpg",130,76,1);thumbnails[635290]=new thumbnail(635290,"","","KiteinTree1_thumb.jpg",130,179,1);thumbnails[635515]=new thumbnail(635515,"","Common Buzzard <em> Buteo buteo </em>","Buzzard_thumb.jpg",130,183,1);thumbnails[635867]=new thumbnail(635867,"","Flying with a large twig","KitewithStick_thumb.jpg",130,84,1);thumbnails[635946]=new thumbnail(635946,"","Wing and tail feathers kindly left in my garden courtesy of moulting kites.","KiteFeathers_thumb.jpg",130,147,1);thumbnails[636392]=new thumbnail(636392,"","Calling","Calling 21_thumb.jpg",130,88,1);thumbnails[636394]=new thumbnail(636394,"","Calling","Calling_1_thumb.jpg",130,184,1);thumbnails[636425]=new thumbnail(636425,"","Bookends 2","Bookends_thumb.jpg",130,92,1);thumbnails[637092]=new thumbnail(637092,"","","Three Chicks_thumb.jpg",130,91,1);thumbnails[696250]=new thumbnail(696250,"","A Red Kite chick taken from the nest to be ringed and wing-tagged. ","Ringing a chick_thumb.jpg",130,116,1);thumbnails[717004]=new thumbnail(717004,"","","Moult_thumb.jpg",130,145,1);thumbnails[717040]=new thumbnail(717040,"","","Young Moult_thumb.jpg",130,155,1);thumbnails[717232]=new thumbnail(717232,"","","Magpie attack_thumb.jpg",130,129,1);thumbnails[717244]=new thumbnail(717244,"","","Magpie attack3_thumb.jpg",130,139,1);thumbnails[717353]=new thumbnail(717353,"","","KitesandTractor_thumb.jpg",130,97,1);thumbnails[717355]=new thumbnail(717355,"","","Body feathers_thumb.jpg",130,84,1);thumbnails[717359]=new thumbnail(717359,"","","Picking up worms 1_thumb.jpg",130,188,1);thumbnails[719744]=new thumbnail(719744,"","","Chick_thumb.jpg",130,101,1);thumbnails[733997]=new thumbnail(733997,"","","Studley Green Garden Store Small Icon_thumb1.jpg",130,85,1);thumbnails[735273]=new thumbnail(735273,"","","CCB Logo Small_thumb.jpg",130,54,1);thumbnails[789771]=new thumbnail(789771,"","","Aston-Rowant-NNRWeb_thumb.jpg",130,97,1);thumbnails[819883]=new thumbnail(819883,"","Andy Freeman installs the camera","Camera Installation_thumb.jpg",130,160,1);thumbnails[820219]=new thumbnail(820219,"","","Exhibition Stand Web_thumb.jpg",130,72,1);thumbnails[822895]=new thumbnail(822895,"","","car sticker_thumb.jpg",130,128,1);thumbnails[857121]=new thumbnail(857121,"","Wing tags seen in flight","Wing tags_thumb.jpg",130,83,1);thumbnails[857129]=new thumbnail(857129,"","","WebSmall_thumb.jpg",130,162,1);thumbnails[857149]=new thumbnail(857149,"","","Near Tree_thumb.jpg",130,82,1);thumbnails[857429]=new thumbnail(857429,"","","In trees_thumb.jpg",130,91,1);thumbnails[857437]=new thumbnail(857437,"","","Attacking 2_thumb.jpg",130,98,1);thumbnails[857518]=new thumbnail(857518,"","","Chasing Kites_thumb.jpg",130,103,1);thumbnails[915137]=new thumbnail(915137,"","","IMG_2582Web_thumb.jpg",130,86,1);thumbnails[935077]=new thumbnail(935077,"","","redkiteslogo2_thumb.jpg",130,29,1);thumbnails[953288]=new thumbnail(953288,"","","IMG_8186Web_thumb.jpg",130,85,1);thumbnails[969942]=new thumbnail(969942,"","","rat3_thumb.jpg",130,114,1);thumbnails[1479230]=new thumbnail(1479230,"","","Buzzards_thumb.jpg",130,84,1);thumbnails[1896956]=new thumbnail(1896956,"","","Chilterns_thumb.jpg",130,87,1);thumbnails[1897071]=new thumbnail(1897071,"","","IMG_1812Web_thumb.jpg",130,177,1);thumbnails[1897927]=new thumbnail(1897927,"","","RK FOR WEB ONLY 2_thumb.jpg",130,167,1);thumbnails[1898162]=new thumbnail(1898162,"","","IMG_8679Web_thumb.jpg",130,87,1);thumbnails[1898266]=new thumbnail(1898266,"","","Calling31_thumb.jpg",130,168,1);thumbnails[1898272]=new thumbnail(1898272,"","","Calling4_thumb.jpg",130,197,1);thumbnails[1898400]=new thumbnail(1898400,"","","Swooping for food1_thumb.jpg",130,67,1);thumbnails[1898487]=new thumbnail(1898487,"","","Watch out!_thumb.jpg",130,85,1);thumbnails[1959965]=new thumbnail(1959965,"","","IMG_1363Web_thumb.jpg",130,92,1);thumbnails[1959988]=new thumbnail(1959988,"","","IMG_1412Web_thumb.jpg",130,93,1);thumbnails[1959990]=new thumbnail(1959990,"","","Kite with stick_thumb.jpg",130,91,1);thumbnails[2013790]=new thumbnail(2013790,"","","Ruby Ale_thumb.jpg",130,174,1);thumbnails[2013798]=new thumbnail(2013798,"","","Pump clips Web_thumb.jpg",130,98,1);thumbnails[2216113]=new thumbnail(2216113,"","Nestwatch - 3 chicks","Chicks in nest_thumb.jpg",130,83,1);thumbnails[2346226]=new thumbnail(2346226,"","","IMG_3011CagesWeb_thumb.jpg",130,82,1);thumbnails[2704862]=new thumbnail(2704862,"","","IMG_3256 copy_thumb.jpg",130,191,1);thumbnails[2882016]=new thumbnail(2882016,"","© Fox Country Inn","exterior2_thumb.jpg",129,86,1);thumbnails[3133654]=new thumbnail(3133654,"","A wing-tagged chick released in Aberdeen","IMG_2960Web_thumb.jpg",130,201,1);thumbnails[3133707]=new thumbnail(3133707,"","A young kite showing the dull grey eye colour.","IMG_2995Web_thumb.jpg",130,98,1);thumbnails[3642210]=new thumbnail(3642210,"","","Black_Kite_thumb.jpg",130,84,1);thumbnails[3642212]=new thumbnail(3642212,"","Black kite","Black_Kite_Web1_thumb.jpg",130,130,1);thumbnails[3642213]=new thumbnail(3642213,"","","Black_kite_Web2_thumb.jpg",130,87,1);thumbnails[3642253]=new thumbnail(3642253,"","Red Kite","IMG_8353Web_1_thumb.jpg",130,87,1);thumbnails[4478658]=new thumbnail(4478658,"","A 2009 Chilterns kite just tagged.","IMG_4762WebSmall_thumb.jpg",130,89,1);thumbnails[4478666]=new thumbnail(4478666,"","","IMG_4761WebSmall_thumb.jpg",130,94,1);thumbnails[4478786]=new thumbnail(4478786,"","","IMG_4611Web_copy_thumb.jpg",130,80,1);thumbnails[5329807]=new thumbnail(5329807,"","","IMG_4741Web_thumb.jpg",130,195,1);thumbnails[635545]=new thumbnail(635545,"","Pale Common Buzzard","PaleBuzzard_thumb.jpg",130,191,1);thumbnails[632897]=new thumbnail(632897,"","Goldfinch ","Goldfinch in Snow_thumb.jpg",130,162,1);thumbnails[632899]=new thumbnail(632899,"","Marsh tit calling","Marsh tit calling_thumb.jpg",130,146,1);thumbnails[632903]=new thumbnail(632903,"","Common Pheasant - Male","Pheasant Portrait_thumb.jpg",130,84,1);thumbnails[636128]=new thumbnail(636128,"","Gull with fish 2","Gull with Fish 2_thumb.jpg",130,156,1);thumbnails[635977]=new thumbnail(635977,"","Gull with Fish","Gull with Fish_thumb.jpg",130,75,1);thumbnails[632865]=new thumbnail(632865,"69369","1. Swooping","KiteDiving_thumb.jpg",130,176,1);thumbnails[633457]=new thumbnail(633457,"69369","F3.  Adult","KiteFlying1_thumb.jpg",130,149,1);thumbnails[911511]=new thumbnail(911511,"69369","F4.  2nd CY Kite","IMG_7593Web_thumb.jpg",130,144,1);thumbnails[1100857]=new thumbnail(1100857,"69369","F5a.  In flight ","IMG_8469Web_thumb.jpg",130,80,1);thumbnails[917037]=new thumbnail(917037,"69369","F5b.  In flight","In flight 3_thumb.jpg",130,97,1);thumbnails[917036]=new thumbnail(917036,"69369","F5c.  In flight","In flight 2_thumb.jpg",130,85,1);thumbnails[955826]=new thumbnail(955826,"69369","F5d.  In flight","IMG_8353Web_thumb.jpg",130,87,1);thumbnails[955823]=new thumbnail(955823,"69369","F5e.  In flight","IMG_8343Web_thumb.jpg",130,87,1);thumbnails[912195]=new thumbnail(912195,"69369","F5f.  In flight","IMG_7565Web_thumb.jpg",130,92,1);thumbnails[857118]=new thumbnail(857118,"69369","6. Chasing (1)","Chasing_thumb.jpg",130,80,1);thumbnails[857124]=new thumbnail(857124,"69369","7. Chasing (2)","Chasing2_thumb.jpg",130,87,1);thumbnails[878044]=new thumbnail(878044,"69369","8. Swooping","Diving_thumb.jpg",130,88,1);thumbnails[1268595]=new thumbnail(1268595,"69369","9. Feeding","IMG_8942Web_thumb.jpg",130,80,1);thumbnails[857136]=new thumbnail(857136,"69369","10. A ringed kite","Ringed Kite_thumb.jpg",130,92,1);thumbnails[4024026]=new thumbnail(4024026,"78604","P11. Enjoying the sun","Kite_perching_web1_thumb.jpg",130,203,1);thumbnails[5329768]=new thumbnail(5329768,"78604","11a. During the christmas 2009 snowfall","IMG_5184Web_thumb.jpg",130,174,1);thumbnails[1057770]=new thumbnail(1057770,"78604","12. Perching (2)","IMG_8801Web_thumb.jpg",130,173,1);thumbnails[2049525]=new thumbnail(2049525,"78604","13. Close up","IMG_2060PrintPortraitWeb2_thumb.jpg",130,177,1);thumbnails[2049536]=new thumbnail(2049536,"78604","15. The Snow Kite","IMG_2001Web_thumb.jpg",130,151,1);thumbnails[2103792]=new thumbnail(2103792,"78604","18. Camouflage","IMG_2288Web_thumb.jpg",130,96,1);thumbnails[1101178]=new thumbnail(1101178,"78604","23. Perching at dusk","IMG_8593Web_thumb.jpg",130,88,1);thumbnails[2049528]=new thumbnail(2049528,"78604","27. The snow kite","IMG_1998web_thumb.jpg",130,88,1);thumbnails[1042683]=new thumbnail(1042683,"78604","24. Perching at dusk (2)","IMG_8598Web_thumb.jpg",130,91,1);thumbnails[2054137]=new thumbnail(2054137,"78604","28. A 2005 Chilterns kite","IMG_2136WEB_thumb.jpg",130,88,1);thumbnails[4023950]=new thumbnail(4023950,"164801","Young chick 2009","IMG_4611Web_copy1_thumb.jpg",130,80,1);thumbnails[4172893]=new thumbnail(4172893,"164801","c. Young kite in holding pen ","IMG_4903Web_thumb.jpg",130,87,1);thumbnails[5330094]=new thumbnail(5330094,"164801","1a. Red Kite destined for Aberdeen","IMG_4694Web_thumb.jpg",130,87,1);thumbnails[2588173]=new thumbnail(2588173,"164801","1. Young kite","IMG_2828Web3_thumb.jpg",130,176,1);thumbnails[2362846]=new thumbnail(2362846,"164801","2. Young Kite in Holding Pen","IMG_2883Web_thumb.jpg",130,84,1);thumbnails[2588175]=new thumbnail(2588175,"164801","3. Young kite","IMG_2986Web_thumb.jpg",130,85,1);thumbnails[2362848]=new thumbnail(2362848,"164801","4. Young kite in holding pen","IMG_2885Web_thumb.jpg",130,86,1);thumbnails[2313431]=new thumbnail(2313431,"164801","5. Kite chicks in holding pen","IMG_2740Web1_thumb.jpg",130,85,1);thumbnails[635166]=new thumbnail(635166,"164801","Young Chick","KiteChickGateshead1_thumb.jpg",130,93,1);thumbnails[632884]=new thumbnail(632884,"48303","Male Fallow Deer","IMG_3029Web_thumb.jpg",130,90,1);thumbnails[632888]=new thumbnail(632888,"48303","Roe Deer - Female","Roe2_thumb.jpg",130,85,1);thumbnails[632889]=new thumbnail(632889,"48303","Roe Deer - Female","Roe3_thumb.jpg",130,162,1);thumbnails[632891]=new thumbnail(632891,"48303","Roe Deer - Male","Roe 5_thumb.jpg",130,172,1);thumbnails[632892]=new thumbnail(632892,"48303","Young Male Muntjac","Young Muntjac Male_thumb.jpg",130,94,1);thumbnails[636099]=new thumbnail(636099,"48303","2 month old Muntjac","Two month old muntjac_thumb.jpg",130,91,1);thumbnails[636101]=new thumbnail(636101,"48303","Roe Deer Feeding","Roe deer_thumb.jpg",130,87,1);thumbnails[636117]=new thumbnail(636117,"48303","New Born Muntjac","New Born muntjac_thumb.jpg",130,88,1);thumbnails[753478]=new thumbnail(753478,"48303","Female Muntjac ","Female Muntjac in Snow_thumb.jpg",130,85,1);thumbnails[753487]=new thumbnail(753487,"48303","Female Muntjac ","Muntjac in Snow3_thumb.jpg",130,84,1);thumbnails[774119]=new thumbnail(774119,"48303","Male Adult Muntjac","Male Adult Muntjac_thumb.jpg",130,79,1);var galleries=new Object();galleries[78605]=new gallery(78605,"1057770,917037,633457,632865","Red Kites","gallery",[]);galleries[69369]=new gallery(69369,"917037,633457,632865","Red Kites in flight","gallery",[632865,633457,911511,1100857,917037,917036,955826,955823,912195,857118,857124,878044,1268595,857136]);galleries[78604]=new gallery(78604,"1057770","Red Kites Perching","gallery",[4024026,5329768,1057770,2049525,2049536,2103792,1101178,2049528,1042683,2054137]);galleries[164801]=new gallery(164801,"5330094,4172893,4023950,2588175,2588173,2362848,2362846,2313431,635166","Young Red Kites","gallery",[4023950,4172893,5330094,2588173,2362846,2588175,2362848,2313431,635166]);galleries[48303]=new gallery(48303,"774119,753487,753478,636117,636101,636099,632892,632891,632889,632888","Deer","gallery",[632884,632888,632889,632891,632892,636099,636101,636117,753478,753487,774119]);var imageSets=new Object();imageSets[1]="5330094,5329768,4172893,2588175,2588173,2362848,2362846,2313431,2054137,1057770,917037,878044";imageSets[2]="1057770,917037,635977,633457,632865";imageSets[3]="5330094";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 34:b="http://www9.clikpic.com/helen/images";break}switch(a){case 1:b="http://www1.clikpic.com/helen/images";break}switch(a){case 2:b="http://admin.clikpic.com/helen/images";break}switch(a){case 4:b="http://www.clikchurch.com/helen/images";break}switch(a){case 5:b="http://www2.clikpic.com/helen/images";break}switch(a){case 15:b="http://www3.clikpic.com/helen/images";break}switch(a){case 21:b="http://www6.clikpic.com/helen/images";break}switch(a){case 18:b="http://www4.clikpic.com/helen/images";break}switch(a){case 19:b="http://www5.clikpic.com/helen/images";break}switch(a){case 22:b="http://tpc5/clikpic/helen/images";break}switch(a){case 23:b="http://tpc10/clikpic/helen/images";break}switch(a){case 24:b="http://tpc15/clikpic/helen/images";break}switch(a){case 25:b="http://tpc16/clikpic/helen/images";break}switch(a){case 31:b="http://www7.clikpic.com/helen/images";break}switch(a){case 32:b="http://admin2.clikpic.com/helen/images";break}switch(a){case 33:b="http://www8.clikpic.com/helen/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="redkites.net : "+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>"}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> 				&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="">';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="">';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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};