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[1577273]=new thumbnail(1577273,"107795","Across the Lake","Across The Lake_thumb.jpg",130,87,18);thumbnails[1577275]=new thumbnail(1577275,"107795","Bridesmaid","Bridesmaid_thumb.jpg",130,195,18);thumbnails[1577276]=new thumbnail(1577276,"107795","Brollies","Brollies_thumb.jpg",130,195,18);thumbnails[1577278]=new thumbnail(1577278,"107795","Confetti","Confetti_thumb.jpg",130,87,18);thumbnails[1577279]=new thumbnail(1577279,"107795","Bouquets","Flowers_thumb.jpg",130,87,18);thumbnails[1577281]=new thumbnail(1577281,"107795","Lake Side","Lakeside_thumb.jpg",130,195,18);thumbnails[1577282]=new thumbnail(1577282,"107795","Married","Married_thumb.jpg",130,87,18);thumbnails[1577284]=new thumbnail(1577284,"107795","A Perfect Day","Wedding Colour_thumb.jpg",130,87,18);thumbnails[1586277]=new thumbnail(1586277,"167873","Traction Engines","Traction Engines1_thumb.jpg",130,83,18);thumbnails[1586338]=new thumbnail(1586338,"107797","Over the Lake","Over The Lake1_thumb.jpg",130,88,18);thumbnails[1586453]=new thumbnail(1586453,"107793","Spring Windmill","lytham Windmill1_thumb.jpg",130,195,18);thumbnails[1586513]=new thumbnail(1586513,"107798","Lancaster Bomber","Lancaster Bomber1_thumb.jpg",130,87,18);thumbnails[1586586]=new thumbnail(1586586,"107794","Rain Forest","Rain Forest1_thumb.jpg",130,195,18);thumbnails[1586588]=new thumbnail(1586588,"107794","Poppy","poppy1_thumb.jpg",130,87,18);thumbnails[1586599]=new thumbnail(1586599,"107794","Bluebells","middleton wood1_thumb.jpg",130,87,18);thumbnails[1586633]=new thumbnail(1586633,"107794","Cotton Grass","Cotton Grass1_thumb.jpg",130,86,18);thumbnails[1586635]=new thumbnail(1586635,"107794","Falcon","Falcon1_thumb.jpg",130,84,18);thumbnails[1912053]=new thumbnail(1912053,"107793","Frosty Morning","amble pier a_thumb.jpg",130,87,18);thumbnails[1912059]=new thumbnail(1912059,"107798","Seen Better Days","Bedford Bus_thumb.jpg",130,87,18);thumbnails[1921793]=new thumbnail(1921793,"107798","Spitfire","spitfire1_thumb.jpg",130,87,18);thumbnails[2027010]=new thumbnail(2027010,"107793","Morning Glory","gras 4_thumb.jpg",130,85,18);thumbnails[2027028]=new thumbnail(2027028,"107794","Dandelion Clock","dandilion_thumb.jpg",130,87,18);thumbnails[2027029]=new thumbnail(2027029,"107797","Solitude","Limestone_thumb.jpg",130,84,18);thumbnails[2027030]=new thumbnail(2027030,"107798","Fire Fighter","Water Bomber_thumb.jpg",130,87,18);thumbnails[2027032]=new thumbnail(2027032,"107798","Remote Transport","sea plane_thumb.jpg",130,87,18);thumbnails[2027034]=new thumbnail(2027034,"167873","Old Timers","Traction Engine_thumb.jpg",130,87,18);thumbnails[2650354]=new thumbnail(2650354,"167873","Full Steam at Blea Moor","Blea Moor Princess Elizabeth_thumb.jpg",130,83,18);thumbnails[2650362]=new thumbnail(2650362,"167873","Scots Guardsman","Scots Guardsman_thumb.jpg",130,85,18);thumbnails[2650504]=new thumbnail(2650504,"107793","Winter Sunrise","Bam 3_thumb.jpg",130,87,18);thumbnails[3077889]=new thumbnail(3077889,"107793","A view across Hebden Bridge","Hebden Bridge Autumn_thumb.jpg",130,87,18);thumbnails[3087586]=new thumbnail(3087586,"107793","Water Colours","Autumn Lakes d_thumb.jpg",130,87,18);thumbnails[3096131]=new thumbnail(3096131,"107793","Rainbow Over Grasmere","Grasmere Rainbow_thumb.jpg",130,87,18);thumbnails[3096145]=new thumbnail(3096145,"107797","Stormy Skies","Ribblehead Viaduct bw_thumb.jpg",130,87,18);thumbnails[3096169]=new thumbnail(3096169,"167873","Sir Nigel Gresley","Gresley d_thumb.jpg",130,89,18);thumbnails[3096198]=new thumbnail(3096198,"167873","Duke of Gloucester","Duke of Gloucester North Yorks_thumb.jpg",130,84,18);thumbnails[3096200]=new thumbnail(3096200,"167873","Start of the Day","Worth Valley f_thumb.jpg",130,85,18);thumbnails[3315125]=new thumbnail(3315125,"107795","End of the Day","IMG_1705_thumb.jpg",130,184,18);thumbnails[3315132]=new thumbnail(3315132,"107795","Guest Book","IMG_1453_thumb.jpg",130,195,18);thumbnails[3315143]=new thumbnail(3315143,"107795","A Moment to Reflect on the Day","IMG_1720crop_thumb.jpg",130,98,18);thumbnails[3315145]=new thumbnail(3315145,"107795","Outside the Church","IMG_1589 (2) a_thumb.jpg",130,182,18);thumbnails[3315146]=new thumbnail(3315146,"107795","The Rings","IMG_1737_thumb.jpg",130,87,18);thumbnails[3322221]=new thumbnail(3322221,"107798","Mirror Image","IMG_1527a_thumb.jpg",130,88,18);thumbnails[3322378]=new thumbnail(3322378,"167873","Scots Guardsman","Scots Guardsman Hellifield_thumb..jpg",130,86,18);thumbnails[3330714]=new thumbnail(3330714,"167873","Stoking Up","haworth_thumb.jpg",130,87,18);thumbnails[3330718]=new thumbnail(3330718,"107794","Lunch Time","Sparrow Hawk_thumb.1.jpg",130,85,18);thumbnails[3330770]=new thumbnail(3330770,"167873","Steam at Helwith Bridge","Sir Lamiel_thumb.jpg",130,85,18);thumbnails[3339111]=new thumbnail(3339111,"167873","Steaming to Carlisle","Blea Moor Leander_thumb.jpg",130,85,18);thumbnails[3339114]=new thumbnail(3339114,"167873","Settle to Carlisle","Gresley b (2)_thumb.jpg",130,83,18);thumbnails[3339118]=new thumbnail(3339118,"107795","Bouquet","Flowers_1_thumb.jpg",130,164,18);thumbnails[3339584]=new thumbnail(3339584,"167873","On the Settle to Carlisle Line","Leander_thumb. Full steam at Blea Moor..jpg",130,87,18);thumbnails[3339586]=new thumbnail(3339586,"167873","Union of South Africa","Union b_thumb.jpg",130,88,18);thumbnails[3352099]=new thumbnail(3352099,"167873","Cotton Mill Express ","copypit double header a_thumb.jpg",130,81,18);thumbnails[3352105]=new thumbnail(3352105,"167873","Cotton Mill Express to Manchester","Cotton Mill Express_thumb..jpg",130,89,18);thumbnails[3352108]=new thumbnail(3352108,"167873","Duke of Gloucester","duke of Gloucester _thumb.jpg",130,85,18);thumbnails[3352113]=new thumbnail(3352113,"167873","Oiling Up","Oiling up_thumb.jpg",130,87,18);thumbnails[3352121]=new thumbnail(3352121,"167873","Princess Elizabeth","Princess Elizabeth_thumb. Hellifield..jpg",130,87,18);thumbnails[3352128]=new thumbnail(3352128,"167873","Filling up at Hellifield","Scots Guardsman Hellifield_thumb.jpg",130,87,18);thumbnails[3352134]=new thumbnail(3352134,"167873","Steaming through Skagway, Alaska","White Pass Railway a_thumb.jpg",130,89,18);thumbnails[3352226]=new thumbnail(3352226,"167873","Sir Nigel Gresley","Sir Nigel Gresley _thumb. Dent.jpg",130,79,18);thumbnails[3379823]=new thumbnail(3379823,"167873","Tornado Inaugural Run","Tornado a_thumb.jpg",130,85,18);thumbnails[4934284]=new thumbnail(4934284,"107793","Cockshott Point","Cockshot_Point_thumb.jpg",130,87,18);thumbnails[4934293]=new thumbnail(4934293,"107793","Tranquillity","IMG_3608_finished_thumb.jpg",130,87,18);thumbnails[4943136]=new thumbnail(4943136,"107793","Fishing Tackle","IMG_3787_Finished_thumb.jpg",130,87,18);thumbnails[4943189]=new thumbnail(4943189,"107793","Evening Light","IMG_3917_Finished_thumb.jpg",130,85,18);thumbnails[4943212]=new thumbnail(4943212,"107797","Big Sky","IMG_3925_Finished_thumb.jpg",130,87,18);thumbnails[4943253]=new thumbnail(4943253,"107797","Abandoned Hut","IMG_4002_Finished_thumb.jpg",130,85,18);thumbnails[4943277]=new thumbnail(4943277,"107794","Grazing Moose","IMG_4860_Finished_thumb.jpg",130,82,18);thumbnails[4943303]=new thumbnail(4943303,"107794","Melting Point","IMG_4734_Finished_thumb.jpg",130,85,18);thumbnails[4943307]=new thumbnail(4943307,"107794","Iceberg Alley","IMG_4737_Finished_thumb.jpg",130,196,18);thumbnails[4943323]=new thumbnail(4943323,"107798","Ballistic!","typhoon_thumb.jpg",130,157,18);thumbnails[4943697]=new thumbnail(4943697,"167873","Tornado","Tornado1_thumb.jpg",130,85,18);thumbnails[4993204]=new thumbnail(4993204,"107793","Drinking in the View","Haweswater_a_thumb.jpg",130,87,18);thumbnails[4993205]=new thumbnail(4993205,"107793","Reflections of Autumn","Haweswater_thumb.jpg",130,87,18);thumbnails[4993207]=new thumbnail(4993207,"107793","Autumn Mists","Rydal_Water_thumb.jpg",130,87,18);thumbnails[5177688]=new thumbnail(5177688,"167873","Leander","Leander_web_thumb.jpg",130,88,18);thumbnails[5850730]=new thumbnail(5850730,"107793","Lindisfarne Castle","Holy_island_thumb.jpg",130,87,18);thumbnails[5850740]=new thumbnail(5850740,"107793","Evening Light","Dunstanburgh_castle_thumb.jpg",130,86,18);thumbnails[5851010]=new thumbnail(5851010,"107793","Sunrise and Snowcapped Mountains","Bowness_thumb.jpg",130,201,18);thumbnails[6453442]=new thumbnail(6453442,"107793","Windermere Morning","Windermere_Morrning_thumb.jpg",130,85,18);thumbnails[6607439]=new thumbnail(6607439,"107793","Ploughboy 1901","1901_Morcambe_Prawner_a_thumb.jpg",130,85,18);thumbnails[6607448]=new thumbnail(6607448,"107798","Wreck","Good_hope_thumb.jpg",130,87,18);thumbnails[6607451]=new thumbnail(6607451,"107798","Hurricane","Hurricane_thumb.jpg",130,87,18);thumbnails[6607461]=new thumbnail(6607461,"107798","WWII Hurricane","IMG_6064b_thumb.jpg",130,83,18);thumbnails[6607467]=new thumbnail(6607467,"107798","Lancaster Bomber in Flight","Lanc_a_thumb.jpg",130,87,18);thumbnails[6607468]=new thumbnail(6607468,"107798","Diamond Nine","Red_2_thumb.jpg",130,87,18);thumbnails[6607470]=new thumbnail(6607470,"107798","Three of the Best","Red_3_thumb.jpg",130,87,18);thumbnails[6607471]=new thumbnail(6607471,"107798","Descending in Diamond Nine Formation","Reds_thumb.jpg",130,200,18);thumbnails[6607832]=new thumbnail(6607832,"107798","Flying High","Spitfire_thumb.jpg",130,84,18);thumbnails[6614028]=new thumbnail(6614028,"107797","Cadillac","Cadillac_thumb.jpg",130,87,18);thumbnails[6614038]=new thumbnail(6614038,"107797","Old Chrysler","Crysler_thumb.jpg",130,87,18);thumbnails[6614041]=new thumbnail(6614041,"107798","Flying the Flag","Chrysler_flag_thumb.jpg",130,199,18);thumbnails[6614048]=new thumbnail(6614048,"107798","Stand Down","Spitfire_pilots_thumb.jpg",130,87,18);thumbnails[6614073]=new thumbnail(6614073,"107793","Early Morning on the Water ","Sunrise_on_Bowness_Bay_thumb.jpg",130,85,18);thumbnails[6614107]=new thumbnail(6614107,"107793","Tranquill Reflections","Windermere2_thumb.jpg",130,85,18);thumbnails[6614113]=new thumbnail(6614113,"107798","Illumination Time","Old_Glory_thumb.jpg",130,87,18);thumbnails[6614128]=new thumbnail(6614128,"107793","Silent Winter's Morning","Gibson_Mill_thumb.jpg",130,85,18);thumbnails[6614135]=new thumbnail(6614135,"107794","Snowy Morning","IMG_2914_Finished_thumb.jpg",130,80,18);thumbnails[6614140]=new thumbnail(6614140,"107793","The Mists of Time","Hebden_Bridge_Mist_thumb.jpg",130,87,18);thumbnails[6614149]=new thumbnail(6614149,"107793","Morning Mist over the Lake","Lakes_thumb.jpg",130,87,18);thumbnails[6683753]=new thumbnail(6683753,"107793","Reflection of Winter","Windermere_Morning_thumb.jpg",130,87,18);var galleries=new Object();galleries[107797]=new gallery(107797,"6614038,6614028,4943253,4943212,3096145,2027029,1586338","Black and White","gallery",[1586338,2027029,3096145,4943212,4943253,6614028,6614038]);galleries[107793]=new gallery(107793,"6683753,6614149,6614140,6614128,6614107,6614073,6607439,6453442,5851010,5850740","Landscapes","gallery",[1586453,1912053,2027010,2650504,3077889,3087586,3096131,4934284,4934293,4943136,4943189,4993204,4993205,4993207,5850730,5850740,5851010,6453442,6607439,6614073,6614107,6614128,6614140,6614149,6683753]);galleries[107798]=new gallery(107798,"6614113,6614048,6614041,6607832,6607471,6607470,6607468,6607467,6607461,6607451","Miscellaneous","gallery",[1586513,1912059,1921793,2027030,2027032,3322221,4943323,6607448,6607451,6607461,6607467,6607468,6607470,6607471,6607832,6614041,6614048,6614113]);galleries[107794]=new gallery(107794,"6614135,4943307,4943303,4943277,3330718,2027028,1586635,1586633,1586599,1586588","Nature","gallery",[1586586,1586588,1586599,1586633,1586635,2027028,3330718,4943277,4943303,4943307,6614135]);galleries[167873]=new gallery(167873,"5177688,4943697,3379823,3352226,3352134,3352128,3352121,3352113,3352108,3352105","Steam","gallery",[1586277,2027034,2650354,2650362,3096169,3096198,3096200,3322378,3330714,3330770,3339111,3339114,3339584,3339586,3352099,3352105,3352108,3352113,3352121,3352128,3352134,3352226,3379823,4943697,5177688]);galleries[107795]=new gallery(107795,"3339118,3315146,3315145,3315143,3315132,3315125,1577284,1577282,1577281,1577279","Weddings","gallery",[1577273,1577275,1577276,1577278,1577279,1577281,1577282,1577284,3315125,3315132,3315143,3315145,3315146,3339118]);var imageSets=new Object();imageSets[1]="6683753";imageSets[3]="4943697,4943323,4943307,4943303,4943277,4943253,4943212,4943189,4943136,4934293,4934284,3379823,3352226,3352134,3352128,3352121,3352113,3352108,3352105,3352099,3339586,3339584,3339118,3339114,3339111,3330770,3330718,3330714,3322378,3322221,3315146,3315145,3315143";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/chrisogden/images";break}switch(a){case 1:b="http://www1.clikpic.com/chrisogden/images";break}switch(a){case 2:b="http://admin.clikpic.com/chrisogden/images";break}switch(a){case 24:b="http://tpc15/clikpic/chrisogden/images";break}switch(a){case 4:b="http://www.clikchurch.com/chrisogden/images";break}switch(a){case 5:b="http://www2.clikpic.com/chrisogden/images";break}switch(a){case 22:b="http://tpc5/clikpic/chrisogden/images";break}switch(a){case 23:b="http://tpc10/clikpic/chrisogden/images";break}switch(a){case 25:b="http://tpc16/clikpic/chrisogden/images";break}switch(a){case 15:b="http://www3.clikpic.com/chrisogden/images";break}switch(a){case 18:b="http://www4.clikpic.com/chrisogden/images";break}switch(a){case 19:b="http://www5.clikpic.com/chrisogden/images";break}switch(a){case 31:b="http://www7.clikpic.com/chrisogden/images";break}switch(a){case 32:b="http://admin2.clikpic.com/chrisogden/images";break}switch(a){case 33:b="http://www8.clikpic.com/chrisogden/images";break}switch(a){case 34:b="http://www9.clikpic.com/chrisogden/images";break}switch(a){case 35:b="http://admin3.clikpic.com/chrisogden/images";break}switch(a){case 37:b="http://admin4.clikpic.com/chrisogden/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="Chris Ogden 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="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="cphotos@tiscali.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="cphotos@tiscali.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(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+'")'})}}};