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[2179302]=new thumbnail(2179302,"98407","Construction 100 x 120 cm mixed media on canvas ","construction100x120cmtecnicamistasutelahg4172008_thumb.JPG",130,87,18);thumbnails[2179308]=new thumbnail(2179308,"98407"," Contained 40 x 40 cm mixed media on canvas","contained40x40cmtecnicamistasutela hg4332008_thumb.JPG",130,132,18);thumbnails[2179313]=new thumbnail(2179313,"98407","Continuous City 108 x 130 cm mixed media on board ","ContinuousCitytecnicamistasupannello108x130hg4162008_thumb.JPG",130,110,18);thumbnails[2179315]=new thumbnail(2179315,"98407","Eyes of London I 40 x 40 cm mixed media on canvas","EyesofLondonI40x40cmtecnicamistasu telahg4252008_thumb.JPG",130,131,18);thumbnails[1778690]=new thumbnail(1778690,"98407","St. Paul's Montage 40 x 100 cm. mixed media on board","stpaul'smontage_40x100cm_hg411_thumb.JPG",130,51,18);thumbnails[2179318]=new thumbnail(2179318,"98407","Eyes of London II 40 x 40 cm mixed media on board","EyesofLondonII40x 40cmtecnicamistasupannellohg4262008_thumb.JPG",130,130,18);thumbnails[2179322]=new thumbnail(2179322,"98407","Forgotten I 35 x 35 cm mixed media on board ","ForgottenI35x35cmtecnicamistasupannellohg4222008_thumb.JPG",130,131,18);thumbnails[2179326]=new thumbnail(2179326,"98407","Ghetto I 35 x 35 cm mixed media on copper and board ","ghettotecnicamistasurame35x35cm2008_thumb.JPG",130,131,18);thumbnails[2179330]=new thumbnail(2179330,"98407","Hidden City Study I 35 x 35 cm mixed media on board ","HiddenCityStudyI35x35cmtecnicamistasupannellohg4232008_thumb.JPG",130,128,18);thumbnails[2179396]=new thumbnail(2179396,"98407","London Skyline 35 x 35 cm mixed media on copper and board","londonskyline35x35cmtecnicamistasurame2008_thumb.JPG",130,129,18);thumbnails[2179404]=new thumbnail(2179404,"98407","Monferrato Mirage 80 x 80 cm mixed media on board ","Monferrato Mirage, 80 x 80 cm, tecnica mista su pannello hg433_thumb.JPG",130,130,18);thumbnails[2179407]=new thumbnail(2179407,"98407","Nocturnal City 80 x 80 cm mixed media on canvas ","NocturnalCity80x 80cmtecnicamistasutelahg4242008_thumb.JPG",130,130,18);thumbnails[2179416]=new thumbnail(2179416,"98407","Urban Study VI 35 x 35 cm mixed media on board ","UrbanStudyVI35x35 cmtecnicamistasupannellohg4202007_thumb.JPG",130,130,18);thumbnails[1419152]=new thumbnail(1419152,"98407","London Nocturne 70x100cm mixedmedia on canvas","Notturno Londinese_70x100cm_mixedmedia on canvas_hg404JPG.jpg",130,91,18);thumbnails[1419159]=new thumbnail(1419159,"98407","Bridges between two worlds 40x100cm mixedmedia on board ","Bridges between two worlds_40x100cm_mixedmedia on board_hg405JPG.jpg",130,53,18);thumbnails[1419162]=new thumbnail(1419162,"98407","Urban Study I 30x30cm mixedmedia on board ","Urban Study I_30x30cm_mixedmedia on board__hg400JPG.jpg",130,130,18);thumbnails[1419165]=new thumbnail(1419165,"98407","Urban Study III 30x30cm mixedmedia on board ","Urban Study III_30x30cm_mixedmedia on board__hg402JPG.jpg",130,129,18);thumbnails[1419174]=new thumbnail(1419174,"98407","St.Pauls study 20 x 20cm mixed media on board","St.Pauls study 20 x 20cm hg409JPG.jpg",130,129,18);thumbnails[1419175]=new thumbnail(1419175,"98407","The Ongoing Moment 80 x 120cm mixed media on board","The Ongoing Moment 80 x 120cm hg410JPG.jpg",130,86,18);thumbnails[1419183]=new thumbnail(1419183,"98407","Venetian Recollection 40x100cm mixed media on board ","Venetian Recollection_40x100cm_mixedmedia on board_hg406JPG.jpg",130,336,18);thumbnails[1452719]=new thumbnail(1452719,"100432","Fruit Iambic Trimeter 100x100cm mixed media on canvas","Fruit_Iambic_Trimeter_100x100cm hg450JPG1.jpg",130,134,18);thumbnails[1452740]=new thumbnail(1452740,"100432","The day stirs 100x100cm mixed media on canvas","The_day_stirs_100x100cm_hg451JPG.jpg",130,131,18);thumbnails[517392]=new thumbnail(517392,"40157","Iris II 40x50cm mixed media on board","Iris II_ mixed media on board_40x50cm_hg398JPG.jpg",130,164,18);thumbnails[517398]=new thumbnail(517398,"40157","Clematis 40x50cm mixed media","Clematis_40x50cm_hg389_mixedmedia1.jpg",130,100,18);thumbnails[517402]=new thumbnail(517402,"40157","Helical Flowers 40x50cm mixed media on board","Helical Flowers_mixed media on board_40x50cm_hg399JPG.jpg",130,195,18);thumbnails[517407]=new thumbnail(517407,"40157","Lily Image on Top of Image 24x30cm collage","Lily_Image_on_Top_of_Image_24x30cm_hg367_collage1.jpg",130,106,18);thumbnails[517417]=new thumbnail(517417,"40157","Rain Collage 35x35cm collograph collage","Rain_Collage_35x35cm_hg378_collographcollage1.jpg",130,120,18);thumbnails[517431]=new thumbnail(517431,"40157","Outback from above VIII 70x70cm mixedmedia","Outback_from_above_VIII_70x70cm_hg392_mixedmedia1.jpg",130,130,18);thumbnails[517495]=new thumbnail(517495,"40157","Outback from above V 30x40cm collograph","Outback_from_above_V_30x40cm_hg372_collograph1.jpg",130,94,18);thumbnails[517464]=new thumbnail(517464,"40157","Stone 50x70cm acrylic","Stone_50x70cm_hg366_acrylic1.jpg",101,130,18);thumbnails[512114]=new thumbnail(512114,"39821","Prelude 80x80cm oil on canvas","Prelude_80x80cm_ hg355_oil_on_canvas3.jpg",130,130,18);thumbnails[518509]=new thumbnail(518509,"39821","The Waves Study III, 40x50cm mixed media","The Waves Study III, 40 x 50 cm hg346JPG1.jpg",130,96,18);thumbnails[518505]=new thumbnail(518505,"39821","Briccole 70x70cm oil on board","Briccole_70x70cm_hg341_oil_on_board1.jpg",130,130,18);thumbnails[518517]=new thumbnail(518517,"39821","The Waves III 50x50cm mixed media on canvas","The_Waves_III_50x50cm_hg351_oil_text_on_canvas1.jpg",130,130,18);thumbnails[514154]=new thumbnail(514154,"39820","La Laguna 50x70cm mixed media on canvas","La_Laguna_50x70cm_ hg310_sold1.jpg",130,93,18);thumbnails[514163]=new thumbnail(514163,"39820","IL Bacio 30x40cm mixed media on board","IL_Bacio_30x40cm_ hg300_sold1.jpg",130,96,18);thumbnails[514166]=new thumbnail(514166,"39820","Ricordi di Venezia 30x40cm mixed media on canvas","Ricordi_di_Venezia_30x40cm_hg301_mixedmedia1.jpg",91,130,18);thumbnails[514168]=new thumbnail(514168,"39820","Riflessione Veneziana 40x40cm mixed media on board","Riflessione_Veneziana_40x40cm_hg308_mixedmedia1.jpg",130,130,18);thumbnails[514173]=new thumbnail(514173,"39820","Duet I 14x25cm monoprint","Duet_I_14x25cm_hg329_monoprint1.jpg",75,130,18);thumbnails[514197]=new thumbnail(514197,"39820","Duet II 14x25 monoprint","Duet_II_14x25_hg331_monoprint4.jpg",70,130,18);thumbnails[514198]=new thumbnail(514198,"39820","Corso Semplice 24x30 collage","Corso_Semplice_24x30_hg307_collage_2.jpg",130,114,18);thumbnails[514203]=new thumbnail(514203,"39820","60 minuti 24x30 collage","60_minuti_24x30_hg326_collage1.jpg",130,123,18);thumbnails[518529]=new thumbnail(518529,"39819","Clear blue sky 35x50cm mixed media","Clear_blue_sky_35x50cm__sold1.jpg",130,83,18);thumbnails[518530]=new thumbnail(518530,"39819","Daydream 40x80cm mixed media","Daydream_40x80cm_sold1.jpg",130,64,18);thumbnails[518553]=new thumbnail(518553,"39819","Interrupted Storm 25x30cm oil on canvas","Interrupted_Storm_25x30cm_hg007_oil_on_canvas2.jpg",130,91,18);thumbnails[1455651]=new thumbnail(1455651,"39819","Holkham VI 30 x 40 cm Oil on canvas","Holkham VI 30 x 40 cm, hg071c, soldJPG.jpg",130,97,18);thumbnails[514080]=new thumbnail(514080,"39817","March 26th 40x50cm mixed media on canvas","March_26th_40x50cm_ hg0541.jpg",130,170,18);thumbnails[513944]=new thumbnail(513944,"39817","February 10th 35 x 50cm mixed media on canvas","February_10th_35x50cm_ hg0512.jpg",130,173,18);thumbnails[513648]=new thumbnail(513648,"39817","Black Boots size 42 ","Black_Boots_ size_42_ hg0601.jpg",130,95,18);thumbnails[518821]=new thumbnail(518821,"39832","Footsteps in the Sand II - colour photograph","Footsteps_in_the_sand_hg1131.jpg",130,183,18);thumbnails[518825]=new thumbnail(518825,"39832","Iris - colour photograph","Iris_hg1871.jpg",130,195,18);thumbnails[518837]=new thumbnail(518837,"39832",'"Islands of Light are swimming on the grass" - colour photograph',"Islands_of_Light_swimming_on_the_grass_hg1771.jpg",130,175,18);thumbnails[518843]=new thumbnail(518843,"39832",'"White words like stones one picks up by the seashore" - digital colour photograph ',"White_words_hg1811.jpg",130,87,18);thumbnails[518844]=new thumbnail(518844,"39832","Lily - digital colour photograph","Llily_hg184b1.jpg",130,130,18);thumbnails[522714]=new thumbnail(522714,"39832","Layers of Time - colour photograph","Layers_of_ Time1.jpg",130,127,18);thumbnails[1778665]=new thumbnail(1778665,"40286","Hannah Gauntlett ","bergamo 006_thumb.JPG",130,86,18);thumbnails[1778671]=new thumbnail(1778671,"40286","Hannah Gauntlett @ Magarte, Bergamo Fiera 2008","bergamo 016_thumb.JPG",130,86,18);thumbnails[520548]=new thumbnail(520548,"40286","Lines in Nature 2006","Lines_in_nature_exhib20061.jpg",130,103,18);thumbnails[1455640]=new thumbnail(1455640,"40286","Mixed Media Workshop","Experimental Printmaking Workshop.jpg",130,113,18);thumbnails[520552]=new thumbnail(520552,"40286","Art workshop July 2005","foto2_workshop_July2005JPG1.jpg",130,62,18);var galleries=new Object();galleries[98407]=new gallery(98407,"2179416,2179407,2179404,2179396,2179330,2179326,2179322,2179318,2179315,2179313","Cityscapes 2007-2008","gallery",[2179302,2179308,2179313,2179315,1778690,2179318,2179322,2179326,2179330,2179396,2179404,2179407,2179416,1419152,1419159,1419162,1419165,1419174,1419175,1419183]);galleries[100432]=new gallery(100432,"1452719","Independent Artist's 2007/2008","gallery",[1452719,1452740]);galleries[40157]=new gallery(40157,"517495,517464,517431,517417,517407,517402,517398,517392","Lines in Nature 2006","gallery",[517392,517398,517402,517407,517417,517431,517495,517464]);galleries[39821]=new gallery(39821,"518517,518509,518505,512114","The Waves 2005","gallery",[512114,518509,518505,518517]);galleries[39820]=new gallery(39820,"514203,514198,514197,514173,514168,514166,514163,514154","Venice 2005","gallery",[514154,514163,514166,514168,514173,514197,514198,514203]);galleries[39819]=new gallery(39819,"1455651,518553,518530,518529","Horizon 2004","gallery",[518529,518530,518553,1455651]);galleries[39817]=new gallery(39817,"514080","Time Past 2003","gallery",[514080,513944,513648]);galleries[39832]=new gallery(39832,"522714,518844,518843,518837,518825,518821","Photography","gallery",[518821,518825,518837,518843,518844,522714]);galleries[40286]=new gallery(40286,"1778665","Exhibition and Workshop Photos","gallery",[1778665,1778671,520548,1455640,520552]);var imageSets=new Object();imageSets[1]="2179407,2179302,1419175,1419152,518821,517392,512114";imageSets[2]="1778665,1452719,514080";imageSets[3]="2179416,2179407,2179404,2179396,2179330,2179326,2179322,2179318,2179315,2179313,2179308,2179302,1778690,1778671,1778665,1455651,1455640,1452740,1452719,1419183,1419175,1419174,1419165,1419162,1419159,1419152,522714,520552,520548,518844,518843,518837,518825,518821,518553,518530,518529,518517,518509,518505,517495,517464,517431,517417,517407,517402,517398,517392,514203,514198";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/gauntlett/images";break}switch(a){case 1:b="http://www1.clikpic.com/gauntlett/images";break}switch(a){case 2:b="http://admin.clikpic.com/gauntlett/images";break}switch(a){case 24:b="http://tpc15/clikpic/gauntlett/images";break}switch(a){case 4:b="http://www.clikchurch.com/gauntlett/images";break}switch(a){case 5:b="http://www2.clikpic.com/gauntlett/images";break}switch(a){case 22:b="http://tpc5/clikpic/gauntlett/images";break}switch(a){case 23:b="http://tpc10/clikpic/gauntlett/images";break}switch(a){case 25:b="http://tpc16/clikpic/gauntlett/images";break}switch(a){case 15:b="http://www3.clikpic.com/gauntlett/images";break}switch(a){case 18:b="http://www4.clikpic.com/gauntlett/images";break}switch(a){case 19:b="http://www5.clikpic.com/gauntlett/images";break}switch(a){case 31:b="http://www7.clikpic.com/gauntlett/images";break}switch(a){case 32:b="http://admin2.clikpic.com/gauntlett/images";break}switch(a){case 33:b="http://www8.clikpic.com/gauntlett/images";break}switch(a){case 34:b="http://www9.clikpic.com/gauntlett/images";break}switch(a){case 35:b="http://admin3.clikpic.com/gauntlett/images";break}switch(a){case 37:b="http://admin4.clikpic.com/gauntlett/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="hannah gauntlett: "+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>"}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 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+'")'})}}};