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[2026008]=new thumbnail(2026008,"","picture by www.dewerstonephotography.co.uk","sasha1_thumb.jpg",130,99,1);thumbnails[2297231]=new thumbnail(2297231,"","Oscar in Scotland on holiday","Oscar at Castle Pic_thumb.jpg",130,124,1);thumbnails[2297241]=new thumbnail(2297241,"","Oscar at Bath Championship show 2004.","Oscar Bath Ch Show 2004_thumb.jpg",130,116,1);thumbnails[2297243]=new thumbnail(2297243,"","Ruben at Bath Championship show 2004","Ruben 2004 Bath Ch Show 1_thumb.jpg",130,136,1);thumbnails[2297246]=new thumbnail(2297246,"","Ruben in Scotland on holiday.","Ruben Scotland_thumb.jpg",130,130,1);thumbnails[2297250]=new thumbnail(2297250,"","Ruben at Bath Championship show 2004","Ruben 2004 Bath Ch Show 2_thumb.jpg",130,113,1);thumbnails[2297254]=new thumbnail(2297254,"","Sasha at Royal Cornwall Showground 2008.<br>\r\nPhoto by Dewerstone Photography.","Sasha on the move_thumb.jpg",130,92,1);thumbnails[2297271]=new thumbnail(2297271,"","Sasha at Royal Cornwall Showground 2008.<br>\r\nPhoto by Dewerstone Photography.","Sasha Show Pose 1_thumb.jpg",130,120,1);thumbnails[3428475]=new thumbnail(3428475,"","","Commssion-vinyl_thumb.jpg",130,90,1);thumbnails[3429126]=new thumbnail(3429126,"","","Printer_thumb.jpg",130,88,1);thumbnails[5293802]=new thumbnail(5293802,"210196","Here in this picture is travel mugs produced for the Devon Search and Rescue Team.  They also had car stickers and keyrings too.","Travel_mugs_thumb.jpg",130,94,1);thumbnails[5897106]=new thumbnail(5897106,"210196","Travel Mugs personalized with an affix and design.","DSC_0793_2_thumb.JPG",130,86,1);thumbnails[2996701]=new thumbnail(2996701,"210196","Momento mugs","DSC00551_thumb.JPG",130,98,1);thumbnails[3512455]=new thumbnail(3512455,"210196","PRIZE WINNERS MUGS","PDCS-mugs_thumb.jpg",130,64,1);thumbnails[2996649]=new thumbnail(2996649,"210196","Special occasion mugs","mugs_merc c_thumb.jpg",130,93,1);thumbnails[2996850]=new thumbnail(2996850,"210196","Business mugs","mugs_012[1] (2)_thumb.jpg",130,93,1);thumbnails[3512448]=new thumbnail(3512448,"210196","CELEBRATING WITH A DRINK!","PDKA-BPIS_thumb.jpg",130,136,1);thumbnails[3512445]=new thumbnail(3512445,"135331","The Paw Plunger Van","Paw-Plunger-1_thumb.jpg",130,96,1);thumbnails[3512446]=new thumbnail(3512446,"135331","The Paw Plunger van, front and rear","Paw-Plunger-2_thumb.jpg",130,88,1);thumbnails[3489082]=new thumbnail(3489082,"135331","COMPANY LOGO LIVERY","Underwood-van_thumb.jpg",130,83,1);thumbnails[3512653]=new thumbnail(3512653,"135331","Single-layered vinyl","Single-layer-_thumb.jpg",130,171,1);thumbnails[3512576]=new thumbnail(3512576,"135331","Double-layered vinyl","Double-layer-vinyl_thumb.jpg",130,154,1);thumbnails[3512782]=new thumbnail(3512782,"135331","Multi-coloured, multi-layered vinyl","1st-Call-recovery_thumb.jpg",130,95,1);thumbnails[3489077]=new thumbnail(3489077,"135331","VAN WITH LETTERING & PHOTOGRAPHIC LIVERY","Dalmatian-van_thumb.jpg",130,94,1);thumbnails[3512861]=new thumbnail(3512861,"135331","Magnetic signs","Magnetic-signs_thumb.jpg",130,184,1);thumbnails[3489078]=new thumbnail(3489078,"135331","VAN WITH LETTERING & PHOTOGRAPHIC LIVERY","sheltie-van_thumb.jpg",130,70,1);thumbnails[2025949]=new thumbnail(2025949,"135332","On this selection of boat pictures you can see the vinyl lettering being applied to the boat.","Edit red boat_thumb.jpg",130,153,1);thumbnails[2025959]=new thumbnail(2025959,"135332","We have done varied boat lettering for all types of boats and marine crafts including jet ski's.","Edit boat pamela_thumb.jpg",130,207,1);thumbnails[2025961]=new thumbnail(2025961,"135332","The horses heads on the horse box are cut in holographic vinyl.","Edit horse box_thumb.jpg",130,205,1);thumbnails[3588757]=new thumbnail(3588757,"135329","Irish Wolfhound Championship Show.","Irish_Wolfhound_Ch_Show_2009_thumb.jpg",130,174,1);thumbnails[3588790]=new thumbnail(3588790,"135329","South Western Toy Dog Club.","South_Western_Toy_Dog_Club_2_thumb.jpg",130,90,1);thumbnails[5462006]=new thumbnail(5462006,"135329","The Pointer Club CC winners car sticker and the Best Puppy in Breed car sticker.","The_Pointer_Club_Car_Award_Sticker_Proof_thumb.jpg",130,83,1);thumbnails[5477314]=new thumbnail(5477314,"135329","Goonhavern Canine Training Club Award Stickers.","Goonhavern_Canine_Training_Club_Show_Awards_thumb.jpg",130,178,1);thumbnails[2297105]=new thumbnail(2297105,"135329","BLACKPOOL CHAMPIONSHIP DOG SHOW Best of Breed Winners Car Sticker.","BLACKPOOL CH SHOW BOB1_thumb.jpg",130,91,1);thumbnails[2297113]=new thumbnail(2297113,"135329","BLACKPOOL CHAMPIONSHIP DOG SHOW Best Puppy in Breed Car Sticker.","BLACKPOOL CH SHOW BPIB_thumb.jpg",130,91,1);thumbnails[2758051]=new thumbnail(2758051,"135329","South West Hound Club,<br>\r\nBest of Breed Car Sticker.","SW Hound Club BOB Car Sticker_thumb.jpg",130,88,1);thumbnails[2750814]=new thumbnail(2750814,"135329","Southern Afghan Club Show Award & Club membership Car Stickers. ","Southern Afghan Club Show & Membership Car Stickers_thumb.jpg",130,179,1);thumbnails[3029171]=new thumbnail(3029171,"135329","Southern Afghan Hound Club Championship Show Car Stickers","SOUTHERN AFGHAN CAR STICKERS (2)_thumb.jpg",130,135,1);thumbnails[3044520]=new thumbnail(3044520,"135329","Promotional Sticker for a customer that is attending the Discover Dogs.","Puli Promotional Sticker_thumb.jpg",130,123,1);thumbnails[3034546]=new thumbnail(3034546,"135329","Showscene Designs are pleased to sponsor TOP DOG OF DEVON.","TOP DOG DEVON CAR STICKERS_thumb.jpg",130,178,1);thumbnails[3029190]=new thumbnail(3029190,"135329","German Spitz Championship Show Car Stickers","German Spitz Club Proofs 001_thumb.jpg",130,95,1);thumbnails[3340364]=new thumbnail(3340364,"135329","Midlands Irish Setter Society Club Car Stickers for their Championship Dog Show.","Midlands Irish Setter Stickers_thumb.jpg",130,140,1);thumbnails[2182779]=new thumbnail(2182779,"135329","Best in Show <br>\r\nCar Sticker.","SHOW AWARDSa_thumb.jpg",130,194,1);thumbnails[2182708]=new thumbnail(2182708,"135329","Assorted show award car sticker samples","SHOW AWARDS (4)_thumb.jpg",130,66,1);thumbnails[2182693]=new thumbnail(2182693,"135329","Show award car stickers.","SHOW AWARDS 1 (2)_thumb.jpg",130,96,1);thumbnails[2025950]=new thumbnail(2025950,"135325","KTM SuperMoto dirt bike with a private commision of Garfield and Odie graphics.  The bike also has mirror finished chrome vinyl lettering for advertising applied to the side plastics under the seats.  The graphics were applied and covered with a protective layer finish to protect the graphics in off road conditions.","Edit orange bike_thumb.jpg",130,205,1);thumbnails[5293543]=new thumbnail(5293543,"297764","Rhinestone lettering placed onto a t-shirt using a standard font","Shirt_1_thumb.jpg",130,180,1);thumbnails[5293570]=new thumbnail(5293570,"297764","This sweatshirt with a zip at the neck shows a Rhinestone poodle with the owners affix below in the owners choice of font.","Shirt_2_thumb.jpg",130,180,1);thumbnails[5293574]=new thumbnail(5293574,"297764","This picture is of just a Rhinestone dog on a black sweatshirt with a round neck.","Shirt_3_thumb.jpg",130,180,1);thumbnails[5293577]=new thumbnail(5293577,"297764","This T-Shirt is of lettering produced with mirror finished gold vinyl.  ","Shirt_4_thumb.jpg",130,180,1);thumbnails[5293586]=new thumbnail(5293586,"297764","This t-shirt is of different colourd vinyl lettering placed on another area on the shirt.","Shirt_5_thumb.jpg",130,180,1);thumbnails[5293829]=new thumbnail(5293829,"297776","This picture shows two bags that I have designed for a customer, a Rhinestone design  on the left and the other has a vinyl design.  Both bags are conference bags of 11ltr capacity with a flap that is secured by two velcro tabs.  I can also supply another style of bag which is opened by a zip at the top which is also a 11ltr capacity.  I have diferent colours in both styles.","Bags_thumb.jpg",130,94,1);thumbnails[5462013]=new thumbnail(5462013,"297764","Cap with rhinestone lettering","Cap_2_thumb.jpg",130,94,1);thumbnails[5462016]=new thumbnail(5462016,"297764","A selection of caps with rhinestone designs on, the black cap has vinyl lettering.","caps_1_thumb.jpg",130,94,1);thumbnails[5477257]=new thumbnail(5477257,"297776","This picture is of a wash bag with a rhinestone afghan hound on. The wash bags come in 4 colours.","DSC_0699_2_thumb.JPG",130,93,1);thumbnails[5477281]=new thumbnail(5477281,"297776","","DSC_0700_2_thumb.JPG",130,163,1);thumbnails[3438020]=new thumbnail(3438020,"135753","A silhouette of a Bichon Frise","bichon-side-by-side_thumb.jpg",130,81,1);thumbnails[2815542]=new thumbnail(2815542,"135753","A detailed silhouette of a Chinese Crested from the customers own photograph.","Micra1_thumb.jpg",130,144,1);thumbnails[3438022]=new thumbnail(3438022,"135753","Silhouette of a Shar Pei","shar-pei-side-by-side_thumb.jpg",130,91,1);thumbnails[2026041]=new thumbnail(2026041,"135753","Private commision of a French Bulldog showing the original photographs next to the silhouettes produced","Edit Boston_thumb.jpg",130,132,1);thumbnails[2026045]=new thumbnail(2026045,"135753","Private commision of several boxers owned by the same owner.","edit boxers_thumb.jpg",130,199,1);thumbnails[3437982]=new thumbnail(3437982,"135753","Three original photographs with their corresponding silhouettes","6-examples_thumb.jpg",130,149,1);thumbnails[2026057]=new thumbnail(2026057,"135328","Ken Smith Canine Supplies Directional Sign.","Green Directional Sign_thumb.JPG",130,173,1);thumbnails[2297056]=new thumbnail(2297056,"135328","Goonhavern Obedience Dog Club directional sign at the Royal Cornwall Showground 2008.","Yellow Directional Sign_thumb.JPG",130,98,1);thumbnails[2750817]=new thumbnail(2750817,"135328","Bodmin & District Canine Society<br>\r\nDirectional Sign in Black.","Black Directional Sign_thumb.JPG",130,98,1);thumbnails[2815537]=new thumbnail(2815537,"135328","Plymouth and District Canine Society Directional Sign in a black frame with pink vinyl for the background and black lettering.","Plymouth & Dist Canine Society Directional Sign (A)_thumb.JPG",130,98,1);thumbnails[3239568]=new thumbnail(3239568,"175885","Private commision of a 17 month old Great Dane.","P1010159 (2)_thumb.JPG",130,173,1);thumbnails[3239600]=new thumbnail(3239600,"175885","Tibetan Spaniel private commision.","P1010155 (2)_thumb.JPG",130,104,1);thumbnails[3239605]=new thumbnail(3239605,"175885","Tibetan Spaniel private commision.","P1010157 (2)_thumb.JPG",130,98,1);thumbnails[3239613]=new thumbnail(3239613,"175885","Side view of Art Block print.  ","P1010158 (2)_thumb.JPG",130,500,1);thumbnails[3239634]=new thumbnail(3239634,"175885","Reverse view of a finished Art Block print.","P1010162 (2)_thumb.JPG",130,150,1);thumbnails[3044587]=new thumbnail(3044587,"187313","Pristine Clean - Plus label for plastic bottles.  Front label (93mm x 76mm). Back label (93mm x 76mm).","Pristine Clean Plus product front & rear labels_thumb.jpg",130,306,1);thumbnails[3044614]=new thumbnail(3044614,"187313","Pristine Clean label.  Front and back labels measure (65mm x 49mm).","Pristine Clean product front & rear labels_thumb.jpg",130,336,1);thumbnails[3044544]=new thumbnail(3044544,"187313","A Neem Oil Label for plastic bottles (60mm x 75mm) plus an address label (21mm x 46mm).","Neem Oil product front label plus address label 001_thumb.jpg",130,157,1);thumbnails[2018655]=new thumbnail(2018655,"135326","Devon Dubs banner. A local Devon car club.  The banner was used for their club stand at car club events.","Edit devon dubs_thumb.jpg",130,98,1);thumbnails[2038185]=new thumbnail(2038185,"135326","Dewerstone Photography Banner.  The banner is used to advertise that the photographer is covering that particular event where the banner is displayed.","banner-dewerstone_thumb.jpg",130,87,1);thumbnails[2816169]=new thumbnail(2816169,"135326","Stand up Banner prited by Showscene Designs<br>\r\nfor our trade stand.","SD Pop Up Banner 1_thumb.jpg",130,246,1);thumbnails[5477290]=new thumbnail(5477290,"135326","The Pointer Club Banner.","The_Pointer_Club_Banner_Proof_Ca_ADD2720C-24E8-5EC4-4F74D3F4ACFC2C7E_thumb.jpg",130,43,1);thumbnails[5477291]=new thumbnail(5477291,"135326","The Goonhavern Canine Training Club Banner.","Goonhavern_Banner_Proof_thumb.jpg",130,66,1);thumbnails[5477295]=new thumbnail(5477295,"135326","Mandy's Must Haves Banner.","Mandys_Must_Haves_Banner_Proof_thumb.jpg",130,308,1);var galleries=new Object();galleries[210196]=new gallery(210196,"5897106,5293802,3512455,3512448,2996850,2996701,2996649","PERSONALIZED MUGS","gallery",[5293802,5897106,2996701,3512455,2996649,2996850,3512448]);galleries[135331]=new gallery(135331,"3512861,3512782,3512653,3512576,3512446,3512445,3489082,3489078,3489077","Vans","gallery",[3512445,3512446,3489082,3512653,3512576,3512782,3489077,3512861,3489078]);galleries[135330]=new gallery(135330,"3512861,3512782,3512653,3512576,3512446,3512445,3489082,3489078,3489077,2025961","Vehicle Livery/Graphics","gallery",[]);galleries[135332]=new gallery(135332,"2025961,2025959,2025949","Boats & Horse Boxes","gallery",[2025949,2025959,2025961]);galleries[135329]=new gallery(135329,"2182693","Club Membership/Promotional /Show Award Stickers","gallery",[3588757,3588790,5462006,5477314,2297105,2297113,2758051,2750814,3029171,3044520,3034546,3029190,3340364,2182779,2182708,2182693]);galleries[135325]=new gallery(135325,"2025950","Motorbikes","gallery",[2025950]);galleries[297776]=new gallery(297776,"5477281,5477257,5293829","PERSONALISED BAGS","gallery",[5293829,5477257,5477281]);galleries[297764]=new gallery(297764,"5462016,5462013,5293586,5293577,5293574,5293570,5293543","PERSONALISED CLOTHING","gallery",[5293543,5293570,5293574,5293577,5293586,5462013,5462016]);galleries[184639]=new gallery(184639,"5897106,5477281,5477257,5462016,5462013,5293829,5293802,5293586,5293577,5293574","PERSONALIZED ITEMS","gallery",[]);galleries[135753]=new gallery(135753,"3438022,3438020,3437982,2815542,2026045,2026041","Detailed Vinyl Silhouettes","gallery",[3438020,2815542,3438022,2026041,2026045,3437982]);galleries[135328]=new gallery(135328,"2026057","Signs","gallery",[2026057,2297056,2750817,2815537]);galleries[175885]=new gallery(175885,"3239568","Art Canvas/Canvas blocks","gallery",[3239568,3239600,3239605,3239613,3239634]);galleries[187313]=new gallery(187313,"3044544","PRODUCT LABELS/STICKERS","gallery",[3044587,3044614,3044544]);galleries[135326]=new gallery(135326,"2816169,2018655","Banners","gallery",[2018655,2038185,2816169,5477290,5477291,5477295]);var imageSets=new Object();imageSets[1]="3512445,3489082,2996701,2750817,2182708";imageSets[2]="3239568,3044544,2816169,2297271,2182693,2026057,2018655";imageSets[3]="5897106,5477314,5477295,5477291,5477290,5477281,5477257,5462016,5462013,5462006,5293829,5293802,5293586,5293577,5293574,5293570,5293543,3588790,3588757,3512861,3512782,3512653,3512576,3512455,3512448,3512446,3512445,3489082,3489078,3489077,3438022,3438020,3437982,3429126,3428475,3340364,3239634,3239613,3239605,3239600,3239568,3044614,3044587,3044544,3044520,3034546,3029190,3029171,2996850,2996701";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/showscenedesigns/images";break}switch(a){case 1:b="http://www1.clikpic.com/showscenedesigns/images";break}switch(a){case 2:b="http://admin.clikpic.com/showscenedesigns/images";break}switch(a){case 24:b="http://tpc15/clikpic/showscenedesigns/images";break}switch(a){case 4:b="http://www.clikchurch.com/showscenedesigns/images";break}switch(a){case 5:b="http://www2.clikpic.com/showscenedesigns/images";break}switch(a){case 22:b="http://tpc5/clikpic/showscenedesigns/images";break}switch(a){case 23:b="http://tpc10/clikpic/showscenedesigns/images";break}switch(a){case 25:b="http://tpc16/clikpic/showscenedesigns/images";break}switch(a){case 15:b="http://www3.clikpic.com/showscenedesigns/images";break}switch(a){case 18:b="http://www4.clikpic.com/showscenedesigns/images";break}switch(a){case 19:b="http://www5.clikpic.com/showscenedesigns/images";break}switch(a){case 31:b="http://www7.clikpic.com/showscenedesigns/images";break}switch(a){case 32:b="http://admin2.clikpic.com/showscenedesigns/images";break}switch(a){case 33:b="http://www8.clikpic.com/showscenedesigns/images";break}switch(a){case 34:b="http://www9.clikpic.com/showscenedesigns/images";break}switch(a){case 35:b="http://admin3.clikpic.com/showscenedesigns/images";break}switch(a){case 37:b="http://admin4.clikpic.com/showscenedesigns/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="SHOWSCENE DESIGNS: "+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+'")'})}}};