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[5569898]=new thumbnail(5569898,"275345","","IMG_1445_thumb.jpg",87,130,18);thumbnails[5569900]=new thumbnail(5569900,"275345","","IMG_1451_new_thumb.jpg",130,87,18);thumbnails[5569908]=new thumbnail(5569908,"275345","","IMG_1984_01_thumb.jpg",130,87,18);thumbnails[5569907]=new thumbnail(5569907,"275345","","IMG_1979_01_thumb.jpg",87,130,18);thumbnails[5569915]=new thumbnail(5569915,"275345","","IMG_5254_bw_thumb.jpg",130,87,18);thumbnails[5569914]=new thumbnail(5569914,"275345","","IMG_5246_bw_thumb.jpg",130,87,18);thumbnails[5569912]=new thumbnail(5569912,"275345","","IMG_4983_bw_thumb.jpg",130,87,18);thumbnails[5569902]=new thumbnail(5569902,"275345","","IMG_1512_thumb.jpg",130,87,18);thumbnails[5569904]=new thumbnail(5569904,"275345","","IMG_1518_thumb.jpg",87,130,18);thumbnails[5569916]=new thumbnail(5569916,"275345","","IMG_6453_thumb.jpg",130,130,18);thumbnails[5569896]=new thumbnail(5569896,"275345","","IMG_0389_thumb.jpg",87,130,18);thumbnails[5569911]=new thumbnail(5569911,"275345","","IMG_3019_thumb.jpg",130,87,18);thumbnails[5569909]=new thumbnail(5569909,"275345","","IMG_2124_thumb.jpg",87,130,18);thumbnails[5569910]=new thumbnail(5569910,"275345","","IMG_2253_01_thumb.jpg",87,130,18);thumbnails[5569905]=new thumbnail(5569905,"275345","","IMG_1537_thumb.jpg",87,130,18);thumbnails[5569906]=new thumbnail(5569906,"275345","","IMG_1553_thumb.jpg",130,87,18);thumbnails[5569897]=new thumbnail(5569897,"275345","","IMG_1095_bw_thumb.jpg",130,87,18);thumbnails[5569913]=new thumbnail(5569913,"275345","","IMG_5097_thumb.jpg",87,130,18);thumbnails[5569830]=new thumbnail(5569830,"280858","","IMG_5462_thumb.jpg",130,87,18);thumbnails[5569809]=new thumbnail(5569809,"280858","","IMG_2773_thumb.jpg",87,130,18);thumbnails[5616423]=new thumbnail(5616423,"280858","","IMG_5397_thumb.jpg",130,87,18);thumbnails[5569810]=new thumbnail(5569810,"280858","","IMG_2815_thumb.jpg",87,130,18);thumbnails[5569819]=new thumbnail(5569819,"280858","","IMG_5379_thumb.jpg",87,130,18);thumbnails[5569806]=new thumbnail(5569806,"280858","","IMG_2739_thumb.jpg",130,87,18);thumbnails[5569820]=new thumbnail(5569820,"280858","","IMG_5394_01_thumb.jpg",130,87,18);thumbnails[5569808]=new thumbnail(5569808,"280858","","IMG_2756_thumb.jpg",87,130,18);thumbnails[5569805]=new thumbnail(5569805,"280858","","IMG_2725_thumb.jpg",130,87,18);thumbnails[5569802]=new thumbnail(5569802,"280858","","IMG_0338_thumb.jpg",130,87,18);thumbnails[5569812]=new thumbnail(5569812,"280858","","IMG_2873_thumb.jpg",87,130,18);thumbnails[5569804]=new thumbnail(5569804,"280858","","IMG_0357_thumb.jpg",87,130,18);thumbnails[5569814]=new thumbnail(5569814,"280858","","IMG_3561_thumb.jpg",87,130,18);thumbnails[5569817]=new thumbnail(5569817,"280858","","IMG_5045_copy_thumb.jpg",87,130,18);thumbnails[5569815]=new thumbnail(5569815,"280858","","IMG_3572_thumb.jpg",87,130,18);thumbnails[5569844]=new thumbnail(5569844,"275346","","IMG_3599_thumb.jpg",130,87,18);thumbnails[5569834]=new thumbnail(5569834,"275346","","CRW_2272_thumb.jpg",87,130,18);thumbnails[5569843]=new thumbnail(5569843,"275346","","IMG_3597_thumb.jpg",87,130,18);thumbnails[5569857]=new thumbnail(5569857,"275346","","IMG_4840_thumb.jpg",130,87,18);thumbnails[5569856]=new thumbnail(5569856,"275346","","IMG_4669_thumb.jpg",87,130,18);thumbnails[5569839]=new thumbnail(5569839,"275346","","IMG_1977_copy_thumb.jpg",130,74,18);thumbnails[5569836]=new thumbnail(5569836,"275346","","IMG_1164_thumb.jpg",87,130,18);thumbnails[5569845]=new thumbnail(5569845,"275346","","IMG_3622_thumb.jpg",87,130,18);thumbnails[5569850]=new thumbnail(5569850,"275346","","IMG_3660_thumb.jpg",130,85,18);thumbnails[5569842]=new thumbnail(5569842,"275346","","IMG_3485_thumb.jpg",87,130,18);thumbnails[5569833]=new thumbnail(5569833,"275346","","CRW_1840_bw_thumb.jpg",130,95,18);thumbnails[5569851]=new thumbnail(5569851,"275346","","IMG_3870_thumb.jpg",87,130,18);thumbnails[5569849]=new thumbnail(5569849,"275346","","IMG_3641_thumb.jpg",130,130,18);thumbnails[5569858]=new thumbnail(5569858,"275346","","IMG_5687_bird_thumb.jpg",87,130,18);thumbnails[5569853]=new thumbnail(5569853,"275346","","IMG_4123_thumb.jpg",130,87,18);thumbnails[5569859]=new thumbnail(5569859,"275346","","IMG_8516_thumb.jpg",98,130,18);thumbnails[5569838]=new thumbnail(5569838,"275346","","IMG_1692_thumb.jpg",87,130,18);thumbnails[5569854]=new thumbnail(5569854,"275346","","IMG_4477_thumb.jpg",130,87,18);thumbnails[5569837]=new thumbnail(5569837,"275346","","IMG_1439_thumb.jpg",87,130,18);thumbnails[5569755]=new thumbnail(5569755,"276975","","IMG_1359_thumb.jpg",130,87,18);thumbnails[5569762]=new thumbnail(5569762,"276975","","IMG_2805_copy_thumb.jpg",130,87,18);thumbnails[5569759]=new thumbnail(5569759,"276975","","IMG_2803_copy_thumb.jpg",130,104,18);thumbnails[5569757]=new thumbnail(5569757,"276975","","IMG_1799_thumb.jpg",87,130,18);thumbnails[5569764]=new thumbnail(5569764,"276975","","IMG_5499_thumb.jpg",87,130,18);thumbnails[5569763]=new thumbnail(5569763,"276975","","IMG_5469_thumb.jpg",87,130,18);thumbnails[5569785]=new thumbnail(5569785,"276975","","IMG_5717_thumb.jpg",87,130,18);thumbnails[5569783]=new thumbnail(5569783,"276975","","IMG_5700_thumb.jpg",91,130,18);thumbnails[5569754]=new thumbnail(5569754,"276975","","falra_thumb.jpg",130,65,18);thumbnails[5569786]=new thumbnail(5569786,"276975","","IMG_5771_thumb.jpg",87,130,18);thumbnails[5569787]=new thumbnail(5569787,"276975","","IMG_6047_thumb.jpg",130,87,18);thumbnails[5569788]=new thumbnail(5569788,"276975","","IMG_6352_thumb.jpg",130,87,18);thumbnails[5569918]=new thumbnail(5569918,"276975","","Untitled-1_thumb.jpg",119,130,18);thumbnails[5569789]=new thumbnail(5569789,"276977","","CRW_1685_thumb.jpg",130,88,18);thumbnails[5569795]=new thumbnail(5569795,"276977","","IMG_2050_thumb.jpg",130,87,18);thumbnails[5569792]=new thumbnail(5569792,"276977","","CRW_2103_thumb.jpg",130,109,18);thumbnails[5569800]=new thumbnail(5569800,"276977","","IMG_4789_copy_thumb.jpg",87,130,18);thumbnails[5569793]=new thumbnail(5569793,"276977","","IMG_0423_thumb.jpg",130,87,18);thumbnails[5569799]=new thumbnail(5569799,"276977","","IMG_2629_thumb.jpg",130,87,18);thumbnails[5569794]=new thumbnail(5569794,"276977","","IMG_1109_thumb.jpg",87,130,18);thumbnails[5569733]=new thumbnail(5569733,"276954","","IMG_2132_thumb.jpg",130,76,18);thumbnails[5569739]=new thumbnail(5569739,"276954","","IMG_4448_thumb.jpg",130,87,18);thumbnails[5575214]=new thumbnail(5575214,"276954","","Untitled-1_1A3FB21B-1EC9-D45B-1C8918997CC0D3D1_thumb.jpg",130,87,18);thumbnails[5569730]=new thumbnail(5569730,"276954","","IMG_1455_thumb.jpg",87,130,18);thumbnails[5569735]=new thumbnail(5569735,"276954","","IMG_4365_copy_thumb.jpg",130,87,18);thumbnails[5569736]=new thumbnail(5569736,"276954","","IMG_4375_thumb.jpg",100,130,18);thumbnails[5569752]=new thumbnail(5569752,"276954","","wembley_02_thumb.jpg",87,130,18);thumbnails[5569742]=new thumbnail(5569742,"276954","","IMG_4464_thumb.jpg",130,86,18);thumbnails[5569734]=new thumbnail(5569734,"276954","","IMG_2196_thumb.jpg",130,87,18);thumbnails[5569748]=new thumbnail(5569748,"276954","","IMG_8497_thumb.jpg",130,130,18);thumbnails[5569749]=new thumbnail(5569749,"276954","","IMG_8505_thumb.jpg",130,87,18);thumbnails[5569745]=new thumbnail(5569745,"276954","","IMG_4684_thumb.jpg",130,87,18);var galleries=new Object();galleries[275345]=new gallery(275345,"5569916,5569915,5569914,5569913,5569912,5569911,5569910,5569909,5569908,5569907","people","gallery",[5569898,5569900,5569908,5569907,5569915,5569914,5569912,5569902,5569904,5569916,5569896,5569911,5569909,5569910,5569905,5569906,5569897,5569913]);galleries[280858]=new gallery(280858,"5616423,5569830,5569820,5569819,5569817,5569815,5569814,5569812,5569810,5569809","kids","gallery",[5569830,5569809,5616423,5569810,5569819,5569806,5569820,5569808,5569805,5569802,5569812,5569804,5569814,5569817,5569815]);galleries[275346]=new gallery(275346,"5569859,5569858,5569857,5569856,5569854,5569853,5569851,5569850,5569849,5569845","landscapes","gallery",[5569844,5569834,5569843,5569857,5569856,5569839,5569836,5569845,5569850,5569842,5569833,5569851,5569849,5569858,5569853,5569859,5569838,5569854,5569837]);galleries[276975]=new gallery(276975,"5569918,5569788,5569787,5569786,5569785,5569783,5569764,5569763,5569762,5569759","commercial","gallery",[5569755,5569762,5569759,5569757,5569764,5569763,5569785,5569783,5569754,5569786,5569787,5569788,5569918]);galleries[276977]=new gallery(276977,"5569800,5569799,5569795,5569794,5569793,5569792,5569789","etc...","gallery",[5569789,5569795,5569792,5569800,5569793,5569799,5569794]);galleries[276954]=new gallery(276954,"5575214,5569752,5569749,5569748,5569745,5569742,5569739,5569736,5569735,5569734","cityscapes","gallery",[5569733,5569739,5575214,5569730,5569735,5569736,5569752,5569742,5569734,5569748,5569749,5569745]);var imageSets=new Object();imageSets[1]="5616423,5575214,5569918,5569916,5569915,5569914,5569913,5569912,5569911,5569910,5569909,5569908,5569907,5569906,5569905,5569904,5569902,5569900,5569898,5569897,5569896,5569859,5569858,5569857,5569856,5569854,5569853,5569851,5569850,5569849,5569845,5569844,5569843,5569842,5569839,5569838,5569837,5569836,5569834,5569833,5569830,5569820,5569819,5569817,5569815,5569814,5569812,5569810,5569809,5569808";imageSets[3]="5616423,5575214,5569918,5569916,5569915,5569914,5569913,5569912,5569911,5569910,5569909,5569908,5569907,5569906,5569905,5569904,5569902,5569900,5569898,5569897,5569896,5569859,5569858,5569857,5569856,5569854,5569853,5569851,5569850,5569849,5569845,5569844,5569843,5569842,5569839,5569838,5569837,5569836,5569834,5569833,5569830,5569820,5569819,5569817,5569815,5569814,5569812,5569810,5569809,5569808";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/zane1/images";break}switch(a){case 1:b="http://www1.clikpic.com/zane1/images";break}switch(a){case 2:b="http://admin.clikpic.com/zane1/images";break}switch(a){case 24:b="http://tpc15/clikpic/zane1/images";break}switch(a){case 4:b="http://www.clikchurch.com/zane1/images";break}switch(a){case 5:b="http://www2.clikpic.com/zane1/images";break}switch(a){case 22:b="http://tpc5/clikpic/zane1/images";break}switch(a){case 23:b="http://tpc10/clikpic/zane1/images";break}switch(a){case 25:b="http://tpc16/clikpic/zane1/images";break}switch(a){case 15:b="http://www3.clikpic.com/zane1/images";break}switch(a){case 18:b="http://www4.clikpic.com/zane1/images";break}switch(a){case 19:b="http://www5.clikpic.com/zane1/images";break}switch(a){case 31:b="http://www7.clikpic.com/zane1/images";break}switch(a){case 32:b="http://admin2.clikpic.com/zane1/images";break}switch(a){case 33:b="http://www8.clikpic.com/zane1/images";break}switch(a){case 34:b="http://www9.clikpic.com/zane1/images";break}switch(a){case 35:b="http://admin3.clikpic.com/zane1/images";break}switch(a){case 37:b="http://admin4.clikpic.com/zane1/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="bence zanyi 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;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].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="bence.zanyi@yahoo.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="bence.zanyi@yahoo.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(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+'")'})}}};