window.thumbnails=new Object();thumbnails[3880307]=new thumbnail(3880307,"235427","","Allison000115velvia_thumb.jpg",130,195,15,"							photo_3880307.html");thumbnails[3933009]=new thumbnail(3933009,"235427","","2631780295_3e0872c3cd_thumb.jpg",130,195,15,"							photo_3933009.html");thumbnails[3880260]=new thumbnail(3880260,"235427","","crop1_thumb.jpg",130,195,15,"							photo_3880260.html");thumbnails[4360392]=new thumbnail(4360392,"235427","","AllisonStewart000155_thumb.jpg",130,195,15,"							photo_4360392.html");thumbnails[3929803]=new thumbnail(3929803,"235427","","1373144896_e64f361735_thumb.jpg",130,87,15,"							photo_3929803.html");thumbnails[3929991]=new thumbnail(3929991,"235427","","IMG_0850_thumb.jpg",130,87,15,"							photo_3929991.html");thumbnails[5391674]=new thumbnail(5391674,"235427","","Emma_L-111468em_thumb.jpg",130,87,15,"							photo_5391674.html");thumbnails[4205574]=new thumbnail(4205574,"235427","","Zaraweb_thumb.jpg",130,87,15,"							photo_4205574.html");thumbnails[3880063]=new thumbnail(3880063,"235427","","selectivecolour_thumb.jpg",130,195,15,"							photo_3880063.html");thumbnails[4360387]=new thumbnail(4360387,"235427","","polaroid_thumb.jpg",130,195,15,"							photo_4360387.html");thumbnails[4360384]=new thumbnail(4360384,"235427","","infrared_thumb.jpg",130,195,15,"							photo_4360384.html");thumbnails[3929800]=new thumbnail(3929800,"235427","","19_thumb.jpg",130,195,15,"							photo_3929800.html");thumbnails[5620985]=new thumbnail(5620985,"235427","","MG8148pp_thumb.jpg",130,87,15,"							photo_5620985.html");thumbnails[3933010]=new thumbnail(3933010,"235427","","00014ir_thumb.jpg",130,87,15,"							photo_3933010.html");thumbnails[3930231]=new thumbnail(3930231,"235427","","3450645246_8da96b2667_thumb.jpg",130,87,15,"							photo_3930231.html");thumbnails[4360390]=new thumbnail(4360390,"235427","","selectivecolour1_thumb.jpg",130,87,15,"							photo_4360390.html");thumbnails[5620980]=new thumbnail(5620980,"235427","","ZAJ000105-2em_thumb.jpg",130,195,15,"							photo_5620980.html");thumbnails[5391658]=new thumbnail(5391658,"235427","","katiet00063em_thumb.jpg",130,195,15,"							photo_5391658.html");thumbnails[4360391]=new thumbnail(4360391,"235427","","velvia2_thumb.jpg",130,195,15,"							photo_4360391.html");thumbnails[7028693]=new thumbnail(7028693,"235427","","Jade_1100_thumb.jpg",130,195,15,"							photo_7028693.html");thumbnails[5620987]=new thumbnail(5620987,"235427","","RachelEXAMPLE0000411xpppem_thumb.jpg",130,93,15,"							photo_5620987.html");thumbnails[4365639]=new thumbnail(4365639,"235427","","polaroidem_thumb.jpg",130,87,15,"							photo_4365639.html");thumbnails[7028707]=new thumbnail(7028707,"235427","","katie0001481pp_thumb.jpg",130,87,15,"							photo_7028707.html");thumbnails[7035715]=new thumbnail(7035715,"235427","","_MG_6426mono_thumb.jpg",130,195,15,"							photo_7035715.html");thumbnails[7035716]=new thumbnail(7035716,"235427","","Nicola_Elliot_571_thumb.jpg",130,195,15,"							photo_7035716.html");var galleries=new Object();galleries[235427]=new gallery(235427,"7035716,7035715,7028707,7028693,5620987,5620985,5620980,5391674,5391658,4365639","A Selection Of Recent Shoots...","gallery",[3880307,3933009,3880260,4360392,3929803,3929991,5391674,4205574,3880063,4360387,4360384,3929800,5620985,3933010,3930231,4360390,5620980,5391658,4360391,7028693,5620987,4365639,7028707,7035715,7035716],0,0,"","																																																																																				gallery.html",0,0);var imageSets=new Object();imageSets[1]="7028707,5620985,4365639,4360384,4205574,3933010,3930231,3929803,3929800,3880260";imageSets[3]="7035716,7035715,7028707,7028693,5620987,5620985,5620980,5391674,5391658,4365639,4360392,4360391,4360390,4360387,4360384,4205574,3933010,3933009,3930231,3929991,3929803,3929800,3880307,3880260,3880063";function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/boudoirangel/images";break}switch(a){case 1:b="http://www1.clikpic.com/boudoirangel/images";break}switch(a){case 2:b="http://admin.clikpic.com/boudoirangel/images";break}switch(a){case 24:b="http://tpc15/clikpic/boudoirangel/images";break}switch(a){case 4:b="http://www.clikchurch.com/boudoirangel/images";break}switch(a){case 5:b="http://www2.clikpic.com/boudoirangel/images";break}switch(a){case 22:b="http://tpc5/clikpic/boudoirangel/images";break}switch(a){case 23:b="http://tpc10/clikpic/boudoirangel/images";break}switch(a){case 25:b="http://tpc16/clikpic/boudoirangel/images";break}switch(a){case 15:b="http://www3.clikpic.com/boudoirangel/images";break}switch(a){case 18:b="http://www4.clikpic.com/boudoirangel/images";break}switch(a){case 19:b="http://www5.clikpic.com/boudoirangel/images";break}switch(a){case 31:b="http://www7.clikpic.com/boudoirangel/images";break}switch(a){case 32:b="http://admin2.clikpic.com/boudoirangel/images";break}switch(a){case 33:b="http://www8.clikpic.com/boudoirangel/images";break}switch(a){case 34:b="http://www9.clikpic.com/boudoirangel/images";break}switch(a){case 35:b="http://admin3.clikpic.com/boudoirangel/images";break}switch(a){case 37:b="http://admin4.clikpic.com/boudoirangel/images";break}switch(a){case 38:b="http://admin5.clikpic.com/boudoirangel/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;a.parentNode.title=a.alt=photos[imageID].caption}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function getHomeImageLink(c){var a="",b=backgrounds&&backgrounds[c];if(b){if(b&&b.galleries_id!=""){a=b.fnGalleryLink()}else{a+="gallery.html"}}return a}function showHomeImageInline(e,c,a){var d={},b,f=1;if(c){f=c}b=randomListVal(imageSets[f]);if(a==null&&"gallery"!=""){a=getHomeImageLink(b)}updateImage({nextPhoto:backgrounds[b],img:e.find("img")[0],$photo:e,$title:$("#homeimageTitleContainer"),$detail:$("#homeimageDetailsContainer"),speed:0,href:a,css:d,onAfter:function(){this.closest(".contentsection").doManualAlign({inner:"img",crop:"a"})}})}function updateImage(c){var g={nextPhoto:"",field:"",img:"",$photo:"",$title:"",$detail:"",updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},h=$.extend({},g,c),d="",b="",a=h.nextPhoto.id,f=h.nextPhoto.caption,e=h.nextPhoto.src;if(!basic){if(h.updateHash&&clik.getIDInUrl(location.href,"photo")!=h.nextPhoto.id){clik.changeHash("photos_id="+h.nextPhoto.id,true)}if(h.$photo.length>0){d=$("<img/>",{"class":"mainphoto photo",src:e,id:"mainPic",name:"mainPic",width:h.nextPhoto.width,height:h.nextPhoto.height,alt:f,css:h.css||{}});if(h.href){if(h.href.match(/<a/)){d=$(h.href).append(d)}else{d=$("<a/>",{href:h.href,title:f}).append(d)}}else{d=$("<a/>",{title:f}).append(d)}if(h.speed==0){h.$photo.html(d);if(h.onBefore){h.onBefore.apply(h.$photo)}if(h.onAfter){h.onAfter.apply(h.$photo)}}else{h.$photo.stop(true,true).fadeReplaceWith(d,h.speed,"",function(){if(h.onAfter){h.onAfter.apply(this)}clik.doColumnResize(false,$(this).add(h.$detail).add(h.$title))},h.onBefore)}}if(h.field){h.field.value=a}else{h.$photo.data("image_id",a)}if(h.$title.length>0){h.$title.fadeGalleryDetails(f,h.speed)}if(h.updateDocumentTitle){document.title="Boudoir Angel: "+f}if(h.$detail.length>0){b=h.nextPhoto.fnGetImageDetails();h.$detail.fadeGalleryDetails(b,h.speed,function(){var j={};resizePhotoInfo(j);if(typeof(backgrounds)!="undefined"&&h.nextPhoto==backgrounds[h.nextPhoto.id]){toggleAddToCartConfirm(backgrounds)}else{if(typeof(photos)!="undefined"&&h.nextPhoto==photos[h.nextPhoto.id]){toggleAddToCartConfirm(photos)}}})}if(!h.speed){clik.doColumnResize(false,h.$photo.add(h.$detail).add(h.$title))}return d}else{window.location="photo_"+nextPhoto.id+".html"}}function toggleAddToCartConfirm(a){if(typeof(a)!=="object"){a=photos}if($("#paymentConfirm").length>0){$("#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,a,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();dspOrderDetails(form.site.value)}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}photo.prototype.fnGetImageDetails=function(){var a="";if(this.description!=""){a=a+'<p id="imageDescription">'+this.description+"</p>"}if(this.photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+this.photo_ref+"</p>"}if(this.takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+this.takendate+"</p>"}if(this.location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+this.location+"</p>"}if(this.photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+this.photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a};photo.prototype.fnGetPaymentInfo=function(){var b="";if(this.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+this.purchase_instruction+"</strong> 							"+(this.item_price).toFixed(2)+"</p>";var d=this.purchase_instruction;var c=(this.item_price).toFixed(2);var a=0}else{if(this.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(this.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[this.payment_groups_id].options[0];if(paymentOptions[a]){var d=paymentOptions[a].payment_option;var c=paymentOptions[a].price}}else{}}if(this.item_price!==""||this.payment_groups_id!=0){b=b+'<div class="clearing">&nbsp;</div>'}return b};function showGalleryImage(c,b,a){if(b){if(location.hash.match("galleries_id="+c)&&(imageID=location.hash.match(".*photos_id=(.+)$"))){imageID=imageID[1]}else{imageID=randomListVal(galleries[c].featured_images)}if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;b.alt=galleries[c].title;if(a){$(b).parent().attr({href:thumbnails[imageID].fnGalleryLink(c),title:galleries[c].title})}}}}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="'+galleries[i].section_code+"_"+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}};
