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[4919558]=new thumbnail(4919558,"293314","Ma and Baa lambs","Ma_and_Baa_lambs_thumb.jpg",130,79,18);thumbnails[4919622]=new thumbnail(4919622,"293314","Derwentwater in Winter","Derwentwater_in_Winter_thumb.jpg",130,98,18);thumbnails[4925500]=new thumbnail(4925500,"293314","Rain streaks and sun through leaves ","Rain_streaks_and_sun_through_leaves__thumb.jpg",130,87,18);thumbnails[4925921]=new thumbnail(4925921,"293314","Following the plough","Working_the_land_thumb.jpg",130,87,18);thumbnails[4982546]=new thumbnail(4982546,"293314","Tom Kitten","Tom_Kitten_thumb.jpg",130,130,18);thumbnails[5173155]=new thumbnail(5173155,"293314","Hardy Herdwick sheep","sheep_graze_copy123456_thumb.jpg",130,130,18);thumbnails[5194298]=new thumbnail(5194298,"293314","Vivid and beautiful dawn","red_dawn1_thumb.jpg",130,87,18);thumbnails[4919570]=new thumbnail(4919570,"293315","Bird-shaped flock of starlings","Starlng_flock_thumb.jpg",130,87,18);thumbnails[4971678]=new thumbnail(4971678,"293315","Thousands and thousands of starlings","Gazillions_of_starlings_thumb.jpg",130,87,18);thumbnails[5194290]=new thumbnail(5194290,"293315","Murmuration of starlings","starlings1_thumb.jpg",130,87,18);thumbnails[5194291]=new thumbnail(5194291,"293315","Flowing like mercury","starlings2_thumb.jpg",130,87,18);thumbnails[4924809]=new thumbnail(4924809,"280174","Armathwaite sunset","Quiet_eden_thumb.jpg",130,86,18);thumbnails[4971535]=new thumbnail(4971535,"280174","Almost Gothic","Almost_Gothic_thumb.jpg",130,88,18);thumbnails[4971530]=new thumbnail(4971530,"280174","Blencathra ","Blencathra_thumb.jpg",130,98,18);thumbnails[4919624]=new thumbnail(4919624,"280174","Surfer Beach in South Wales, UK","Surfer_beach_South_Wales_thumb.jpg",130,87,18);thumbnails[4924821]=new thumbnail(4924821,"280174","Autumn woodland at sunset","Autumn_woodland_at_sunset_thumb.jpg",130,95,18);thumbnails[4925357]=new thumbnail(4925357,"280174","Strands of rising mist on a summer dawn","Summer_dawn_thumb.jpg",130,87,18);thumbnails[4925452]=new thumbnail(4925452,"280174","Bijou boathouse","Bijou_boat_house_thumb.jpg",130,87,18);thumbnails[4971628]=new thumbnail(4971628,"280174","We all love to do it","We_all_love_to_do_it_thumb.jpg",130,84,18);thumbnails[4983121]=new thumbnail(4983121,"280174","Sunset beaming behind Blencathra","Blencathra_squared_thumb.jpg",130,130,18);thumbnails[4925804]=new thumbnail(4925804,"280174","Winter magic","winter_magic_thumb.jpg",130,87,18);thumbnails[4932606]=new thumbnail(4932606,"280174","Over the fields","over_the_fields_thumb.jpg",130,90,18);thumbnails[4925866]=new thumbnail(4925866,"280174","Beautiful winter light at Ullswater","from_Sharrow_Bay_thumb.jpg",130,195,18);thumbnails[4973077]=new thumbnail(4973077,"280174","Iced cobwebs","Iced_cobwebs_thumb.jpg",130,195,18);thumbnails[4971639]=new thumbnail(4971639,"280174","At Castlerigg Stone Circle","CAstlerigg_stone_circle_thumb.jpg",130,173,18);thumbnails[4977787]=new thumbnail(4977787,"280174","Chesil Beach Pebbles","Chesil_Beach_pebbles_thumb.jpg",130,98,18);thumbnails[4919364]=new thumbnail(4919364,"280149","Dainty summer flowers and grasses. ","Dainty_delights1_thumb.jpg",130,130,18);thumbnails[4919566]=new thumbnail(4919566,"280149","Meadow daisies","Meadow_daisies_thumb.jpg",130,130,18);thumbnails[4924793]=new thumbnail(4924793,"280149","Fuzzy buzzy busy bee","bee_in_wildflower_thumb.jpg",130,92,18);thumbnails[4932510]=new thumbnail(4932510,"280149","Blossom","blossom_thumb.jpg",130,88,18);thumbnails[4932512]=new thumbnail(4932512,"280149","Gold and blue","Gold_and_blue_thumb.jpg",130,87,18);thumbnails[4932519]=new thumbnail(4932519,"280149","Yellow petals and bee","yellow_petals_and_bee_thumb.jpg",130,88,18);thumbnails[4932522]=new thumbnail(4932522,"280149","Aquilegia","Aquilegia_thumb.jpg",130,130,18);thumbnails[4932620]=new thumbnail(4932620,"280149","Seed Heads","seed_heads_thumb.jpg",130,90,18);thumbnails[4977886]=new thumbnail(4977886,"280149","Orange petals","orange_flower_thumb.jpg",130,98,18);thumbnails[4977890]=new thumbnail(4977890,"280149","Soft sprinkled with snow","Natural_candelabra_thumb.jpg",130,86,18);thumbnails[4977896]=new thumbnail(4977896,"280149","Hellebore flower in January","hellebore_1_thumb.jpg",130,92,18);thumbnails[4925522]=new thumbnail(4925522,"280149","A £1 bunch of tulips","A_1_bunch_of_tulips_thumb.jpg",130,130,18);thumbnails[4925533]=new thumbnail(4925533,"280149","Sweetness and light","Sweetness_and_light_thumb.jpg",130,204,18);thumbnails[4919361]=new thumbnail(4919361,"280149","The earliest spring flower","hellebore_thumb.jpg",130,200,18);thumbnails[4919299]=new thumbnail(4919299,"280149","One of the last flowers to bloom in late summer","Yellow_flower_thumb.jpg",130,195,18);thumbnails[4932643]=new thumbnail(4932643,"280149","Poppy and white flower","poppy_and_white1_thumb.jpg",130,183,18);thumbnails[4919346]=new thumbnail(4919346,"280149","Poppies in red and washing line","Poppy_red1_thumb.jpg",130,91,18);thumbnails[4925610]=new thumbnail(4925610,"280149","Flowers everywhere","Flowers_everywhere_thumb.jpg",130,195,18);thumbnails[4932774]=new thumbnail(4932774,"280149","Very pink petals","Very_pink_petals_thumb.jpg",130,93,18);thumbnails[4924760]=new thumbnail(4924760,"279586","The fish are a'jumpin'","fish_are_jumping_thumb.jpg",130,92,18);thumbnails[4919235]=new thumbnail(4919235,"279586","Autumn dawn through mist by the River Eden","autumn_dawn_thumb.jpg",130,87,18);thumbnails[4919280]=new thumbnail(4919280,"279586","Dawn on an October morning above Armathwaite in the Eden Valley","Autumn_dawn_Armathwaite_thumb.jpg",130,87,18);thumbnails[4925442]=new thumbnail(4925442,"279586","Blue sky over ice","Blue_sky_over_ice_thumb.jpg",130,87,18);thumbnails[4919387]=new thumbnail(4919387,"279586","Soft river light","Soft_river_light_thumb.jpg",130,87,18);thumbnails[4919401]=new thumbnail(4919401,"279586","Winter layer-cake ","4241435562_7218faf109_thumb.jpg",130,130,18);thumbnails[4919489]=new thumbnail(4919489,"279586","Honeyed sunrise over Eden","Honeyed_sunrise_above_Eden_thumb.jpg",130,87,18);thumbnails[4924835]=new thumbnail(4924835,"279586","Attractive beasts of the field","Cows_in_their_landscape_thumb.jpg",130,87,18);thumbnails[4972941]=new thumbnail(4972941,"279586","Eden meadows at Lazonby","meadows_on_eden_thumb.jpg",130,97,18);thumbnails[4972946]=new thumbnail(4972946,"279586","Curious sheep","Curious_sheep_thumb.jpg",130,87,18);thumbnails[4972966]=new thumbnail(4972966,"279586","Stained glass heaven","Stained_glass_heaven_thumb.jpg",130,195,18);thumbnails[5223790]=new thumbnail(5223790,"279586","Mist rising up the Pennines","4144975916_138a670c6d_thumb.jpg",130,127,18);thumbnails[5223797]=new thumbnail(5223797,"279586","Pennine pyramidical","Pennine_pyramidical1_thumb.jpg",130,79,18);thumbnails[4924736]=new thumbnail(4924736,"279586","Long Meg - the sun on her back","Long_Meg_thumb.jpg",130,87,18);thumbnails[4919495]=new thumbnail(4919495,"279586","Winter dawn","Winter_dawn_thumb.jpg",130,195,18);thumbnails[4925907]=new thumbnail(4925907,"279586","Perfect day, bright water, blue sky","Bright_blue_Eden_thumb.jpg",130,87,18);thumbnails[5173124]=new thumbnail(5173124,"280148","Sheep near flood","Safely_graze_thumb.jpg",130,81,18);thumbnails[4919296]=new thumbnail(4919296,"280148","Treasure in a Tropical House - a lace wing butterfly","Lacy_Butterfly_thumb.jpg",130,86,18);thumbnails[4919554]=new thumbnail(4919554,"280148","Sheep hogging the shade on a very hot day","Hogging_the_shade_of_a_tree_thumb.jpg",130,87,18);thumbnails[4919560]=new thumbnail(4919560,"280148","Pretty Ducky","Prety_ducky_thumb.jpg",130,89,18);thumbnails[4919577]=new thumbnail(4919577,"280148","Gull heaven","Gul_heaven_thumb.jpg",130,84,18);thumbnails[4925273]=new thumbnail(4925273,"280148","*Simples ;-) Everyone loves a Meerkat","meerkat_thumb.jpg",130,130,18);thumbnails[4926894]=new thumbnail(4926894,"280148","Robin Red Breast","soft_robin_thumb.jpg",130,122,18);thumbnails[4976100]=new thumbnail(4976100,"280148","Peacock butterfly on lilac pink flower","Peacock_butterfly_thumb.jpg",130,98,18);thumbnails[4977778]=new thumbnail(4977778,"280148","Tropical spiny fish in a tank of sea water at a marine exhibit","Spiny_fish_thumb.jpg",130,98,18);thumbnails[4919342]=new thumbnail(4919342,"280148","Swan elegance","Swan_elegance_thumb.jpg",130,198,18);thumbnails[4919556]=new thumbnail(4919556,"280148","Mr Handsome Mandrill","Mr_Handsome_Mandrill_thumb.jpg",130,195,18);thumbnails[4932637]=new thumbnail(4932637,"280148","Youthful calves","young_beasts_thumb.jpg",130,87,18);thumbnails[4926899]=new thumbnail(4926899,"280498","","2436171227_6ac8c680cc_thumb.jpg",130,87,18);thumbnails[4926910]=new thumbnail(4926910,"280498","Comfy cat - THE sleepy cat in question","3141225829_cf198291a62_thumb.jpg",130,87,18);thumbnails[4926916]=new thumbnail(4926916,"280498","Dangerously cute","dangerously_cute_thumb.jpg",130,130,18);thumbnails[4926918]=new thumbnail(4926918,"280498","Twinkle Frank","3123134428_4b98afc503_thumb.jpg",130,195,18);thumbnails[4926905]=new thumbnail(4926905,"280498","Frank is a poser","2946185831_c674050a71_thumb.jpg",130,87,18);thumbnails[4925703]=new thumbnail(4925703,"279503","The Howgills from 5,000 feet above Kendal","Above_Kendal_thumb.jpg",130,87,18);thumbnails[4907285]=new thumbnail(4907285,"279503","Above Bowness Bay on Lake Windermere","above_bowness_bay_thumb.jpg",130,86,18);thumbnails[4925790]=new thumbnail(4925790,"279503","Windermere with a shining Morecambe Bay beyond from 5,000 feet","Shining_water_of_Windermere_thumb.jpg",130,87,18);thumbnails[4919552]=new thumbnail(4919552,"279503","From 5,000 feet above the Lake District Mountains","Flying_over_the_Lake_District_thumb.jpg",130,195,18);thumbnails[4907330]=new thumbnail(4907330,"279503","Above Waterhead, Ambleside.","above_waterhead_ambleside_thumb.jpg",130,195,18);thumbnails[4981736]=new thumbnail(4981736,"279503","5,000 feet above Derwentwater and Keswick","Derwetnwater_and_Keswick_from_above_thumb.jpg",130,195,18);thumbnails[4925813]=new thumbnail(4925813,"279503","Windermere car ferry and Ferry Nab from 5,000 feet ","Winermere_car_ferry_from_above_thumb.jpg",130,195,18);thumbnails[4907322]=new thumbnail(4907322,"279503","Above the Low Wood Hotel on the shores of Lake Windermere","above_the_low_wood_hotel_thumb.jpg",130,86,18);thumbnails[4925163]=new thumbnail(4925163,"279502","Shapes of water","Shapes_of_water_thumb.jpg",130,87,18);thumbnails[4925506]=new thumbnail(4925506,"279502","Guitar and faiylights","Guitar_and_fairylights1_thumb.jpg",130,87,18);thumbnails[4932616]=new thumbnail(4932616,"279502","The lights on the Tyne","The_light_on_the_Tyne_thumb.jpg",130,87,18);thumbnails[4907576]=new thumbnail(4907576,"279546","Spiky teazels are great fun","teazles_thumb.jpg",130,130,18);thumbnails[4907578]=new thumbnail(4907578,"279546","Bottoms in synchronisity","bottom_parade_thumb.jpg",130,72,18);thumbnails[4919611]=new thumbnail(4919611,"279546","Blackbird in a cherry tree","blackbird_in_cherry_tree_thumb.jpg",130,195,18);thumbnails[4932628]=new thumbnail(4932628,"279546","Blue tit in flight","Blue_tit_thumb.jpg",130,86,18);thumbnails[4973075]=new thumbnail(4973075,"279546","Pleasant pheasant","Pleasant_pheasant_thumb.jpg",130,130,18);thumbnails[5040810]=new thumbnail(5040810,"279546","V flying flock formation","v_geese_thumb.jpg",130,89,18);thumbnails[5176641]=new thumbnail(5176641,"282638","Cloud waves under Hartside","Waves_of_couds_under_Hartside_thumb.jpg",130,56,18);thumbnails[4973074]=new thumbnail(4973074,"282638","Double reflections at Lazonby Bridge on the River Eden.","River_mirrored_thumb.jpg",130,43,18);thumbnails[4973076]=new thumbnail(4973076,"282638","Daisy daisy daisy","Daisy_daisy_thumb.jpg",130,35,18);thumbnails[4973082]=new thumbnail(4973082,"282638","Glorious sunset behind Blencathra","blencathra_from_20_miles1_thumb.jpg",130,52,18);thumbnails[4981745]=new thumbnail(4981745,"282638","Blencathra from 5,000 feet above","Blencathra_from_5000_ft_thumb.jpg",130,43,18);var galleries=new Object();galleries[293314]=new gallery(293314,"4982546,4919622","BEST SELLERS","gallery",[4919558,4919622,4925500,4925921,4982546,5173155,5194298]);galleries[293315]=new gallery(293315,"4919570","Starling murmuration","gallery",[4919570,4971678,5194290,5194291]);galleries[280174]=new gallery(280174,"4983121,4977787,4973077,4971639,4971628,4971535,4971530,4932606,4925866,4925804","Landscapes","gallery",[4924809,4971535,4971530,4919624,4924821,4925357,4925452,4971628,4983121,4925804,4932606,4925866,4973077,4971639,4977787]);galleries[280149]=new gallery(280149,"4932519","Flora","gallery",[4919364,4919566,4924793,4932510,4932512,4932519,4932522,4932620,4977886,4977890,4977896,4925522,4925533,4919361,4919299,4932643,4919346,4925610,4932774]);galleries[279586]=new gallery(279586,"4925907,4919401","Eden Valley","gallery",[4924760,4919235,4919280,4925442,4919387,4919401,4919489,4924835,4972941,4972946,4972966,5223790,5223797,4924736,4919495,4925907]);galleries[280148]=new gallery(280148,"5173124,4977778,4976100,4932637,4926894,4925273,4919577,4919560,4919556,4919554","Fauna","gallery",[5173124,4919296,4919554,4919560,4919577,4925273,4926894,4976100,4977778,4919342,4919556,4932637]);galleries[280498]=new gallery(280498,"4926910","Cats","gallery",[4926899,4926910,4926916,4926918,4926905]);galleries[279503]=new gallery(279503,"4925790","Above the Lake District","gallery",[4925703,4907285,4925790,4919552,4907330,4981736,4925813,4907322]);galleries[279502]=new gallery(279502,"4932616,4925506,4925163","Abstract","gallery",[4925163,4925506,4932616]);galleries[279546]=new gallery(279546,"5040810","Sketchified","gallery",[4907576,4907578,4919611,4932628,4973075,5040810]);galleries[282638]=new gallery(282638,"5176641","Panoramas","gallery",[5176641,4973074,4973076,4973082,4981745]);var imageSets=new Object();imageSets[1]="5223797,5223790,5194298,5194290,5176641,5173155,5173124,5040810,4983121,4982546,4977890,4977886,4973075,4973074,4971535,4932774,4932637,4932616,4932519,4926894,4925921,4925907,4925866,4925610,4925522,4925506,4925442,4925357,4925163,4924835,4924821,4924809,4924793,4924736,4919622,4919570,4919566,4919558,4919552,4919489,4919401,4919387,4919346,4919342,4919299,4919296,4919235,4907578,4907330";imageSets[2]="5176641,5040810,4982546,4932519,4926910,4925907,4925790,4919622,4919570,4919401";imageSets[3]="5223797,5223790,5194298,5194291,5194290,5176641,5173155,5173124,5040810,4983121,4982546,4981745,4981736,4977896,4977890,4977886,4977787,4977778,4976100,4973082,4973077,4973076,4973075,4973074,4972966,4972946,4972941,4971678,4971639,4971628,4971535,4971530,4932774,4932643,4932637,4932628,4932620,4932616,4932606,4932522,4932519,4932512,4932510,4926918,4926916,4926910,4926905,4926899,4926894,4925921";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/fionae/images";break}switch(a){case 1:b="http://www1.clikpic.com/fionae/images";break}switch(a){case 2:b="http://admin.clikpic.com/fionae/images";break}switch(a){case 24:b="http://tpc15/clikpic/fionae/images";break}switch(a){case 4:b="http://www.clikchurch.com/fionae/images";break}switch(a){case 5:b="http://www2.clikpic.com/fionae/images";break}switch(a){case 22:b="http://tpc5/clikpic/fionae/images";break}switch(a){case 23:b="http://tpc10/clikpic/fionae/images";break}switch(a){case 25:b="http://tpc16/clikpic/fionae/images";break}switch(a){case 15:b="http://www3.clikpic.com/fionae/images";break}switch(a){case 18:b="http://www4.clikpic.com/fionae/images";break}switch(a){case 19:b="http://www5.clikpic.com/fionae/images";break}switch(a){case 31:b="http://www7.clikpic.com/fionae/images";break}switch(a){case 32:b="http://admin2.clikpic.com/fionae/images";break}switch(a){case 33:b="http://www8.clikpic.com/fionae/images";break}switch(a){case 34:b="http://www9.clikpic.com/fionae/images";break}switch(a){case 35:b="http://admin3.clikpic.com/fionae/images";break}switch(a){case 37:b="http://admin4.clikpic.com/fionae/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="Fiona Exon Photography Prints: "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="FIONAE">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};