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[454839]=new thumbnail(454839,"","","Himage01_thumb.jpg",130,108,1);thumbnails[3102967]=new thumbnail(3102967,"","","Under Construction-x6_thumb.jpg",130,70,1);thumbnails[5513397]=new thumbnail(5513397,"271777","","Gallery_web_-_P1-New_Times_Summer_thumb.jpg",130,98,1);thumbnails[5541656]=new thumbnail(5541656,"313992","","RS-Glassware_-web_-_page_-_P1_thumb.jpg",130,195,1);thumbnails[5960290]=new thumbnail(5960290,"336413","","Visit_Guis_-__web_-_Page_11_thumb.jpg",130,260,1);thumbnails[4736186]=new thumbnail(4736186,"271777","","Gallery_web_-_P2_thumb.jpg",130,98,1);thumbnails[4736187]=new thumbnail(4736187,"271777","","Gallery_web_-_P3_thumb.jpg",130,98,1);thumbnails[5541657]=new thumbnail(5541657,"313992","","RS-Glassware_-web_-_page_-_P2_thumb.jpg",130,195,1);thumbnails[5960354]=new thumbnail(5960354,"336413","","Visit_Guis_-__web_-_Page_21_thumb.jpg",130,260,1);thumbnails[5541658]=new thumbnail(5541658,"313992","","RS-Glassware_-web_-_page_-_P3_thumb.jpg",130,195,1);thumbnails[5977579]=new thumbnail(5977579,"336413","","Visit_Guis_-__web_-_Page_3_thumb.jpg",130,260,1);thumbnails[5541659]=new thumbnail(5541659,"313992","","RS-Glassware_-web_-_page_-_P4_thumb.jpg",130,195,1);thumbnails[5541660]=new thumbnail(5541660,"313992","","RS-Glassware_-web_-_page_-_P5_thumb.jpg",130,195,1);thumbnails[5541661]=new thumbnail(5541661,"313992","","Janice_Bingham-Glassware_-web_-_page_-_P11_thumb.jpg",130,195,1);thumbnails[446750]=new thumbnail(446750,"","Sunset Cleveland","sun002x_thumb.jpg",130,70,1);thumbnails[5843851]=new thumbnail(5843851,"179191","","WP1_-_Wedding_Stationery_-_web_-_Page_1x1_thumb.jpg",130,195,1);thumbnails[5843852]=new thumbnail(5843852,"179191","","WP2-_Wedding_Stationery_Wadrobe_Style-_web_-_Page_1x_thumb.jpg",130,195,1);thumbnails[5843853]=new thumbnail(5843853,"179191","","WP3-_Wedding_Stationery_-_web_-_Page_2x_thumb.jpg",130,195,1);thumbnails[6386337]=new thumbnail(6386337,"179191","","WP6-_Wedding_Guisborough_Group_-web_thumb.jpg",130,195,1);thumbnails[2560275]=new thumbnail(2560275,"59051","","Webcat-Front Cover Page-600_thumb.jpg",130,106,1);thumbnails[2560276]=new thumbnail(2560276,"59051","","Webcat-Front Cover Page -2-600_thumb.jpg",130,106,1);thumbnails[2560047]=new thumbnail(2560047,"59051","","Webcat-Page-1-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560059]=new thumbnail(2560059,"59051","","Webcat-Page-2-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560060]=new thumbnail(2560060,"59051","","Webcat-Page-3-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560062]=new thumbnail(2560062,"59051","","Webcat-Page-4-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560078]=new thumbnail(2560078,"59051","","Webcat-Page-5-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560080]=new thumbnail(2560080,"59051","","Webcat-Page-6-SQ-600-sh_thumb.jpg",130,106,1);thumbnails[2560097]=new thumbnail(2560097,"59051","","Webcat-Page-7-SQ-600-cont2_thumb.jpg",130,106,1);thumbnails[2560373]=new thumbnail(2560373,"59051","","Webcat-Page-8-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2560377]=new thumbnail(2560377,"59051","","Webcat-Page-9-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2560381]=new thumbnail(2560381,"59051","","Webcat-Page-10-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2663814]=new thumbnail(2663814,"59051","","Webcat-Page-11-PAN-600-sh1_thumb.jpg",130,106,1);thumbnails[2663815]=new thumbnail(2663815,"59051","","Webcat-Page-12-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2663816]=new thumbnail(2663816,"59051","","Webcat-Page-13-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2663817]=new thumbnail(2663817,"59051","","Webcat-Page-14-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2663818]=new thumbnail(2663818,"59051","","Webcat-Page-15-PAN-600-sh_thumb.jpg",130,106,1);thumbnails[2663819]=new thumbnail(2663819,"59051","","Webcat-Page-16-C5-600-sh_thumb.jpg",130,101,1);thumbnails[2663828]=new thumbnail(2663828,"59051","","Webcat-Page-17-C5-600-sh_thumb.jpg",130,101,1);thumbnails[4730966]=new thumbnail(4730966,"35438","","Lake_District__North_West_Page_11_thumb.jpg",130,195,1);thumbnails[4842487]=new thumbnail(4842487,"189760","","North_Yorkshire__The_North_East_-_Page_1_thumb.jpg",130,195,1);thumbnails[4842489]=new thumbnail(4842489,"189760","","North_Yorkshire__The_North_East_-_Page_2_thumb.jpg",130,195,1);thumbnails[4842491]=new thumbnail(4842491,"189760","","North_Yorkshire__The_North_East_-_Page_3_thumb.jpg",130,195,1);thumbnails[4842492]=new thumbnail(4842492,"189760","","North_Yorkshire__The_North_East_-_Page_4_thumb.jpg",130,195,1);thumbnails[4842493]=new thumbnail(4842493,"189760","","North_Yorkshire__The_North_East_-_Page_51_thumb.jpg",130,195,1);thumbnails[4880761]=new thumbnail(4880761,"189760","","North_Yorkshire__The_North_East_-_Page_6_thumb.jpg",130,195,1);thumbnails[4880762]=new thumbnail(4880762,"189760","","North_Yorkshire__The_North_East_-_Page_7_thumb.jpg",130,195,1);thumbnails[4880763]=new thumbnail(4880763,"189760","","North_Yorkshire__The_North_East_-_Page_8_thumb.jpg",130,195,1);thumbnails[4880764]=new thumbnail(4880764,"189760","","North_Yorkshire__The_North_East_-_Page_9_thumb.jpg",130,195,1);thumbnails[4880765]=new thumbnail(4880765,"189760","","North_Yorkshire__The_North_East_-_Page_10_thumb.jpg",130,195,1);thumbnails[4880766]=new thumbnail(4880766,"189760","","North_Yorkshire__The_North_East_-_Page_11_thumb.jpg",130,195,1);thumbnails[4880767]=new thumbnail(4880767,"189760","","North_Yorkshire__The_North_East_-_Page_12_thumb.jpg",130,195,1);thumbnails[5710759]=new thumbnail(5710759,"189760","","web_-_page_-_temp_Page_B_thumb.jpg",130,195,1);thumbnails[5710785]=new thumbnail(5710785,"189760","","web_-_page_-_temp_Page_D_thumb.jpg",130,195,1);thumbnails[5912051]=new thumbnail(5912051,"190348","","Oxford__Central_England_-_Web_-_Page_1_thumb.jpg",130,195,1);thumbnails[5710804]=new thumbnail(5710804,"190355","","web_-_page_-_temp_Page_E_thumb.jpg",130,195,1);thumbnails[5895476]=new thumbnail(5895476,"189794","","Cornwall__The_Soth_West_-_web_-_Page_1_thumb.jpg",130,195,1);thumbnails[5895465]=new thumbnail(5895465,"189758","","Scotland_-_web_-__Page_1_thumb.jpg",130,195,1);thumbnails[5895466]=new thumbnail(5895466,"189758","","Scotland_-_web_-__Page_2_thumb.jpg",130,195,1);thumbnails[5895467]=new thumbnail(5895467,"189758","","Scotland_-_web_-__Page_3_thumb.jpg",130,195,1);thumbnails[5912043]=new thumbnail(5912043,"35447","","Europe_1_-_Web_-_Page_1_thumb.jpg",130,195,1);thumbnails[5912044]=new thumbnail(5912044,"35447","","Europe_1_-_Web_-_Page_2_thumb.jpg",130,195,1);thumbnails[5912046]=new thumbnail(5912046,"39117","","Europe_2_-_web_-_page_1_thumb.jpg",130,195,1);thumbnails[5912047]=new thumbnail(5912047,"39117","","Europe_2_-_web_-_page_2_thumb.jpg",130,195,1);thumbnails[4772813]=new thumbnail(4772813,"44387","","Europe_3_--__Page_1_thumb.jpg",130,195,1);thumbnails[4772815]=new thumbnail(4772815,"44387","","Europe_3_--__Page_2_thumb.jpg",130,195,1);thumbnails[4772819]=new thumbnail(4772819,"44387","","Europe_3_--__Page_3_thumb.jpg",130,195,1);thumbnails[4772823]=new thumbnail(4772823,"44387","","Europe_3_--__Page_4_thumb.jpg",130,195,1);thumbnails[4772825]=new thumbnail(4772825,"44387","","Europe_3_--__Page_5_thumb.jpg",130,195,1);thumbnails[4772827]=new thumbnail(4772827,"44387","","Europe_3_--__Page_6_thumb.jpg",130,195,1);thumbnails[5895479]=new thumbnail(5895479,"44543","","Europe_4_-_web_-_Page_1_thumb.jpg",130,195,1);thumbnails[5895469]=new thumbnail(5895469,"38865","","Around_The_World_-_Web_-_Page_1_thumb.jpg",130,195,1);thumbnails[5895470]=new thumbnail(5895470,"38865","","Around_The_World_-_Web_-_Page_2_thumb.jpg",130,195,1);thumbnails[5895471]=new thumbnail(5895471,"38865","","Around_The_World_-_Web_-_Page_3_thumb.jpg",130,195,1);thumbnails[5895474]=new thumbnail(5895474,"189795","","Landscapes__Studies_in_Black__White_-__Page_1_thumb.jpg",130,195,1);thumbnails[5895475]=new thumbnail(5895475,"189795","","Landscapes__Studies_in_Black__White_-__Page_2_thumb.jpg",130,195,1);thumbnails[6142072]=new thumbnail(6142072,"36192","","Wildlife_1-web-__Page_1_2FED48EB-1EC9-D45B-1C25E64BBA086D97_thumb.jpg",130,260,1);thumbnails[5895484]=new thumbnail(5895484,"36438","","Wildlife_2_-_web-__Page_1_thumb.jpg",130,195,1);thumbnails[5895485]=new thumbnail(5895485,"37998","","Wildlife_3_-_web-__Page_1_thumb.jpg",130,195,1);thumbnails[5912040]=new thumbnail(5912040,"82401","","Churches_-_Web_-_Page_2_thumb.jpg",130,195,1);thumbnails[4872153]=new thumbnail(4872153,"277967","","Cass_-web_-_page_1_thumb.jpg",130,195,1);thumbnails[4872155]=new thumbnail(4872155,"277967","","Cass_-web_-_page_2_thumb.jpg",130,195,1);thumbnails[4872156]=new thumbnail(4872156,"277967","","Cass_-web_-_page_3_thumb.jpg",130,195,1);thumbnails[4872157]=new thumbnail(4872157,"277967","","Cass_-web_-_page_4_thumb.jpg",130,195,1);thumbnails[4872159]=new thumbnail(4872159,"277967","","Cass_-web_-_page_5_thumb.jpg",130,195,1);thumbnails[4872160]=new thumbnail(4872160,"277967","","Cass_-web_-_page_6_thumb.jpg",130,195,1);thumbnails[4892635]=new thumbnail(4892635,"277967","","Cass_-web_-_page_-_Limited_Edition_-_P1_thumb.jpg",130,195,1);thumbnails[4892638]=new thumbnail(4892638,"277967","","Cass_-web_-_page_-_Limited_Edition_-_P2_thumb.jpg",130,195,1);thumbnails[6298983]=new thumbnail(6298983,"309263","","artist_Of_Month_May-2010_thumb.jpg",130,195,1);thumbnails[6054450]=new thumbnail(6054450,"309263","","Ged_Hickey_-_web_-__Page2_thumb.jpg",130,195,1);thumbnails[5544678]=new thumbnail(5544678,"309263","","BBC_-web_-_page_-_BBC-1_thumb.jpg",130,195,1);thumbnails[5544681]=new thumbnail(5544681,"309263","","BBC_-web_-_page_-_BBC_-_2_thumb.jpg",130,195,1);var galleries=new Object();galleries[271777]=new gallery(271777,"5513397,4736187,4736186","16b Fountain Street, Guisborough.","section326686",[5513397,4736186,4736187]);galleries[313992]=new gallery(313992,"5541661,5541660,5541659,5541658,5541657,5541656","Also At The Gallery","section376295",[5541656,5541657,5541658,5541659,5541660,5541661]);galleries[336413]=new gallery(336413,"5977579,5960354,5960290","Visit Guisborough","section402814",[5960290,5960354,5977579]);galleries[51481]=new gallery(51481,"","Web Site Library","gallery",[]);galleries[179191]=new gallery(179191,"6386337,5843853,5843852,5843851","Wedding Stationery","gallery",[5843851,5843852,5843853,6386337]);galleries[59051]=new gallery(59051,"2663828,2663819,2663818,2663817,2663816,2663815,2663814,2560381,2560377,2560373","Greetings Cards Catalogue","gallery",[2560275,2560276,2560047,2560059,2560060,2560062,2560078,2560080,2560097,2560373,2560377,2560381,2663814,2663815,2663816,2663817,2663818,2663819,2663828]);galleries[35438]=new gallery(35438,"4730966","The Lake District & The North West","gallery",[4730966]);galleries[189760]=new gallery(189760,"5710785,5710759,4880767,4880766,4880765,4880764,4880763,4880762,4880761,4842493","North Yorkshire & The North East","gallery",[4842487,4842489,4842491,4842492,4842493,4880761,4880762,4880763,4880764,4880765,4880766,4880767,5710759,5710785]);galleries[190335]=new gallery(190335,"","Shropshire, The West Midlands & Wales","gallery",[]);galleries[190338]=new gallery(190338,"","Nottinghamshire & The East Midlands","gallery",[]);galleries[190341]=new gallery(190341,"","Cambridgeshire & East Anglia","gallery",[]);galleries[190348]=new gallery(190348,"5912051","Oxfordshire & Central England","gallery",[5912051]);galleries[190352]=new gallery(190352,"","Kent & The South East","gallery",[]);galleries[190353]=new gallery(190353,"","Wiltshire & The South","gallery",[]);galleries[190355]=new gallery(190355,"5710804","London","gallery",[5710804]);galleries[189794]=new gallery(189794,"5895476","Cornwall & The South West","gallery",[5895476]);galleries[189758]=new gallery(189758,"5895467,5895466,5895465","Scotland","gallery",[5895465,5895466,5895467]);galleries[35447]=new gallery(35447,"5912044,5912043","Europe 1","gallery",[5912043,5912044]);galleries[39117]=new gallery(39117,"5912047,5912046","Europe 2","gallery",[5912046,5912047]);galleries[44387]=new gallery(44387,"4772827,4772825,4772823,4772819,4772815,4772813","Europe 3","gallery",[4772813,4772815,4772819,4772823,4772825,4772827]);galleries[44543]=new gallery(44543,"5895479","Europe 4","gallery",[5895479]);galleries[38865]=new gallery(38865,"5895471,5895470,5895469","Around the World","gallery",[5895469,5895470,5895471]);galleries[189795]=new gallery(189795,"5895475,5895474","Landscapes & Studies in Black & White","gallery",[5895474,5895475]);galleries[36192]=new gallery(36192,"6142072","Wildlife 1","gallery",[6142072]);galleries[36438]=new gallery(36438,"5895484","Wildlife 2","gallery",[5895484]);galleries[37998]=new gallery(37998,"5895485","Wildlife 3","gallery",[5895485]);galleries[82401]=new gallery(82401,"5912040","Churches","gallery",[5912040]);galleries[277967]=new gallery(277967,"4892638,4892635,4872160,4872159,4872157,4872156,4872155,4872153","Cass @ The Gallery","gallery",[4872153,4872155,4872156,4872157,4872159,4872160,4892635,4892638]);galleries[309263]=new gallery(309263,"6298983,6054450,5544681,5544678","Photographer Of The Month","section225372",[6298983,6054450,5544678,5544681]);var imageSets=new Object();imageSets[1]="454839";imageSets[3]="6386337,6298983,6142072,6054450,5977579,5960354,5960290,5912051,5912047,5912046,5912044,5912043,5912040,5895485,5895484,5895479,5895476,5895475,5895474,5895471,5895470,5895469,5895467,5895466,5895465,5843853,5843852,5843851,5710804,5710785,5710759,5544681,5544678,5541661,5541660,5541659,5541658,5541657,5541656,5513397,4892638,4892635,4880767,4880766,4880765,4880764,4880763,4880762,4880761,4872160";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/sueandsteve/images";break}switch(a){case 1:b="http://www1.clikpic.com/sueandsteve/images";break}switch(a){case 2:b="http://admin.clikpic.com/sueandsteve/images";break}switch(a){case 24:b="http://tpc15/clikpic/sueandsteve/images";break}switch(a){case 4:b="http://www.clikchurch.com/sueandsteve/images";break}switch(a){case 5:b="http://www2.clikpic.com/sueandsteve/images";break}switch(a){case 22:b="http://tpc5/clikpic/sueandsteve/images";break}switch(a){case 23:b="http://tpc10/clikpic/sueandsteve/images";break}switch(a){case 25:b="http://tpc16/clikpic/sueandsteve/images";break}switch(a){case 15:b="http://www3.clikpic.com/sueandsteve/images";break}switch(a){case 18:b="http://www4.clikpic.com/sueandsteve/images";break}switch(a){case 19:b="http://www5.clikpic.com/sueandsteve/images";break}switch(a){case 31:b="http://www7.clikpic.com/sueandsteve/images";break}switch(a){case 32:b="http://admin2.clikpic.com/sueandsteve/images";break}switch(a){case 33:b="http://www8.clikpic.com/sueandsteve/images";break}switch(a){case 34:b="http://www9.clikpic.com/sueandsteve/images";break}switch(a){case 35:b="http://admin3.clikpic.com/sueandsteve/images";break}switch(a){case 37:b="http://admin4.clikpic.com/sueandsteve/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("section326686"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section326686.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("section326686"!=""){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="Sue & Steve Photography 'The Gallery' Guisborough: "+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;resizePhotoInfo();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+'")'})}}};