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[1164229]=new thumbnail(1164229,"","","strata on pebbles_thumb.detailjpg1.jpg",130,65,18);thumbnails[5430517]=new thumbnail(5430517,"","detail from 'What Lies Below II'","P1030220_thumb.jpg",130,113,18);thumbnails[5559438]=new thumbnail(5559438,"315291","What lies below.","P1030397_thumb.jpg",130,173,18);thumbnails[5559447]=new thumbnail(5559447,"315291","","P1030398_thumb.jpg",130,173,18);thumbnails[5559451]=new thumbnail(5559451,"315291","","P1030400_thumb.jpg",130,173,18);thumbnails[5559463]=new thumbnail(5559463,"315291","","P1030401_thumb.jpg",130,98,18);thumbnails[3935914]=new thumbnail(3935914,"273589","Installation shot of Palimpsest at PAD gallery in Preston.","installation_shot_1_thumb.jpg",130,195,18);thumbnails[3935915]=new thumbnail(3935915,"273589","Installation shot of PAD Gallery","installation_shot_2_thumb.jpg",130,173,18);thumbnails[3043795]=new thumbnail(3043795,"273589","Puddle Jumping II","puddle jumping_thumb.IIjpg.jpg",130,87,18);thumbnails[3043799]=new thumbnail(3043799,"273589","Still Water I","still water I_thumb.jpg",130,130,18);thumbnails[3043801]=new thumbnail(3043801,"273589","Still Water II","still water II_thumb.jpg",130,66,18);thumbnails[5559415]=new thumbnail(5559415,"273589","What lies below","09-What_Lies_Below_I_thumb.jpg",130,117,18);thumbnails[5559420]=new thumbnail(5559420,"273589","What lies below II","10-What_Lies_Below_II_thumb.jpg",130,117,18);thumbnails[5559431]=new thumbnail(5559431,"273589","","Detritus_075ADA35-24E8-5EC4-4FF541BFE78728C0_thumb.jpg",130,88,18);thumbnails[3043691]=new thumbnail(3043691,"273591","Detritus","Detritus_thumb.jpg",130,88,18);thumbnails[3043695]=new thumbnail(3043695,"273591","Twisted Void","P1020691_thumb.jpg",130,126,18);thumbnails[3043704]=new thumbnail(3043704,"273591","Puddle Jumping","puddle jumping I_thumb.jpg",130,143,18);thumbnails[1159044]=new thumbnail(1159044,"273588","Below the Surface","below surface 3_thumb.jpg",130,159,18);thumbnails[1159103]=new thumbnail(1159103,"273588","Low Tide I","low tide on wall3_thumb.jpg",130,100,18);thumbnails[1159111]=new thumbnail(1159111,"273588","Pool I","pool 1_thumb.jpg",130,87,18);thumbnails[1159125]=new thumbnail(1159125,"273588","Pool II","pool 2_thumb.jpg",130,87,18);thumbnails[1159129]=new thumbnail(1159129,"273588","Pool III","pool 3_thumb.jpg",130,87,18);thumbnails[1159150]=new thumbnail(1159150,"273588","Low Tide II","low tide on wall_thumb.jpg",130,103,18);thumbnails[1159155]=new thumbnail(1159155,"273588","Tideline I and II","tideline I and II_thumb.jpg",130,104,18);thumbnails[1159185]=new thumbnail(1159185,"273588","Below the surface III","below the surface IIII_thumb.jpg",130,182,18);thumbnails[1159190]=new thumbnail(1159190,"273588","Below the surface II","Below the surface I_thumb.jpg",130,173,18);thumbnails[1159310]=new thumbnail(1159310,"273588","strata detail","strata detail_thumb.jpg",130,98,18);thumbnails[1159316]=new thumbnail(1159316,"273588","strata on pebbles","strata on pebbles_thumb.jpg",130,173,18);thumbnails[3043672]=new thumbnail(3043672,"273588","absence through presence","Absence through presence_thumb.email jpg.jpg",130,132,18);thumbnails[3043698]=new thumbnail(3043698,"273588","Presence through Absence","Presence through Absence_thumb.email jpg.jpg",130,134,18);thumbnails[1159057]=new thumbnail(1159057,"83855","Blue Mountains","blue mountains I copy_thumb.jpg",130,56,18);thumbnails[1159079]=new thumbnail(1159079,"83855","Flow","flow 2005 32x26cm_thumb.jpg",130,98,18);thumbnails[1159089]=new thumbnail(1159089,"83855","Lightfall over Hexham","lightfall over Hexham_thumb.jpg",130,96,18);thumbnails[1159134]=new thumbnail(1159134,"83855","Stream","stream2005 22x53cm_thumb.jpg",130,56,18);thumbnails[1159137]=new thumbnail(1159137,"83855","Within walking distance","within walking distance I_thumb.jpg",130,185,18);thumbnails[1159142]=new thumbnail(1159142,"83855","surface tension I","surface tension I 06_thumb.jpg",130,129,18);thumbnails[1159144]=new thumbnail(1159144,"83855","Surface Tension II","surface tension II_thumb.06jpg.jpg",130,130,18);thumbnails[1159146]=new thumbnail(1159146,"83855","Shore","Shore_thumb. 2005.29x20cm. Photo Intaglio and Chine Colle.jpg",130,166,18);thumbnails[1159152]=new thumbnail(1159152,"83855","","plaster prints 2000_thumb.jpg",130,171,18);thumbnails[1159154]=new thumbnail(1159154,"83855","Ridge","skye_thumb.jpg",130,87,18);thumbnails[1159157]=new thumbnail(1159157,"83855","Wall","wall98_thumb.jpg",130,142,18);thumbnails[1159160]=new thumbnail(1159160,"83855","wind without hinderance","wind without hindrance_thumb.jpg",130,24,18);thumbnails[1159162]=new thumbnail(1159162,"83855","soothing isolation","soothing isolation_thumb.jpg",130,24,18);thumbnails[1159165]=new thumbnail(1159165,"83855","Ridge","ridge_thumb.jpg",130,92,18);thumbnails[1159166]=new thumbnail(1159166,"83855","Red Centre","red centre_thumb.jpg",130,140,18);thumbnails[1159167]=new thumbnail(1159167,"83855","Path","path 2003_thumb.jpg",130,98,18);thumbnails[1159169]=new thumbnail(1159169,"83855","Moss","moss_thumb.98jpg.jpg",130,136,18);thumbnails[1159171]=new thumbnail(1159171,"83855","Imprint III","imprint III 2000 52x35cm_thumb.jpg",130,193,18);thumbnails[1159174]=new thumbnail(1159174,"83855","Imprint II","imprint II 2000 52x35cm_thumb.jpg",130,178,18);thumbnails[1159178]=new thumbnail(1159178,"83855","Imprint I","imprint I 2000 52x35cm_thumb.jpg",130,173,18);thumbnails[1159181]=new thumbnail(1159181,"83855","Field of vision I","field of vision_thumb.53x39cm.2000.jpg",130,173,18);thumbnails[1159183]=new thumbnail(1159183,"83855","Evening hue","evening hue copy_thumb.jpg",130,252,18);thumbnails[1159184]=new thumbnail(1159184,"83855","Blue mountains","blue mountains_thumb.jpg",130,146,18);thumbnails[1159197]=new thumbnail(1159197,"83855","within walking distance II","within walking distanceII_thumb.jpg",130,91,18);thumbnails[5548046]=new thumbnail(5548046,"314355","Acrylic materials on Test.","DSCN5724email_thumb.jpg",130,98,18);thumbnails[5548048]=new thumbnail(5548048,"314355","Creating a strip test  using acrylic stop out. ","DSCN5725emailjpg_thumb.jpg",130,98,18);thumbnails[5548049]=new thumbnail(5548049,"314355","","DSCN5726jemailpg_thumb.jpg",130,208,18);thumbnails[5548050]=new thumbnail(5548050,"314355","Etching the test pieces in Copper Sulphate solution at The Bluecoat.","DSCN5729emailjpg_thumb.jpg",130,98,18);thumbnails[5548051]=new thumbnail(5548051,"314355","Inking station at The Bluecoat in Liverpool.","DSCN5730emailjpg_thumb.jpg",130,173,18);thumbnails[5548052]=new thumbnail(5548052,"314355","","DSCN5731email_thumb.jpg",130,163,18);thumbnails[5548053]=new thumbnail(5548053,"314355","Applying BIG to a zinc plate for testing.","DSCN5801emailjpg_thumb.jpg",130,98,18);thumbnails[5548054]=new thumbnail(5548054,"314355","","DSCN5803emailjpg_thumb.jpg",130,98,18);thumbnails[5548055]=new thumbnail(5548055,"314355","Running the zinc plates through the press with sandpaper to create aquatint surface in BIG ground.","DSCN5804emailjpg_thumb.jpg",130,98,18);thumbnails[5548057]=new thumbnail(5548057,"314355","","DSCN5805emailjpg_thumb.jpg",130,98,18);thumbnails[5548058]=new thumbnail(5548058,"314355","Etching zinc test in copper sulphate solution. Stop out is a copydex solution used by Andrew Baldwin. ","DSCN5807jemailpg_thumb.jpg",130,98,18);thumbnails[3935923]=new thumbnail(3935923,"238742","Tracy Griffin, Magda Stawarska-Beavan and Jayne Simpson ","TH1_18520092palimpsest1_thumb.jpg",130,86,18);thumbnails[3935929]=new thumbnail(3935929,"238742","Jayne Simpson private view of Palimpsest","TH2_185200913palimpsest2_thumb.jpg",130,237,18);thumbnails[3935941]=new thumbnail(3935941,"238742","Magda Stawarska-Beavan at Palimpsest private view","TH2_185200927palimpsest3_thumb.jpg",130,79,18);thumbnails[3935946]=new thumbnail(3935946,"238742","Tracy Griffin at palimpsest private view","TH2_185200936palimpsest4_thumb.jpg",130,130,18);thumbnails[5559475]=new thumbnail(5559475,"238742","Paul Thirkell Talking prints guest at Artlab contemporary print studios. Preston","3531983137_7509467602_s_thumb.jpg",130,130,18);thumbnails[5559477]=new thumbnail(5559477,"238742","Paul Thirkell Talking prints event.","3531997915_6645f1a900_s_thumb.jpg",130,130,18);thumbnails[5559478]=new thumbnail(5559478,"238742","Paul Thirkell Talking prints event.","3532805354_d240f6ea88_s_thumb.jpg",130,130,18);thumbnails[5559481]=new thumbnail(5559481,"238742","Sara Ogilvie Talking prints event. Artlab contemporary print studios.","3334669326_b803ab3b30_m_thumb.jpg",130,75,18);thumbnails[5559482]=new thumbnail(5559482,"238742","Sara Ogilvie Talking prints event.","3333864809_7e5f7bd2e5_s_thumb.jpg",130,130,18);thumbnails[5559485]=new thumbnail(5559485,"238742","Sara Oglivie Talking prints event.","3334701690_1436f75f9e_s_thumb.jpg",130,130,18);thumbnails[5888382]=new thumbnail(5888382,"238742","What lies above","4542300666_18c569df96_thumb.jpg",130,87,18);thumbnails[5888395]=new thumbnail(5888395,"238742","What lies above in situ at The Harris Museum in Preston.","P1050427_thumb.jpg",130,173,18);thumbnails[5888401]=new thumbnail(5888401,"238742","What lies above in situ at The Harris museum Preston.","4542383562_fbf0ed70871_thumb.jpg",130,87,18);var galleries=new Object();galleries[315291]=new gallery(315291,"5559463,5559451,5559447,5559438","Drumcroon","gallery",[5559438,5559447,5559451,5559463]);galleries[273589]=new gallery(273589,"5559431,5559420,5559415,3935915,3935914,3043801,3043799,3043795","Palimpsest","gallery",[3935914,3935915,3043795,3043799,3043801,5559415,5559420,5559431]);galleries[273591]=new gallery(273591,"3043704,3043695,3043691","Milleus in Focus","gallery",[3043691,3043695,3043704]);galleries[273588]=new gallery(273588,"1159129","Episodic Realities","gallery",[1159044,1159103,1159111,1159125,1159129,1159150,1159155,1159185,1159190,1159310,1159316,3043672,3043698]);galleries[83855]=new gallery(83855,"1159166,1159165,1159160,1159137","Selected prints from previous exhibitions.","gallery",[1159057,1159079,1159089,1159134,1159137,1159142,1159144,1159146,1159152,1159154,1159157,1159160,1159162,1159165,1159166,1159167,1159169,1159171,1159174,1159178,1159181,1159183,1159184,1159197]);galleries[314355]=new gallery(314355,"5548058,5548057,5548055,5548054,5548053,5548052,5548051,5548050,5548049,5548048","Current research projects","gallery",[5548046,5548048,5548049,5548050,5548051,5548052,5548053,5548054,5548055,5548057,5548058]);galleries[238742]=new gallery(238742,"3935923","Exhibitions and events","gallery",[3935923,3935929,3935941,3935946,5559475,5559477,5559478,5559481,5559482,5559485,5888382,5888395,5888401]);var imageSets=new Object();imageSets[1]="5430517,3043795";imageSets[2]="3935923,1159166,1159165,1159160,1159137,1159129";imageSets[3]="5888401,5888395,5888382,5559485,5559482,5559481,5559478,5559477,5559475,5559463,5559451,5559447,5559438,5559431,5559420,5559415,5548058,5548057,5548055,5548054,5548053,5548052,5548051,5548050,5548049,5548048,5548046,5430517,3935946,3935941,3935929,3935923,3935915,3935914,3043801,3043799,3043795,3043704,3043698,3043695,3043691,3043672,1164229,1159316,1159310,1159197,1159190,1159185,1159184,1159183";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/TracyGriffin/images";break}switch(a){case 1:b="http://www1.clikpic.com/TracyGriffin/images";break}switch(a){case 2:b="http://admin.clikpic.com/TracyGriffin/images";break}switch(a){case 24:b="http://tpc15/clikpic/TracyGriffin/images";break}switch(a){case 4:b="http://www.clikchurch.com/TracyGriffin/images";break}switch(a){case 5:b="http://www2.clikpic.com/TracyGriffin/images";break}switch(a){case 22:b="http://tpc5/clikpic/TracyGriffin/images";break}switch(a){case 23:b="http://tpc10/clikpic/TracyGriffin/images";break}switch(a){case 25:b="http://tpc16/clikpic/TracyGriffin/images";break}switch(a){case 15:b="http://www3.clikpic.com/TracyGriffin/images";break}switch(a){case 18:b="http://www4.clikpic.com/TracyGriffin/images";break}switch(a){case 19:b="http://www5.clikpic.com/TracyGriffin/images";break}switch(a){case 31:b="http://www7.clikpic.com/TracyGriffin/images";break}switch(a){case 32:b="http://admin2.clikpic.com/TracyGriffin/images";break}switch(a){case 33:b="http://www8.clikpic.com/TracyGriffin/images";break}switch(a){case 34:b="http://www9.clikpic.com/TracyGriffin/images";break}switch(a){case 35:b="http://admin3.clikpic.com/TracyGriffin/images";break}switch(a){case 37:b="http://admin4.clikpic.com/TracyGriffin/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="Tracy Hill (formerly Griffin): "+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+'")'})}}};