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[1929205]=new thumbnail(1929205,"129404","WHITBY FROM THE PIER","whitby from the pier_thumb. square oil on canvas £305mm x 305mm £235.JPG",130,131,18);thumbnails[1929206]=new thumbnail(1929206,"129404","GULL","whitby gull_thumb. square. oil on canvas 305mm x 305mm £235.jpg",130,131,18);thumbnails[1929208]=new thumbnail(1929208,"129404","PIER AND JORDAN","whitby pier_thumb. rectangle. oil on canvas405mm x 510mm £300.jpg",130,162,18);thumbnails[1929211]=new thumbnail(1929211,"129404","LIGHTHOUSE","whitby pier_thumb. square oil on canvas 305mm x 305mm £235..jpg",130,129,18);thumbnails[1929247]=new thumbnail(1929247,"129408","BLUE DAMSELS AND CORAL","blue damselflies and ocean study mixed media 535x650 £245_thumb.JPG",130,162,18);thumbnails[1929250]=new thumbnail(1929250,"129408","MUSTARD BUTTERFLIES AND CORAL","mustard butterflies and ocean study mixed media 545x650 £245_thumb.JPG",130,158,18);thumbnails[1929253]=new thumbnail(1929253,"129408","OLIVE SWALLOWS AND CORAL","olive swallows xed media 535x650 £245_thumb.JPG",130,158,18);thumbnails[1929255]=new thumbnail(1929255,"129408","YELLOW BLUETITS AND CORAL","yellow bluetits and ocean study mixed media 550x650 £245_thumb.JPG",130,157,18);thumbnails[1929261]=new thumbnail(1929261,"129408","YELLOW BUTTERFLIES AND CORAL","yellow butterflies and ocean study mixed media on canvas 530x640 £245_thumb.jpg",130,158,18);thumbnails[1930006]=new thumbnail(1930006,"129444","","delay mixed media on canvas 1200x1500 £500_thumb.jpg",130,156,18);thumbnails[1930008]=new thumbnail(1930008,"129444","LEAVING","leaving mixed media on canvas1190x1500 £500_thumb.jpg",130,163,18);thumbnails[1930011]=new thumbnail(1930011,"129444","MISINFORMATION","misinformation mixed media on canvas 1200x1500 £500_thumb.jpg",130,165,18);thumbnails[1930018]=new thumbnail(1930018,"129444","THE BIG YIN (FOR JIM)","the big yin_thumb.mixed media on canvas 1600 x 1600 n.f.s.jpg",130,132,18);thumbnails[1930023]=new thumbnail(1930023,"129444","THROUGH THE GATES","through the gates horisontal blues mixed media on canvas 1190x1500 £500_thumb.jpg",130,164,18);thumbnails[1930039]=new thumbnail(1930039,"129444","THROUGH THE GATES VERTICAL BLUES","through the gates vertical blues mixed media on canvas 1190x1500 £500_thumb.jpg",130,164,18);thumbnails[1930044]=new thumbnail(1930044,"129444","WAITING ON THE PLATFORM","waiting on the platform mixed media on canvas 1500x1200 £500_thumb.jpg",130,161,18);thumbnails[1930051]=new thumbnail(1930051,"129450","DUNE STUDY 2 OIL ON PAPER","dune study 2 oil on paper_thumb..JPG",130,215,18);thumbnails[1930054]=new thumbnail(1930054,"129450","DUNE STUDY 1 OIL ON PAPER","dune study 1 oil on paper_thumb..JPG",130,190,18);thumbnails[1930067]=new thumbnail(1930067,"129450","SECTION (DUNE STUDY 2)","3rd section of dune study 2_thumb.JPG",130,98,18);thumbnails[2094276]=new thumbnail(2094276,"139652","RACHEL SAVAGE IN HER LEEDS STUDIO","RS1_thumb.jpg",130,195,18);thumbnails[2094281]=new thumbnail(2094281,"139652","RACHEL","RS3_thumb.jpg",130,195,18);thumbnails[2354017]=new thumbnail(2354017,"153297","","479_thumb.JPG",130,163,18);thumbnails[2354018]=new thumbnail(2354018,"153297","","480_thumb.JPG",130,161,18);thumbnails[2354019]=new thumbnail(2354019,"153297","","481_thumb.JPG",130,165,18);thumbnails[2354025]=new thumbnail(2354025,"153289","","491_thumb.JPG",130,169,18);thumbnails[2354027]=new thumbnail(2354027,"153289","","492_thumb.JPG",130,161,18);thumbnails[2354039]=new thumbnail(2354039,"153297","","483_thumb.JPG",130,167,18);thumbnails[2354040]=new thumbnail(2354040,"153289","","486_thumb.JPG",130,97,18);thumbnails[2354043]=new thumbnail(2354043,"153289","","498_thumb.JPG",130,130,18);thumbnails[2354054]=new thumbnail(2354054,"129444","","green and yellow text and symbols mixed media on canvas 900x900 £350_thumb.JPG",130,130,18);thumbnails[2354068]=new thumbnail(2354068,"129444","","green and yellow text and symbols no 1 mixed media on canvas 590x840 £195_thumb.jpg",130,90,18);thumbnails[2354070]=new thumbnail(2354070,"129444","","red text grey symbols mixed media on canvas 840x690 £170_thumb.jpg",130,158,18);thumbnails[2354153]=new thumbnail(2354153,"153289","","4871_thumb.JPG",130,99,18);thumbnails[2356103]=new thumbnail(2356103,"153294","","2511_thumb.JPG",130,129,18);thumbnails[2356111]=new thumbnail(2356111,"153289","","2041_thumb.JPG",130,174,18);thumbnails[2356120]=new thumbnail(2356120,"153287","","4472_thumb.JPG",130,90,18);thumbnails[2356121]=new thumbnail(2356121,"153287","","4491_thumb.JPG",130,181,18);thumbnails[2356123]=new thumbnail(2356123,"153287","","4531_thumb.JPG",130,90,18);thumbnails[2356124]=new thumbnail(2356124,"153287","","4591_thumb.JPG",130,178,18);thumbnails[2356125]=new thumbnail(2356125,"153287","","4621_thumb.JPG",130,184,18);thumbnails[2356128]=new thumbnail(2356128,"153294","","4851_thumb.JPG",130,131,18);thumbnails[2356129]=new thumbnail(2356129,"153294","","4941_thumb.JPG",130,130,18);thumbnails[2356131]=new thumbnail(2356131,"151557","","4671_thumb.JPG",130,129,18);thumbnails[2356133]=new thumbnail(2356133,"151557","","4731_thumb.JPG",130,127,18);thumbnails[2356144]=new thumbnail(2356144,"151557","","2301_thumb.JPG",130,266,18);thumbnails[2356147]=new thumbnail(2356147,"151557","","5081_thumb.JPG",130,86,18);thumbnails[2356150]=new thumbnail(2356150,"151557","","5091_thumb.JPG",130,87,18);thumbnails[2356163]=new thumbnail(2356163,"151557","Brother and the wolf","5111_thumb.JPG",130,126,18);thumbnails[2356166]=new thumbnail(2356166,"153289","5 a.m ","5101_thumb.JPG",130,107,18);thumbnails[2356238]=new thumbnail(2356238,"129386","","aldebrough building_thumb. square. oil on canvas 405mm x 405mm £2501.jpg",130,129,18);thumbnails[2356243]=new thumbnail(2356243,"129386","","aldebrough building_thumb. rectangle. oil on canvas 405mm x 510mm £3001.jpg",130,162,18);thumbnails[2356245]=new thumbnail(2356245,"129386","","aldebrough promenade60_thumb.JPG",130,162,18);thumbnails[2356252]=new thumbnail(2356252,"129386","","aldebrough promenade_thumb. square. oil on canvas 405mm x 405mm £2501.jpg",130,131,18);thumbnails[2356259]=new thumbnail(2356259,"151557","","2321_thumb.JPG",130,259,18);thumbnails[2356261]=new thumbnail(2356261,"151557","","2351_thumb.JPG",130,264,18);thumbnails[2356306]=new thumbnail(2356306,"129386","","aldebrough promenade50_thumb.JPG",130,130,18);thumbnails[2356355]=new thumbnail(2356355,"129450","","clifftop painting no_thumb.1 oil on canvas 1270 x 16702.JPG",130,173,18);thumbnails[2356357]=new thumbnail(2356357,"129450","","clifftop painting no_thumb.2. oil on canvas 1270 x 16702.JPG",130,174,18);thumbnails[2356395]=new thumbnail(2356395,"153289","","5061_thumb.JPG",130,103,18);thumbnails[2356451]=new thumbnail(2356451,"153289","","507_thumb.JPG",130,104,18);thumbnails[3095282]=new thumbnail(3095282,"189909","","pic2_thumb.jpg",130,147,18);thumbnails[3095325]=new thumbnail(3095325,"189909","","pic3_thumb.jpg",130,161,18);thumbnails[3095374]=new thumbnail(3095374,"189909","","pic4_thumb.jpg",130,159,18);thumbnails[3095378]=new thumbnail(3095378,"189909","","pic7_thumb.jpg",130,145,18);thumbnails[3095379]=new thumbnail(3095379,"189909","","pic5_thumb.jpg",130,187,18);thumbnails[3095383]=new thumbnail(3095383,"189909","","pic9_thumb.jpg",130,127,18);thumbnails[3095385]=new thumbnail(3095385,"189909","","pic6_thumb.jpg",130,163,18);thumbnails[3095386]=new thumbnail(3095386,"189909","","pic11_thumb.jpg",130,174,18);thumbnails[3095387]=new thumbnail(3095387,"189909","","pic10_thumb.jpg",130,131,18);thumbnails[3095391]=new thumbnail(3095391,"189909","","pic12_thumb.jpg",130,131,18);thumbnails[3095393]=new thumbnail(3095393,"189909","","pic13_thumb.jpg",130,98,18);thumbnails[3095394]=new thumbnail(3095394,"189909","","pic14_thumb.jpg",130,135,18);thumbnails[3095397]=new thumbnail(3095397,"189909","","pic15_thumb.jpg",130,98,18);thumbnails[3095408]=new thumbnail(3095408,"189909","","pic8_thumb.jpg",130,131,18);thumbnails[3204838]=new thumbnail(3204838,"139652","","034_thumb.JPG",130,173,18);thumbnails[3204846]=new thumbnail(3204846,"139652","DECEMBER 2008","046_thumb.JPG",130,173,18);thumbnails[3864257]=new thumbnail(3864257,"235031","Port Stewart at dawn ","PICT0994_thumb.JPG",130,106,18);thumbnails[3864261]=new thumbnail(3864261,"235031","Port Stewart at dawn no.2","PICT0998_thumb.JPG",130,85,18);thumbnails[3864265]=new thumbnail(3864265,"235031","Port Stewart with waves","PICT1003_thumb.JPG",130,106,18);thumbnails[3864288]=new thumbnail(3864288,"235031","Newcastle-Mourne mountains. (Portrait)","PICT1009_thumb.JPG",130,173,18);thumbnails[3864294]=new thumbnail(3864294,"235031","Newcastle-Mourne mountains. (Landscape no.1)","PICT1015_thumb.JPG",130,68,18);thumbnails[3864298]=new thumbnail(3864298,"235031","Newcastle-Mourne mountains. (Landscape no.2)","PICT1018_thumb.JPG",130,68,18);thumbnails[3864301]=new thumbnail(3864301,"235031","Newcastle-Beach painting.","PICT1026_thumb.JPG",130,196,18);thumbnails[3864304]=new thumbnail(3864304,"235031","Loch Earne - Enniskillen. Painting no.1 ","PICT1032_thumb.JPG",130,97,18);thumbnails[3864314]=new thumbnail(3864314,"235031","Loch Earne - Enniskillen. Painting no.2","PICT1036_thumb.JPG",130,97,18);thumbnails[3864356]=new thumbnail(3864356,"235031","Loch Earne - Enniskillen. landscape","PICT1044_thumb.JPG",130,68,18);thumbnails[3864358]=new thumbnail(3864358,"235031","portstewart- signs ","PICT1047_thumb.JPG",130,67,18);thumbnails[3864380]=new thumbnail(3864380,"235031","Malin Head (portrait)","PICT1051_thumb.JPG",130,234,18);thumbnails[3864382]=new thumbnail(3864382,"235031","Malin Head (landscape no.1)","PICT1060_thumb.JPG",130,68,18);thumbnails[3864385]=new thumbnail(3864385,"235031","Malin Head (landscape no.2)","PICT1065_thumb.JPG",130,69,18);thumbnails[3864389]=new thumbnail(3864389,"139652","","me3_thumb.JPG",130,89,18);thumbnails[3864390]=new thumbnail(3864390,"139652","","PICT1090_thumb.JPG",130,98,18);thumbnails[1928776]=new thumbnail(1928776,"129354","OCEAN SERIES NO.1","sinai coast egypt acrylic on canvas 800x800 £450_thumb.jpg",130,135,18);thumbnails[1928843]=new thumbnail(1928843,"129354","OCEAN SERIES 2","spooky lake acrylic on canvas 800x800 £450_thumb.jpg",130,125,18);thumbnails[1928867]=new thumbnail(1928867,"129354","OCEAN SERIES 4","devils eye spring meets santa fe river acrylic on canvas 800x800 £450_thumb.jpg",130,125,18);thumbnails[1928887]=new thumbnail(1928887,"129354","OCEAN SERIES 5","cool waters california acrylic on canvas 800x800 £450_thumb.jpg",130,134,18);thumbnails[1928907]=new thumbnail(1928907,"129354","ocean series 5","devils eye spring meets santa fe river acrylic on canvas 800x800 £4501_thumb.jpg",130,137,18);thumbnails[1929909]=new thumbnail(1929909,"129354","ANGELFISH IN CORAL","angel fish in coral acrylic on canvas 800x800 £450_thumb.JPG",130,130,18);thumbnails[1929910]=new thumbnail(1929910,"129354","ANGELFISH AND JELLYFISH","angelfish on jellyfish acrylic on canvas 800x800 £450 _thumb.jpg",130,132,18);thumbnails[1929911]=new thumbnail(1929911,"129354","BLUE CORAL","blue coral acrylic on canvas 800x800 £450_thumb.jpg",130,133,18);thumbnails[1929913]=new thumbnail(1929913,"129354","EXPLODING JELLYFISH","exploding jellyfish acrylic on canvas 800x800 £450_thumb.jpg",130,131,18);thumbnails[1929915]=new thumbnail(1929915,"129354","GREEN TUBES AND RED POLYPS","green sea tubes and red coral polyps acrylic on canvas 800x800 £450_thumb.jpg",130,132,18);thumbnails[1929938]=new thumbnail(1929938,"129354","WATER LILLIES","red long stemmed water lillies acrylic on canvas 800x800 £450_thumb.JPG",130,130,18);thumbnails[1929939]=new thumbnail(1929939,"129354","SEA ANENOME","sea anenome acrylic on canvas 800x800 £450_thumb.jpg",130,131,18);var galleries=new Object();galleries[153294]=new gallery(153294,"2356103","ABBEY GARDENS WINTER PAINTINGS","gallery",[2356103,2356128,2356129]);galleries[129386]=new gallery(129386,"2356243","ALDEBURGH PAINTINGS","gallery",[2356238,2356243,2356245,2356252,2356306]);galleries[129408]=new gallery(129408,"1929253","CORAL AND STENCIL SERIES","gallery",[1929247,1929250,1929253,1929255,1929261]);galleries[153287]=new gallery(153287,"2356124","ELGOL PAINTINGS.","gallery",[2356120,2356121,2356123,2356124,2356125]);galleries[189909]=new gallery(189909,"3095408,3095397,3095394,3095393,3095391,3095387,3095386,3095385,3095383,3095379","HIGHLANDS AND THE ISLE OF SKYE","gallery",[3095282,3095325,3095374,3095378,3095379,3095383,3095385,3095386,3095387,3095391,3095393,3095394,3095397,3095408]);galleries[235031]=new gallery(235031,"3864385,3864382,3864380,3864358,3864356,3864314,3864304,3864301,3864298,3864294","Ireland paintings","gallery",[3864257,3864261,3864265,3864288,3864294,3864298,3864301,3864304,3864314,3864356,3864358,3864380,3864382,3864385]);galleries[129444]=new gallery(129444,"1930023,1930018","LARGE ABSTRACT PAINTINGS","gallery",[1930006,1930008,1930011,1930018,1930023,1930039,1930044,2354054,2354068,2354070]);galleries[129450]=new gallery(129450,"2356357","LARGE CLIFF AND DUNE PAINTINGS WITH PAPER STUDI","gallery",[1930051,1930054,1930067,2356355,2356357]);galleries[153289]=new gallery(153289,"2356111","LEEDS HYDE PARK PAINTINGS.","gallery",[2354025,2354027,2354040,2354043,2354153,2356111,2356166,2356395,2356451]);galleries[139652]=new gallery(139652,"2094281,2094276","RACHEL SAVAGE IN HER LEEDS STUDIO","gallery",[2094276,2094281,3204838,3204846,3864389,3864390]);galleries[153297]=new gallery(153297,"2354017","THETFORD FOREST PAINTINGS","gallery",[2354017,2354018,2354019,2354039]);galleries[151557]=new gallery(151557,"2356150","WASTWATER ( LAKE DISTRICT ) OIL PAINTINGS","gallery",[2356131,2356133,2356144,2356147,2356150,2356163,2356259,2356261]);galleries[129404]=new gallery(129404,"1929206","WHITBY PAINTINGS","gallery",[1929205,1929206,1929208,1929211]);galleries[129354]=new gallery(129354,"1929913,1929911,1929909,1928907,1928887","OCEAN SERIES","gallery",[1928776,1928843,1928867,1928887,1928907,1929909,1929910,1929911,1929913,1929915,1929938,1929939]);var imageSets=new Object();imageSets[1]="3864389,3864385,3864382,3864380,3864358,3864356,3864314,3864304,3864301,3864298,3864294,3864288,3864265,3864261,2356357,2356243,2356150,2356124,2356111,2356103,2354017,2094281,2094276,1930023,1930018,1930008,1929913,1929911,1929253,1929206,1928907,1928887";imageSets[2]="3864385,3864382,3864380,3864358,3864356,3864314,3864304,3864301,3864298,3864294,2356357,2356243,2356150,2356124,2356111,2356103,2354017,2094281,2094276,1930023,1930018,1929913,1929911,1929909,1929253,1929206,1928907,1928887";imageSets[3]="3864390,3864389,3864385,3864382,3864380,3864358,3864356,3864314,3864304,3864301,3864298,3864294,3864288,3864265,3864261,3864257,3204846,3204838,3095408,3095397,3095394,3095393,3095391,3095387,3095386,3095385,3095383,3095379,3095378,3095374,3095325,3095282,2356451,2356395,2356357,2356355,2356306,2356261,2356259,2356252,2356245,2356243,2356238,2356166,2356163,2356150,2356147,2356144,2356133,2356131";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/rachelsavageart/images";break}switch(a){case 1:b="http://www1.clikpic.com/rachelsavageart/images";break}switch(a){case 2:b="http://admin.clikpic.com/rachelsavageart/images";break}switch(a){case 24:b="http://tpc15/clikpic/rachelsavageart/images";break}switch(a){case 4:b="http://www.clikchurch.com/rachelsavageart/images";break}switch(a){case 5:b="http://www2.clikpic.com/rachelsavageart/images";break}switch(a){case 22:b="http://tpc5/clikpic/rachelsavageart/images";break}switch(a){case 23:b="http://tpc10/clikpic/rachelsavageart/images";break}switch(a){case 25:b="http://tpc16/clikpic/rachelsavageart/images";break}switch(a){case 15:b="http://www3.clikpic.com/rachelsavageart/images";break}switch(a){case 18:b="http://www4.clikpic.com/rachelsavageart/images";break}switch(a){case 19:b="http://www5.clikpic.com/rachelsavageart/images";break}switch(a){case 31:b="http://www7.clikpic.com/rachelsavageart/images";break}switch(a){case 32:b="http://admin2.clikpic.com/rachelsavageart/images";break}switch(a){case 33:b="http://www8.clikpic.com/rachelsavageart/images";break}switch(a){case 34:b="http://www9.clikpic.com/rachelsavageart/images";break}switch(a){case 35:b="http://admin3.clikpic.com/rachelsavageart/images";break}switch(a){case 37:b="http://admin4.clikpic.com/rachelsavageart/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="RACHEL SAVAGE PAINTINGS: "+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].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+'")'})}}};
