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[704785]=new thumbnail(704785,"","Roger V Moody","Rog5_thumb.jpg",130,288,18);thumbnails[2750301]=new thumbnail(2750301,"","","Roger_Moody_photo_of_William_on_Southport_Pier_thumb.gif",130,87,18);thumbnails[4489845]=new thumbnail(4489845,"","","Party_Animals_thumb.gif",130,86,18);thumbnails[4489846]=new thumbnail(4489846,"","","Transparentscene_thumb.gif",130,86,18);thumbnails[4492571]=new thumbnail(4492571,"","","Event_Photography_thumb.gif",130,86,18);thumbnails[700466]=new thumbnail(700466,"","Equestrian therapy","Horse-websave_thumb.jpg",130,86,18);thumbnails[702317]=new thumbnail(702317,"","Orlando","silhouette_moody_images_Badford_city_hall_thumb.gif",130,86,18);thumbnails[702947]=new thumbnail(702947,"","","spinette_musical_instruments_thumb.gif",130,86,18);thumbnails[4489578]=new thumbnail(4489578,"","","BSF_Phase-2-Bradford_thumb.gif",130,86,18);thumbnails[4489796]=new thumbnail(4489796,"","","Brain_Game_Leeds_thumb.gif",130,86,18);thumbnails[702892]=new thumbnail(702892,"","Fluid project","project_photographer_teaching_arts_council_dewsbury_thumb.gif",130,86,18);thumbnails[702893]=new thumbnail(702893,"","Metal Sheep","Sheep_dog_landscape_photographer_yorkshire_thumb.gif",130,86,18);thumbnails[4489458]=new thumbnail(4489458,"","","St-Georges-Parade-Bradford_thumb.gif",130,86,18);thumbnails[703889]=new thumbnail(703889,"","Organic Life","Roger_moody_prints_photos_thumb.gif",130,98,18);thumbnails[703907]=new thumbnail(703907,"","Transforming Present","photography_cleckheaton_BD19_thumb.gif",130,98,18);thumbnails[703899]=new thumbnail(703899,"","Future Visions","exhibition_photography_bradford_thumb.gif",130,98,18);thumbnails[4745295]=new thumbnail(4745295,"","","Roger_Plinth_thumb.gif",130,86,18);thumbnails[4745296]=new thumbnail(4745296,"","","Moody_Gormley_thumb.gif",130,86,18);thumbnails[4745297]=new thumbnail(4745297,"","","Gormley_Plinth_OneandOther_thumb.gif",130,86,18);thumbnails[702324]=new thumbnail(702324,"53966","Ruth and Harry","mother_and_baby_photos_huddersfield_thumb.gif",130,86,18);thumbnails[703687]=new thumbnail(703687,"53966","The Great Mile Run","Photographer_sport_odsal_stadium_thumb.gif",130,86,18);thumbnails[702981]=new thumbnail(702981,"53966","Millennium Square","photographer_conference_town_hall_leeds_thumb.gif",130,86,18);thumbnails[702326]=new thumbnail(702326,"53966","Mia Brandon","fashion_promotion_photographer_bradford_thumb.gif",130,86,18);thumbnails[703688]=new thumbnail(703688,"53966","Joanne Riding","stage_photographer_alhambra_bradford_thumb.gif",130,86,18);thumbnails[703762]=new thumbnail(703762,"53966","Salisbury Plain","event_photographer_bradford_leeds_roger_moody_thumb.gif",130,87,18);thumbnails[702965]=new thumbnail(702965,"53931","Tom Riordan","building_photographer_bradford_leeds_thumb.gif",130,86,18);thumbnails[702321]=new thumbnail(702321,"53931","Leeds Entrepreneurs","pr_Photographer_Roger_V_Moody_thumb.gif",130,86,18);thumbnails[702966]=new thumbnail(702966,"53931","Elizabeth Henry","law_corporate_photographer_bradford_thumb.gif",130,86,18);thumbnails[702968]=new thumbnail(702968,"53931","New Sponsors","RogerVMoody_press_photographer_West_Yorkshire_thumb.gif",130,86,18);thumbnails[702964]=new thumbnail(702964,"53931","Powder Coating","Roger_Moody_industrial_photographer_bradford_thumb.gif",130,86,18);thumbnails[702970]=new thumbnail(702970,"53931","Glass Recycling","bradford_public_relations_photographer_yorkshire_barnsley_thumb.gif",130,86,18);thumbnails[702969]=new thumbnail(702969,"53931","Malcolm Staff","industrial_photographer_west_yorkshire_thumb.gif",130,195,18);thumbnails[702967]=new thumbnail(702967,"53931","Congratulations","roger_moody_award_presentation_photographer_thumb.gif",130,195,18);thumbnails[703706]=new thumbnail(703706,"53931","Challenge College","school_photographer_bradford_telegraph_and_argus_pictures_thumb.gif",130,204,18);thumbnails[703897]=new thumbnail(703897,"119208","The Big Word","conference_photographer_leeds_queens_hotel_YPN_thumb.gif",130,86,18);thumbnails[702327]=new thumbnail(702327,"119208","Bentham and Holroyd","business_photographer_rodge_moodie_architecture_images_bradford_industrial_thumb.gif",130,86,18);thumbnails[703552]=new thumbnail(703552,"119208","Jay Cousins","speaker_photographer_savills_leeds_royal_armouries_stills_thumb.gif",130,86,18);thumbnails[702322]=new thumbnail(702322,"119208","Elodia Eccles","ceremonies_photographer_harrogate_sheffield_stadium_hotel_thumb.gif",130,195,18);thumbnails[703554]=new thumbnail(703554,"119208","Daniel Lee","agm_photography_leeds_bradford_Cedar_Court_Bradford_thumb.gif",130,196,18);thumbnails[703556]=new thumbnail(703556,"119208","Bradford Chamber International","commercial_photographer_people_3_albion_place_leeds_website_thumb.gif",130,196,18);thumbnails[702939]=new thumbnail(702939,"53929","Huddersfield Royal Infirmary","Huddersfield_NHS_photographer_yorkshire_health_pictures_thumb.gif",130,86,18);thumbnails[702325]=new thumbnail(702325,"53929","Bradford Archives","files_bradford_archive_profesional_photographer_lights_thumb.gif",130,86,18);thumbnails[702946]=new thumbnail(702946,"53929","Leeds College of Building","wookwork_leeds_college_university_photographer_thumb.gif",130,86,18);thumbnails[1772293]=new thumbnail(1772293,"53929","Ryecroft Primary School, Bradford","Bradford_Primary_Education_thumb.gif",130,86,18);thumbnails[702951]=new thumbnail(702951,"53929","St Walburga's Primary School","bookcover_near_leeds_photography_learning_photos_thumb.gif",130,86,18);thumbnails[702942]=new thumbnail(702942,"53929","Hob Moor Children's Centre","cleckheaton_photography_nurseries_buy_newspapers_advertising_thumb.gif",130,86,18);thumbnails[4489183]=new thumbnail(4489183,"258660","","Leeds_patient_Services_thumb.gif",130,86,18);thumbnails[4489185]=new thumbnail(4489185,"258660","","Cleaner_NHS_thumb.gif",130,86,18);thumbnails[4489187]=new thumbnail(4489187,"258660","","Incubator_Bradford_baby_thumb.gif",130,86,18);thumbnails[4489238]=new thumbnail(4489238,"258660","","Todmorden_Health_Centre_thumb.gif",130,195,18);thumbnails[4489242]=new thumbnail(4489242,"258660","","nurse_and_old_man_thumb.gif",130,195,18);thumbnails[4489244]=new thumbnail(4489244,"258660","","Local_Care_Direct_Dentist_thumb.gif",130,195,18);thumbnails[703635]=new thumbnail(703635,"54140","","photographer_cleckheaton_freelance_children_Nicola_Roger_venture_thumb.gif",130,90,18);thumbnails[704850]=new thumbnail(704850,"54140","","photographer_roger_business_portraits_broadsheets_tabloid_thumb.gif",130,86,18);thumbnails[704848]=new thumbnail(704848,"54140","","Coffee_Garden_Harrogate_photographer_freelance_the_met_thumb.gif",130,86,18);thumbnails[704852]=new thumbnail(704852,"54140","","candid_image_roundtable_freelance_photographer_meeting_thumb.gif",130,227,18);thumbnails[704849]=new thumbnail(704849,"54140","","roger_moody_family_portraits_bradford_magazine_photography_thumb.gif",130,227,18);thumbnails[703689]=new thumbnail(703689,"54140","","scarborough_Spa_photographer_complex_photography_thumb.gif",130,227,18);thumbnails[4489753]=new thumbnail(4489753,"258661","","Manchester-Road-wind-turbine_thumb.gif",130,86,18);thumbnails[4489764]=new thumbnail(4489764,"258661","","Granary_Wharf_Leeds_thumb.gif",130,86,18);thumbnails[4489779]=new thumbnail(4489779,"258661","","Cleckheaton_Morning_thumb.gif",130,86,18);thumbnails[4489782]=new thumbnail(4489782,"258661","","Intersection-M62_thumb.gif",130,195,18);thumbnails[4489783]=new thumbnail(4489783,"258661","","Mixed-bag-3_thumb.gif",130,195,18);thumbnails[4489785]=new thumbnail(4489785,"258661","","89_thumb.gif",130,196,18);thumbnails[703558]=new thumbnail(703558,"53971","","Products_industrial_Bradford_thumb.gif",130,86,18);thumbnails[703559]=new thumbnail(703559,"53971","","World_Mile_photographs-ATIQUE_TEXTILES_thumb.gif",130,86,18);thumbnails[3538606]=new thumbnail(3538606,"53971","","Marina_Beer_Festival_thumb.gif",130,86,18);thumbnails[3136471]=new thumbnail(3136471,"53971","","Food_photographer_magazine_thumb.gif",130,195,18);thumbnails[703692]=new thumbnail(703692,"53971","","product_photographer_yorkshire1_thumb.gif",130,196,18);thumbnails[703763]=new thumbnail(703763,"53971","","Tap_Freight-351_thumb.gif",130,196,18);thumbnails[702318]=new thumbnail(702318,"53843","","Bradford_MELA_2008_culture_turban_thumb.gif",130,86,18);thumbnails[702910]=new thumbnail(702910,"53843","","Bradford_photograph_Centenary_Square_City_Hall_thumb.gif",130,86,18);thumbnails[703720]=new thumbnail(703720,"53843","","Bradford_Classic_2008_cars_bikes_Dave_Coates_thumb.gif",130,86,18);thumbnails[4489454]=new thumbnail(4489454,"53843","","Bradford_City_of_Film_thumb.gif",130,86,18);thumbnails[4489457]=new thumbnail(4489457,"53843","","Garden_Magic-021_thumb.gif",130,86,18);thumbnails[6556932]=new thumbnail(6556932,"53843","","Lord_Mayors_Parade-2010_thumb.gif",130,86,18);thumbnails[702905]=new thumbnail(702905,"53843","","manchester_road_wind_turbines_energy_bradford_thumb.gif",130,193,18);thumbnails[702915]=new thumbnail(702915,"53843","","Magic_Garden_photographer_event_bradford_thumb.gif",130,196,18);thumbnails[822340]=new thumbnail(822340,"53843","","Claire_Joseph_bradford_press_photographer_Roger_thumb.gif",130,196,18);thumbnails[6556974]=new thumbnail(6556974,"53967","","2010-Bradford-Mela_thumb.gif",130,86,18);thumbnails[4489584]=new thumbnail(4489584,"53967","","Step_Up_Bradford_photos_thumb.gif",130,86,18);thumbnails[4489588]=new thumbnail(4489588,"53967","","Bradford_Entertainment_thumb.gif",130,86,18);thumbnails[4489613]=new thumbnail(4489613,"53967","","Musical_Photographer_thumb.gif",130,195,18);thumbnails[4489617]=new thumbnail(4489617,"53967","","Bradford-Arts-Photographer_thumb.gif",130,195,18);thumbnails[4489622]=new thumbnail(4489622,"53967","","Bradford_Mela_thumb.gif",130,195,18);thumbnails[4745287]=new thumbnail(4745287,"258662","","Richard_Wills_Photographer_thumb.gif",130,196,18);thumbnails[4745288]=new thumbnail(4745288,"258662","","Plinth_photo_thumb.gif",130,196,18);thumbnails[4745289]=new thumbnail(4745289,"258662","","Neville_Moody_Msaada_thumb.gif",130,195,18);thumbnails[4745291]=new thumbnail(4745291,"258662","","Trafalgar_Square_Moody_thumb.gif",130,86,18);thumbnails[4745292]=new thumbnail(4745292,"258662","","Olive_Moody_thumb.gif",130,86,18);thumbnails[4745294]=new thumbnail(4745294,"258662","","Manandpigeon_thumb.gif",130,86,18);thumbnails[4699640]=new thumbnail(4699640,"258662","","Roger_Moody_Plinth_thumb.gif",130,86,18);thumbnails[4745310]=new thumbnail(4745310,"258662","","090916_4255_RMW_thumb.gif",130,86,18);thumbnails[4745311]=new thumbnail(4745311,"258662","","090916_4279_RMW_thumb.gif",130,86,18);thumbnails[702323]=new thumbnail(702323,"53833","Speeches for Emma and Ben","private_party_photographer_leeds_birthday_cameraman_thumb.gif",130,86,18);thumbnails[703750]=new thumbnail(703750,"53833","The Smith's family portrait","home_portrait_photographer_west_yorkshire_Rodge_camera_present_thumb.gif",130,86,18);thumbnails[700582]=new thumbnail(700582,"53833","Adele's moment with Mother","Adele_Leeds_Albion_Place_Picture_thumb.gif",130,86,18);thumbnails[703850]=new thumbnail(703850,"53833","Ian and the rugby team","wedding_gomersal_lodge_photographer_best_quality_free_including_disc_thumb.gif",130,196,18);thumbnails[703890]=new thumbnail(703890,"53833","William in Christening attire","christening_photography_roman_catholic_hire_a_photographer_west_yorkshire_thumb.gif",130,196,18);thumbnails[703765]=new thumbnail(703765,"53833","Niki and Gerard's wedding","mixed_race_wedding_photograher_bradford_cleckheaton_thumb.gif",130,196,18);var galleries=new Object();galleries[53966]=new gallery(53966,"702981","Editorial","section79108",[702324,703687,702981,702326,703688,703762]);galleries[53931]=new gallery(53931,"702321","PR","section79108",[702965,702321,702966,702968,702964,702970,702969,702967,703706]);galleries[119208]=new gallery(119208,"702327","Business","section79108",[703897,702327,703552,702322,703554,703556]);galleries[53929]=new gallery(53929,"1772293","Education","section79108",[702939,702325,702946,1772293,702951,702942]);galleries[258660]=new gallery(258660,"4489185","Health","section79108",[4489183,4489185,4489187,4489238,4489242,4489244]);galleries[54140]=new gallery(54140,"704848","Portrait","section79108",[703635,704850,704848,704852,704849,703689]);galleries[258661]=new gallery(258661,"4489779","Environment","section79108",[4489753,4489764,4489779,4489782,4489783,4489785]);galleries[53971]=new gallery(53971,"3538606","Products","section79108",[703558,703559,3538606,3136471,703692,703763]);galleries[53843]=new gallery(53843,"4489454","Bradford","section79108",[702318,702910,703720,4489454,4489457,6556932,702905,702915,822340]);galleries[53967]=new gallery(53967,"4489588","Performance","section79108",[6556974,4489584,4489588,4489613,4489617,4489622]);galleries[258662]=new gallery(258662,"4699640","Plinth","section79108",[4745287,4745288,4745289,4745291,4745292,4745294,4699640,4745310,4745311]);galleries[53833]=new gallery(53833,"702323","Private","section79108",[702323,703750,700582,703850,703890,703765]);var imageSets=new Object();imageSets[1]="4492571,4489846,4489845,2750301,700466";imageSets[2]="4699640,4489779,4489588,4489454,4489185,3538606,1772293,704848,702981,702327,702323,702321,702317";imageSets[3]="6556974,6556932,4745311,4745310,4745297,4745296,4745295,4745294,4745292,4745291,4745289,4745288,4745287,4699640,4492571,4489846,4489845,4489796,4489785,4489783,4489782,4489779,4489764,4489753,4489622,4489617,4489613,4489588,4489584,4489578,4489458,4489457,4489454,4489244,4489242,4489238,4489187,4489185,4489183,3538606,3136471,2750301,1772293,822340,704852,704850,704849,704848,704785,703907";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/roger237/images";break}switch(a){case 1:b="http://www1.clikpic.com/roger237/images";break}switch(a){case 2:b="http://admin.clikpic.com/roger237/images";break}switch(a){case 24:b="http://tpc15/clikpic/roger237/images";break}switch(a){case 4:b="http://www.clikchurch.com/roger237/images";break}switch(a){case 5:b="http://www2.clikpic.com/roger237/images";break}switch(a){case 22:b="http://tpc5/clikpic/roger237/images";break}switch(a){case 23:b="http://tpc10/clikpic/roger237/images";break}switch(a){case 25:b="http://tpc16/clikpic/roger237/images";break}switch(a){case 15:b="http://www3.clikpic.com/roger237/images";break}switch(a){case 18:b="http://www4.clikpic.com/roger237/images";break}switch(a){case 19:b="http://www5.clikpic.com/roger237/images";break}switch(a){case 31:b="http://www7.clikpic.com/roger237/images";break}switch(a){case 32:b="http://admin2.clikpic.com/roger237/images";break}switch(a){case 33:b="http://www8.clikpic.com/roger237/images";break}switch(a){case 34:b="http://www9.clikpic.com/roger237/images";break}switch(a){case 35:b="http://admin3.clikpic.com/roger237/images";break}switch(a){case 37:b="http://admin4.clikpic.com/roger237/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("section79108"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section79108.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("section79108"!=""){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=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+'")'})}}};