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[3042073]=new thumbnail(3042073,"","BEAUTY PRODUCTS","essentialformula1_thumb.jpg",130,98,32);thumbnails[3077240]=new thumbnail(3077240,"","","vodkart2_thumb.jpg",130,92,32);thumbnails[3077239]=new thumbnail(3077239,"","BEFORE","vodkart1_thumb.jpg",130,92,32);thumbnails[3246688]=new thumbnail(3246688,"","DUCHAMP","1052_38A_thumb.jpg",130,140,32);thumbnails[3417964]=new thumbnail(3417964,"187086","","PaulSmithAdrt22_thumb.jpg",130,92,32);thumbnails[3042151]=new thumbnail(3042151,"187086"," BEFORE","PaulSmithAdrt1_thumb.jpg",130,92,32);thumbnails[3077251]=new thumbnail(3077251,"188759","","lamprt21_thumb.jpg",130,92,32);thumbnails[3077246]=new thumbnail(3077246,"188759","BEFORE","lamprt11_thumb.jpg",130,92,32);thumbnails[3417233]=new thumbnail(3417233,"208848","TAG","carrerart21_thumb.jpg",130,98,32);thumbnails[3420888]=new thumbnail(3420888,"208848","DIESEL","DieselWatch_thumb.jpg",130,92,32);thumbnails[3077230]=new thumbnail(3077230,"188760","","carrerart2_thumb.jpg",130,98,32);thumbnails[3077232]=new thumbnail(3077232,"188760","BEFORE","carrerart1_thumb.jpg",130,98,32);thumbnails[3398923]=new thumbnail(3398923,"208848","DNYK","DKNYWatch6_thumb.jpg",130,92,32);thumbnails[3246639]=new thumbnail(3246639,"208848","Jasper Conran watch","0089-06Watch_thumb.jpg",130,173,32);thumbnails[3319033]=new thumbnail(3319033,"208848","DNYK","DKNY_BODYWORK retouch_thumb.jpg",130,92,32);thumbnails[3246713]=new thumbnail(3246713,"208848","RED HERRING","Shoot4_DM_MW_SS_26_thumb.jpg",130,92,32);thumbnails[3041031]=new thumbnail(3041031,"208848","JOHN ROCHA","johnrochawatch_thumb.jpg",130,92,32);thumbnails[3246712]=new thumbnail(3246712,"208848","RED HERRING","RedHerring_thumb.jpg",130,92,32);thumbnails[3319030]=new thumbnail(3319030,"208848","DNYK","DKNYWatchBack_MAIN72dpi_thumb.jpg",130,92,32);thumbnails[6429500]=new thumbnail(6429500,"218343","ALISON BERTHELSEN","Necklace_with_flowers0018_thumb.jpg",130,92,32);thumbnails[5620361]=new thumbnail(5620361,"218343","ALISON BERTHELSEN JEWELLERY","Dress_On_Chain_main_thumb.jpg",130,92,32);thumbnails[5620379]=new thumbnail(5620379,"218343","ALISON BERTHELSEN JEWELLERY","Necklace_Alison2_thumb.jpg",130,92,32);thumbnails[5580374]=new thumbnail(5580374,"218343","ALISON BERTHELSEN","HN1_Book_01_RT_thumb.jpg",130,92,32);thumbnails[5244691]=new thumbnail(5244691,"218343","CENTRALE SHOPPING CENTRE","Centrale_shopping_centre682x484px_thumb.jpg",130,92,32);thumbnails[3571185]=new thumbnail(3571185,"218343","ARLINGTON AND CO","ArlingtonRing_main_thumb.jpg",130,92,32);thumbnails[3571184]=new thumbnail(3571184,"218343","ARLINGTON AND CO","ArlingtonNeckless_purple_thumb.jpg",130,92,32);thumbnails[3571213]=new thumbnail(3571213,"218343","DURRANTS LONDON","DurrantBraclet_Main_thumb.jpg",130,92,32);thumbnails[3571214]=new thumbnail(3571214,"218343","DURRENTS LONDON","DurrantRing_Main_thumb.jpg",130,92,32);thumbnails[3571421]=new thumbnail(3571421,"218343","CLASSIC JEWELLERY LONDON","Classic_ring_3_thumb.jpg",130,92,32);thumbnails[3571212]=new thumbnail(3571212,"218343","CLASSIC JEWELLERY LONDON","ClassicRing1_Main1_thumb.jpg",130,92,32);thumbnails[3571186]=new thumbnail(3571186,"218343","CLASSIC JEWELLERY LONDON","Classic_Ring2_thumb.jpg",130,92,32);thumbnails[3042067]=new thumbnail(3042067,"218343","DEBENHAMS","debnecklace_thumb.jpg",130,173,32);thumbnails[3041027]=new thumbnail(3041027,"218343","DUCHAMP","duchampcufflinks2_thumb.jpg",130,92,32);thumbnails[4370724]=new thumbnail(4370724,"186990","HSBC","1338_02_Lambretta_Master_thumb.jpg",130,92,32);thumbnails[4445820]=new thumbnail(4445820,"186990","HSBC","1338_03_Lambretta_Main_thumb.jpg",130,92,32);thumbnails[3042127]=new thumbnail(3042127,"186990","PAUL SMITH","PaulSmithAdrt21_thumb.jpg",130,92,32);thumbnails[3420876]=new thumbnail(3420876,"186990","NOKIA","NokiaPhone6500_2_thumb.jpg",130,92,32);thumbnails[3246711]=new thumbnail(3246711,"186990","CLARINS PERFUME","ClarinRT-_thumb.jpg",130,92,32);thumbnails[3041032]=new thumbnail(3041032,"186990","FALLING LAMP","lamp_thumb.jpg",130,92,32);thumbnails[3041020]=new thumbnail(3041020,"186990","DICE","craps2_thumb.jpg",130,92,32);thumbnails[3041043]=new thumbnail(3041043,"186990","TRIPP","redcasewheel_thumb.jpg",130,172,32);thumbnails[3041497]=new thumbnail(3041497,"186990","DUCHAMP","leatherbag_thumb.jpg",130,173,32);thumbnails[3246673]=new thumbnail(3246673,"186990","DUCHAMP","1052_29_thumb.jpg",130,173,32);thumbnails[3041029]=new thumbnail(3041029,"186990","GUCCI","gucci_thumb.jpg",130,92,32);thumbnails[3042072]=new thumbnail(3042072,"186990","PER UNA","peruna22_thumb.jpg",130,144,32);thumbnails[3041041]=new thumbnail(3041041,"186990","RADOX","radox_thumb.jpg",130,92,32);thumbnails[3040993]=new thumbnail(3040993,"186990","TRIPP","bluecasestripp_thumb.jpg",130,92,32);thumbnails[3246695]=new thumbnail(3246695,"186990","TRIPP","1096_05_thumb.jpg",130,92,32);thumbnails[3246699]=new thumbnail(3246699,"186990","TRIPP","1106_02_thumb.jpg",130,92,32);thumbnails[3246701]=new thumbnail(3246701,"186990","TRIPP","1163_01_Renown_thumb.jpg",130,173,32);thumbnails[3246704]=new thumbnail(3246704,"186990","TRIPP","1218_08_Cabin_Pink_Croc_CU_thumb.jpg",130,173,32);thumbnails[3041074]=new thumbnail(3041074,"186990","ELEMENTS","Elements_thumb.jpg",130,92,32);thumbnails[3246715]=new thumbnail(3246715,"186990","Sony Cameras","Sony-camerasRoy_thumb.jpg",130,92,32);thumbnails[3041953]=new thumbnail(3041953,"186990","DEBENHAMS","sunglassesgrey1_thumb.jpg",130,92,32);thumbnails[3246707]=new thumbnail(3246707,"186990","DEBENHAMS","039004cmyk2_thumb.jpg",130,92,32);thumbnails[6431430]=new thumbnail(6431430,"187005","DEREK ROSE PYJAMAS<br>\r\n","Dereck_rose_thumb.jpg",130,92,32);thumbnails[3041467]=new thumbnail(3041467,"187005","DUCHAMP","duchampevening_thumb.jpg",130,173,32);thumbnails[3041048]=new thumbnail(3041048,"187005","DUCHAMP","tieshirtblackpurple_thumb.jpg",130,173,32);thumbnails[3041487]=new thumbnail(3041487,"187005","DUCHAMP","duchamprainbowstripe_thumb.jpg",130,92,32);thumbnails[3041490]=new thumbnail(3041490,"187005","DUCHAMP","duchamptiechair_thumb.jpg",130,173,32);thumbnails[3040988]=new thumbnail(3040988,"187005","ADIDAS","adidasreflection_thumb.jpg",130,171,32);thumbnails[3045243]=new thumbnail(3045243,"187005","DUNE","dunePeepToeLeather_thumb.jpg",130,173,32);thumbnails[3041646]=new thumbnail(3041646,"187005","DEBENHAMS","purpleshoes2_thumb.jpg",130,92,32);thumbnails[3041637]=new thumbnail(3041637,"187005","DEBENHAMS","pregnantblackdress_thumb.jpg",130,92,32);thumbnails[3042077]=new thumbnail(3042077,"187005","HSBC","hsbcdenimjacket_thumb.jpg",130,92,32);thumbnails[3041628]=new thumbnail(3041628,"187005","M&S","mspinkunderwear_thumb.jpg",130,92,32);thumbnails[3042075]=new thumbnail(3042075,"187005","HSBC","asainblackheadress_thumb.jpg",130,92,32);thumbnails[3041631]=new thumbnail(3041631,"187005","M&S","mspinstripesuit_thumb.jpg",130,92,32);thumbnails[3041622]=new thumbnail(3041622,"187005","OK-NI","Jeans_thumb.jpg",130,92,32);thumbnails[3246656]=new thumbnail(3246656,"187005","DUCHAMP","0935_16-pochettes_thumb.jpg",130,161,32);thumbnails[4370742]=new thumbnail(4370742,"187005","HSBC","1338_Kimono2_Master_thumb.jpg",130,92,32);thumbnails[3246660]=new thumbnail(3246660,"187005","DUCHAMP","1052_26A_thumb.jpg",130,92,32);thumbnails[3045240]=new thumbnail(3045240,"187005","DUCHAMP","duchampbelts_thumb.jpg",130,173,32);thumbnails[4370741]=new thumbnail(4370741,"187005","HSBC","1338_Kimon1_Master_thumb.jpg",130,183,32);thumbnails[3246667]=new thumbnail(3246667,"187005","DUCHAMP","1052_27_thumb.jpg",130,173,32);thumbnails[3246683]=new thumbnail(3246683,"187005","DUCHAMP","1052_30B_thumb.jpg",130,92,32);thumbnails[5428543]=new thumbnail(5428543,"306752","LIGHTS","Beeds_on_black_0009_thumb.jpg",130,92,32);thumbnails[5428699]=new thumbnail(5428699,"306752","BEEDS","Beeds_on_black_0011_thumb.jpg",130,92,32);thumbnails[5428711]=new thumbnail(5428711,"306752","ROPES","Rope_on_black_0008_thumb.jpg",130,92,32);thumbnails[5428717]=new thumbnail(5428717,"306752","MALTESERS","Rope_on_black_0014_thumb.jpg",130,92,32);thumbnails[5450579]=new thumbnail(5450579,"306752","BALLET SHOES","1338_Ballet0109_thumb.jpg",130,92,32);thumbnails[3077236]=new thumbnail(3077236,"189016","","rjrwatchrt2_thumb.jpg",130,92,32);thumbnails[3077234]=new thumbnail(3077234,"189016","BEFORE","rjrwatchrt1_thumb.jpg",130,92,32);thumbnails[3077245]=new thumbnail(3077245,"188761","","BMrt2_thumb.jpg",130,55,32);thumbnails[3077244]=new thumbnail(3077244,"188761","BEFORE","BMrt1_thumb.jpg",130,55,32);thumbnails[3077409]=new thumbnail(3077409,"187089","","SHIPSPROFILErt11_thumb.jpg",130,92,32);thumbnails[3077411]=new thumbnail(3077411,"187089","BEFORE","SHIPSPROFILErt21_thumb.jpg",130,92,32);thumbnails[3417473]=new thumbnail(3417473,"208877","","Debextrt2_thumb.jpg",130,182,32);thumbnails[3417489]=new thumbnail(3417489,"208877","BEFORE","Debextrt1_thumb.jpg",130,182,32);thumbnails[3417498]=new thumbnail(3417498,"208890","","Womanatstairs_thumb.jpg",130,163,32);thumbnails[3417502]=new thumbnail(3417502,"208890","BEFORE","WomanatstairsOrg_thumb.jpg",130,163,32);thumbnails[4445845]=new thumbnail(4445845,"259908","","ClarinRT_rt2_thumb.jpg",130,92,32);thumbnails[4445821]=new thumbnail(4445821,"259908","Before","ClarinRT_rt1_thumb.jpg",130,92,32);thumbnails[4445852]=new thumbnail(4445852,"259909","","Classic_ring_3_rt2_thumb.jpg",130,92,32);thumbnails[4445849]=new thumbnail(4445849,"259909","Before","Classic_ring_3_rt1_thumb.jpg",130,92,32);thumbnails[5340453]=new thumbnail(5340453,"300726","CENTRALE SHOPPING CENTRE","Centrale_website_thumb.jpg",130,92,32);thumbnails[5341955]=new thumbnail(5341955,"300731","DIANNA STEVENS JEWELLERY","ArlingtonNecklace_logo_thumb.jpg",130,92,32);thumbnails[5342000]=new thumbnail(5342000,"300781","ARLINGTON & CO JEWELLERY","ArlingtonRing_logo16x12_thumb.jpg",130,92,32);var galleries=new Object();galleries[187086]=new gallery(187086,"3417964,3042151","RETOUCHING 1","section231545",[3417964,3042151]);galleries[188759]=new gallery(188759,"3077251,3077246","RETOUCHING 2","section231545",[3077251,3077246]);galleries[208848]=new gallery(208848,"3319030","PORTFOLIO 1","gallery",[3417233,3420888,3398923,3246639,3319033,3246713,3041031,3246712,3319030]);galleries[188760]=new gallery(188760,"3077232,3077230","RETOUCHING 3","section231545",[3077230,3077232]);galleries[218343]=new gallery(218343,"5620379,3571212","PORTFOLIO 2","gallery",[6429500,5620361,5620379,5580374,5244691,3571185,3571184,3571213,3571214,3571421,3571212,3571186,3042067,3041027]);galleries[186990]=new gallery(186990,"3246711","PORTFOLIO 3","gallery",[4370724,4445820,3042127,3420876,3246711,3041032,3041020,3041043,3041497,3246673,3041029,3042072,3041041,3040993,3246695,3246699,3246701,3246704,3041074,3246715,3041953,3246707]);galleries[187005]=new gallery(187005,"6431430,4370742,4370741,3246683,3246667,3246660,3246656,3045243,3045240,3042077","PORTFOLIO 4","gallery",[6431430,3041467,3041048,3041487,3041490,3040988,3045243,3041646,3041637,3042077,3041628,3042075,3041631,3041622,3246656,4370742,3246660,3045240,4370741,3246667,3246683]);galleries[306752]=new gallery(306752,"5450579,5428717,5428711,5428699,5428543","PORTFOLIO 5","gallery",[5428543,5428699,5428711,5428717,5450579]);galleries[189016]=new gallery(189016,"3077236,3077234","RETOUCHING 4","section231545",[3077236,3077234]);galleries[188761]=new gallery(188761,"3077245,3077244","RETOUCHING 5","section231545",[3077245,3077244]);galleries[187089]=new gallery(187089,"3077411,3077409","RETOUCHING 6","section231545",[3077409,3077411]);galleries[208877]=new gallery(208877,"3417489,3417473","RETOUCHING 7","section231545",[3417473,3417489]);galleries[208890]=new gallery(208890,"3417502,3417498","RETOUCHING 8","section231545",[3417498,3417502]);galleries[259908]=new gallery(259908,"4445845,4445821","RETOUCHING 9","section231545",[4445845,4445821]);galleries[259909]=new gallery(259909,"4445852,4445849","RETOUCHING 10","section231545",[4445852,4445849]);galleries[300726]=new gallery(300726,"5340453","TEARS 1","section359629",[5340453]);galleries[300731]=new gallery(300731,"5341955","TEARS 2","section359629",[5341955]);galleries[300781]=new gallery(300781,"5342000","TEARS 3","section359629",[5342000]);var imageSets=new Object();imageSets[1]="5428699,4370724,3571421,3571212,3571185,3420888,3420876,3398923,3319033,3319030,3246715,3246712,3246711,3246707,3077230,3042127,3042077,3042075,3041953,3041631,3041487,3041074,3041031,3041029,3041027,3041020,3040993";imageSets[2]="5620379,3571212,3319030,3246711";imageSets[234060]="6431430,4370742,4370741,3246660,3246656,3045240,3042077,3041637,3041631,3041628,3041622,3041490,3041487,3041467,3041048";imageSets[234059]="4445852,4445849,4445845,4445821,3420876,3417964,3417502,3417498,3417489,3417473,3417233,3077411,3077409,3077251,3077246,3077245,3077244,3077240,3077239,3077236,3077234,3077232,3077230,3042151,3042127,3041467,3041032";imageSets[178939]="3417964,3417489,3417473,3077411,3077409,3077251,3077246,3077245,3077244,3077240,3077239,3077236,3077234,3077232,3077230,3042151";imageSets[234412]="5428717,5428711,5428699,5428543";imageSets[3]="5620361,5428699,5428543,4445820,4370724,3571421,3571214,3571213,3571212,3571186,3571185,3571184,3420888,3420876,3417964,3417233,3398923,3319033,3319030,3246715,3246713,3246712,3246711,3246707,3246704,3246699,3246695,3246660,3077251,3077236,3077230,3042127,3042075,3041953,3041646,3041631,3041628,3041622,3041497,3041074,3041032,3041031,3041029,3040993";imageSets[234062]="4445845,4445820,4370724,3420876,3417964,3246715,3246707,3246704,3246701,3246699,3246695,3246683,3246673,3246667,3077251,3077246,3045243,3042127,3042073,3042072,3041953,3041646,3041497,3041074,3041043,3041041,3041032,3041029,3041020,3040993,3040988";imageSets[178923]="6431430,6429500,5620379,5620361,5428543,4370742,4370741,4370724,3571421,3571214,3571213,3571212,3571186,3571185,3571184,3420888,3420876,3398923,3319033,3319030,3246715,3246713,3246712,3246711,3246707,3246704,3246701,3246699,3246695,3246688,3246683,3246673,3246667,3246660,3246656,3246639,3045243,3045240,3042077,3042075,3042073,3042072,3042067,3041953,3041646,3041637,3041631,3041628,3041622,3041497,3041490,3041487,3041467,3041074,3041048,3041043,3041041,3041032,3041031,3041029,3041027,3041020,3040993,3040988";imageSets[234057]="3420888,3417233,3398923,3319033,3319030,3246713,3246712,3246639,3041031";imageSets[234058]="6429500,5620379,5620361,5244691,4445852,3571421,3571214,3571213,3571212,3571186,3571185,3571184,3246688,3042067,3041027";imageSets[234061]="5342000,5341955,5340453";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/roya6088/images";break}switch(a){case 1:b="http://www1.clikpic.com/roya6088/images";break}switch(a){case 2:b="http://admin.clikpic.com/roya6088/images";break}switch(a){case 24:b="http://tpc15/clikpic/roya6088/images";break}switch(a){case 4:b="http://www.clikchurch.com/roya6088/images";break}switch(a){case 5:b="http://www2.clikpic.com/roya6088/images";break}switch(a){case 22:b="http://tpc5/clikpic/roya6088/images";break}switch(a){case 23:b="http://tpc10/clikpic/roya6088/images";break}switch(a){case 25:b="http://tpc16/clikpic/roya6088/images";break}switch(a){case 15:b="http://www3.clikpic.com/roya6088/images";break}switch(a){case 18:b="http://www4.clikpic.com/roya6088/images";break}switch(a){case 19:b="http://www5.clikpic.com/roya6088/images";break}switch(a){case 31:b="http://www7.clikpic.com/roya6088/images";break}switch(a){case 32:b="http://admin2.clikpic.com/roya6088/images";break}switch(a){case 33:b="http://www8.clikpic.com/roya6088/images";break}switch(a){case 34:b="http://www9.clikpic.com/roya6088/images";break}switch(a){case 35:b="http://admin3.clikpic.com/roya6088/images";break}switch(a){case 37:b="http://admin4.clikpic.com/roya6088/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="London Advertising Photographer, Roy Attfield: "+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> 							"+(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 e=$("img#gallery"+c);e.parents(".thumbWrap").width(b.width);var a=e.siblings("h3").size()==1?e.siblings("h3"):e.parent(".thumbWrap").siblings("h3");var f=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));a.width(e.outerWidth(true)-f-d)}}}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+'")'})}}};