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[1995564]=new thumbnail(1995564,"132904","Escape Oil on Canvas 120 x 60","Escape_thumb.jpg",130,290,5);thumbnails[1995579]=new thumbnail(1995579,"132984","Caroline kneeling","Caroline kneeling on chair 2005_thumb.jpg",130,183,5);thumbnails[1995587]=new thumbnail(1995587,"132984","Emily Marilyn","Emily Marilyn catsuit 20011_thumb.jpg",130,181,5);thumbnails[1995588]=new thumbnail(1995588,"132984","Erica loaded","Erica (Loaded shoot) 2005_thumb.jpg",130,178,5);thumbnails[1995590]=new thumbnail(1995590,"132984","Harlot Rouge","Harlot Rouge Catsuit(forest) 20061_thumb.jpg",130,181,5);thumbnails[1995592]=new thumbnail(1995592,"132984","Kitty Nude","Kitty nude 20001_thumb.jpg",130,179,5);thumbnails[1995593]=new thumbnail(1995593,"132984","Emma 2007","Lois 20071_thumb.jpg",130,87,5);thumbnails[1995594]=new thumbnail(1995594,"132984","Ulinor Vex","Ulorin Vex green latex 2007_thumb.jpg",130,87,5);thumbnails[1995596]=new thumbnail(1995596,"132984","Ulinor Vex and Rose","UlorinVex&Rose 2005 (1)_thumb.jpg",130,87,5);thumbnails[1995597]=new thumbnail(1995597,"132984","Emma 2007","Emma 2007_thumb.jpg",130,87,5);thumbnails[1995598]=new thumbnail(1995598,"132984","Emily by wall","Emily by wall 2002_thumb.jpg",130,95,5);thumbnails[1995667]=new thumbnail(1995667,"132984","Emily with paddle","A2 Emily with paddle 1998_thumb.jpg",130,181,5);thumbnails[1995668]=new thumbnail(1995668,"132984","Valeria in tree 2002","Valeria in tree 2002_thumb.jpg",130,95,5);thumbnails[1995674]=new thumbnail(1995674,"132984","Seaside","Seaside 2002_thumb.jpg",130,93,5);thumbnails[1995675]=new thumbnail(1995675,"132984","Amanda 2000","Amanda 2000_thumb.jpg",130,178,5);thumbnails[1995681]=new thumbnail(1995681,"132984","Lorraine catsuit","Lorraine Catsuit 2002_thumb.jpg",130,178,5);thumbnails[1995683]=new thumbnail(1995683,"132984","Valeria on bed","Valeria on bed 2001_thumb.jpg",130,94,5);thumbnails[2005099]=new thumbnail(2005099,"132981","","dinner at La galleria_thumb.jpg",130,98,5);thumbnails[2005187]=new thumbnail(2005187,"132981","","unit 30 signs_thumb.jpg",130,76,5);thumbnails[2005196]=new thumbnail(2005196,"132981","","galleria 2 _thumb.jpg",130,98,5);thumbnails[2005199]=new thumbnail(2005199,"132981","","IMG_0971_thumb.jpg",130,87,5);thumbnails[2005357]=new thumbnail(2005357,"132981","","Map_thumb.jpg",130,92,5);thumbnails[2005360]=new thumbnail(2005360,"132981","","DSCF2730_thumb.jpg",130,86,5);thumbnails[2005361]=new thumbnail(2005361,"132981","","dinner with art_thumb.jpg",130,98,5);thumbnails[2005363]=new thumbnail(2005363,"132981","","cocktail galleria_thumb.jpg",130,98,5);thumbnails[2005368]=new thumbnail(2005368,"132981","","DSCF2727_thumb.jpg",130,87,5);thumbnails[2005380]=new thumbnail(2005380,"132981","","dinner set_thumb.jpg",130,87,5);thumbnails[2005395]=new thumbnail(2005395,"132981","","dimensions galleria_thumb.jpg",130,179,5);thumbnails[2005398]=new thumbnail(2005398,"132981","","DSCF2652_thumb.jpg",130,87,5);thumbnails[2013990]=new thumbnail(2013990,"132980","Staircase","DSC_0074_thumb.jpg",130,87,5);thumbnails[2014004]=new thumbnail(2014004,"132980","Lower Level hanging area","DSC_0101_thumb.jpg",130,87,5);thumbnails[2014009]=new thumbnail(2014009,"132980","First floor Gallery","DSC_0083_thumb.jpg",130,87,5);thumbnails[2014021]=new thumbnail(2014021,"132980","Londons most central gallery","DSC_0007_thumb.jpg",130,87,5);thumbnails[2049196]=new thumbnail(2049196,"132986","Sophia sculptures by Anna Izzo","Sofia[1]_thumb.jpg",130,87,5);thumbnails[2078008]=new thumbnail(2078008,"","","britishartslogo_thumb.jpg",130,66,5);thumbnails[3124541]=new thumbnail(3124541,"132986","Flash by Anna Izzo","Flashsteel _thumb.jpg",130,228,5);thumbnails[3124570]=new thumbnail(3124570,"132986","Shadow by Anna Izzo","Shadow_thumb.jpg",130,87,5);thumbnails[3124648]=new thumbnail(3124648,"132986","Sofia by Anna Izzo","sofia_thumb.jpg",130,92,5);thumbnails[3124666]=new thumbnail(3124666,"132904","Lolita by Anna Izzo","new Lolita_thumb.jpg",130,200,5);thumbnails[3125041]=new thumbnail(3125041,"191665","Still Life (Pastels) with vase<br>\r\n<br>\r\n<br>\r\n  ","STILL L IFE PASTEL_thumb.jpg",130,176,5);thumbnails[3125059]=new thumbnail(3125059,"191665","Still life (with leaf) Pastels","STILL LIFE WITH LEAFjj_thumb.jpg",130,104,5);thumbnails[3128347]=new thumbnail(3128347,"191669","Lewis Hamilton","JACK NICHOLSONj1_thumb.jpg",130,87,5);thumbnails[4920732]=new thumbnail(4920732,"191681","Cellist- Bronze","cellist_thumb.jpg",130,196,5);thumbnails[4920768]=new thumbnail(4920768,"191681","The Juggler -Bronze","Juggler_thumb.jpg",130,200,5);thumbnails[5254132]=new thumbnail(5254132,"295904","Title: Gifts","6_thumb.jpg",130,117,5);thumbnails[5254144]=new thumbnail(5254144,"295904","Autum","5_thumb.jpg",130,111,5);thumbnails[5254160]=new thumbnail(5254160,"295904","","2_thumb.jpg",130,114,5);thumbnails[5254168]=new thumbnail(5254168,"295904","","3_thumb.jpg",130,112,5);thumbnails[5254170]=new thumbnail(5254170,"295904","","DSC_8702_thumb.JPG",130,118,5);thumbnails[5254172]=new thumbnail(5254172,"295904","","23_thumb.jpg",130,123,5);thumbnails[5254205]=new thumbnail(5254205,"295913","RED ","Stiletto_red_bottles_thumb.jpg",130,201,5);thumbnails[5254207]=new thumbnail(5254207,"295913","Black ","black_stilletto_thumb.jpg",130,201,5);thumbnails[5254208]=new thumbnail(5254208,"295913","White","1091_thumb.jpg",130,201,5);thumbnails[5254211]=new thumbnail(5254211,"295913","Silver ","stilletto4_thumb.jpg",130,201,5);thumbnails[5254212]=new thumbnail(5254212,"295914","White ","run3_thumb.jpg",130,201,5);thumbnails[5254214]=new thumbnail(5254214,"295914","Black Football","footybeer_thumb.jpg",130,201,5);thumbnails[5254215]=new thumbnail(5254215,"295913"," Green","stilletto2_thumb.jpg",130,201,5);thumbnails[5254216]=new thumbnail(5254216,"295913","Pink","stilletto3_thumb.jpg",130,201,5);thumbnails[5254220]=new thumbnail(5254220,"295913","Stiletto outdoor","0157_thumb.jpg",130,201,5);thumbnails[5254224]=new thumbnail(5254224,"295914","Salmon","fish21_thumb_thumb.jpg",130,201,5);thumbnails[5254226]=new thumbnail(5254226,"295914","Baseball Bat","w7828_thumb.jpg",130,201,5);thumbnails[5254232]=new thumbnail(5254232,"295914","Sword<br>\r\n","sword5_thumb.jpg",130,201,5);thumbnails[5254236]=new thumbnail(5254236,"295914","Sword","sword4_thumb.jpg",130,201,5);thumbnails[5254238]=new thumbnail(5254238,"295914","Cricket bat","w7804_thumb.jpg",130,201,5);thumbnails[5254239]=new thumbnail(5254239,"295914","Sword","sword2_thumb.jpg",130,201,5);thumbnails[5254242]=new thumbnail(5254242,"295914","DVD Holder ","DVD_Holder_thumb.jpg",130,201,5);thumbnails[5254244]=new thumbnail(5254244,"295914","Cricket Cd Holder","CD_holder_thumb.jpg",130,84,5);thumbnails[5254431]=new thumbnail(5254431,"295904","vase","canvas_1_thumb.jpg",130,132,5);thumbnails[5254434]=new thumbnail(5254434,"295904","Zante Beach wreck","21_thumb.jpg",130,127,5);thumbnails[5254436]=new thumbnail(5254436,"295904"," The scape","19_thumb.jpg",130,190,5);thumbnails[5254440]=new thumbnail(5254440,"295904","Farm Buildings","20_thumb.jpg",130,96,5);thumbnails[5254465]=new thumbnail(5254465,"295924","Audrey","14_thumb.jpg",130,173,5);thumbnails[5254476]=new thumbnail(5254476,"295924","Alicia","alicia_by_isabel_otero_thumb.jpg",130,126,5);thumbnails[5254479]=new thumbnail(5254479,"295904"," Vases on table","13_thumb.jpg",130,135,5);thumbnails[5254485]=new thumbnail(5254485,"295924","Amy ","amy_thumb.jpg",130,173,5);thumbnails[6150168]=new thumbnail(6150168,"344201","Rindt and Rindt","rindt_rindt_thumb.jpg",130,63,5);thumbnails[6150169]=new thumbnail(6150169,"344201","Headstart","headstart_thumb.jpg",130,87,5);thumbnails[6150171]=new thumbnail(6150171,"344201","Rapide","rapide_1_thumb.jpg",130,72,5);thumbnails[6150172]=new thumbnail(6150172,"344201","Monaco 33-10","monaco-33-10_thumb.jpg",130,89,5);thumbnails[6150173]=new thumbnail(6150173,"344201","P4 Monza","p4_monza__thumb.jpg",130,70,5);thumbnails[6150174]=new thumbnail(6150174,"344201","Gt40","GT40_thumb.jpg",130,77,5);thumbnails[6212542]=new thumbnail(6212542,"346305","Firebird<br>\r\nDetail of painting <br>\r\noil on canvas","17_firebird__thumb.jpg",130,185,5);thumbnails[6212547]=new thumbnail(6212547,"346305","Saddleback","55_saddleback__thumb.jpg",130,99,5);thumbnails[6212548]=new thumbnail(6212548,"346305","No fixed Above<br>\r\n<br>\r\nSOLD ","21_no_fixed_abode__thumb.jpg",130,100,5);thumbnails[6212574]=new thumbnail(6212574,"346305","Heatwave","13_heatwave__thumb.jpg",130,185,5);thumbnails[5254419]=new thumbnail(5254419,"295904","Isabel Otero","Isabel_Otero_thumb.JPG",130,206,5);thumbnails[2013981]=new thumbnail(2013981,"132980","Corbis exhibition","corbis16-10-7-000053_thumb.jpg",130,86,5);thumbnails[2013984]=new thumbnail(2013984,"132980","Window onto Pall Mall","DSC_0008_thumb.jpg",130,89,5);thumbnails[2005388]=new thumbnail(2005388,"132980","","web ROA Gallery floor plan_thumb.jpg",130,106,5);var galleries=new Object();galleries[132904]=new gallery(132904,"3124666,1995564"," Anna Izzo Paintings","gallery",[1995564,3124666]);galleries[191681]=new gallery(191681,"4920732"," Leonardo Lucchi","section236798",[4920732,4920768]);galleries[132986]=new gallery(132986,"3124648,3124570,3124541,2049196","Anna Izzo Sculptures","gallery",[2049196,3124541,3124570,3124648]);galleries[346305]=new gallery(346305,"6212547","Colin S. Frooms","section413548",[6212542,6212547,6212548,6212574]);galleries[132984]=new gallery(132984,"1995594,1995590","Emma Delves-Broughton","section172463",[1995579,1995587,1995588,1995590,1995592,1995593,1995594,1995596,1995597,1995598,1995667,1995668,1995674,1995675,1995681,1995683]);galleries[295904]=new gallery(295904,"5254419","Isabel Otero ","section353750",[5254132,5254144,5254160,5254168,5254170,5254172,5254431,5254434,5254436,5254440,5254479,5254419]);galleries[344201]=new gallery(344201,"6150171","Klaus Wagger","section411152",[6150168,6150169,6150171,6150172,6150173,6150174]);galleries[132981]=new gallery(132981,"2005196,2005187","La Galleria Pall Mall","section172467",[2005099,2005187,2005196,2005199,2005357,2005360,2005361,2005363,2005368,2005380,2005395,2005398]);galleries[191669]=new gallery(191669,"3128347","Miklos Drawings","section236796",[3128347]);galleries[191665]=new gallery(191665,"3125059,3125041","Miklos Paintings","section236796",[3125041,3125059]);galleries[295924]=new gallery(295924,"5254465","Portraits","section353750",[5254465,5254476,5254485]);galleries[132980]=new gallery(132980,"2013984","ROA Gallery","section172474",[2013990,2014004,2014009,2014021,2013981,2013984,2005388]);galleries[295914]=new gallery(295914,"5254212","Sport ","section353764",[5254212,5254214,5254224,5254226,5254232,5254236,5254238,5254239,5254242,5254244]);galleries[295913]=new gallery(295913,"5254220,5254216,5254215,5254211,5254208,5254207,5254205","Stiletto ","section353764",[5254205,5254207,5254208,5254211,5254215,5254216,5254220]);var imageSets=new Object();imageSets[1]="6150174,6150173,6150171,6150169,5254205,3128347,3125059,3125041,1995593";imageSets[2]="6212547,6150171,5254465,5254419,5254212,4920732,3128347,2013984,2005196,2005187,1995594,1995590";imageSets[3]="6212574,6212548,5254485,5254479,5254476,5254440,5254434,5254431,5254242,5254239,5254238,5254236,5254232,5254226,5254224,5254220,5254216,5254215,5254214,5254211,5254208,5254207,5254172,5254170,5254168,5254160,5254144,5254132,4920768";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/fifteen/images";break}switch(a){case 1:b="http://www1.clikpic.com/fifteen/images";break}switch(a){case 2:b="http://admin.clikpic.com/fifteen/images";break}switch(a){case 24:b="http://tpc15/clikpic/fifteen/images";break}switch(a){case 4:b="http://www.clikchurch.com/fifteen/images";break}switch(a){case 5:b="http://www2.clikpic.com/fifteen/images";break}switch(a){case 22:b="http://tpc5/clikpic/fifteen/images";break}switch(a){case 23:b="http://tpc10/clikpic/fifteen/images";break}switch(a){case 25:b="http://tpc16/clikpic/fifteen/images";break}switch(a){case 15:b="http://www3.clikpic.com/fifteen/images";break}switch(a){case 18:b="http://www4.clikpic.com/fifteen/images";break}switch(a){case 19:b="http://www5.clikpic.com/fifteen/images";break}switch(a){case 31:b="http://www7.clikpic.com/fifteen/images";break}switch(a){case 32:b="http://admin2.clikpic.com/fifteen/images";break}switch(a){case 33:b="http://www8.clikpic.com/fifteen/images";break}switch(a){case 34:b="http://www9.clikpic.com/fifteen/images";break}switch(a){case 35:b="http://admin3.clikpic.com/fifteen/images";break}switch(a){case 37:b="http://admin4.clikpic.com/fifteen/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("section413548"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section413548.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("section413548"!=""){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.fifteenminutesgallery.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;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(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+'")'})}}};