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[368453]=new thumbnail(368453,"","","trishbullman_about_me_thumb.jpg",130,81,1);thumbnails[536242]=new thumbnail(536242,"41634","","web-1_thumb.jpg",130,184,1);thumbnails[536249]=new thumbnail(536249,"41634","","web3_thumb.jpg",130,184,1);thumbnails[536260]=new thumbnail(536260,"41634","","web5_thumb.jpg",130,184,1);thumbnails[536265]=new thumbnail(536265,"41634","Fishnet Stockings and Pearls","web7_thumb.jpg",130,184,1);thumbnails[536267]=new thumbnail(536267,"41634","","web9_thumb.jpg",130,184,1);thumbnails[536271]=new thumbnail(536271,"41634"," ","web21_thumb.jpg",130,184,1);thumbnails[761363]=new thumbnail(761363,"41634","","Andrews-nat-026-web_thumb.jpg",130,196,1);thumbnails[1464207]=new thumbnail(1464207,"41634","Simply Lush!","lush-web_thumb.jpg",130,195,1);thumbnails[536245]=new thumbnail(536245,"41634","Some women feel at their best in their youth, others feel more confident with maturity and wisdom.  Whatever your idea of beauty, it is always more than skin deep.","web2_thumb.jpg",130,92,1);thumbnails[536253]=new thumbnail(536253,"41634","How to look good naked","web4_thumb.jpg",130,92,1);thumbnails[536262]=new thumbnail(536262,"41634","","web6_thumb.jpg",130,113,1);thumbnails[536268]=new thumbnail(536268,"41634","All photos are of 'real' women, not models. Photos are taken in the comfort and security of your home and you can decide to show as much or as little as you feel comfortable with. ","web10_thumb.jpg",130,92,1);thumbnails[536272]=new thumbnail(536272,"41634","Inspired by the 1970's Flake girls adverts","web31_thumb.jpg",130,92,1);thumbnails[718892]=new thumbnail(718892,"41634","","web33_thumb.jpg",130,86,1);thumbnails[718929]=new thumbnail(718929,"41634","How to look good naked","web43_thumb.jpg",130,86,1);thumbnails[1270967]=new thumbnail(1270967,"122909","","bridal-046-1_thumb.jpg",130,195,1);thumbnails[1270973]=new thumbnail(1270973,"122909","Getting ready.....","bridal-057-1_thumb.jpg",130,87,1);thumbnails[718857]=new thumbnail(718857,"122909","","web2-1_thumb.jpg",130,195,1);thumbnails[1271047]=new thumbnail(1271047,"122909","From bride to groom, for his eyes only......","bridal-041-1_thumb.jpg",130,195,1);thumbnails[1828502]=new thumbnail(1828502,"122909","","bridal-031-1_thumb.jpg",130,195,1);thumbnails[538991]=new thumbnail(538991,"52814","The beauty of mother nature","we_thumb.jpg",130,196,1);thumbnails[545861]=new thumbnail(545861,"52814","Pregnant & proud!","webpic3_thumb.jpg",130,184,1);thumbnails[575564]=new thumbnail(575564,"52814","If you would like to capture forever this very special time in your life, please contact me","web52_thumb.jpg",130,86,1);thumbnails[692745]=new thumbnail(692745,"52814","","sienna-punk-day-007-1_thumb.jpg",130,196,1);thumbnails[322243]=new thumbnail(322243,"27387","Capri Island","ItalyBW2_thumb.jpg",130,242,1);thumbnails[322255]=new thumbnail(322255,"27387","Jo","at-kaza'z-0221_thumb.jpg",130,196,1);thumbnails[356895]=new thumbnail(356895,"27387","Tony - black & white","Tonyarms11_thumb.jpg",130,104,1);thumbnails[356896]=new thumbnail(356896,"27387","Sioux - boudoir in Paris","siouxpariswindow1_thumb.jpg",130,174,1);thumbnails[356897]=new thumbnail(356897,"27387","Tony - The Illustrated Man","Illustratedman_thumb.jpg",130,192,1);thumbnails[356898]=new thumbnail(356898,"27387","Ian - Country gentleman","Ian1_thumb.jpg",130,178,1);thumbnails[611436]=new thumbnail(611436,"27387","Nat","natalieportrait_thumb.jpg",130,196,1);thumbnails[733093]=new thumbnail(733093,"27387","A & N","Andrew-and-Nat-b&w-web_thumb.jpg",130,157,1);thumbnails[879562]=new thumbnail(879562,"27387","Elsa","elsa web_thumb.jpg",130,177,1);thumbnails[1471572]=new thumbnail(1471572,"27387","Milo <br>\r\n","milo-in-the-bluebell-woods_thumb.jpg",130,86,1);thumbnails[6439371]=new thumbnail(6439371,"346666","","leanda4_800x533_thumb.jpg",130,87,1);thumbnails[6439372]=new thumbnail(6439372,"346666","","leanda2_800x533_thumb.jpg",130,87,1);thumbnails[6439373]=new thumbnail(6439373,"346666","","leanda6_800x533_thumb.jpg",130,87,1);thumbnails[6221209]=new thumbnail(6221209,"346666","","ND6_800x533_thumb.jpg",130,87,1);thumbnails[6221212]=new thumbnail(6221212,"346666","","ND8_800x533_thumb.jpg",130,87,1);thumbnails[6221216]=new thumbnail(6221216,"346666","","CD1_800x533_thumb.jpg",130,87,1);thumbnails[6222552]=new thumbnail(6222552,"346666","","nd25_800x533_thumb.jpg",130,87,1);thumbnails[6222824]=new thumbnail(6222824,"346666","","cd8_800x533_thumb.jpg",130,87,1);thumbnails[6439368]=new thumbnail(6439368,"346666","","leanda3_533x800_thumb.jpg",130,195,1);thumbnails[6439369]=new thumbnail(6439369,"346666","","leanda5_533x800_thumb.jpg",130,195,1);thumbnails[6439370]=new thumbnail(6439370,"346666","","leanda7_533x800_thumb.jpg",130,195,1);thumbnails[6221213]=new thumbnail(6221213,"346666","","ND2_400x600_thumb.jpg",130,195,1);thumbnails[6221271]=new thumbnail(6221271,"346666","","ND1_400x600_thumb.jpg",130,195,1);thumbnails[6221303]=new thumbnail(6221303,"346666","","ND16_400x600_thumb.jpg",130,195,1);thumbnails[6221305]=new thumbnail(6221305,"346666","","ND18_400x600_thumb.jpg",130,195,1);thumbnails[6221412]=new thumbnail(6221412,"346666","","ND5_400x600_thumb.jpg",130,195,1);thumbnails[6222546]=new thumbnail(6222546,"346666","","ND7_389x600_thumb.jpg",130,201,1);thumbnails[6222595]=new thumbnail(6222595,"346666","PVC Mistress","nd221_400x600_thumb.jpg",130,195,1);thumbnails[6222745]=new thumbnail(6222745,"346666","","nd27_400x600_thumb.jpg",130,195,1);thumbnails[6222820]=new thumbnail(6222820,"346666","","cd4_400x600_thumb.jpg",130,195,1);thumbnails[935804]=new thumbnail(935804,"29425","Gondolas, San Marco, Venice","gondolas-with-cloudy-border_thumb.jpg",130,92,1);thumbnails[356925]=new thumbnail(356925,"29425","Isle de Paris","pariswindow_thumb.jpg",130,200,1);thumbnails[356933]=new thumbnail(356933,"29425","Paris Carousel","carosel_thumb.jpg",130,194,1);thumbnails[774215]=new thumbnail(774215,"29425","Classic Car Rally, Sandwich, Kent","b-&-w-web_thumb.jpg",130,86,1);thumbnails[774225]=new thumbnail(774225,"29425","Classic Car rally, Sandwich, Kent","Car-rally-sandwich-057-web_thumb.jpg",130,180,1);thumbnails[971571]=new thumbnail(971571,"29425","Grand Canal, Venice","venice-078_thumb.jpg",130,196,1);thumbnails[971573]=new thumbnail(971573,"29425","Jewish Ghetto, Venice","saturated-canal_thumb.jpg",130,86,1);thumbnails[971576]=new thumbnail(971576,"29425","Bridge of Sighs, Venice","venice-039-1_thumb.jpg",130,196,1);thumbnails[981431]=new thumbnail(981431,"29425","","venice-020-1_thumb.jpg",130,196,1);thumbnails[1103393]=new thumbnail(1103393,"29425","Whitstable fishing nets","whitstable-009_thumb.jpg",130,195,1);thumbnails[1464214]=new thumbnail(1464214,"29425","Monte Carlo ","monaco-web_thumb.jpg",130,178,1);thumbnails[1465344]=new thumbnail(1465344,"29425","Musee d'Orsay<br>\r\nParis","musee-d'orcy-clock_thumb.jpg",130,154,1);thumbnails[1465360]=new thumbnail(1465360,"29425","Is it a bird or is it a plane...........?","looking-up_thumb.jpg",130,87,1);thumbnails[1465380]=new thumbnail(1465380,"29425","Museum of Modern Art<br>\r\nParis","modern-art-web_thumb.jpg",130,174,1);thumbnails[1471541]=new thumbnail(1471541,"29425","Seafood<br>\r\nNewquay Harbour","crab-web_thumb.jpg",130,195,1);thumbnails[1570909]=new thumbnail(1570909,"29425","St Mildreds Church, Kent","churchyard-trio-web_thumb.jpg",130,92,1);thumbnails[2239535]=new thumbnail(2239535,"29425","Newquay harbour","harbour-script2_thumb.jpg",130,92,1);thumbnails[2239554]=new thumbnail(2239554,"29425","The Duomo, Florence, Italy","Florence-April-2008-048_thumb.jpg",130,87,1);thumbnails[2239558]=new thumbnail(2239558,"29425","Parma Hams, Florence, Italy","Florence-April-2008-119_thumb.jpg",130,195,1);thumbnails[2239585]=new thumbnail(2239585,"29425","","peephole_thumb.jpg",130,126,1);var galleries=new Object();galleries[41634]=new gallery(41634,"536271","Boudoir Photography","gallery",[536242,536249,536260,536265,536267,536271,761363,1464207,536245,536253,536262,536268,536272,718892,718929]);galleries[122909]=new gallery(122909,"1270967","Bridal boudoir photos","gallery",[1270967,1270973,718857,1271047,1828502]);galleries[52814]=new gallery(52814,"538991","Pregnancy","gallery",[538991,545861,575564,692745]);galleries[27387]=new gallery(27387,"356897,356895","Portraits","gallery",[322243,322255,356895,356896,356897,356898,611436,733093,879562,1471572]);galleries[346666]=new gallery(346666,"6221213","Fetish & Nudes","gallery",[6439371,6439372,6439373,6221209,6221212,6221216,6222552,6222824,6439368,6439369,6439370,6221213,6221271,6221303,6221305,6221412,6222546,6222595,6222745,6222820]);galleries[29425]=new gallery(29425,"774225","Places","gallery",[935804,356925,356933,774215,774225,971571,971573,971576,981431,1103393,1464214,1465344,1465360,1465380,1471541,1570909,2239535,2239554,2239558,2239585]);var imageSets=new Object();imageSets[1]="368453";imageSets[2]="6221213,1270967,774225,538991,536271,356897,356895";imageSets[3]="6439373,6439372,6439371,6439370,6439369,6439368,6222824,6222820,6222745,6222595,6222552,6222546,6221412,6221305,6221303,6221271,6221216,6221213,6221212,6221209,2239585,2239558,2239554,2239535,1828502,1570909,1471572,1471541,1465380,1465360,1465344,1464214,1464207,1271047,1270973,1270967,1103393,981431,971576,971573,971571,935804,879562,774225,774215,761363,733093,718929,718892,718857";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/SiouxPeto/images";break}switch(a){case 1:b="http://www1.clikpic.com/SiouxPeto/images";break}switch(a){case 2:b="http://admin.clikpic.com/SiouxPeto/images";break}switch(a){case 24:b="http://tpc15/clikpic/SiouxPeto/images";break}switch(a){case 4:b="http://www.clikchurch.com/SiouxPeto/images";break}switch(a){case 5:b="http://www2.clikpic.com/SiouxPeto/images";break}switch(a){case 22:b="http://tpc5/clikpic/SiouxPeto/images";break}switch(a){case 23:b="http://tpc10/clikpic/SiouxPeto/images";break}switch(a){case 25:b="http://tpc16/clikpic/SiouxPeto/images";break}switch(a){case 15:b="http://www3.clikpic.com/SiouxPeto/images";break}switch(a){case 18:b="http://www4.clikpic.com/SiouxPeto/images";break}switch(a){case 19:b="http://www5.clikpic.com/SiouxPeto/images";break}switch(a){case 31:b="http://www7.clikpic.com/SiouxPeto/images";break}switch(a){case 32:b="http://admin2.clikpic.com/SiouxPeto/images";break}switch(a){case 33:b="http://www8.clikpic.com/SiouxPeto/images";break}switch(a){case 34:b="http://www9.clikpic.com/SiouxPeto/images";break}switch(a){case 35:b="http://admin3.clikpic.com/SiouxPeto/images";break}switch(a){case 37:b="http://admin4.clikpic.com/SiouxPeto/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="trishbullman.com: "+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>"}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="trishbullman@vfast.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="trishbullman@vfast.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+'")'})}}};