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[4752201]=new thumbnail(4752201,"","","pic_n_mix__thumb.jpg",130,121,5);thumbnails[4962483]=new thumbnail(4962483,"","","Headlines72dpi_thumb.jpg",130,92,5);thumbnails[5040255]=new thumbnail(5040255,"","","Ledbury_banner_72dpi_thumb.jpg",130,92,5);thumbnails[5270774]=new thumbnail(5270774,"","","Happy_Christmas_22_thumb.jpg",130,130,5);thumbnails[5392941]=new thumbnail(5392941,"","","_20090627-IMG_1144_thumb.jpg",130,87,5);thumbnails[5392973]=new thumbnail(5392973,"","","20091126-IMG_3727_thumb.jpg",130,87,5);thumbnails[5835582]=new thumbnail(5835582,"","","Hompage_image_Staffs-based_project_offer_thumb.jpg",130,87,5);thumbnails[3629953]=new thumbnail(3629953,"","Desert Wind","IMG_0444_copy1_thumb.jpg",130,195,5);thumbnails[3629967]=new thumbnail(3629967,"","Cold Desert Waters","IMG_90341_thumb.jpg",130,195,5);thumbnails[3629968]=new thumbnail(3629968,"","Herod's Sky","IMG_Isra01611_thumb.jpg",130,195,5);thumbnails[3629951]=new thumbnail(3629951,"","Storm over the Canyon","GC_11_thumb.jpg",130,215,5);thumbnails[3629959]=new thumbnail(3629959,"","Awesome George","IMG_30681_thumb.jpg",130,87,5);thumbnails[3629954]=new thumbnail(3629954,"","Laid Back","IMG_19031_thumb.jpg",130,87,5);thumbnails[3629964]=new thumbnail(3629964,"","Hello!","IMG_75751_thumb.jpg",130,87,5);thumbnails[3629965]=new thumbnail(3629965,"","Love in the Leaves","IMG_7771_thumb.jpg",130,87,5);thumbnails[3629961]=new thumbnail(3629961,"","Majestic Grasses","IMG_6048_thumb.jpg",130,195,5);thumbnails[3629956]=new thumbnail(3629956,"","Rockpools","IMG_22061_thumb.jpg",130,195,5);thumbnails[3629955]=new thumbnail(3629955,"","Dawn on the Amazon","IMG_19061_thumb.jpg",130,195,5);thumbnails[3629958]=new thumbnail(3629958,"","Lovegulls","IMG_23661_thumb.jpg",130,195,5);thumbnails[3629970]=new thumbnail(3629970,"","Dood Iguana","Marien_Ig_41_thumb.jpg",130,195,5);thumbnails[3629957]=new thumbnail(3629957,"","Just Fishing","IMG_23351_thumb.jpg",130,195,5);thumbnails[3629960]=new thumbnail(3629960,"","Inquisitive Cow","IMG_45501_thumb.jpg",130,195,5);thumbnails[3629966]=new thumbnail(3629966,"","Headache","IMG_77751_thumb.jpg",130,195,5);thumbnails[3629969]=new thumbnail(3629969,"","Mountains Fade Away","IMG_Isra02591_thumb.jpg",130,87,5);thumbnails[3629962]=new thumbnail(3629962,"","Cacti Over the Salar","IMG_65501_thumb.jpg",130,86,5);thumbnails[3629963]=new thumbnail(3629963,"","Sunbathed","IMG_75611_thumb.jpg",130,87,5);thumbnails[3629952]=new thumbnail(3629952,"","Stormlight","GC_231_thumb.jpg",130,87,5);thumbnails[3629980]=new thumbnail(3629980,""," Altiplano Waters","IMG_90371_thumb.jpg",130,87,5);thumbnails[3629975]=new thumbnail(3629975,"","Golden Lake","Golden_Lake11_thumb.jpg",130,86,5);thumbnails[3629977]=new thumbnail(3629977,"","Sky over the Manuripi","IMG_8572_thumb.jpg",130,87,5);thumbnails[3629976]=new thumbnail(3629976,"","Passing Fields","IMG_47431_thumb.jpg",130,85,5);thumbnails[3629979]=new thumbnail(3629979,"","Sun Through the Geysers","IMG_89771_thumb.jpg",130,87,5);thumbnails[3629978]=new thumbnail(3629978,"","Sunshine on the Planes","IMG_86351_thumb.jpg",130,87,5);thumbnails[3629974]=new thumbnail(3629974,"","Aerobatics","DSC_03131_thumb.jpg",130,87,5);thumbnails[3629981]=new thumbnail(3629981,"","Cuddling Iguanas","Marine_Ig_51_thumb.jpg",130,103,5);thumbnails[3629982]=new thumbnail(3629982,"","Sleepy Sea Lion","Sea_Lion_51_thumb.jpg",130,111,5);thumbnails[3629983]=new thumbnail(3629983,"","Table Frog","Tree_frog_21_thumb.jpg",130,124,5);thumbnails[3742881]=new thumbnail(3742881,""," ","CB_Logo2WEBversion_thumb.jpg",130,45,5);thumbnails[3605138]=new thumbnail(3605138,"187851","The Boy and the Ball","20090216-IMG_09961_thumb.jpg",130,87,5);thumbnails[3605219]=new thumbnail(3605219,"187851","Tea and a Bun","20090210-IMG_65151_thumb.jpg",130,87,5);thumbnails[3605221]=new thumbnail(3605221,"187851","Underground","20090217-IMG_12631_thumb.jpg",130,87,5);thumbnails[3605222]=new thumbnail(3605222,"187851","A New Home","20090221-IMG_1934_thumb.jpg",130,87,5);thumbnails[3605139]=new thumbnail(3605139,"187851","Short Cut If You Dare","20090217-IMG_12601_thumb.jpg",130,195,5);thumbnails[3605137]=new thumbnail(3605137,"187851","Watching","20090210-IMG_07571_thumb.jpg",130,195,5);thumbnails[3605144]=new thumbnail(3605144,"187851","Never to Meet","IMG_09471_thumb.jpg",130,195,5);thumbnails[3605142]=new thumbnail(3605142,"187851","Salute to the Empire","20090304-IMG_36471_thumb.jpg",130,195,5);thumbnails[3605145]=new thumbnail(3605145,"187851","Pride of Israel","IMG_Isra99401_thumb.jpg",130,87,5);thumbnails[3605218]=new thumbnail(3605218,"187851","Monument to God","20090210-IMG_64401_thumb.jpg",130,87,5);thumbnails[3605224]=new thumbnail(3605224,"187851","Skateboard Trough to Hospital","20090304-IMG_8575_thumb.jpg",130,87,5);thumbnails[3605223]=new thumbnail(3605223,"187851","On the Edge of Fun","20090304-IMG_8308_thumb.jpg",130,86,5);thumbnails[3605220]=new thumbnail(3605220,"187851","Abstract Football","20090210-IMG_66582_thumb.jpg",130,87,5);thumbnails[3605140]=new thumbnail(3605140,"187851","Loan Shark","20090221-IMG_17081_thumb.jpg",130,87,5);thumbnails[3605141]=new thumbnail(3605141,"187851","Trees in the Evening Light","20090226-IMG_30491_thumb.jpg",130,87,5);thumbnails[3605241]=new thumbnail(3605241,"187851","Almost Forgotten","IMG_07531_thumb.jpg",130,84,5);thumbnails[3605240]=new thumbnail(3605240,"187851","Romanian Curiosity","20090225-IMG_26841_thumb.jpg",130,87,5);thumbnails[3605238]=new thumbnail(3605238,"187851","Jodie's Landing","20090221-IMG_19431_thumb.jpg",130,87,5);thumbnails[3605239]=new thumbnail(3605239,"187851","Location, location, location","20090221-IMG_19451_thumb.jpg",130,87,5);thumbnails[3605237]=new thumbnail(3605237,"187851","Streets in the Sky","20090210-IMG_64391_thumb.jpg",130,87,5);thumbnails[3605255]=new thumbnail(3605255,"187851","Community Safety","IMG_01981_thumb.jpg",130,87,5);thumbnails[3605258]=new thumbnail(3605258,"187851","Palestinians in Peace","IMG_Isra9985-31_thumb.jpg",130,87,5);thumbnails[3605254]=new thumbnail(3605254,"187851","Israeli Sardines","IMG_00591_thumb.jpg",130,87,5);thumbnails[3605257]=new thumbnail(3605257,"187851","Coventry Chambers","IMG_02261_thumb.jpg",130,87,5);thumbnails[3605275]=new thumbnail(3605275,"187851","Where I Live","20090217-IMG_15441_thumb.jpg",130,195,5);thumbnails[3605276]=new thumbnail(3605276,"187851","My Home","20090217-IMG_15451_thumb.jpg",130,195,5);thumbnails[3605283]=new thumbnail(3605283,"187851","Flying High","20090304-IMG_83931_thumb.jpg",130,195,5);thumbnails[3605256]=new thumbnail(3605256,"187851","Love in a Gate","IMG_02201_thumb.jpg",130,87,5);thumbnails[3605277]=new thumbnail(3605277,"187851","Safe and Sound","20090221-IMG_17491_thumb.jpg",130,87,5);thumbnails[3605282]=new thumbnail(3605282,"187851","TV on Reflection","20090304-IMG_37481_thumb.jpg",130,90,5);thumbnails[3605883]=new thumbnail(3605883,"184779","Street Life","IMG_984511_thumb.jpg",130,87,5);thumbnails[3605881]=new thumbnail(3605881,"184779","The Lady of Autochthon","IMG_45191_thumb.jpg",130,87,5);thumbnails[3605879]=new thumbnail(3605879,"184779","A Bit of Leg","IMG_0219-31_thumb.jpg",130,87,5);thumbnails[3605876]=new thumbnail(3605876,"184779","A Pound a Kilo","IMG_0195-3_thumb.jpg",130,87,5);thumbnails[3605877]=new thumbnail(3605877,"184779","Fresh Today Madam!","IMG_0196-21_thumb.jpg",130,87,5);thumbnails[3605878]=new thumbnail(3605878,"184779","Market Life","IMG_019811_thumb.jpg",130,87,5);thumbnails[3605882]=new thumbnail(3605882,"184779","Off to The Shops","IMG_86641_thumb.jpg",130,87,5);thumbnails[3606880]=new thumbnail(3606880,"184779","The Sign Writers","IMG_4790_thumb.jpg",130,86,5);thumbnails[3605880]=new thumbnail(3605880,"184779","Cafe Colombia","IMG_08931_thumb.jpg",130,87,5);thumbnails[3605884]=new thumbnail(3605884,"184779","Girls About Town","IMG_9846_thumb.jpg",130,87,5);thumbnails[3605885]=new thumbnail(3605885,"184779","Flash-past Parking","IMG_985211_thumb.jpg",130,87,5);thumbnails[3605916]=new thumbnail(3605916,"184779","Permanent Parking","IMG_9690111_thumb.jpg",130,87,5);thumbnails[3605912]=new thumbnail(3605912,"184779","Hands and Faces","IMG_4544-21_thumb.jpg",130,195,5);thumbnails[3605982]=new thumbnail(3605982,"184779","Kitchens of Distinction","IMG_89241_thumb.jpg",130,195,5);thumbnails[3605981]=new thumbnail(3605981,"184779","At the Spring","IMG_8839_thumb.jpg",130,195,5);thumbnails[3605983]=new thumbnail(3605983,"184779","Mummy","IMG_95611_thumb.jpg",130,195,5);thumbnails[3605911]=new thumbnail(3605911,"184779","Dancing Ponchos","IMG_454211_thumb.jpg",130,87,5);thumbnails[3605909]=new thumbnail(3605909,"184779","The Hand of Chile","CardTwo_2521_thumb.jpg",130,87,5);thumbnails[3605910]=new thumbnail(3605910,"184779","Reflections on a Summer Sea.","IMG_04301_thumb.jpg",130,86,5);thumbnails[3605917]=new thumbnail(3605917,"184779","Ascention","IMG_Isra00081_thumb.jpg",130,87,5);thumbnails[3605984]=new thumbnail(3605984,"184779","The Arches of Vilia de Leyva  ","Vilia_de_Leyva_arches11_sepia1_thumb.jpg",130,195,5);thumbnails[3605977]=new thumbnail(3605977,"184779","Eclipse of the Sun.","IMG_05811_thumb.jpg",130,195,5);thumbnails[3605976]=new thumbnail(3605976,"184779","Mooring in the Tatora Reeds","IMG_045311_thumb.jpg",130,195,5);thumbnails[3605978]=new thumbnail(3605978,"184779","Blue & Oranges","IMG_589711_thumb.jpg",130,195,5);thumbnails[3605980]=new thumbnail(3605980,"184779","Silent Sisters","IMG_8289_thumb.jpg",130,87,5);thumbnails[3605979]=new thumbnail(3605979,"184779","Happy Hugo","IMG_8228_thumb.jpg",130,87,5);thumbnails[3605918]=new thumbnail(3605918,"184779","Vilia de Leyva Plaza","Vilia_de_Leyva_sepia11_thumb.jpg",130,88,5);thumbnails[3606836]=new thumbnail(3606836,"184779","The Sacred Salinas","IMG_97621_copy1_thumb.jpg",130,86,5);thumbnails[3626415]=new thumbnail(3626415,"184780","The Camp","IMG_2148_thumb.jpg",130,87,5);thumbnails[3626410]=new thumbnail(3626410,"184780","Fireside on Isla del Sol","IMG_041911_thumb.jpg",130,87,5);thumbnails[3626409]=new thumbnail(3626409,"184780","One Man & His Boat","IMG_03801_thumb.jpg",130,87,5);thumbnails[3626421]=new thumbnail(3626421,"184780","Setting Off","IMG_8295_thumb.jpg",130,84,5);thumbnails[3626419]=new thumbnail(3626419,"184780","Overland Solutions","IMG_48161_thumb.jpg",130,175,5);thumbnails[3626425]=new thumbnail(3626425,"184780","Swamp Crossing","IMG_940811_thumb.jpg",130,195,5);thumbnails[3626423]=new thumbnail(3626423,"184780","Solar Power, Paddle Power","IMG_855811_thumb.jpg",130,195,5);thumbnails[3626422]=new thumbnail(3626422,"184780","Spotted","IMG_83651_thumb.jpg",130,195,5);thumbnails[3626426]=new thumbnail(3626426,"184780","Morning Mooring","IMG_944711_thumb.jpg",130,87,5);thumbnails[3626427]=new thumbnail(3626427,"184780","Where to Now?","IMG_949111_thumb.jpg",130,87,5);thumbnails[3626413]=new thumbnail(3626413,"184780","Look at me!","IMG_19361_thumb.jpg",130,87,5);thumbnails[3626420]=new thumbnail(3626420,"184780","Snugpak in a Hammock","IMG_76911_thumb.jpg",130,87,5);thumbnails[3626424]=new thumbnail(3626424,"184780","Hammocks in the Meat Store","IMG_896011_thumb.jpg",130,87,5);thumbnails[3626416]=new thumbnail(3626416,"184780","Capturing the Dawn","IMG_385911_thumb.jpg",130,87,5);thumbnails[3626411]=new thumbnail(3626411,"184780","Moving Through the Tatora Reeds","IMG_05111_thumb.jpg",130,87,5);thumbnails[3626408]=new thumbnail(3626408,"184780","Motion in the Forest","IMG_0145-3_thumb.jpg",130,87,5);thumbnails[3626414]=new thumbnail(3626414,"184780","Trek mates","IMG_2080-2_thumb.jpg",130,87,5);thumbnails[3626412]=new thumbnail(3626412,"184780","Exhaustion","IMG_13741_thumb.jpg",130,98,5);thumbnails[3626417]=new thumbnail(3626417,"184780","Into the Valley of Death","IMG_44831_thumb.jpg",130,87,5);thumbnails[3626418]=new thumbnail(3626418,"184780","Visitors on the Fish Island","IMG_47691_thumb.jpg",130,98,5);thumbnails[3626407]=new thumbnail(3626407,"184780","Moving Through the Jungle","IMG_0129-2_thumb.jpg",130,195,5);thumbnails[3626406]=new thumbnail(3626406,"184780","Contemplation","BikerintheSun21_thumb.jpg",130,77,5);thumbnails[3626428]=new thumbnail(3626428,"184780","Storm Over Potosi","Libby211_thumb.jpg",130,94,5);var galleries=new Object();galleries[187851]=new gallery(187851,"3605275,3605142,3605137","Project & Documentary","gallery",[3605138,3605219,3605221,3605222,3605139,3605137,3605144,3605142,3605145,3605218,3605224,3605223,3605220,3605140,3605141,3605241,3605240,3605238,3605239,3605237,3605255,3605258,3605254,3605257,3605275,3605276,3605283,3605256,3605277,3605282]);galleries[184779]=new gallery(184779,"3605983,3605982,3605981,3605912","Culture","gallery",[3605883,3605881,3605879,3605876,3605877,3605878,3605882,3606880,3605880,3605884,3605885,3605916,3605912,3605982,3605981,3605983,3605911,3605909,3605910,3605917,3605984,3605977,3605976,3605978,3605980,3605979,3605918,3606836]);galleries[184780]=new gallery(184780,"3626423,3626407","Expedition & Travel","gallery",[3626415,3626410,3626409,3626421,3626419,3626425,3626423,3626422,3626426,3626427,3626413,3626420,3626424,3626416,3626411,3626408,3626414,3626412,3626417,3626418,3626407,3626406,3626428]);var imageSets=new Object();imageSets[1]="3605883,3605881,3605277,3605258,3605240,3605223,3605222,3605219,3605140,3605138";imageSets[2]="3629967,3629958,3629953,3626423,3626407,3605983,3605982,3605981,3605912,3605275,3605142,3605137";imageSets[3]="5835582,5392973,5392941,5270774,5040255,4962483,4752201,3742881,3629983,3629982,3629981,3629980,3629979,3629978,3629977,3629976,3629975,3629974,3629970,3629969,3629968,3629967,3629966,3629965,3629964,3629963,3629962,3629961,3629960,3629959,3629958,3629957,3629956,3629955,3629954,3629953,3629952,3629951,3626428,3626427,3626426,3626425,3626424,3626423,3626422,3626421,3626420,3626419,3626418,3626417";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/nomorem6/images";break}switch(a){case 1:b="http://www1.clikpic.com/nomorem6/images";break}switch(a){case 2:b="http://admin.clikpic.com/nomorem6/images";break}switch(a){case 24:b="http://tpc15/clikpic/nomorem6/images";break}switch(a){case 4:b="http://www.clikchurch.com/nomorem6/images";break}switch(a){case 5:b="http://www2.clikpic.com/nomorem6/images";break}switch(a){case 22:b="http://tpc5/clikpic/nomorem6/images";break}switch(a){case 23:b="http://tpc10/clikpic/nomorem6/images";break}switch(a){case 25:b="http://tpc16/clikpic/nomorem6/images";break}switch(a){case 15:b="http://www3.clikpic.com/nomorem6/images";break}switch(a){case 18:b="http://www4.clikpic.com/nomorem6/images";break}switch(a){case 19:b="http://www5.clikpic.com/nomorem6/images";break}switch(a){case 31:b="http://www7.clikpic.com/nomorem6/images";break}switch(a){case 32:b="http://admin2.clikpic.com/nomorem6/images";break}switch(a){case 33:b="http://www8.clikpic.com/nomorem6/images";break}switch(a){case 34:b="http://www9.clikpic.com/nomorem6/images";break}switch(a){case 35:b="http://admin3.clikpic.com/nomorem6/images";break}switch(a){case 37:b="http://admin4.clikpic.com/nomorem6/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="Pieces of Sky : "+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].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> 				&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="nomorem6@mac.com">';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="nomorem6@mac.com">';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+'")'})}}};
