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[5380659]=new thumbnail(5380659,"257700","","IMG_0002tripleweb_thumb.jpg",130,87,1);thumbnails[5380662]=new thumbnail(5380662,"257700","","IMG_0002vmontageweb_thumb.jpg",130,87,1);thumbnails[5380668]=new thumbnail(5380668,"257700","","IMG_0031v1sepweb_thumb.jpg",130,212,1);thumbnails[5380670]=new thumbnail(5380670,"257700","","IMG_0149v1web_thumb.jpg",130,87,1);thumbnails[5380672]=new thumbnail(5380672,"257700","","IMG_0153v1web_thumb.jpg",130,195,1);thumbnails[2604555]=new thumbnail(2604555,"257706","Our City @ Night","Cityview Nightsmall_thumb.jpg",130,87,1);thumbnails[1000923]=new thumbnail(1000923,"257701","Sean Hargan's Winning Goal against Gothenburg.","Derry 1 Gburg 0_thumb.jpg",130,87,1);thumbnails[1010719]=new thumbnail(1010719,"257703","","IMG_0054BW_thumb.jpg",130,183,1);thumbnails[1010725]=new thumbnail(1010725,"257703","Rock Chick","IMG_0195_thumb.jpg",130,195,1);thumbnails[1010728]=new thumbnail(1010728,"","Natural Pose","IMG_0038_thumb.jpg",130,156,1);thumbnails[1010742]=new thumbnail(1010742,"","Little Butterfly","IMG_0109_thumb.jpg",130,142,1);thumbnails[1011620]=new thumbnail(1011620,"257701","CELEBRATE","Celebrategoal_thumb.jpg",130,87,1);thumbnails[1011642]=new thumbnail(1011642,"","ST Eugenes Cathedral","catherdralRE_thumb.jpg",130,195,1);thumbnails[1011651]=new thumbnail(1011651,"","Canon","IMG_0127_thumb.jpg",130,87,1);thumbnails[1011655]=new thumbnail(1011655,"","OUR CITY","Distant View_thumb.jpg",130,75,1);thumbnails[1031267]=new thumbnail(1031267,"","","IMG_0075_thumb.jpg",130,87,1);thumbnails[1031280]=new thumbnail(1031280,"257703","","IMG_0095_thumb.jpg",130,177,1);thumbnails[1229943]=new thumbnail(1229943,"257708","Given a brief History of the Armenian Orphanage","Zitak-MCI-001010_thumb.jpg",130,87,1);thumbnails[1342183]=new thumbnail(1342183,"257707","One of the many Lakes in Glenveigh National Park, Co Donegal For Sale as an Original Print","Glenveagh National Park06_thumb.jpg",130,87,1);thumbnails[1342195]=new thumbnail(1342195,"","Ruins of Chapel at Glenveigh National Park","Glenveagh National Park37_thumb.jpg",130,195,1);thumbnails[1342198]=new thumbnail(1342198,"","Ruined Chapel<br>\r\n<br>\r\n","Glenveagh National Park26_thumb.jpg",130,195,1);thumbnails[1342200]=new thumbnail(1342200,"","Ruined Chapel","Glenveagh National Park21_thumb.jpg",130,195,1);thumbnails[1342281]=new thumbnail(1342281,"","Mountains in Glenveigh","Glenveagh National Park14_thumb.jpg",130,87,1);thumbnails[1342332]=new thumbnail(1342332,"","Sail Away in Lough Swilly","IMG_0055_thumb.jpg",130,87,1);thumbnails[1342722]=new thumbnail(1342722,"","Kevin Mc Hugh Goal V Sligo FC","SligoVDerryMcHughsGoal_thumb.jpg",130,117,1);thumbnails[1342728]=new thumbnail(1342728,"","Barry Molloy Goal V Sligo","SligoVDerryMolloygoal_thumb.jpg",130,104,1);thumbnails[1342742]=new thumbnail(1342742,"257701","Champions League Armenia","CL07-MCI-057_thumb.jpg",130,87,1);thumbnails[1342752]=new thumbnail(1342752,"257701","Champions League 2007<br>\r\nPyunik Goal V Derry City FC","CL07-MCI-107_thumb.jpg",130,87,1);thumbnails[1342759]=new thumbnail(1342759,"","Champions League 2007","CL07-MCI-177_thumb.jpg",130,87,1);thumbnails[1363971]=new thumbnail(1363971,"257707","Greencastle Port, Co Donegal...On a Slow Day","DSCF0024_thumb.jpg",130,173,1);thumbnails[1363989]=new thumbnail(1363989,"","Graduation Day","DSCF0166_thumb.jpg",130,98,1);thumbnails[1363991]=new thumbnail(1363991,"","Dunree View, Co Donegal","Dunree View_thumb.jpg",130,98,1);thumbnails[1363994]=new thumbnail(1363994,"","RoI V France<br>\r\nWorld Cup Qualifiers","FRANCE2_thumb.jpg",130,72,1);thumbnails[1363999]=new thumbnail(1363999,"257701","RoI V France<br>\r\nWorld Cup Qualifiers","FRANCE6_thumb.jpg",130,63,1);thumbnails[1364003]=new thumbnail(1364003,"","Frasier...A Portrait with a difference","frasier_thumb.jpg",130,80,1);thumbnails[1364006]=new thumbnail(1364006,"","A Summer evening in Derry","Housetops_thumb.jpg",130,98,1);thumbnails[1364007]=new thumbnail(1364007,"","","IMG_0002_thumb.jpg",130,184,1);thumbnails[1364009]=new thumbnail(1364009,"","A Family Portrait","IMG_0011_thumb.jpg",130,81,1);thumbnails[1364013]=new thumbnail(1364013,"","Lough Swilly, Co Donegal","IMG_0016_thumb.jpg",130,87,1);thumbnails[1364015]=new thumbnail(1364015,"","A Fun Day Out","IMG_0031_thumb.jpg",130,87,1);thumbnails[1364016]=new thumbnail(1364016,"257703","Sisters","IMG_0043_thumb.jpg",130,143,1);thumbnails[1364018]=new thumbnail(1364018,"","Family ","IMG_0050reg_thumb.jpg",130,87,1);thumbnails[1364019]=new thumbnail(1364019,"","Sisters Three","IMG_0060_thumb.jpg",130,89,1);thumbnails[1364022]=new thumbnail(1364022,"257703","Tish","IMG_00661_thumb.jpg",130,195,1);thumbnails[1364024]=new thumbnail(1364024,"257703","Share that Special Day","IMG_00831_thumb.jpg",130,195,1);thumbnails[1364028]=new thumbnail(1364028,"257703","A Walk in the Sand","IMG_01091_thumb.jpg",130,160,1);thumbnails[1364035]=new thumbnail(1364035,"","Sisters 3 again","IMG_0147reg_thumb.jpg",130,195,1);thumbnails[1364039]=new thumbnail(1364039,"","He's My Teddy!","IMG_0182_thumb.jpg",130,195,1);thumbnails[1364040]=new thumbnail(1364040,"257703","Nope! He's MY Teddy","IMG_0225_thumb.jpg",130,136,1);thumbnails[1364043]=new thumbnail(1364043,"","Look! He's MY Teddy","IMG_0230_thumb.jpg",130,164,1);thumbnails[1364045]=new thumbnail(1364045,"","Tell me more..I Have all day","IMG_0231_thumb.jpg",130,145,1);thumbnails[1364046]=new thumbnail(1364046,"257703","Now! Let Me Think about this one!","TC1_thumb.jpg",130,87,1);thumbnails[1364048]=new thumbnail(1364048,"","Country Roads take me home......","KM1_thumb.jpg",130,161,1);thumbnails[1364049]=new thumbnail(1364049,"257707","Fahan Beach, Co Donegal","KM4_thumb.jpg",130,98,1);thumbnails[1364051]=new thumbnail(1364051,"","Dusk at Swan Park, Buncrana, Co Donegal","KM5v1_thumb.jpg",130,173,1);thumbnails[1364052]=new thumbnail(1364052,"257707","Portsalon, Co Donegal","Portsalon2_thumb.jpg",130,98,1);thumbnails[1364054]=new thumbnail(1364054,"","A Quiet Street in Cittadela, Menorca","quiet street_thumb.jpg",130,173,1);thumbnails[1364055]=new thumbnail(1364055,"","Ahoy There!","scooner_thumb.jpg",130,80,1);thumbnails[1364057]=new thumbnail(1364057,"257707","Rathmullan Abbey, Co Donegal","Rathab1_thumb.jpg",130,173,1);thumbnails[1368286]=new thumbnail(1368286,"257703","Mother & Son","N+K014_thumb.jpg",130,61,1);thumbnails[1380267]=new thumbnail(1380267,"257703","","N+K019v2_thumb.jpg",130,82,1);thumbnails[1718555]=new thumbnail(1718555,"257700","","IMG_0004softblue_thumb.jpg",130,190,1);thumbnails[1718557]=new thumbnail(1718557,"257700","Two's Company","IMG_0005_thumb.jpg",130,87,1);thumbnails[1718572]=new thumbnail(1718572,"257700","We're nearly there","IMG_0023_thumb.jpg",130,183,1);thumbnails[1877204]=new thumbnail(1877204,"257700","Teresa & Mark","IMG_0082_1_thumb.JPG",130,195,1);thumbnails[1877227]=new thumbnail(1877227,"257700","","IMG_00371_thumb.JPG",130,85,1);thumbnails[1877228]=new thumbnail(1877228,"257700","","IMG_0038_1_thumb.JPG",130,87,1);thumbnails[1877234]=new thumbnail(1877234,"257700","","IMG_0092_thumb.JPG",130,195,1);thumbnails[1877239]=new thumbnail(1877239,"257700","","IMG_00411_thumb.JPG",130,195,1);thumbnails[1877243]=new thumbnail(1877243,"257700","","IMG_0115_thumb.JPG",130,87,1);thumbnails[1877247]=new thumbnail(1877247,"257700","","IMG_0132_thumb.JPG",130,195,1);thumbnails[1877252]=new thumbnail(1877252,"257700","","IMG_0248_thumb.JPG",130,195,1);thumbnails[1877283]=new thumbnail(1877283,"257700","","IMG_0266_thumb.JPG",130,87,1);thumbnails[1877286]=new thumbnail(1877286,"257700","","IMG_0267_thumb.JPG",130,87,1);thumbnails[1877301]=new thumbnail(1877301,"257700","","IMG_04091_thumb.JPG",130,81,1);thumbnails[1877304]=new thumbnail(1877304,"257700","","IMG_0426_thumb.JPG",130,195,1);thumbnails[1877309]=new thumbnail(1877309,"257700","","IMG_0483_thumb.JPG",130,87,1);thumbnails[1877315]=new thumbnail(1877315,"257700","","IMG_01661_thumb.JPG",130,195,1);thumbnails[1877318]=new thumbnail(1877318,"257700","","IMG_01541_thumb.JPG",130,195,1);thumbnails[2533760]=new thumbnail(2533760,"257706","The Maiden City","IMG_0086_thumb.jpg",130,87,1);thumbnails[2533762]=new thumbnail(2533762,"257706","Shipquay Street ","IMG_0016_1_thumb.jpg",130,87,1);thumbnails[2533775]=new thumbnail(2533775,"257706","Bishop Street","IMG_00281_thumb.jpg",130,87,1);thumbnails[2533835]=new thumbnail(2533835,"257706","St Columbs Cathedral","IMG_0036_thumb.jpg",130,87,1);thumbnails[2533849]=new thumbnail(2533849,"257706","St Columbs B&W","IMG_0036vBW_thumb.jpg",130,87,1);thumbnails[2533870]=new thumbnail(2533870,"257706","The Guildhall Canons","IMG_00412_thumb.jpg",130,87,1);thumbnails[2533877]=new thumbnail(2533877,"257706","The Guildhall","IMG_0045_thumb.jpg",130,195,1);thumbnails[2533970]=new thumbnail(2533970,"257706","Hidden Guildhall","IMG_0049_thumb.jpg",130,195,1);thumbnails[2533990]=new thumbnail(2533990,"257706","Hands Across","IMG_0053BWBlurred_thumb.jpg",130,87,1);thumbnails[2534011]=new thumbnail(2534011,"257706","Craigavon Bridge","IMG_0062_thumb.jpg",130,87,1);thumbnails[2534042]=new thumbnail(2534042,"257706","St Eugenes Cathedral","IMG_0080softBW_thumb.jpg",130,195,1);thumbnails[2534099]=new thumbnail(2534099,"257706","A view from High","IMG_0058_thumb.jpg",130,87,1);thumbnails[3962391]=new thumbnail(3962391,"257703","Yes I am a Princess!","Kathleencooke7_thumb.jpg",130,87,1);thumbnails[4393594]=new thumbnail(4393594,"257701","Skonto Riga V Derry City Europa League (Riga, Latvia)","SKONTO_V_DERRY008_thumb.JPG",130,190,1);thumbnails[5427974]=new thumbnail(5427974,"257702","","IMG_00111_thumb.JPG",130,87,1);thumbnails[5427980]=new thumbnail(5427980,"257702","Photograph taken for corporate publication and web site","IMG_0098v1_thumb.jpg",130,87,1);thumbnails[5427984]=new thumbnail(5427984,"257702","","IMG_0709_thumb.JPG",130,81,1);thumbnails[5427986]=new thumbnail(5427986,"257702","","IMG_0828_thumb.JPG",130,76,1);thumbnails[5427989]=new thumbnail(5427989,"257702","","IMG_0083mci_thumb.jpg",130,93,1);thumbnails[1229935]=new thumbnail(1229935,"257708","We are welcomed into the Orphanage","CL07-MCI-002_thumb.JPG",130,87,1);thumbnails[1011638]=new thumbnail(1011638,"","A View from the Walls","Viewfromthewalls_thumb.jpg",130,87,1);thumbnails[1229969]=new thumbnail(1229969,"","Sleeping Area","Zitak-MCI-001013_thumb.jpg",130,195,1);thumbnails[1229983]=new thumbnail(1229983,"257708","Some comfort at night! Armenian Orphanage","Zitak-MCI-001021_thumb.jpg",130,195,1);thumbnails[1230036]=new thumbnail(1230036,"","The Armenian Orphange Keeper","Zitak-MCI-001025_thumb.jpg",130,195,1);thumbnails[1230057]=new thumbnail(1230057,"","A Look of Surprise as they realise we have gifts and toys etc","Zitak-MCI-001028_thumb.jpg",130,87,1);thumbnails[1230060]=new thumbnail(1230060,"","When you feel it's been worth the trip!!!!","Zitak-MCI-001033_thumb.jpg",130,195,1);thumbnails[1230063]=new thumbnail(1230063,"","James O'toole our Organiser","Zitak-MCI-001040_thumb.jpg",130,195,1);thumbnails[1230065]=new thumbnail(1230065,"","Zitak 5 DCFCS 2","Zitak-MCI-001062_thumb.jpg",130,87,1);thumbnails[1010735]=new thumbnail(1010735,"","Mmm? I don't know!","IMG_0101 copy_thumb.jpg",130,193,1);thumbnails[1011616]=new thumbnail(1011616,"","Winter Scene","Snowlane_thumb.jpg",130,194,1);thumbnails[1036358]=new thumbnail(1036358,"","First Communion","IMG_00151_thumb.jpg",130,195,1);thumbnails[1230070]=new thumbnail(1230070,"","Friendships made","Zitak-MCI-001070_thumb.jpg",130,195,1);thumbnails[1342526]=new thumbnail(1342526,"257702","Northern Ireland Veterinary Association<br>\r\nBi-Centenary Dinner","MCI-NIVA702_thumb.jpg",130,82,1);thumbnails[2940057]=new thumbnail(2940057,"257701","League Cup 2008 (Montage)","LC Montage copy2_thumb.jpg",130,86,1);thumbnails[1230076]=new thumbnail(1230076,"257708","HAPPY FACES at the Pyunik Orphanage Armenia","Zitak-MCI-001038_thumb.jpg",130,87,1);thumbnails[1010739]=new thumbnail(1010739,"257703","Half way there","IMG_0103_thumb.jpg",130,195,1);thumbnails[1011613]=new thumbnail(1011613,"","Ahoy There","Fahan1vbw_small_thumb.jpg",130,98,1);thumbnails[1036360]=new thumbnail(1036360,"","First Communion","IMG_0066_thumb.jpg",130,87,1);thumbnails[1000963]=new thumbnail(1000963,"","Scalp Mountain, Donegal","Forest_thumb.jpg",130,87,1);thumbnails[2940219]=new thumbnail(2940219,"","","LC2_thumb.JPG",130,86,1);thumbnails[1010731]=new thumbnail(1010731,"","Hey! What's happening?","IMG_0082_thumb.jpg",130,195,1);thumbnails[1000874]=new thumbnail(1000874,"","Peek -a - boo","KC1_thumb.JPG",130,157,1);thumbnails[1031247]=new thumbnail(1031247,"","","IMG_0007_thumb.jpg",130,195,1);thumbnails[1031268]=new thumbnail(1031268,"257703","","IMG_0125v2_thumb.jpg",130,195,1);thumbnails[1000948]=new thumbnail(1000948,"","Ahhhh.....","Theresa & Mark_thumb.jpg",130,87,1);var galleries=new Object();galleries[257707]=new gallery(257707,"1364057,1364052,1364049,1363971,1342183","Donegal","section311077",[1342183,1363971,1364049,1364052,1364057]);galleries[257708]=new gallery(257708,"1230076,1229983,1229943,1229935","Europe and Far East","section311077",[1229943,1229935,1229983,1230076]);galleries[257702]=new gallery(257702,"1342526","Event & Corporate","section311068",[5427974,5427980,5427984,5427986,5427989,1342526]);galleries[257703]=new gallery(257703,"1010719","Portraits","section311066",[1010719,1010725,1031280,1364016,1364022,1364024,1364028,1364040,1364046,1368286,1380267,3962391,1010739,1031268]);galleries[257701]=new gallery(257701,"4393594,2940057,1363999,1342752,1342742,1011620,1000923","Sport","section311069",[1000923,1011620,1342742,1342752,1363999,4393594,2940057]);galleries[257706]=new gallery(257706,"2604555,2534099,2534042,2534011,2533990,2533970,2533877,2533870,2533849,2533835","The Maiden City","section311077",[2604555,2533760,2533762,2533775,2533835,2533849,2533870,2533877,2533970,2533990,2534011,2534042,2534099]);galleries[257700]=new gallery(257700,"5380672,5380670,5380668,5380662,5380659,1877318,1877315,1877309,1877304,1877301","Weddings","section311067",[5380659,5380662,5380668,5380670,5380672,1718555,1718557,1718572,1877204,1877227,1877228,1877234,1877239,1877243,1877247,1877252,1877283,1877286,1877301,1877304,1877309,1877315,1877318]);var imageSets=new Object();imageSets[1]="3962391,2940057,2534099,2534042,2533990,2533970,2533835,2533775,2533760,1718572,1718557,1718555,1380267,1368286,1364051,1364049,1364046,1364040,1364022,1364019,1010725,1010719,1000963";imageSets[2]="1342526,1036358,1011642,1010719";imageSets[3]="3962391,1877318,1877315,1877309,1877304,1877301,1877286,1877283,1877252,1877247,1877243,1877239,1877234,1877228,1877227,1877204,1718572,1718557,1718555,1380267,1368286,1364057,1364046,1364040,1364028";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/KevinM/images";break}switch(a){case 1:b="http://www1.clikpic.com/KevinM/images";break}switch(a){case 2:b="http://admin.clikpic.com/KevinM/images";break}switch(a){case 24:b="http://tpc15/clikpic/KevinM/images";break}switch(a){case 4:b="http://www.clikchurch.com/KevinM/images";break}switch(a){case 5:b="http://www2.clikpic.com/KevinM/images";break}switch(a){case 22:b="http://tpc5/clikpic/KevinM/images";break}switch(a){case 23:b="http://tpc10/clikpic/KevinM/images";break}switch(a){case 25:b="http://tpc16/clikpic/KevinM/images";break}switch(a){case 15:b="http://www3.clikpic.com/KevinM/images";break}switch(a){case 18:b="http://www4.clikpic.com/KevinM/images";break}switch(a){case 19:b="http://www5.clikpic.com/KevinM/images";break}switch(a){case 31:b="http://www7.clikpic.com/KevinM/images";break}switch(a){case 32:b="http://admin2.clikpic.com/KevinM/images";break}switch(a){case 33:b="http://www8.clikpic.com/KevinM/images";break}switch(a){case 34:b="http://www9.clikpic.com/KevinM/images";break}switch(a){case 35:b="http://admin3.clikpic.com/KevinM/images";break}switch(a){case 37:b="http://admin4.clikpic.com/KevinM/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("section311066"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section311066.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("section311066"!=""){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="www.maidencityimages.com: "+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>"}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 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 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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="KEVINM">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};