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[5523090]=new thumbnail(5523090,"213928","2010 Limited Edition Mouse Mats","livepreviewCAUA5XBQ_thumb.jpg",130,109,15);thumbnails[6297222]=new thumbnail(6297222,"213928","Climbing up from the North Pole","_MG_7942_3_4_Sq_A906787D-24E8-5EC4-4F5DFE93DCE70D80_thumb.jpg",130,126,15);thumbnails[6297257]=new thumbnail(6297257,"213928",'Misty Afternoon over "The Garden of Eden"',"_MG_9248_6_7_Square_A90C9AF4-24E8-5EC4-4F08B7750AAA22AC_thumb.jpg",130,135,15);thumbnails[6297383]=new thumbnail(6297383,"213928","Fallow Deer at Nutley, near the Marlpits","_MG_9389_A924EDC2-24E8-5EC4-4FFE72D2577387CE_thumb.jpg",130,87,15);thumbnails[6297435]=new thumbnail(6297435,"213928","A Special Light at The Mill Stream, Crowbrough Warren","_MG_9564_2_3_noframe_A92DD2D7-24E8-5EC4-4F9C7BB99CE313FC_thumb.jpg",130,86,15);thumbnails[5685988]=new thumbnail(5685988,"213928","Book: Glimpses of the Forest","Front_Cover_thumb.jpg",130,108,15);thumbnails[4981642]=new thumbnail(4981642,"213928","Christmas Greeting Card","FC_Snow_thumb.jpg",130,87,15);thumbnails[3497342]=new thumbnail(3497342,"213928","Greetings Card: Ellison's Pond Late Afternoon, Ashdown Forest","Ellisons_Pond_2_thumb.jpg",130,87,15);thumbnails[5826031]=new thumbnail(5826031,"312785","In the cherry blossom's shade","Cherry_Blossom_thumb.jpg",130,87,15);thumbnails[4218782]=new thumbnail(4218782,"204196","Normanston Church, Rutland Water","Normanston_Church_thumb.jpg",130,87,15);thumbnails[3797114]=new thumbnail(3797114,"204196","Sgwd Y Eira Waterfall","Sgwd_Y_Eira_thumb.jpg",130,87,15);thumbnails[3361720]=new thumbnail(3361720,"204196","Early Morning at Roseberry Topping","rose_topp2_thumb.jpg",130,87,15);thumbnails[3366458]=new thumbnail(3366458,"204196","Autumn Leaves","Sheff_P_Leaves_thumb.jpg",130,87,15);thumbnails[3361673]=new thumbnail(3361673,"204196","Whitby May Morning","whitby1_May08_thumb.jpg",130,87,15);thumbnails[3366835]=new thumbnail(3366835,"204196","Late night bridge","Middlebridge_thumb.jpg",130,87,15);thumbnails[4008569]=new thumbnail(4008569,"204196","Running along the beach","Run_Beach_thumb.jpg",130,75,15);thumbnails[4725758]=new thumbnail(4725758,"204196","Last of the Summer Surfing","Croyde_Beach1_thumb.jpg",130,87,15);thumbnails[4725790]=new thumbnail(4725790,"204196","On finding the sea","Croyde_Beach2_thumb.jpg",130,193,15);thumbnails[4725827]=new thumbnail(4725827,"204196","Sandsend Beach, Nr Whitby, North Yorkshire","sandsend_thumb.jpg",130,197,15);thumbnails[5631998]=new thumbnail(5631998,"204196","High Force Waterfall, River Tees, County Durham","High_Force_thumb.jpg",130,83,15);thumbnails[3361645]=new thumbnail(3361645,"204196","Roseberry Topping - December's Morn","rose_topp1_thumb.jpg",130,149,15);thumbnails[3367404]=new thumbnail(3367404,"204196","Whitby early May morning","Whitby2_May08_thumb.jpg",130,195,15);thumbnails[5044285]=new thumbnail(5044285,"285448","London Eye","_MG_8239_thumb.jpg",130,124,15);thumbnails[5044293]=new thumbnail(5044293,"285448","Walking across the Millenium Bridge","_MG_8172_thumb.jpg",130,114,15);thumbnails[5044326]=new thumbnail(5044326,"285448","The Millenium Bridge, London","_MG_8175_6_7_thumb.jpg",130,130,15);thumbnails[5044339]=new thumbnail(5044339,"285448","Autumn Leaves on South Bank, London","_MG_8204_2_3_thumb.jpg",130,148,15);thumbnails[5044342]=new thumbnail(5044342,"285448","Art or Anger?","_MG_8218_19_20_thumb.jpg",130,111,15);thumbnails[5334476]=new thumbnail(5334476,"204197","Orange Jelly Fungi, Ashdown Forest, East Sussex","Jelly_Fungi_thumb.jpg",130,91,15);thumbnails[5334453]=new thumbnail(5334453,"204197","Mushrooms and dew, Fairwarp, Sussex","_MG_8411_nof_thumb.jpg",130,87,15);thumbnails[5334418]=new thumbnail(5334418,"204197","Shaggy Ink Cap Mushroom","Shaggy_inkcap_thumb.jpg",130,87,15);thumbnails[3914839]=new thumbnail(3914839,"204197","Pair of Puffins","Pair_Puffin_thumb.jpg",130,145,15);thumbnails[3914884]=new thumbnail(3914884,"204197","Puffin portrait","Puffin3_thumb.jpg",130,87,15);thumbnails[3914890]=new thumbnail(3914890,"204197","Shag nesting on Farne","Shag3_thumb.jpg",130,87,15);thumbnails[3963451]=new thumbnail(3963451,"204197","In flight entertainment, Inner Farne, Northumberland","Artic_tern2_thumb.jpg",130,86,15);thumbnails[3392319]=new thumbnail(3392319,"204197","Two Love Birds","IMG_5567_thumb.jpg",130,87,15);thumbnails[5431154]=new thumbnail(5431154,"240140","Sunset over Cuckmere Haven, Sussex","Cuckmere_Haven2_thumb.jpg",130,84,15);thumbnails[5453544]=new thumbnail(5453544,"240140","Seven Sister Number 1","Seven_sis1_9339221C-2219-B5B5-4C4E9249A6EEF6CC_thumb.jpg",130,86,15);thumbnails[4153176]=new thumbnail(4153176,"240140","Path to Firle Beacon","Path_Poppies_thumb.jpg",130,128,15);thumbnails[4134547]=new thumbnail(4134547,"240140","Under the Pier, Hastings, Sussex","Hastings_Pier_thumb.jpg",130,130,15);thumbnails[4084228]=new thumbnail(4084228,"240140","Beachy Head from a Seven Sister","Beachy_head_7Sister_thumb.jpg",130,138,15);thumbnails[4220085]=new thumbnail(4220085,"240140","Pier at Sunset, Eastbourne, Sussex","Eastbourne_Pier_thumb.jpg",130,86,15);thumbnails[4008558]=new thumbnail(4008558,"240140","Windmill, Sandhurst, Kent","Sandhurst_Windmill1_thumb.jpg",130,87,15);thumbnails[3996009]=new thumbnail(3996009,"240140","Battle Abbey Evening Sunshine, Battle, Sussex","Battle_Abbey_thumb.jpg",130,113,15);thumbnails[3957983]=new thumbnail(3957983,"240140","Early Morning, Beachy Head Lighthouse, Sussex","Beachy_Head_light_thumb.jpg",130,83,15);thumbnails[3958011]=new thumbnail(3958011,"240140","Dusk Cuckmere Haven, Seven Sisters, Sussex","Cuckmere_Haven_thumb.jpg",130,87,15);thumbnails[3366641]=new thumbnail(3366641,"240140","Autumn Shines","Sheff_Park1_thumb.jpg",130,87,15);thumbnails[5453383]=new thumbnail(5453383,"240140","Cross the bridge to castle","Bodiam2_thumb.jpg",130,88,15);thumbnails[4065944]=new thumbnail(4065944,"240140","Reflections in the mote at Herstmonceux Castle, Sussex","Herstmonceaux_Castle_thumb.jpg",130,87,15);thumbnails[4725751]=new thumbnail(4725751,"240140","The Best of Summer","Firle_Poppies_thumb.jpg",130,84,15);thumbnails[4065965]=new thumbnail(4065965,"240140","Old Boat at Rest, Dungeness Beach, Kent","Old_Boat_Dungeness_thumb.jpg",130,195,15);thumbnails[3362715]=new thumbnail(3362715,"240140","Seven Sisters at Birling Gap","seven_sis1_thumb.jpg",130,195,15);thumbnails[3984674]=new thumbnail(3984674,"240140","The path to the Long Man, Wilmington, Sussex","LM_Wilmington2_thumb.jpg",130,163,15);thumbnails[3839920]=new thumbnail(3839920,"240140","Fishing Net Huts at the Stade, Hastings","Fish_Huts_thumb.jpg",130,166,15);thumbnails[4220283]=new thumbnail(4220283,"240140","Lights on the Pier, Eastbourne, Sussex","Eastbourne_Pier_Lights_thumb.jpg",130,202,15);thumbnails[5522058]=new thumbnail(5522058,"215763","Misty morning at the old mill stream","_MG_9564_2_3_noframe_thumb.jpg",130,86,15);thumbnails[5521728]=new thumbnail(5521728,"215763","Who are you looking at?","_MG_9389_thumb.jpg",130,87,15);thumbnails[5648679]=new thumbnail(5648679,"215763","Misty Saturday in Winter, Ashdown Forest","_MG_9248_6_7_Square_thumb.jpg",130,135,15);thumbnails[5341060]=new thumbnail(5341060,"215763","Golden Light of Winter","_MG_9044_thumb.jpg",130,154,15);thumbnails[5341261]=new thumbnail(5341261,"215763","Christ Church Fairwarp bathed in golden light","_MG_9050_thumb.jpg",130,87,15);thumbnails[5334349]=new thumbnail(5334349,"215763","Snow over Kings Standing, Ashdown Forest, Sussex","_MG_8711_09_10_tonemapped_thumb.jpg",130,86,15);thumbnails[5334364]=new thumbnail(5334364,"215763","Locals huddle in the snow, Ashdown Forest, Sussex","_MG_8743_2_crop_thumb.jpg",130,81,15);thumbnails[5003224]=new thumbnail(5003224,"215763","Autumn Skies at Ridgeway","_MG_8058_6_7_Frame_thumb.jpg",130,115,15);thumbnails[5003239]=new thumbnail(5003239,"215763","Autumn in Five Hundred Acre Wood","_MG_7953_1_2_Frame_thumb.jpg",130,130,15);thumbnails[3525848]=new thumbnail(3525848,"215763","Nutley Windmill Early March Ashdown Forest","Nutley_Windmill_thumb.jpg",130,87,15);thumbnails[3641966]=new thumbnail(3641966,"215763","Early Morning at Pooh Bridge ","Pooh_Bridge_1_thumb.jpg",130,95,15);thumbnails[5003336]=new thumbnail(5003336,"215763","The Enchanted Place","_MG_8024_9CE8A472-1D09-001F-99DF470001AE49D0_thumb.jpg",130,195,15);thumbnails[5194021]=new thumbnail(5194021,"215763","Path to 500 Hundred Acre Wood","_MG_7942_3_4_Sq_thumb.jpg",130,126,15);thumbnails[3840440]=new thumbnail(3840440,"215763","Bluebells at Newbridge, Ashdown Forest","Bluebell_Newbridge_thumb.jpg",130,195,15);thumbnails[3628164]=new thumbnail(3628164,"215763","A Forest Path, Chelwood Gate, Ashdown Forest","Forest_Path_thumb.jpg",130,131,15);thumbnails[3525833]=new thumbnail(3525833,"215763","Pine Trees late afternoon Ashdown Forest","Pine_Trees_GLap_thumb.jpg",130,164,15);thumbnails[3920151]=new thumbnail(3920151,"237659","Early May morning at Dunstanburgh Castle","Dunstanb_Castle21_thumb.jpg",130,87,15);thumbnails[3936607]=new thumbnail(3936607,"237659","Reflections, Beadnell Harbour, Northumberland","Beadnell_Harbour_thumb.jpg",130,126,15);thumbnails[3361861]=new thumbnail(3361861,"237659","Just before the storm. ","Bamb_Castle1_thumb.jpg",130,72,15);thumbnails[3452938]=new thumbnail(3452938,"237659","Dunstanburgh Castle from the bay","Dunstanb_Castle2_thumb.jpg",130,83,15);thumbnails[3914931]=new thumbnail(3914931,"237659","Door and Dovecote at Alnwick Garden","Alnwick_Gdn_door_thumb.jpg",130,195,15);thumbnails[3914967]=new thumbnail(3914967,"237659","Main Cascade of fountains","Alnwick_Gdn_fountain_thumb.jpg",130,197,15);thumbnails[3936134]=new thumbnail(3936134,"237659","Early morning, Bamburgh Castle, Northumberland","Bamb_Castle21_thumb.jpg",130,194,15);thumbnails[3920140]=new thumbnail(3920140,"237659","Beadnell Harbour at Sunset","Beadnell_Harbour_sunset_thumb.jpg",130,195,15);thumbnails[3362566]=new thumbnail(3362566,"237659","Afternoon at Lindisfarne","Lindis_cast2_thumb.jpg",130,195,15);thumbnails[3361779]=new thumbnail(3361779,"237659","Early am at Lindisfarne","Lindis_cast1_thumb.jpg",130,195,15);thumbnails[5799220]=new thumbnail(5799220,"223665","A Life of Beauty, Camelia Flower","_MG_9867_thumb.jpg",130,87,15);thumbnails[5631967]=new thumbnail(5631967,"223665","Signs of Spring - Blue","Blue_Iris_thumb.jpg",130,130,15);thumbnails[5202719]=new thumbnail(5202719,"223665","The last rose of summer","Frozen_Rose_thumb.jpg",130,87,15);thumbnails[5202727]=new thumbnail(5202727,"223665","Sedum Seedhead, Wakehurst Place, Sussex","Sedum_Seed_thumb.jpg",130,87,15);thumbnails[4084222]=new thumbnail(4084222,"223665","Oxeye Daisy in Sunshine","Ox_eye2_thumb.jpg",130,156,15);thumbnails[4066500]=new thumbnail(4066500,"223665","Field of Chives, Sussex","Field_Chives_thumb.jpg",130,87,15);thumbnails[3662151]=new thumbnail(3662151,"223665","Hellebore","_MG_8173_thumb.jpg",130,87,15);thumbnails[3662418]=new thumbnail(3662418,"223665","Hellobore #2","_MG_8261_thumb.jpg",130,87,15);thumbnails[3662753]=new thumbnail(3662753,"223665","Astrantia Major - opening time","Opening_Astrantia_thumb.jpg",130,136,15);thumbnails[4725551]=new thumbnail(4725551,"223665","Hairs standing on end","Globe_Artichoke_thumb.jpg",130,85,15);thumbnails[4725798]=new thumbnail(4725798,"223665","Michaelmas Daisy","Michealmas_Daisy_thumb.jpg",130,84,15);thumbnails[3662372]=new thumbnail(3662372,"223665","Trio of Frittalaria Flowers","_MG_8209_thumb.jpg",130,195,15);thumbnails[4085234]=new thumbnail(4085234,"223665","Pink Frittalaria","Fritallaria_2_thumb.jpg",130,195,15);thumbnails[5334504]=new thumbnail(5334504,"205304","Winter Bough, Cherry Tree wighed down with snow","_MG_8772_thumb.jpg",130,87,15);thumbnails[3364853]=new thumbnail(3364853,"205304","Painted Sleepers","Sleepers_thumb.jpg",130,87,15);thumbnails[4066467]=new thumbnail(4066467,"205304","An old dinosaur?","Beach_Fence_thumb.jpg",130,87,15);thumbnails[4725769]=new thumbnail(4725769,"205304","White Horse, Ashdown Forest, Sussex","Horse_Portrait_thumb.jpg",130,194,15);thumbnails[3920136]=new thumbnail(3920136,"205304","Beach Sculture Embleton Bay","Sculpture_embleton_thumb.jpg",130,195,15);var galleries=new Object();galleries[213928]=new gallery(213928,"3497342","Cards and Gifts","section262952",[5523090,6297222,6297257,6297383,6297435,5685988,4981642,3497342]);galleries[312785]=new gallery(312785,"5826031","Latest Additions","gallery",[5826031]);galleries[204196]=new gallery(204196,"4008569,3361673","Landscapes","gallery",[4218782,3797114,3361720,3366458,3361673,3366835,4008569,4725758,4725790,4725827,5631998,3361645,3367404]);galleries[285448]=new gallery(285448,"5044342,5044339,5044326,5044293,5044285","London","gallery",[5044285,5044293,5044326,5044339,5044342]);galleries[204197]=new gallery(204197,"3914839","Flora and Fauna","gallery",[5334476,5334453,5334418,3914839,3914884,3914890,3963451,3392319]);galleries[240140]=new gallery(240140,"4084228","Sussex and Kent","gallery",[5431154,5453544,4153176,4134547,4084228,4220085,4008558,3996009,3957983,3958011,3366641,5453383,4065944,4725751,4065965,3362715,3984674,3839920,4220283]);galleries[215763]=new gallery(215763,"3628164","Ashdown Forest","gallery",[5522058,5521728,5648679,5341060,5341261,5334349,5334364,5003224,5003239,3525848,3641966,5003336,5194021,3840440,3628164,3525833]);galleries[237659]=new gallery(237659,"3920151","Northumberland","gallery",[3920151,3936607,3361861,3452938,3914931,3914967,3936134,3920140,3362566,3361779]);galleries[223665]=new gallery(223665,"4725551,4084222","Wild and Garden Flowers","gallery",[5799220,5631967,5202719,5202727,4084222,4066500,3662151,3662418,3662753,4725551,4725798,3662372,4085234]);galleries[205304]=new gallery(205304,"4066467,3920136","Miscellaneous","gallery",[5334504,3364853,4066467,4725769,3920136]);var imageSets=new Object();imageSets[1]="4725751,4218782,3914839,3797114,3361720";imageSets[2]="4725551,4084228,4084222,4066467,4008569,3920151,3920136,3914839,3628164,3497342,3361673";imageSets[3]="6297435,6297383,6297257,6297222,5826031,5799220,5685988,5648679,5631998,5631967,5523090,5522058,5521728,5453544,5453383,5431154,5341261,5341060,5334504,5334476,5334453,5334418,5334364,5334349,5202727,5202719,5194021,5044342,5044339,5044326,5044293,5044285,5003336,5003239,5003224,4981642,4725827,4725798,4725790,4725769,4725758,4725751,4725551,4220283,4220085,4218782,4153176,4134547,4085234,4084228";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/cgwmvr/images";break}switch(a){case 1:b="http://www1.clikpic.com/cgwmvr/images";break}switch(a){case 2:b="http://admin.clikpic.com/cgwmvr/images";break}switch(a){case 24:b="http://tpc15/clikpic/cgwmvr/images";break}switch(a){case 4:b="http://www.clikchurch.com/cgwmvr/images";break}switch(a){case 5:b="http://www2.clikpic.com/cgwmvr/images";break}switch(a){case 22:b="http://tpc5/clikpic/cgwmvr/images";break}switch(a){case 23:b="http://tpc10/clikpic/cgwmvr/images";break}switch(a){case 25:b="http://tpc16/clikpic/cgwmvr/images";break}switch(a){case 15:b="http://www3.clikpic.com/cgwmvr/images";break}switch(a){case 18:b="http://www4.clikpic.com/cgwmvr/images";break}switch(a){case 19:b="http://www5.clikpic.com/cgwmvr/images";break}switch(a){case 31:b="http://www7.clikpic.com/cgwmvr/images";break}switch(a){case 32:b="http://admin2.clikpic.com/cgwmvr/images";break}switch(a){case 33:b="http://www8.clikpic.com/cgwmvr/images";break}switch(a){case 34:b="http://www9.clikpic.com/cgwmvr/images";break}switch(a){case 35:b="http://admin3.clikpic.com/cgwmvr/images";break}switch(a){case 37:b="http://admin4.clikpic.com/cgwmvr/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="'+escape(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="Craig G Williams 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;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="CGWMVR">';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+'")'})}}};