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[3073932]=new thumbnail(3073932,"188824","","n715461930_245686_8722_thumb.jpg",130,134,32);thumbnails[3073933]=new thumbnail(3073933,"188824","","n715461930_245685_3201_thumb.jpg",130,131,32);thumbnails[3073935]=new thumbnail(3073935,"188824","","n715461930_821116_7551_thumb.jpg",130,173,32);thumbnails[3073938]=new thumbnail(3073938,"188824","","n715461930_821117_7844_thumb.jpg",130,173,32);thumbnails[3435126]=new thumbnail(3435126,"188824","","1d _thumb.jpg",130,182,32);thumbnails[3435130]=new thumbnail(3435130,"188824","","3d_thumb.jpg",130,182,32);thumbnails[3435145]=new thumbnail(3435145,"188824","","2d1_thumb.jpg",130,182,32);thumbnails[5650233]=new thumbnail(5650233,"188824","","_web6196_thumb.jpg",130,184,32);thumbnails[5650235]=new thumbnail(5650235,"188824","","_web6201_thumb.jpg",130,184,32);thumbnails[5650236]=new thumbnail(5650236,"188824","","_web6203_thumb.jpg",130,184,32);thumbnails[5650237]=new thumbnail(5650237,"188824","","_DSC8265_thumb.jpg",130,184,32);thumbnails[5650239]=new thumbnail(5650239,"188824","","_TEL7128_thumb.jpg",130,184,32);thumbnails[5650301]=new thumbnail(5650301,"188824","","2_michelle_1_cmyk1_thumb.jpg",130,163,32);thumbnails[5650306]=new thumbnail(5650306,"188824","","3_michelle__33654_thumb.jpg",130,163,32);thumbnails[3073939]=new thumbnail(3073939,"188824","","n715461930_821125_331_thumb.jpg",130,98,32);thumbnails[3073934]=new thumbnail(3073934,"188824","","n715461930_245691_2348_thumb.jpg",130,173,32);thumbnails[3278215]=new thumbnail(3278215,"188824","","_mich21_thumb. JDL30661.jpg",130,130,32);thumbnails[3139443]=new thumbnail(3139443,"188824","","_mich25_thumb.DSC4862 copy.jpg",130,130,32);thumbnails[3139431]=new thumbnail(3139431,"188824","","_mich _thumb. DSC4255 copy.jpg",130,130,32);thumbnails[3278218]=new thumbnail(3278218,"188824","","_mich23_thumb. JDL3092 copy 11.jpg",130,130,32);thumbnails[3278222]=new thumbnail(3278222,"188824","","_TEL0109_thumb.jpg",130,130,32);thumbnails[3073960]=new thumbnail(3073960,"188825","","n715461930_245687_9468_thumb.jpg",130,174,32);thumbnails[3073962]=new thumbnail(3073962,"188825","","n715461930_245688_255_thumb.jpg",130,174,32);thumbnails[3073964]=new thumbnail(3073964,"188825","","n715461930_959308_6462_thumb.jpg",130,173,32);thumbnails[3434963]=new thumbnail(3434963,"209922","","RH 1 - Border -_thumb.jpg",130,182,32);thumbnails[3434967]=new thumbnail(3434967,"209922","","RH 2 - Border -_thumb.jpg",130,182,32);thumbnails[3434970]=new thumbnail(3434970,"209922","","RH 3- Border -_thumb.jpg",130,182,32);thumbnails[3434975]=new thumbnail(3434975,"209922","","RH 4- Border -_thumb.jpg",130,182,32);thumbnails[3434978]=new thumbnail(3434978,"209922","","RH 20- Border -_thumb.jpg",130,182,32);thumbnails[3434981]=new thumbnail(3434981,"209922","","RH 5- Border -_thumb.jpg",130,182,32);thumbnails[3434983]=new thumbnail(3434983,"209922","","RH 6a- Border -_thumb.jpg",130,182,32);thumbnails[3434985]=new thumbnail(3434985,"209922","","RH 22  -_thumb.jpg",130,182,32);thumbnails[3435004]=new thumbnail(3435004,"209922","","RH 20- Border -1_thumb.jpg",130,182,32);thumbnails[3435005]=new thumbnail(3435005,"209922","","RH 21- Border -_thumb.jpg",130,93,32);thumbnails[3435033]=new thumbnail(3435033,"209922","","RH 20 orderw -_thumb.jpg",130,182,32);thumbnails[3435053]=new thumbnail(3435053,"209922","","RH 23-  -1_thumb.jpg",130,93,32);thumbnails[3435000]=new thumbnail(3435000,"209922","","RH 14- Border -_thumb.jpg",130,93,32);thumbnails[3434984]=new thumbnail(3434984,"209922","","RH 7- Border -_thumb.jpg",130,93,32);thumbnails[3434998]=new thumbnail(3434998,"209922","","RH 13- Border -_thumb.jpg",130,93,32);thumbnails[3434996]=new thumbnail(3434996,"209922","","RH 10- Border -_thumb.jpg",130,93,32);thumbnails[3434994]=new thumbnail(3434994,"209922","","RH 9- Border -_thumb.jpg",130,93,32);thumbnails[3434993]=new thumbnail(3434993,"209922","","RH 8 - Border -_thumb.jpg",130,93,32);thumbnails[3278076]=new thumbnail(3278076,"192534","","3_thumb. ADJ - 2547bw.jpg",130,184,32);thumbnails[3278079]=new thumbnail(3278079,"192534","","23EXTRA_thumb.ADJ 2966.jpg",130,184,32);thumbnails[3278313]=new thumbnail(3278313,"192534","","7_thumb. ADJ - SG 2869xarmyekkhue1.jpg",130,184,32);thumbnails[3279999]=new thumbnail(3279999,"192534","","9_thumb. Img26461.jpg",130,184,32);thumbnails[3278084]=new thumbnail(3278084,"192534","","SGDImg03841_thumb.jpg",130,184,32);thumbnails[3139466]=new thumbnail(3139466,"192534","","A4 0315boos_thumb.jpg",130,184,32);thumbnails[3139474]=new thumbnail(3139474,"192534","","A4 SG Img03771_thumb.jpg",130,184,32);thumbnails[3139477]=new thumbnail(3139477,"192534","","SG A4Img0323_thumb.jpg",130,184,32);thumbnails[3139480]=new thumbnail(3139480,"192534","","SG CROPImg0236_thumb.jpg",130,184,32);thumbnails[3139483]=new thumbnail(3139483,"192534","","SGDcropImg0346_thumb.jpg",130,184,32);thumbnails[3139490]=new thumbnail(3139490,"192534","","webA4 SG Img0294bw1_thumb.jpg",130,184,32);thumbnails[5858081]=new thumbnail(5858081,"192534","","_LIZ_thumb.jpg",130,184,32);thumbnails[5858082]=new thumbnail(5858082,"192534","","_LIZ0758_thumb.jpg",130,184,32);thumbnails[5858089]=new thumbnail(5858089,"192534","","_LIZ0873__thumb.jpg",130,184,32);thumbnails[5858092]=new thumbnail(5858092,"192534","","_LIZ0879_thumb.jpg",130,184,32);thumbnails[5858096]=new thumbnail(5858096,"192534","","_LIZ0927_pp_thumb.jpg",130,184,32);thumbnails[5858084]=new thumbnail(5858084,"192534","","_LIZ0779__thumb.jpg",130,92,32);thumbnails[5858094]=new thumbnail(5858094,"192534","","_LIZ0906card_thumb.jpg",130,92,32);thumbnails[5858157]=new thumbnail(5858157,"192534","","_LIZ0943_pp22_thumb.jpg",130,92,32);thumbnails[5858158]=new thumbnail(5858158,"192534","","_LIZ0958_thumb.jpg",130,92,32);thumbnails[5858167]=new thumbnail(5858167,"192534","","_LIZ09711_thumb.jpg",130,92,32);thumbnails[5862687]=new thumbnail(5862687,"331368","","michelle-web1_thumb.jpg",130,92,32);thumbnails[5862689]=new thumbnail(5862689,"331368","","hair_web2-1_thumb.jpg",130,92,32);var galleries=new Object();galleries[188824]=new gallery(188824,"5650306,5650301,5650239,5650237,5650236,5650235,5650233,3435145,3435130,3435126","Wedding hair & makeup","gallery",[3073932,3073933,3073935,3073938,3435126,3435130,3435145,5650233,5650235,5650236,5650237,5650239,5650301,5650306,3073939,3073934,3278215,3139443,3139431,3278218,3278222]);galleries[188825]=new gallery(188825,"3073964,3073962,3073960","Hair extensions","gallery",[3073960,3073962,3073964]);galleries[209922]=new gallery(209922,"3434983","Bride Makeover","gallery",[3434963,3434967,3434970,3434975,3434978,3434981,3434983,3434985,3435004,3435005,3435033,3435053,3435000,3434984,3434998,3434996,3434994,3434993]);galleries[192534]=new gallery(192534,"5858092","Model Portfolio/Fashion","gallery",[3278076,3278079,3278313,3279999,3278084,3139466,3139474,3139477,3139480,3139483,3139490,5858081,5858082,5858089,5858092,5858096,5858084,5858094,5858157,5858158,5858167]);galleries[331368]=new gallery(331368,"5862687","Colour, cut & finish","gallery",[5862687,5862689]);var imageSets=new Object();imageSets[1]="3073932";imageSets[2]="5862687,5858092,3434983";imageSets[3]="5862689,5862687,5858167,5858158,5858157,5858096,5858094,5858092,5858089,5858084,5858082,5858081,5650306,5650301,5650239,5650237,5650236,5650235,5650233,3435145,3435130,3435126,3435053,3435033,3435005,3435004,3435000,3434998,3434996,3434994,3434993,3434985,3434984,3434983,3434981,3434978,3434975,3434970,3434967,3434963,3279999,3278313,3278222,3278218,3278215,3278084,3278079,3278076,3139490,3139483";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/bubblesandbows/images";break}switch(a){case 1:b="http://www1.clikpic.com/bubblesandbows/images";break}switch(a){case 2:b="http://admin.clikpic.com/bubblesandbows/images";break}switch(a){case 24:b="http://tpc15/clikpic/bubblesandbows/images";break}switch(a){case 4:b="http://www.clikchurch.com/bubblesandbows/images";break}switch(a){case 5:b="http://www2.clikpic.com/bubblesandbows/images";break}switch(a){case 22:b="http://tpc5/clikpic/bubblesandbows/images";break}switch(a){case 23:b="http://tpc10/clikpic/bubblesandbows/images";break}switch(a){case 25:b="http://tpc16/clikpic/bubblesandbows/images";break}switch(a){case 15:b="http://www3.clikpic.com/bubblesandbows/images";break}switch(a){case 18:b="http://www4.clikpic.com/bubblesandbows/images";break}switch(a){case 19:b="http://www5.clikpic.com/bubblesandbows/images";break}switch(a){case 31:b="http://www7.clikpic.com/bubblesandbows/images";break}switch(a){case 32:b="http://admin2.clikpic.com/bubblesandbows/images";break}switch(a){case 33:b="http://www8.clikpic.com/bubblesandbows/images";break}switch(a){case 34:b="http://www9.clikpic.com/bubblesandbows/images";break}switch(a){case 35:b="http://admin3.clikpic.com/bubblesandbows/images";break}switch(a){case 37:b="http://admin4.clikpic.com/bubblesandbows/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="michelle vassallo wedding hair & makeup: "+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].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> 							"+(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+'<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+'")'})}}};