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[2631299]=new thumbnail(2631299,"","","123499886e116d482b62e0bd47b138b66ac4646b0e3d3a076480b1347a59be6bd8bb6986_thumb.jpg",130,195,32);thumbnails[2631399]=new thumbnail(2631399,"","","l_23a0d36ea3508cf848257d092b89f3c9_thumb.jpg",130,184,32);thumbnails[2631308]=new thumbnail(2631308,"","","193191450f68c497db0eb115a71f4c7f713f1e19d8eb393540d7805d8d652712e099d342_thumb.jpg",130,92,32);thumbnails[2631401]=new thumbnail(2631401,"","","7492852733841872a5232649f3c601edee61e0bf574b867a2d51fc3a111444412d8311a71_thumb.jpg",130,104,32);thumbnails[2631309]=new thumbnail(2631309,"","","523903801fab5492992ef82d5eed488047ba6e09946b330b4ce78359436c7ae36e201fe5_thumb.jpg",130,62,32);thumbnails[2631403]=new thumbnail(2631403,"","","BecksNuts1_thumb.jpg",130,181,32);thumbnails[2631310]=new thumbnail(2631310,"","","70472686b9ce46f7606357dcea09ffc054b58bff429d2e893f8779114b4f8d8d54341d04_thumb.jpg",130,87,32);thumbnails[2631406]=new thumbnail(2631406,"","","BecksNuts3-1_thumb.jpg",130,178,32);thumbnails[2631311]=new thumbnail(2631311,"","","71086138626bb170e07fd5ccd890a8fc87c217046458aec747bb1dc8639f9a9757d2f95c_thumb.jpg",130,102,32);thumbnails[2631408]=new thumbnail(2631408,"","","l_df9e246c0588404e7c2dc51047b67333_thumb.jpg",130,108,32);thumbnails[2631312]=new thumbnail(2631312,"","","7492852733841872a5232649f3c601edee61e0bf574b867a2d51fc3a111444412d8311a7_thumb.jpg",130,104,32);thumbnails[2631411]=new thumbnail(2631411,"","","70472686b9ce46f7606357dcea09ffc054b58bff429d2e893f8779114b4f8d8d54341d041_thumb.jpg",130,87,32);thumbnails[2631413]=new thumbnail(2631413,"","","279257902737759d43a401db386ba8d21a8e3121c40a52fd968ab0e11f8f92eaff8dafde_thumb.jpg",130,195,32);thumbnails[2631438]=new thumbnail(2631438,"","","l_cb960813c4caef2ab0d05b550db659df_thumb.jpg",130,173,32);thumbnails[2631415]=new thumbnail(2631415,"","","max power_thumb.jpg",130,105,32);thumbnails[2631416]=new thumbnail(2631416,"","","tabloid news page3_thumb.jpg",130,83,32);thumbnails[2631418]=new thumbnail(2631418,"","","2ECW1098editedtiny_thumb.jpg",130,89,32);thumbnails[2631422]=new thumbnail(2631422,"","","item_thumb.jpg",130,91,32);thumbnails[2631424]=new thumbnail(2631424,"","","item2_thumb.jpg",130,195,32);thumbnails[2631425]=new thumbnail(2631425,"","","item3_thumb.jpg",130,236,32);thumbnails[2631427]=new thumbnail(2631427,"","","item4_thumb.jpg",130,92,32);thumbnails[2631428]=new thumbnail(2631428,"","","item5_thumb.jpg",130,178,32);thumbnails[2631430]=new thumbnail(2631430,"","","item6_thumb.jpg",130,208,32);thumbnails[4750441]=new thumbnail(4750441,"165869","","16460516292845ee631fdbf5e5402e2c5cd403c34d1e402a65663c23287155fc5f40ed9eheadshotre_thumb.jpg",130,179,32);thumbnails[4827605]=new thumbnail(4827605,"165869","","2ECW1075edittiny_thumb.jpg",130,195,32);thumbnails[4827606]=new thumbnail(4827606,"165869","","2ECW0996edittiny_thumb.jpg",130,77,32);thumbnails[4827608]=new thumbnail(4827608,"165869","","2ECW1098editedtiny1_thumb.jpg",130,89,32);thumbnails[4827637]=new thumbnail(4827637,"165869","","n616845815_148807_7381_thumb.jpg",130,195,32);thumbnails[2631338]=new thumbnail(2631338,"165869","","2652255332e17a2209f2b6fcded91344662ed869594ac0ef14130e0c74346050f8e77aa62_thumb.jpg",130,247,32);thumbnails[2619967]=new thumbnail(2619967,"165869","","960539807a80c94ee89d5ca1d2c364eadec0c89c1e3119aa24243c5d4a1f6384bd505c412_thumb.jpg",130,227,32);thumbnails[2621180]=new thumbnail(2621180,"165869","","IMG_5806_NEWFORMAT_unmarked_thumb.jpg",130,194,32);thumbnails[2619968]=new thumbnail(2619968,"165869","","92684464954d89a05051c5a7441abe13cff278c41251b9213745a7193ed2ad802fb68712_thumb.jpg",130,191,32);thumbnails[2619971]=new thumbnail(2619971,"165869","","104383226944d2786112685704502b7781feb683e4c7644aa1f69e26db7060eed775c61f_thumb.jpg",130,253,32);thumbnails[2619973]=new thumbnail(2619973,"165869","","521590515383d81b9a4494ee583b4b1956b169e81a00ea4b8f80dc1a703a082e45e515b4_thumb.jpg",130,245,32);thumbnails[2619975]=new thumbnail(2619975,"165869","","p4_thumb.jpg",130,195,32);thumbnails[2619988]=new thumbnail(2619988,"165869","","646653438617bab949963e66566a465f08c0a03fdbda227f0922f792937dab7968ec2d33_thumb.jpg",130,206,32);thumbnails[2619990]=new thumbnail(2619990,"165869","","73791811fc72304f7d0531e17dbbb283224289036259b1ec44eb28054df3897ddb89bb64_thumb.jpg",130,87,32);thumbnails[2619991]=new thumbnail(2619991,"165869","","1522216951a2be0d0e8f2f551eaf0ade25db9630987888bff9215176953d30d0cbf64a04_thumb.jpg",130,87,32);thumbnails[2620036]=new thumbnail(2620036,"165869","","l_71dc64272c1a02643c0152ac988c602a_thumb.jpg",130,295,32);thumbnails[2631348]=new thumbnail(2631348,"165869","","52189966ed556012a0cf0ac58ed5c6405f0963733bd4a45fb0dc30304a0fccf88ff66c6c_thumb.jpg",130,86,32);thumbnails[2737274]=new thumbnail(2737274,"165869","","BECKY-005edit_thumb.jpg",130,100,32);thumbnails[2737276]=new thumbnail(2737276,"165869","","BECKY-008edit_thumb.jpg",130,115,32);thumbnails[2737285]=new thumbnail(2737285,"165869","","BECKY-016edit_thumb.jpg",130,239,32);thumbnails[2620019]=new thumbnail(2620019,"165870","","629339312e7fe69e85be302a53ab55bfa73a9ade0d64b935f2a134c7237641f235ff08b0_thumb.jpg",130,194,32);thumbnails[2620020]=new thumbnail(2620020,"165870","","8777845815b23121462612111ea6ea68eeab682bd269b51e4f488b0113a3778c92d5a7a0_thumb.jpg",130,194,32);thumbnails[2620022]=new thumbnail(2620022,"165870","","9174169221cf06bd4c3f3c1344c466ef73ee936b08798d9a923eb23d7c8822cd2bb1e2e4_thumb.jpg",130,195,32);thumbnails[2653256]=new thumbnail(2653256,"165870","","45ede1093b1dd_thumb.jpg",130,251,32);thumbnails[2620025]=new thumbnail(2620025,"165870","","686198525765e3a59831f880156cab5e074b2c28a4bf3c037f776ee5c27ef3cd96705713_thumb.jpg",130,195,32);thumbnails[2621173]=new thumbnail(2621173,"165870","","SDP_9903_thumb.jpg",130,196,32);thumbnails[2737287]=new thumbnail(2737287,"165870","","BECKY-030edit_thumb.jpg",130,280,32);thumbnails[4827603]=new thumbnail(4827603,"166386","","IMG_5503editsmall_thumb.jpg",130,195,32);thumbnails[4827604]=new thumbnail(4827604,"166386","","IMG_5549editsmall_thumb.jpg",130,195,32);thumbnails[4827609]=new thumbnail(4827609,"166386","","6-SHILL-BENNETTsmall_thumb.jpg",130,169,32);thumbnails[4827623]=new thumbnail(4827623,"166386","","44d5d6df267a0_thumb.jpg",130,199,32);thumbnails[4828620]=new thumbnail(4828620,"166386","","2ECW0952edit_thumb.jpg",130,195,32);thumbnails[4828622]=new thumbnail(4828622,"166386","","2ECW0957edit_thumb.jpg",130,258,32);thumbnails[2630877]=new thumbnail(2630877,"166386","","4576046447c2c85ddbc545e4e4f593fe7dc0b8e80ee526301807ffd5b7deab903492d016_thumb.jpg",130,195,32);thumbnails[2630882]=new thumbnail(2630882,"166386","","67892977e86a4a04d03d93eca1488daea2b964ece8c98ce9b03ce72a10b0278173198b83_thumb.jpg",130,195,32);thumbnails[2630890]=new thumbnail(2630890,"166386","","p3_thumb.jpg",130,194,32);thumbnails[2630894]=new thumbnail(2630894,"166386","","632979430ebdd1a7f497bd9968352f7802fe9dc2fc8c0880f86d7f0d110ebbb9255c60f5_thumb.jpg",130,195,32);thumbnails[2630896]=new thumbnail(2630896,"166386","","1253275723_l_thumb.jpg",130,198,32);thumbnails[2631067]=new thumbnail(2631067,"166386","","markhatton_thumb.jpg",130,173,32);thumbnails[2653258]=new thumbnail(2653258,"166386","","47e816d3a64c4_thumb.jpg",130,195,32);thumbnails[2653260]=new thumbnail(2653260,"166386","","item1_thumb.jpg",130,174,32);thumbnails[2653263]=new thumbnail(2653263,"166386","","47e815d8750d3_thumb.jpg",130,194,32);var galleries=new Object();galleries[165869]=new gallery(165869,"4750441","covered glamour photos","gallery",[4750441,4827605,4827606,4827608,4827637,2631338,2619967,2621180,2619968,2619971,2619973,2619975,2619988,2619990,2619991,2620036,2631348,2737274,2737276,2737285]);galleries[165870]=new gallery(165870,"2620019","topless glamour","gallery",[2620019,2620020,2620022,2653256,2620025,2621173,2737287]);galleries[166386]=new gallery(166386,"2630877","Fashion/commercial","gallery",[4827603,4827604,4827609,4827623,4828620,4828622,2630877,2630882,2630890,2630894,2630896,2631067,2653258,2653260,2653263]);var imageSets=new Object();imageSets[1]="4750441";imageSets[2]="4750441,2631399,2631312,2630877,2620019";imageSets[3]="2631418";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/beckyb123/images";break}switch(a){case 1:b="http://www1.clikpic.com/beckyb123/images";break}switch(a){case 2:b="http://admin.clikpic.com/beckyb123/images";break}switch(a){case 24:b="http://tpc15/clikpic/beckyb123/images";break}switch(a){case 4:b="http://www.clikchurch.com/beckyb123/images";break}switch(a){case 5:b="http://www2.clikpic.com/beckyb123/images";break}switch(a){case 22:b="http://tpc5/clikpic/beckyb123/images";break}switch(a){case 23:b="http://tpc10/clikpic/beckyb123/images";break}switch(a){case 25:b="http://tpc16/clikpic/beckyb123/images";break}switch(a){case 15:b="http://www3.clikpic.com/beckyb123/images";break}switch(a){case 18:b="http://www4.clikpic.com/beckyb123/images";break}switch(a){case 19:b="http://www5.clikpic.com/beckyb123/images";break}switch(a){case 31:b="http://www7.clikpic.com/beckyb123/images";break}switch(a){case 32:b="http://admin2.clikpic.com/beckyb123/images";break}switch(a){case 33:b="http://www8.clikpic.com/beckyb123/images";break}switch(a){case 34:b="http://www9.clikpic.com/beckyb123/images";break}switch(a){case 35:b="http://admin3.clikpic.com/beckyb123/images";break}switch(a){case 37:b="http://admin4.clikpic.com/beckyb123/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="becky bennett: "+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 secure payment method 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 photo signed</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="beckybennett123@hotmail.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="beckybennett123@hotmail.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+'")'})}}};