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[3408619]=new thumbnail(3408619,"","winter wonderland","P1080537_thumb.jpg",130,73,1);thumbnails[1396709]=new thumbnail(1396709,"","polperro cornwall<br>\r\n","polperro 4_thumb.jpg",75,100,1);thumbnails[1158690]=new thumbnail(1158690,"80945","","20480245_thumb.jpg",130,98,1);thumbnails[1870837]=new thumbnail(1870837,"80945","Horse forde abbey dorset medieval monastery <br>\r\n","P1070083 copy bw_thumb.jpg",130,78,1);thumbnails[1870843]=new thumbnail(1870843,"80945","swan forde abbey dorset medieval monastery","P1070151 copy_thumb.jpg",75,100,1);thumbnails[2905063]=new thumbnail(2905063,"80945","Siberian Tiger","P1070914 copy siberian tiger_thumb.jpg",100,100,1);thumbnails[4360524]=new thumbnail(4360524,"80945","lemer cricket st thomas somerset<br>\r\n","Copy_of_P1090334_thumb.jpg",130,98,1);thumbnails[4360539]=new thumbnail(4360539,"80945","lemur cricket st thomas somerset<br>\r\n","P1080976_thumb.jpg",125,100,1);thumbnails[4360545]=new thumbnail(4360545,"80945","ostrich cricket st thomas somerset","P1090166_thumb.jpg",125,100,1);thumbnails[4360575]=new thumbnail(4360575,"80945","winnie jack russell","P1090846_winnie_thumb.jpg",100,100,1);thumbnails[4360578]=new thumbnail(4360578,"80945","blackie jack russell","P1090881_16x16_sammie-jo_thumb.jpg",100,100,1);thumbnails[4360623]=new thumbnail(4360623,"80945","eagle axminster show<br>\r\n","P1090989_copy_thumb.jpg",130,87,1);thumbnails[4360629]=new thumbnail(4360629,"80945","tiger longleat<br>\r\n","P1100115_thumb.jpg",130,87,1);thumbnails[1110576]=new thumbnail(1110576,"80945","skeet my chocolate drop","09630012_thumb.JPG",130,86,1);thumbnails[1111053]=new thumbnail(1111053,"80945","bertie","P10306410481_thumb.jpg",130,98,1);thumbnails[1111068]=new thumbnail(1111068,"80945","tiger","P1030748 2061_thumb.jpg",127,100,1);thumbnails[1111075]=new thumbnail(1111075,"80945","bertie","P1030646051_thumb.jpg",130,98,1);thumbnails[4990365]=new thumbnail(4990365,"80945","Parrot at Longlete","P1100220low_res_thumb.jpg",130,73,1);thumbnails[4990372]=new thumbnail(4990372,"80945","Hounds at Axminster County Fair","P1100395low_res_thumb.jpg",130,73,1);thumbnails[4990375]=new thumbnail(4990375,"80945","Owl at Ham Hill Fair","P1100509low_res_thumb.jpg",130,87,1);thumbnails[4990384]=new thumbnail(4990384,"80945","Buddy 8 week old Springer Spaniel","P1100619low_res_thumb.jpg",130,87,1);thumbnails[4990387]=new thumbnail(4990387,"80945","Buddy 8 week old Springer Spaniel","P1100643low_res_thumb.jpg",130,87,1);thumbnails[4990394]=new thumbnail(4990394,"80945","Butterfly at Longlete ","P1100657low_res_thumb.jpg",67,100,1);thumbnails[4990397]=new thumbnail(4990397,"80945","","P1100668low_res_thumb.jpg",130,87,1);thumbnails[1981124]=new thumbnail(1981124,"80170","lyme regis beach huts<br>\r\n","P1020357 lyme regis huts_thumb.jpg",130,98,1);thumbnails[1981167]=new thumbnail(1981167,"80170","bath<br>\r\n","P1020889_thumb.jpg",130,98,1);thumbnails[1865764]=new thumbnail(1865764,"80170","ford abbey medieval monastery ","01700052 forde abbey1_thumb.jpg",130,73,1);thumbnails[1865771]=new thumbnail(1865771,"80170","forde abbey medieval monastery dorset","01700063 forde abbey1_thumb.jpg",75,100,1);thumbnails[1865786]=new thumbnail(1865786,"80170","forde abbey horse","01700083 forde abbey horse_thumb.jpg",130,98,1);thumbnails[4990322]=new thumbnail(4990322,"81480","black garden gate","P1100190low_res_thumb.jpg",75,100,1);thumbnails[4990327]=new thumbnail(4990327,"81480","Steps at Longlete House","P1100201low_res_thumb.jpg",75,100,1);thumbnails[4990241]=new thumbnail(4990241,"81481","Sweet Pea","P1090934low_res_thumb.jpg",67,100,1);thumbnails[4990245]=new thumbnail(4990245,"81481","","P1090940low_res_thumb.jpg",130,87,1);thumbnails[4990247]=new thumbnail(4990247,"81481","close up mauve flowers","P1090944low_res_thumb.jpg",130,87,1);thumbnails[4990250]=new thumbnail(4990250,"81481","","P1090949low_res_thumb.jpg",130,87,1);thumbnails[4990366]=new thumbnail(4990366,"81481","Flowers at Axminster County Fair","P1100344low_res_thumb.jpg",130,87,1);thumbnails[4990367]=new thumbnail(4990367,"81481","","P1100352low_res_thumb.jpg",130,73,1);thumbnails[4990370]=new thumbnail(4990370,"81481","Flowers at Axminster County Fair","P1100363low_res_thumb.jpg",56,100,1);thumbnails[4990377]=new thumbnail(4990377,"81481","Wild Flowers at Barrington Court","P1100576low_res_thumb.jpg",67,100,1);thumbnails[4363089]=new thumbnail(4363089,"81515","orangery mapperton gardens<br>\r\n","P1080833_thumb.jpg",130,98,1);thumbnails[4363090]=new thumbnail(4363090,"81515","orangery mapperton gardens<br>\r\n","P10808411_thumb.jpg",75,100,1);thumbnails[4990421]=new thumbnail(4990421,"283327","Heavy Horses at Lopen Head","P1100743low_res_thumb.jpg",75,100,1);thumbnails[4990433]=new thumbnail(4990433,"283327","Heavy Horses at Lopen Head","P1100744low_res_thumb.jpg",75,100,1);thumbnails[4990438]=new thumbnail(4990438,"283327","","P1100760low_res_thumb.jpg",130,98,1);thumbnails[4990453]=new thumbnail(4990453,"283327","Heavy Horses at Lopen Head","P1100775low_res_thumb.jpg",67,100,1);thumbnails[4990455]=new thumbnail(4990455,"283327","Heavy Horses at Lopen Head","P1100802low_res_thumb.jpg",75,100,1);thumbnails[4990503]=new thumbnail(4990503,"283327","Heavy Horses at Lopen Head","P1100808low_res_thumb.jpg",130,98,1);thumbnails[4990509]=new thumbnail(4990509,"283327","Heavy Horses at Lopen Head","P1100818low_res_thumb.jpg",75,100,1);thumbnails[4990515]=new thumbnail(4990515,"283327","Heavy Horses at Lopen Head","P1100855low_res_thumb.jpg",130,98,1);thumbnails[6431670]=new thumbnail(6431670,"354989","Alfa Romeo","ALFA_ROMEO_thumb.jpg",79,100,1);thumbnails[6432074]=new thumbnail(6432074,"354989","E Type Jag badge","E-TYPE_JAG_thumb.jpg",127,100,1);thumbnails[6432535]=new thumbnail(6432535,"354989","MG Dashboard","MG_Dashboard_thumb.jpg",127,100,1);thumbnails[6442073]=new thumbnail(6442073,"354989","Morgan headlights","morgan_close_up_thumb.jpg",79,100,1);thumbnails[6442108]=new thumbnail(6442108,"354989","Morgan Close up","Morgan_thumb.jpg",127,100,1);thumbnails[6442141]=new thumbnail(6442141,"354989","Leaping Jaguar Badge","JAGUAR_1_thumb.jpg",127,100,1);thumbnails[4360583]=new thumbnail(4360583,"167886","lyme regis boats<br>\r\n","P1090896_thumb.jpg",130,98,1);thumbnails[4360588]=new thumbnail(4360588,"167886","lyme regis <br>\r\n ","P1090900_thumb.jpg",130,87,1);thumbnails[4360593]=new thumbnail(4360593,"167886","lyme regis boats","P1090902_thumb.jpg",130,73,1);thumbnails[4360599]=new thumbnail(4360599,"167886","lyme regis coast<br>\r\n","P1090905_thumb.jpg",130,87,1);thumbnails[4360602]=new thumbnail(4360602,"167886","lyme regis<br>\r\n","P1090907_thumb.jpg",130,87,1);thumbnails[4360609]=new thumbnail(4360609,"167886","lyme regis boats","P1090924_thumb.jpg",130,87,1);thumbnails[4360613]=new thumbnail(4360613,"167886","lyme regis boats<br>\r\n","P1090926_thumb.jpg",130,87,1);thumbnails[2650353]=new thumbnail(2650353,"167886","West Bay Jurassic Coast ","P1070747_thumb.jpg",130,73,1);thumbnails[2650364]=new thumbnail(2650364,"167886","West Bay Jurassic Coast ","P1070807_thumb.jpg",130,73,1);thumbnails[3631577]=new thumbnail(3631577,"222055","Mapperton Gardens.","P1080806_thumb.jpg",75,100,1);thumbnails[3631564]=new thumbnail(3631564,"222055","Mapperton Gardens.<br>\r\n","P1080775_thumb.jpg",130,87,1);thumbnails[3631590]=new thumbnail(3631590,"222055","Mapperton Gardens.<br>\r\n<br>\r\n","P1080958_thumb.jpg",130,87,1);thumbnails[3631597]=new thumbnail(3631597,"222055","Inside the Orangery<br>\r\n","P1080834_thumb.jpg",75,100,1);thumbnails[3631618]=new thumbnail(3631618,"222055","Mapperton Gardens.","P1080772_thumb.jpg",130,87,1);thumbnails[3631651]=new thumbnail(3631651,"222055","Orangery window<br>\r\n","P1080841_thumb.jpg",75,100,1);thumbnails[3631654]=new thumbnail(3631654,"222055","Mapperton Gardens.<br>\r\n","P1080850_thumb.jpg",130,98,1);thumbnails[3631679]=new thumbnail(3631679,"222055","Mapperton Gardens<br>\r\n<br>\r\n","P1080894_thumb.jpg",75,100,1);thumbnails[3631682]=new thumbnail(3631682,"222055","Mapperton Gardens","P1080883_thumb.jpg",130,98,1);thumbnails[3631703]=new thumbnail(3631703,"222055","Mapperton Gardens.<br>\r\n","P1080945_thumb.jpg",130,87,1);thumbnails[3631713]=new thumbnail(3631713,"222055","Mapperton Gardens","P1080949_thumb.jpg",67,100,1);var galleries=new Object();galleries[80945]=new gallery(80945,"1870837,1110576","Pet Portrait Photography","gallery",[1158690,1870837,1870843,2905063,4360524,4360539,4360545,4360575,4360578,4360623,4360629,1110576,1111053,1111068,1111075,4990365,4990372,4990375,4990384,4990387,4990394,4990397]);galleries[80170]=new gallery(80170,"1865786","Landscapes","gallery",[1981124,1981167,1865764,1865771,1865786]);galleries[81480]=new gallery(81480,"4990327,4990322","black and white","gallery",[4990322,4990327]);galleries[81481]=new gallery(81481,"4990377,4990370,4990367,4990366,4990250,4990247,4990245,4990241","flowers ","gallery",[4990241,4990245,4990247,4990250,4990366,4990367,4990370,4990377]);galleries[81515]=new gallery(81515,"4363090,4363089","architecture","gallery",[4363089,4363090]);galleries[283327]=new gallery(283327,"4990515,4990509,4990503,4990455,4990453,4990438,4990433,4990421","Heavy Horses At Lopen Head in Somerset","gallery",[4990421,4990433,4990438,4990453,4990455,4990503,4990509,4990515]);galleries[354989]=new gallery(354989,"6442141,6442108,6442073,6432535,6432074,6431670","Classic and Vintage Cars","gallery",[6431670,6432074,6432535,6442073,6442108,6442141]);galleries[167886]=new gallery(167886,"4360613,4360609,4360602,4360599,4360593,4360588,4360583,2650364,2650353","Jurassic Coast","gallery",[4360583,4360588,4360593,4360599,4360602,4360609,4360613,2650353,2650364]);galleries[222055]=new gallery(222055,"3631713,3631703,3631682,3631679,3631654,3631651,3631618,3631597,3631590,3631577","Mapperton Gardens","gallery",[3631577,3631564,3631590,3631597,3631618,3631651,3631654,3631679,3631682,3631703,3631713]);var imageSets=new Object();imageSets[1]="4990453,4990387,4990375,4990366,2905063,1981124,1870843,1870837,1865786,1111068,1110576";imageSets[2]="1870837,1865786,1110576";imageSets[3]="4363090,4363089,4360629,4360623,4360613,4360609,4360602,4360599,4360593,4360588,4360583,4360578,4360575,4360545,4360539,4360524";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/juliemonk/images";break}switch(a){case 1:b="http://www1.clikpic.com/juliemonk/images";break}switch(a){case 2:b="http://admin.clikpic.com/juliemonk/images";break}switch(a){case 24:b="http://tpc15/clikpic/juliemonk/images";break}switch(a){case 4:b="http://www.clikchurch.com/juliemonk/images";break}switch(a){case 5:b="http://www2.clikpic.com/juliemonk/images";break}switch(a){case 22:b="http://tpc5/clikpic/juliemonk/images";break}switch(a){case 23:b="http://tpc10/clikpic/juliemonk/images";break}switch(a){case 25:b="http://tpc16/clikpic/juliemonk/images";break}switch(a){case 15:b="http://www3.clikpic.com/juliemonk/images";break}switch(a){case 18:b="http://www4.clikpic.com/juliemonk/images";break}switch(a){case 19:b="http://www5.clikpic.com/juliemonk/images";break}switch(a){case 31:b="http://www7.clikpic.com/juliemonk/images";break}switch(a){case 32:b="http://admin2.clikpic.com/juliemonk/images";break}switch(a){case 33:b="http://www8.clikpic.com/juliemonk/images";break}switch(a){case 34:b="http://www9.clikpic.com/juliemonk/images";break}switch(a){case 35:b="http://admin3.clikpic.com/juliemonk/images";break}switch(a){case 37:b="http://admin4.clikpic.com/juliemonk/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="julie monk pet portrait photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();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="JULIEMONK">';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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};