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[4939614]=new thumbnail(4939614,"48774","Jet Ski Stunt on Lake at Cholmondley Castle, Cheshire","4-Jet-Ski-Stunt_thumb.jpg",130,93,15);thumbnails[4939398]=new thumbnail(4939398,"48774","The Challenge.North of England Men's Lacrosse match.","3-The-Challenge_thumb.jpg",130,137,15);thumbnails[639265]=new thumbnail(639265,"48774","Breakthrough, Ladies Lacrosse match, Scotland v England ","Breakthrough28A_thumb.jpg",130,88,15);thumbnails[646190]=new thumbnail(646190,"48774","12 in possession. Exhibition Ladies Lacrosse Match USA versus England.","12inPosession2_thumb.jpg",130,149,15);thumbnails[647398]=new thumbnail(647398,"48774","Reaching the High Ball, Ladies Lacrosse Match, Exhibition match England Trial. ","ReachingtheHighBall_thumb.jpg",130,174,15);thumbnails[646208]=new thumbnail(646208,"48774","Australia shot at Goal, England v Australia.","Australia Shoot at Goal1_thumb.jpg",130,98,15);thumbnails[647431]=new thumbnail(647431,"48774","USA attack player preparing to shoot at goal being closely marked by English Defence man. ","USA attack _thumb.jpg",130,107,15);thumbnails[639489]=new thumbnail(639489,"48774","Airborne Shot.","AirbornNeg271_thumb.jpg",130,90,15);thumbnails[646220]=new thumbnail(646220,"48774","Close Marking, Canada v USA World Lacrosse Championships 1990","CloseMkg1_thumb.jpg",130,95,15);thumbnails[647369]=new thumbnail(647369,"48774","England player prepares to shoot  at Goal, Canada v England Perth July 1990","England Shot at Goal_thumb..jpg",130,85,15);thumbnails[647413]=new thumbnail(647413,"48774","Two onto one, England v Canada, World Lacrosse Championships Perth, Western Australia, illustrates good defensive play.  ","Two onto One_thumb.jpg",130,95,15);thumbnails[647385]=new thumbnail(647385,"48774","Face off,Toronto University Sports Ground.","FaceOff1_thumb.jpg",130,78,15);thumbnails[647391]=new thumbnail(647391,"48774","Lacrosse Sandwich, English Senior Flags Final at Didsbury C.C.Manchester","LacrosseSandwich11_thumb.jpg",130,119,15);thumbnails[639243]=new thumbnail(639243,"48774","Despairing Leap,England v USA.","DespairingLeap_thumb.jpg",130,107,15);thumbnails[641001]=new thumbnail(641001,"48774","Lacrosse Attack on Goal.","GoalChance01_thumb.jpg",130,119,15);thumbnails[647395]=new thumbnail(647395,"48774","Poke Check, Mens Senior Flags Final, Heaton Mersey v Boardman & Eccles.","PokeCheck_thumb.jpg",130,104,15);thumbnails[646125]=new thumbnail(646125,"48774","MacDowell Dirt Racer.","Macdowell_Dirt_Racer_thumb.jpg",130,81,15);thumbnails[646114]=new thumbnail(646114,"48774","Fraser Nash GN Morgan Hybrid Salome","GN_Morgan_Salome19312_thumb.jpg",130,75,15);thumbnails[646017]=new thumbnail(646017,"48774","Alpha Romeo Tipo B, Vintage Racing Car, Shell Bend Oulton Park.","Alpha_Romeo_TipoB_thumb.jpg",130,78,15);thumbnails[646120]=new thumbnail(646120,"48774","Bugatti Type 51 1931 Vintage Racing Car.","Bugatti_Type51_1931_thumb.jpg",130,84,15);thumbnails[646000]=new thumbnail(646000,"48774","Maserati 250F Driven by A.Cottam","Maserati250F_thumb.jpg",130,61,15);thumbnails[646144]=new thumbnail(646144,"48774","Rally Blur, Timo Salonen, driving Datsun,in Dyfi Forest Mid Wales, Lombard RAC Rally 1984","Rally_Blur_thumb.jpg",130,85,15);thumbnails[646127]=new thumbnail(646127,"48774","Cyclo Cross rider, Tatton Park Cheshire","CycloCross_Rider_thumb.jpg",130,85,15);thumbnails[646150]=new thumbnail(646150,"48774","Hang Glider, Horseshoe Pass North Wales.","Hang_Glider_thumb.jpg",130,89,15);thumbnails[711737]=new thumbnail(711737,"48774","Royal Navy Display Team.","RN_Display_Team_thumb.jpg",130,199,15);thumbnails[4939660]=new thumbnail(4939660,"48893","Amalfi Coast Italy","DSC_0416-copy_thumb.jpg",130,86,15);thumbnails[4939682]=new thumbnail(4939682,"48893","View of Mount Vesuvius Italy from Pompei","DSC_0464-copy_thumb.jpg",130,195,15);thumbnails[4939357]=new thumbnail(4939357,"48893","Shadow Patterns, near Sacre Couer,Paris","2-Shadow-Patterns_thumb.jpg",130,174,15);thumbnails[4647439]=new thumbnail(4647439,"48893","Early Morning.","Early_Morning_thumb.jpg",130,85,15);thumbnails[4915123]=new thumbnail(4915123,"48893","Dawn Flight Lake Nakuru Kenya","Dawn_Flight_Lake_Nakuru_Kenya_thumb.jpg",130,64,15);thumbnails[4786440]=new thumbnail(4786440,"48893","Delpht Scene Holland","Delpht_Scene_Holland_thumb.jpg",130,219,15);thumbnails[640871]=new thumbnail(640871,"48893","Floating Market Trader,Thailand.","FloatingMkt_thumb.jpg",130,93,15);thumbnails[640873]=new thumbnail(640873,"48893","Niagara Falls,Canada.","NiagaraFalls_thumb.jpg",130,83,15);thumbnails[640876]=new thumbnail(640876,"48893","Toronto Skyline from Toronto Islands,Lake Ontario,at Dusk.","TorontoSkyline_thumb.jpg",130,90,15);thumbnails[646156]=new thumbnail(646156,"48893","Sunburst,Lake Louise,British Columbia,Canada","SunburstLakeLouise_thumb.jpg",130,83,15);thumbnails[646162]=new thumbnail(646162,"48893","Fisherman's Beach, Albufiera, Portugal, Europe.","Fishermans_Beach_Albufeira_thumb.jpg",130,203,15);thumbnails[650050]=new thumbnail(650050,"48893","Street Parade Sienna.","Street-Parade,Sienna_thumb.jpg",130,198,15);thumbnails[650058]=new thumbnail(650058,"48893","Frontage of the Doumo in Sienna.","Doumo-Sienna_thumb.jpg",130,84,15);thumbnails[650062]=new thumbnail(650062,"48893","Sydney Harbour Bridge, Australia.","Sydney-Harbour-Bridge_thumb..jpg",130,100,15);thumbnails[650067]=new thumbnail(650067,"48893","Opera House Sydney, Australia.","Opera-House-Sydney_thumb.jpg",130,81,15);thumbnails[650069]=new thumbnail(650069,"48893","Sydney Opera House, from near the Harbour Bridge.","Sydney-Opera-House_thumb.jpg",130,100,15);thumbnails[650076]=new thumbnail(650076,"48893","Perth Skyline from Kings Park. Australia.","Perth-Skyline_thumb.jpg",130,90,15);thumbnails[4939169]=new thumbnail(4939169,"46921","Tornado Take Off","1_Tornado_GR4_Take_Off_copy_thumb.jpg",130,89,15);thumbnails[4914970]=new thumbnail(4914970,"46921","Motor Cycle Pin-Up","Motor_Cycle_Pin-up_thumb.jpg",130,88,15);thumbnails[637499]=new thumbnail(637499,"46921","Concorde Liverpool Airport.","Concorde_thumb.jpg",130,60,15);thumbnails[640880]=new thumbnail(640880,"46921","Concorde Final Approach, Manchester.","FinalApproach1_thumb.jpg",130,139,15);thumbnails[640882]=new thumbnail(640882,"46921","Tiger Moth,Barton Airport, Manchester.","TigerMoth_thumb.jpg",130,80,15);thumbnails[646143]=new thumbnail(646143,"46921","Concorde about to touchdown, at Manchester Airport.","ConcordeLanding_thumb..jpg",130,76,15);thumbnails[646138]=new thumbnail(646138,"46921","Air Sea Rescue Helicopter & Lifeboat Rescue Demonstration Hoylake, Wirral, Cheshire. ","Airsea_Rescue_Helicopter_thumb.jpg",130,84,15);thumbnails[646132]=new thumbnail(646132,"46921","Fairey Swordfish with Torpedo Farnborough Air Show.","Fairey_Swordfish_thumb.jpg",130,86,15);thumbnails[646129]=new thumbnail(646129,"46921","Vintage Rover, Mouldsworth Motor Museum, Cheshire","Vintage_Rover_thumb..jpg",130,91,15);thumbnails[711746]=new thumbnail(711746,"46921","Wyddfa Rack & Pinion Loco,Snowdon Mountain Railway.","Wyddfa-Loco_thumb.jpg",130,191,15);thumbnails[4673612]=new thumbnail(4673612,"48763","Backlit Poppy","Backliit_Poppy_thumb.jpg",130,87,15);thumbnails[4773197]=new thumbnail(4773197,"48763","Laburnum Arch at Bodnant Garden North Wales","Laburnum_Arch_thumb.jpg",130,86,15);thumbnails[637452]=new thumbnail(637452,"48763","Canadian_Chipmunk.","CanadianChipmunk1_thumb.jpg",130,85,15);thumbnails[637436]=new thumbnail(637436,"48763","Bull_Moose","BullMoose1_thumb.jpg",130,85,15);thumbnails[650032]=new thumbnail(650032,"48763","Male Impala Browsing.","MaleImpalaBrowsing_thumb.jpg",130,92,15);thumbnails[650023]=new thumbnail(650023,"48763","Young Cheetahs with Kill.","YoungCheetahswith-Kill_thumb.jpg",130,82,15);thumbnails[650034]=new thumbnail(650034,"48763","Otter at Tamar Nature Reserve, Cornwall","Otter_thumb.jpg",130,85,15);thumbnails[650040]=new thumbnail(650040,"48763","Shag on Bass Rock, Scotland.","Shag,Bass-Rock_thumb.jpg",130,86,15);thumbnails[650036]=new thumbnail(650036,"48763","Gannett nesting sites,Bass Rock,Scotland.","Gannett-Nest-Sites_thumb..jpg",130,79,15);thumbnails[4773182]=new thumbnail(4773182,"48763","Lily Detail. ","Lily_Close-up_thumb.jpg",130,88,15);thumbnails[637403]=new thumbnail(637403,"48763","Gannett's Bass Rock.","Gannets1_thumb.jpg",130,122,15);thumbnails[650045]=new thumbnail(650045,"48763","Monarch Butterfly on Buddliea.","Monarch_Butterfly_thumb.jpg",130,125,15);thumbnails[654604]=new thumbnail(654604,"49843","Cannon, Culzean Castle, Scotland.","Cannon_Culzean_Castle_thumb.jpg",130,87,15);thumbnails[654423]=new thumbnail(654423,"49843","Sand Patterns, Vancouver Island, B.C.Canada","Sand Patterns_thumb.jpg",130,197,15);thumbnails[711750]=new thumbnail(711750,"49843","Rider in Red.","Rider_in_Red_thumb.jpg",130,81,15);thumbnails[711756]=new thumbnail(711756,"49843","The Red Helmet, Oulton Park, Cheshire.","The_Red_Helmet_thumb.jpg",130,59,15);thumbnails[711779]=new thumbnail(711779,"49843","Sculpture & Skyline, Calgary,Canada.","Skyline&Sculpture_!_thumb.jpg",130,86,15);thumbnails[711789]=new thumbnail(711789,"49843","Italian Shadows, at Col Val de Elsa, Tuscany ","Italian_Shadows_thumb.jpg",130,195,15);thumbnails[4775492]=new thumbnail(4775492,"267992","Sunbeams Bodnant Gardens North Wales","Sunbeams_in_Bodnant_Gardens_thumb.jpg",130,173,15);thumbnails[4786377]=new thumbnail(4786377,"267992","Sculpture of Tresco Children.","Sculpture_of_Tresco_Children_thumb.jpg",130,205,15);thumbnails[4773307]=new thumbnail(4773307,"267992","Hawkshead Church through Trees","Hawkshead_Church_thumb.jpg",130,85,15);thumbnails[4775371]=new thumbnail(4775371,"267992","Wastwater & Great Gable","Wastwater__GtGable_thumb.jpg",130,99,15);thumbnails[4673641]=new thumbnail(4673641,"267992","Beach Huts Southwold","Beach_Huts_Southwold_thumb.jpg",130,182,15);thumbnails[4647435]=new thumbnail(4647435,"267992","Buttermere Boat","Buttermere_Boat_thumb.jpg",130,176,15);thumbnails[4914993]=new thumbnail(4914993,"267992","Sheep Country","Sheep_Country_LDistrict_thumb.jpg",130,87,15);thumbnails[4775380]=new thumbnail(4775380,"267992","Wastwater View Lake District","Wastwater_View_thumb.jpg",130,189,15);thumbnails[4914982]=new thumbnail(4914982,"267992","Sunset on River Blythe, Suffolk.","Sunset_RBlythe_Suffolk_thumb.jpg",130,64,15);thumbnails[4673571]=new thumbnail(4673571,"267992","Acorn Bank, National Trust HQ","Acorn_Bank_thumb.jpg",130,86,15);thumbnails[4773218]=new thumbnail(4773218,"267992","Three Old Arches, Chester","Three_Old_Arches_thumb.jpg",130,211,15);thumbnails[4915040]=new thumbnail(4915040,"267992","Sunset over Peckforton Castle Cheshire.","Peckforton_Castle_Cheshire_thumb.jpg",130,168,15);thumbnails[4775392]=new thumbnail(4775392,"267992","Watendlath Beck Lake District","Watendlath_Beck_thumb.jpg",130,160,15);thumbnails[4775410]=new thumbnail(4775410,"267992","Lone Tree & Great Gable","Lone_Tree_and_Great_Gable_thumb.jpg",130,198,15);thumbnails[4785398]=new thumbnail(4785398,"267992","Mew Stone and Wemyss Bay","Mew_Stone_from_Wembury_thumb.jpg",130,85,15);thumbnails[4775424]=new thumbnail(4775424,"267992","View from Snowdon Summit.","View_from_Snowdon_thumb.jpg",130,193,15);thumbnails[4775444]=new thumbnail(4775444,"267992","Sunlit Pastures North Wales","Sunlit_Pastures_Llanberis_Pass_thumb.jpg",130,74,15);thumbnails[4647517]=new thumbnail(4647517,"267992","Sunlit Bridge.","Sunlit_Bridge_thumb.jpg",130,87,15);thumbnails[4647501]=new thumbnail(4647501,"267992","Red Door Reflection.","Red_Door_Reflection_thumb.jpg",130,203,15);thumbnails[4647494]=new thumbnail(4647494,"267992","Brighton Pavillion Reflection.","Oriental_Reflections_thumb.jpg",130,83,15);thumbnails[4647511]=new thumbnail(4647511,"267992","Silver Silhouette","Silver_Silhouette_thumb.jpg",130,83,15);thumbnails[4786369]=new thumbnail(4786369,"267992","GPO Tower at Night","GPO_Tower_at_Dusk_thumb.jpg",130,206,15);thumbnails[4785423]=new thumbnail(4785423,"267992","Thornton Force North Yorkshire","Thornton_Force_thumb.jpg",130,197,15);thumbnails[4785425]=new thumbnail(4785425,"267992","Thornton Force in Spate ","Thornton_Force_in_Spate_thumb.jpg",130,86,15);thumbnails[4915079]=new thumbnail(4915079,"267992","Winter Scene.","Winter_Scene_Sandstone_Trail_thumb.jpg",130,202,15);thumbnails[4915012]=new thumbnail(4915012,"267992","Reeds at Sunset.","Reeds_at_Sunset_thumb.jpg",130,182,15);thumbnails[4786411]=new thumbnail(4786411,"267992","Ornamental Gate Compton Acres Gardens","Ornamental_Gate_thumb.jpg",130,181,15);thumbnails[650047]=new thumbnail(650047,"267992","Cuillin Hills on Skye,with Sligachan Burn. ","Cuillin-Hills,Skye_thumb.jpg",130,83,15);thumbnails[654412]=new thumbnail(654412,"267992","Little_Moreton_Hall.","Lt_Moreton_Hall_thumb.jpg",130,175,15);thumbnails[711739]=new thumbnail(711739,"267992","Snowdon Range across the twin Lakes. ","Snowdon_View_thumb..jpg",130,80,15);var galleries=new Object();galleries[48774]=new gallery(48774,"647395,646017,646000","Sport and Action.","gallery",[4939614,4939398,639265,646190,647398,646208,647431,639489,646220,647369,647413,647385,647391,639243,641001,647395,646125,646114,646017,646120,646000,646144,646127,646150,711737]);galleries[48893]=new gallery(48893,"650062,650058","Travel.","section72229",[4939660,4939682,4939357,4647439,4915123,4786440,640871,640873,640876,646156,646162,650050,650058,650062,650067,650069,650076]);galleries[46921]=new gallery(46921,"646138,640880","Transport.","section72230",[4939169,4914970,637499,640880,640882,646143,646138,646132,646129,711746]);galleries[48763]=new gallery(48763,"650023","Nature.","section72231",[4673612,4773197,637452,637436,650032,650023,650034,650040,650036,4773182,637403,650045]);galleries[49843]=new gallery(49843,"654604","Miscellaneous.","section74142",[654604,654423,711750,711756,711779,711789]);galleries[267992]=new gallery(267992,"4915079,4915040,4915012,4914993,4914982,4786411,4786377,4786369,4785425,4785423","Travel U.K.","section322623",[4775492,4786377,4773307,4775371,4673641,4647435,4914993,4775380,4914982,4673571,4773218,4915040,4775392,4775410,4785398,4775424,4775444,4647517,4647501,4647494,4647511,4786369,4785423,4785425,4915079,4915012,4786411,650047,654412,711739]);var imageSets=new Object();imageSets[1]="711779,711746,654604,654423,654412,650069,650050,650040,650023,646144,646017,640882,640876,637499";imageSets[2]="654604,650062,650058,650023,647395,646138,646017,646000,640880";imageSets[3]="4939682,4939660,4939614,4939398,4939357,4939169,4915123,4915079,4915040,4915012,4914993,4914982,4914970,4786440,4786411,4786377,4786369,4785425,4785423,4785398,4775492,4775444,4775424,4775410,4775392,4775380,4775371,4773307,4773218,4773197,4773182,4673641,4673612,4673571,4647517,4647511,4647501,4647494,4647439,4647435,711789,711779,711756,711750,711746,711739,711737,654604,654423,654412";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/mlrphoto/images";break}switch(a){case 1:b="http://www1.clikpic.com/mlrphoto/images";break}switch(a){case 2:b="http://admin.clikpic.com/mlrphoto/images";break}switch(a){case 4:b="http://www.clikchurch.com/mlrphoto/images";break}switch(a){case 5:b="http://www2.clikpic.com/mlrphoto/images";break}switch(a){case 15:b="http://www3.clikpic.com/mlrphoto/images";break}switch(a){case 21:b="http://www6.clikpic.com/mlrphoto/images";break}switch(a){case 18:b="http://www4.clikpic.com/mlrphoto/images";break}switch(a){case 19:b="http://www5.clikpic.com/mlrphoto/images";break}switch(a){case 22:b="http://tpc5/clikpic/mlrphoto/images";break}switch(a){case 23:b="http://tpc10/clikpic/mlrphoto/images";break}switch(a){case 24:b="http://tpc15/clikpic/mlrphoto/images";break}switch(a){case 25:b="http://tpc16/clikpic/mlrphoto/images";break}switch(a){case 31:b="http://www7.clikpic.com/mlrphoto/images";break}switch(a){case 32:b="http://admin2.clikpic.com/mlrphoto/images";break}switch(a){case 33:b="http://www8.clikpic.com/mlrphoto/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="Mike Reed Photography: "+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({centre:true});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(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+'")'})}}};
