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[5893631]=new thumbnail(5893631,"277345","Shadows","_DSC6928_thumb.JPG",130,86,1);thumbnails[5893635]=new thumbnail(5893635,"277345","Velibe","_DSC6956_thumb.JPG",130,86,1);thumbnails[5893637]=new thumbnail(5893637,"277345","Hotel de Ville","_DSC6978_thumb.JPG",130,86,1);thumbnails[5893641]=new thumbnail(5893641,"277345","Drinking fountain","_DSC6983_thumb.JPG",130,86,1);thumbnails[5893680]=new thumbnail(5893680,"277345","Graffiti","_DSC7036_thumb.JPG",130,86,1);thumbnails[5893721]=new thumbnail(5893721,"277345","Montmartre","_DSC7040_thumb.JPG",130,86,1);thumbnails[5684593]=new thumbnail(5684593,"277345","Chairs","Copy_5331_thumb.jpg",130,79,1);thumbnails[3909876]=new thumbnail(3909876,"277345","After the rain","Paris_039_thumb.jpg",130,84,1);thumbnails[3413737]=new thumbnail(3413737,"277345","Le Profete ","Luxemborg_01551_thumb.jpg",130,86,1);thumbnails[3413799]=new thumbnail(3413799,"277345","Metro","Copy 498_thumb.jpg",130,86,1);thumbnails[3413840]=new thumbnail(3413840,"277345","Postcards & flowers","Copy 123_thumb.jpg",130,86,1);thumbnails[3413803]=new thumbnail(3413803,"277345","Mirror","Copy 4401_thumb.jpg",130,86,1);thumbnails[3413807]=new thumbnail(3413807,"277345","Mirror","Copy 441_thumb.jpg",130,86,1);thumbnails[3413811]=new thumbnail(3413811,"277345","Mirror","Copy 4461_thumb.jpg",130,89,1);thumbnails[3413813]=new thumbnail(3413813,"277345","Reflections","Copy 4481_thumb.jpg",130,86,1);thumbnails[3413819]=new thumbnail(3413819,"277345","Open for business","Copy 275_thumb.jpg",130,86,1);thumbnails[3417277]=new thumbnail(3417277,"277345","Jardin du Palais Royal","Copy 2801_thumb.jpg",130,86,1);thumbnails[3417432]=new thumbnail(3417432,"277345","Montmartre","Copy 0093_thumb.jpg",130,86,1);thumbnails[3417435]=new thumbnail(3417435,"277345","Postcards for sale","Copy 0072_thumb.jpg",130,86,1);thumbnails[3413831]=new thumbnail(3413831,"277345","Galerie Vivienne","Copy 351_thumb.jpg",130,86,1);thumbnails[5893614]=new thumbnail(5893614,"277342","Relections","_DSC6902_thumb.JPG",130,86,1);thumbnails[5893621]=new thumbnail(5893621,"277342","Sitting","_DSC6905_thumb.JPG",130,86,1);thumbnails[5893625]=new thumbnail(5893625,"277342","Shadows","_DSC6926_thumb.JPG",130,86,1);thumbnails[5893628]=new thumbnail(5893628,"277342","Musee du Louvre","_DSC6927_thumb.JPG",130,86,1);thumbnails[5893633]=new thumbnail(5893633,"277342","Sunny afternoon","_DSC6941_thumb.JPG",130,86,1);thumbnails[3911974]=new thumbnail(3911974,"277342","Musee Picasso","CNV000172_thumb.JPG",130,91,1);thumbnails[3413849]=new thumbnail(3413849,"277342","Jardin du Palais Royal","Copy 308_thumb.jpg",130,86,1);thumbnails[3413873]=new thumbnail(3413873,"277342","Jardin du Palais Royal","Copy 314_thumb.jpg",130,84,1);thumbnails[3417568]=new thumbnail(3417568,"277342","Jardin du Palais Royal","Copy 306_thumb.jpg",130,86,1);thumbnails[3417397]=new thumbnail(3417397,"277342","Jardin du Tuilleries","Copy 5422_thumb.jpg",130,86,1);thumbnails[5893609]=new thumbnail(5893609,"281259","Lunchtime","_DSC6900_thumb.JPG",130,86,1);thumbnails[4945219]=new thumbnail(4945219,"281259","My coffee awaits!","Paris_001_thumb.jpg",130,86,1);thumbnails[4945211]=new thumbnail(4945211,"281259","Sunny afternoon","DSC_3297_thumb.jpg",130,86,1);thumbnails[4945221]=new thumbnail(4945221,"281259","Today's special","Picture_036_thumb.jpg",130,86,1);thumbnails[3406525]=new thumbnail(3406525,"207768","Musee du Louvre","Copy 208_thumb.jpg",130,86,1);thumbnails[3406530]=new thumbnail(3406530,"207768","Pyramid ","Copy 2301_thumb.jpg",130,86,1);thumbnails[3406527]=new thumbnail(3406527,"207768","Pyramid","Copy 2172_thumb.jpg",130,86,1);thumbnails[3406557]=new thumbnail(3406557,"207768","Institut du Monde Arabe","du Mond Arab_00871_thumb.jpg",130,86,1);thumbnails[3406562]=new thumbnail(3406562,"207768","Institut du Monde Arabe","Copy 0861_thumb.jpg",130,86,1);thumbnails[3406568]=new thumbnail(3406568,"207768","Institut du Monde Arabe","Copy 0931_thumb.jpg",130,86,1);thumbnails[3406575]=new thumbnail(3406575,"207768","Institut du Monde Arabe","Copy 1192_thumb.jpg",130,86,1);thumbnails[3413741]=new thumbnail(3413741,"207768","Arch de Triomphe","Copy 591_thumb.jpg",130,86,1);thumbnails[3413751]=new thumbnail(3413751,"207768","Centre Pompidou","Copy 691_thumb.jpg",130,86,1);thumbnails[3413753]=new thumbnail(3413753,"207768","Centre Pompidou","Copy 689_thumb.jpg",130,86,1);thumbnails[3909992]=new thumbnail(3909992,"233500","Eiffel Tower & the Peace memorial","Paris_026_copy_thumb.jpg",130,86,1);thumbnails[3909993]=new thumbnail(3909993,"233500","Eiffel Tower","Paris_027_thumb.jpg",130,86,1);thumbnails[3909996]=new thumbnail(3909996,"233500","Underneath the tower","Paris_0451_thumb.jpg",130,86,1);thumbnails[3910697]=new thumbnail(3910697,"233500","Eiffel Tower","Paris_098_1_thumb.jpg",130,86,1);thumbnails[3910720]=new thumbnail(3910720,"233500","Eiffel Tower","Paris_023_thumb.jpg",130,86,1);thumbnails[3910767]=new thumbnail(3910767,"233500","Eiffel Tower","Paris_106_1_thumb.jpg",130,86,1);thumbnails[3413731]=new thumbnail(3413731,"233500","Eiffel Tower","Eiffle Tower_01391_thumb.jpg",130,86,1);thumbnails[3418737]=new thumbnail(3418737,"208634","Institut du Monde Arabe","Copy 111_thumb.jpg",130,197,1);thumbnails[3418742]=new thumbnail(3418742,"208634","Institut du Monde Arabe","Copy 083_thumb.jpg",130,196,1);thumbnails[3418746]=new thumbnail(3418746,"208634","Sacre Cour, Montmartre","Copy 004_thumb.jpg",130,196,1);thumbnails[3418804]=new thumbnail(3418804,"208634","All down hill","Copy 010_thumb.jpg",130,196,1);thumbnails[3418827]=new thumbnail(3418827,"208634","Musee du Louvre","Copy 209_thumb.jpg",130,196,1);thumbnails[3418839]=new thumbnail(3418839,"208634","Velib","Copy 4121_thumb.jpg",130,196,1);thumbnails[3418843]=new thumbnail(3418843,"208634","Mirror","Copy 443_thumb.jpg",130,196,1);thumbnails[3418922]=new thumbnail(3418922,"208634","Jardin du Palais Royal","Copy 319_thumb.jpg",130,193,1);thumbnails[3418932]=new thumbnail(3418932,"208634","Galerie Vivienne","Copy 347_thumb.jpg",130,196,1);thumbnails[3418988]=new thumbnail(3418988,"208634","Jardin du Tuilleries","Copy 538_thumb.jpg",130,196,1);thumbnails[3419045]=new thumbnail(3419045,"208634","Place des Vosges","Copy 706_thumb.jpg",130,196,1);thumbnails[3419053]=new thumbnail(3419053,"208634","Walking","Copy 405_thumb.jpg",130,201,1);thumbnails[3419085]=new thumbnail(3419085,"208634","Place de la Concord","Copy 560_thumb.jpg",130,196,1);thumbnails[3419364]=new thumbnail(3419364,"208634","Jardin du Palais Royal","Copy 290_thumb.jpg",130,196,1);thumbnails[4626642]=new thumbnail(4626642,"262527","Institut du Monde Arabe","Copy_088_thumb.jpg",130,86,1);thumbnails[4626679]=new thumbnail(4626679,"262527","Institut du Monde Arabe","Copy_089_thumb.jpg",130,83,1);thumbnails[4626681]=new thumbnail(4626681,"262527","Institut du Monde Arabe","Copy_094_thumb.jpg",130,86,1);thumbnails[4626692]=new thumbnail(4626692,"262527","Institut du Monde Arab","Copy_103_thumb.jpg",130,86,1);thumbnails[4626700]=new thumbnail(4626700,"262527","Institut du Monde Arab","Copy_118_thumb.jpg",130,86,1);thumbnails[4626704]=new thumbnail(4626704,"262527","Musee du Louvre","Copy_208_thumb.jpg",130,86,1);thumbnails[4626707]=new thumbnail(4626707,"262527","Musee du Louvre","Copy_217_thumb.jpg",130,86,1);thumbnails[4626711]=new thumbnail(4626711,"262527","Metroplolitain","Copy_498_thumb.jpg",130,86,1);thumbnails[4626713]=new thumbnail(4626713,"262527","Musee du Louvre","Copy_513_thumb.jpg",130,86,1);thumbnails[4626718]=new thumbnail(4626718,"262527","Arch de Triomphe","Copy_596_thumb.jpg",130,86,1);thumbnails[5362814]=new thumbnail(5362814,"262527","Institute du Monde Arab","du_Mond_Arab_0086_thumb.jpg",130,196,1);var galleries=new Object();galleries[277345]=new gallery(277345,"5893721,5893680,5893641,5893637,5893635,5893631,5684593,3909876,3417435,3417432","Places","gallery",[5893631,5893635,5893637,5893641,5893680,5893721,5684593,3909876,3413737,3413799,3413840,3413803,3413807,3413811,3413813,3413819,3417277,3417432,3417435,3413831]);galleries[277342]=new gallery(277342,"5893633,5893628,5893625,5893621,5893614,3911974,3417568,3417397,3413873,3413849","People","gallery",[5893614,5893621,5893625,5893628,5893633,3911974,3413849,3413873,3417568,3417397]);galleries[281259]=new gallery(281259,"5893609,4945221,4945219,4945211","Cafe Life","gallery",[5893609,4945219,4945211,4945221]);galleries[207768]=new gallery(207768,"3406527,3406525","Architecture","gallery",[3406525,3406530,3406527,3406557,3406562,3406568,3406575,3413741,3413751,3413753]);galleries[233500]=new gallery(233500,"3909993","Eiffel Tower","gallery",[3909992,3909993,3909996,3910697,3910720,3910767,3413731]);galleries[208634]=new gallery(208634,"3419364,3419085,3419053,3419045,3418988,3418932,3418922,3418843,3418839,3418827","Portfolio 1","gallery",[3418737,3418742,3418746,3418804,3418827,3418839,3418843,3418922,3418932,3418988,3419045,3419053,3419085,3419364]);galleries[262527]=new gallery(262527,"5362814,4626718,4626713,4626711,4626707,4626704,4626700,4626692,4626681,4626679","Paris in colour","gallery",[4626642,4626679,4626681,4626692,4626700,4626704,4626707,4626711,4626713,4626718,5362814]);var imageSets=new Object();imageSets[1]="3418737,3417435,3413813,3413741,3413737,3413731,3406525";imageSets[2]="3909993,3406527,3406525";imageSets[3]="5893721,5893680,5893641,5893637,5893635,5893633,5893631,5893628,5893625,5893621,5893614,5893609,5684593,5362814,4945221,4945219,4945211,4626718,4626713,4626711,4626707,4626704,4626700,4626692,4626681,4626679,4626642,3911974,3910767,3910720,3910697,3909996,3909993,3909992,3909876,3419364,3419085,3419053,3419045,3418988,3418932,3418922,3418843,3418839,3418827,3418804,3418746,3418742,3418737,3417568";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/lilacgroove/images";break}switch(a){case 1:b="http://www1.clikpic.com/lilacgroove/images";break}switch(a){case 2:b="http://admin.clikpic.com/lilacgroove/images";break}switch(a){case 24:b="http://tpc15/clikpic/lilacgroove/images";break}switch(a){case 4:b="http://www.clikchurch.com/lilacgroove/images";break}switch(a){case 5:b="http://www2.clikpic.com/lilacgroove/images";break}switch(a){case 22:b="http://tpc5/clikpic/lilacgroove/images";break}switch(a){case 23:b="http://tpc10/clikpic/lilacgroove/images";break}switch(a){case 25:b="http://tpc16/clikpic/lilacgroove/images";break}switch(a){case 15:b="http://www3.clikpic.com/lilacgroove/images";break}switch(a){case 18:b="http://www4.clikpic.com/lilacgroove/images";break}switch(a){case 19:b="http://www5.clikpic.com/lilacgroove/images";break}switch(a){case 31:b="http://www7.clikpic.com/lilacgroove/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lilacgroove/images";break}switch(a){case 33:b="http://www8.clikpic.com/lilacgroove/images";break}switch(a){case 34:b="http://www9.clikpic.com/lilacgroove/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lilacgroove/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lilacgroove/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="Paris 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;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> 				&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="pbardell@btinternet.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="pbardell@btinternet.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(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+'")'})}}};