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[2067895]=new thumbnail(2067895,"","","coming-soon_thumb.jpg",130,94,32);thumbnails[4015494]=new thumbnail(4015494,"146064","Napoleon Dynamite","napoleon-dynamite_thumb.jpg",130,161,32);thumbnails[4055385]=new thumbnail(4055385,"146064","Arnie","arnie_thumb.jpg",130,175,32);thumbnails[4072345]=new thumbnail(4072345,"146064","Columbo","columbo_thumb.jpg",130,145,32);thumbnails[4633796]=new thumbnail(4633796,"266154","","river-don_small_thumb.jpg",130,173,32);thumbnails[4651731]=new thumbnail(4651731,"268320","","Robs-dog-_thumb.jpg",130,175,32);thumbnails[4814148]=new thumbnail(4814148,"268320","","play-time_thumb.jpg",130,198,32);thumbnails[4814152]=new thumbnail(4814152,"268320","","loyalty_thumb.jpg",130,170,32);thumbnails[5010401]=new thumbnail(5010401,"284068","","police-box2_thumb.jpg",130,155,32);thumbnails[5038167]=new thumbnail(5038167,"268320","","Maxwell_thumb.jpg",130,131,32);thumbnails[5219145]=new thumbnail(5219145,"268320","","sues-dog_thumb.jpg",130,94,32);thumbnails[5586752]=new thumbnail(5586752,"266154","Engine and Gearbox ","river-don-1_thumb.jpg",130,156,32);thumbnails[5586755]=new thumbnail(5586755,"266154","close up of oil pumps  wire frame","river-don-close_thumb.jpg",130,149,32);thumbnails[5586809]=new thumbnail(5586809,"266154","","river-don-piston_thumb.jpg",130,166,32);thumbnails[5586975]=new thumbnail(5586975,"266154","","see-through-river-don_thumb.jpg",130,156,32);thumbnails[6026545]=new thumbnail(6026545,"338957","Football Mad","footballmad_thumb.jpg",130,75,32);thumbnails[6215009]=new thumbnail(6215009,"284068","1960s Style Police Box hand made by me ","police-box2-new_thumb.jpg",130,188,32);thumbnails[6215016]=new thumbnail(6215016,"284068","","tardis_thumb.jpg",130,168,32);thumbnails[6215022]=new thumbnail(6215022,"284068","","police-box3_thumb.jpg",130,186,32);thumbnails[6219312]=new thumbnail(6219312,"284068","","bull1_thumb.jpg",130,97,32);thumbnails[6219314]=new thumbnail(6219314,"284068","","bull2_thumb.jpg",130,97,32);thumbnails[6219317]=new thumbnail(6219317,"284068","","bull3_thumb.jpg",130,97,32);thumbnails[6232270]=new thumbnail(6232270,"266154","","New-poster_thumb.jpg",130,98,32);thumbnails[6265799]=new thumbnail(6265799,"266154","","side-seethroughnew_thumb.jpg",130,156,32);thumbnails[6341024]=new thumbnail(6341024,"266154","","ptston-closeup_thumb.jpg",130,102,32);thumbnails[6341028]=new thumbnail(6341028,"266154","","top-view-down_thumb.jpg",130,132,32);thumbnails[6403755]=new thumbnail(6403755,"266154","crossley gas engine ","crossley_thumb.jpg",130,88,32);thumbnails[6424528]=new thumbnail(6424528,"266154","","flywheel2_thumb.jpg",130,98,32);thumbnails[6426815]=new thumbnail(6426815,"266154","","river-wire1_thumb.jpg",130,195,32);thumbnails[4599689]=new thumbnail(4599689,"266154","","river-don3_thumb.jpg",130,163,32);thumbnails[2211288]=new thumbnail(2211288,"135411","Dr Who","dr-who-close_thumb.jpg",130,173,32);thumbnails[2211290]=new thumbnail(2211290,"135411","Police Box","dr-who_thumb.jpg",130,260,32);thumbnails[3658565]=new thumbnail(3658565,"135411","Dalek","dalek1_thumb.jpg",130,173,32);thumbnails[3831857]=new thumbnail(3831857,"135411","Terminator 2","terminator2_thumb.jpg",130,184,32);thumbnails[3961134]=new thumbnail(3961134,"135411","Terminator","teminator-head1_thumb.jpg",130,184,32);thumbnails[6403748]=new thumbnail(6403748,"135411","","greg-harris-artist_thumb.jpg",130,175,32);thumbnails[2020578]=new thumbnail(2020578,"135411","Cyberman<br>\r\n","cyberman_thumb.jpg",130,192,32);thumbnails[2022450]=new thumbnail(2022450,"135410","Blue Macaw","blue-macaw_thumb.jpg",130,214,32);thumbnails[2022463]=new thumbnail(2022463,"135410","Tiger Head","tiger-head_thumb.jpg",130,134,32);thumbnails[2022465]=new thumbnail(2022465,"135410","Rhino","rino_thumb.jpg",130,165,32);thumbnails[2022733]=new thumbnail(2022733,"135410","lazy Cat","lazycat1_thumb.jpg",130,66,32);thumbnails[4598975]=new thumbnail(4598975,"135410","The Gov","the-governor_thumb.jpg",130,146,32);thumbnails[4599052]=new thumbnail(4599052,"135410","pencil elephants ","elephant_thumb.jpg",130,168,32);thumbnails[4600058]=new thumbnail(4600058,"135410","","parrot-head11_thumb.jpg",130,134,32);thumbnails[4600390]=new thumbnail(4600390,"135410","Inseparable","inseparable_thumb.jpg",130,163,32);thumbnails[4615310]=new thumbnail(4615310,"135410","","tiger-head-pencil_thumb.jpg",130,102,32);thumbnails[2020566]=new thumbnail(2020566,"135410","Parrots Long","birds_thumb.jpg",130,391,32);thumbnails[2769204]=new thumbnail(2769204,"173586","Town Hall","town-hall_thumb.jpg",130,170,32);thumbnails[2022671]=new thumbnail(2022671,"135412","Girl","em1_thumb.jpg",130,109,32);thumbnails[2022674]=new thumbnail(2022674,"135412","Girl and Boy","girl&boy_thumb.jpg",130,198,32);thumbnails[4883207]=new thumbnail(4883207,"135412","","girl_thumb.jpg",130,94,32);thumbnails[2516883]=new thumbnail(2516883,"161313","Ship and Moon","tall-ship_thumb.jpg",130,127,32);thumbnails[2799435]=new thumbnail(2799435,"161313","Titanic","titanic_thumb.jpg",130,94,32);thumbnails[2843672]=new thumbnail(2843672,"176745","The Bridge","garden2_thumb.jpg",130,93,32);thumbnails[2859510]=new thumbnail(2859510,"178837","Early Morning Birdies","early-morning-birdies_thumb.jpg",130,91,32);thumbnails[2881428]=new thumbnail(2881428,"178837","Out Into The Blue Yonder","OUT-INTO-THE-BLUE-YONDER-_thumb.jpg",130,95,32);thumbnails[2981637]=new thumbnail(2981637,"178837","Abbey View","abby-view_thumb.jpg",130,91,32);thumbnails[3700110]=new thumbnail(3700110,"176745","Wasp","WASP1_thumb.jpg",130,98,32);thumbnails[3993533]=new thumbnail(3993533,"161313","Moody Skies and Calm Seas","moody-skies--calm-Seas_thumb.jpg",130,98,32);thumbnails[4600388]=new thumbnail(4600388,"176745","","foxglove_thumb.jpg",130,185,32);thumbnails[2561531]=new thumbnail(2561531,"135424","Harley ","big-bike_thumb.jpg",130,98,32);thumbnails[2656929]=new thumbnail(2656929,"135424","Superbike","new-superbike_thumb.jpg",130,93,32);thumbnails[3700103]=new thumbnail(3700103,"135424","Blue Train 1","blue-train1_thumb.jpg",130,98,32);thumbnails[4600321]=new thumbnail(4600321,"135424","VW Beetle ","beetle-bug_thumb.jpg",130,111,32);thumbnails[6403696]=new thumbnail(6403696,"135424","","train-grey2wire_thumb.jpg",130,98,32);thumbnails[6405308]=new thumbnail(6405308,"135424","","harley-grey_thumb.jpg",130,98,32);thumbnails[2109646]=new thumbnail(2109646,"135424","E-Type Jaguar","small Etype _thumb.jpg",130,97,32);thumbnails[2438947]=new thumbnail(2438947,"157400","Great White Shark","shark_thumb.jpg",130,222,32);thumbnails[3784540]=new thumbnail(3784540,"157400","Lobster 1","lobster1_thumb.jpg",130,98,32);thumbnails[3784541]=new thumbnail(3784541,"157400","Lobster 2","lobster-2_thumb.jpg",130,98,32);thumbnails[3907141]=new thumbnail(3907141,"157400","Sea View","sea-view_thumb.jpg",130,99,32);thumbnails[3933458]=new thumbnail(3933458,"157400","Mr Sharky","Mr-Sharky_thumb.jpg",130,98,32);thumbnails[3933463]=new thumbnail(3933463,"157400","Mr Sharky's Brother","sharky2_thumb.jpg",130,98,32);thumbnails[2414223]=new thumbnail(2414223,"156205","Greg Harris","greg 056a_thumb.jpg",130,87,32);var galleries=new Object();galleries[284068]=new gallery(284068,"6219317,6219314,6219312,6215022,6215016,6215009,5010401","3D models ","gallery",[5010401,6215009,6215016,6215022,6219312,6219314,6219317]);galleries[146064]=new gallery(146064,"4072345,4015494","Characters","gallery",[4015494,4055385,4072345]);galleries[266154]=new gallery(266154,"6426815","Engineering","gallery",[4633796,5586752,5586755,5586809,5586975,6232270,6265799,6341024,6341028,6403755,6424528,6426815,4599689]);galleries[338957]=new gallery(338957,"6026545","Foot Ball","gallery",[6026545]);galleries[268320]=new gallery(268320,"4651731","pets","gallery",[4651731,4814148,4814152,5038167,5219145]);galleries[135411]=new gallery(135411,"3961134,3658565,2211288","Sci-Fi","gallery",[2211288,2211290,3658565,3831857,3961134,6403748,2020578]);galleries[135410]=new gallery(135410,"4600058","Wildlife","gallery",[2022450,2022463,2022465,2022733,4598975,4599052,4600058,4600390,4615310,2020566]);galleries[173586]=new gallery(173586,"2769204","Architecture","gallery",[2769204]);galleries[135412]=new gallery(135412,"4883207,2022674,2022671","Portraits","gallery",[2022671,2022674,4883207]);galleries[178837]=new gallery(178837,"2981637","Golf","gallery",[2859510,2881428,2981637]);galleries[176745]=new gallery(176745,"2843672","Nature","gallery",[2843672,3700110,4600388]);galleries[161313]=new gallery(161313,"3993533","On The Sea","gallery",[2516883,2799435,3993533]);galleries[135424]=new gallery(135424,"4600321,3700103,2656929,2561531","vehicles & Transport","gallery",[2561531,2656929,3700103,4600321,6403696,6405308,2109646]);galleries[157400]=new gallery(157400,"3907141","Marine","gallery",[2438947,3784540,3784541,3907141,3933458,3933463]);galleries[156205]=new gallery(156205,"2414223","Greg","gallery",[2414223]);var imageSets=new Object();imageSets[1]="6426815,6405308,6403748,6403696,6232270,6219312,6215016,6026545,5219145,5038167,4883207,4814152,4600390,4600321,4599052,4598975,4072345,3993533,3933458,3907141,3784541,3784540,3700103,2981637,2799435,2769204,2656929,2438947,2022733";imageSets[2]="6426815,4651731,4600321,4600058,4072345,4015494,3993533,3961134,3907141,3700103,3658565,2981637,2843672,2769204,2656929,2561531,2414223,2211288,2067895";imageSets[3]="6426815,6424528,6405308,6403755,6403748,6403696,6341028,6341024,6265799,6232270,6219317,6219314,6219312,6215022,6215016,6215009,6026545,5586975,5586809,5586755,5586752,5219145,5038167,5010401,4883207,4814152,4814148,4651731,4633796,4615310,4600390,4600388,4600321,4600058,4599689,4599052,4598975,4072345,4055385,4015494,3993533,3961134,3933463,3933458,3907141,3831857,3784541,3784540,3700110,3700103";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/lazycat/images";break}switch(a){case 1:b="http://www1.clikpic.com/lazycat/images";break}switch(a){case 2:b="http://admin.clikpic.com/lazycat/images";break}switch(a){case 24:b="http://tpc15/clikpic/lazycat/images";break}switch(a){case 4:b="http://www.clikchurch.com/lazycat/images";break}switch(a){case 5:b="http://www2.clikpic.com/lazycat/images";break}switch(a){case 22:b="http://tpc5/clikpic/lazycat/images";break}switch(a){case 23:b="http://tpc10/clikpic/lazycat/images";break}switch(a){case 25:b="http://tpc16/clikpic/lazycat/images";break}switch(a){case 15:b="http://www3.clikpic.com/lazycat/images";break}switch(a){case 18:b="http://www4.clikpic.com/lazycat/images";break}switch(a){case 19:b="http://www5.clikpic.com/lazycat/images";break}switch(a){case 31:b="http://www7.clikpic.com/lazycat/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lazycat/images";break}switch(a){case 33:b="http://www8.clikpic.com/lazycat/images";break}switch(a){case 34:b="http://www9.clikpic.com/lazycat/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lazycat/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lazycat/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="Greg Harris Artist/Illustrator: "+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+'")'})}}};