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[3757673]=new thumbnail(3757673,"55683","Face of the Waters","FaceoftheWaters600_thumb.jpg",130,85,1);thumbnails[2264273]=new thumbnail(2264273,"55683","Shall Not Cease","ShallNotCease600_thumb.jpg",130,96,1);thumbnails[723302]=new thumbnail(723302,"55683","Cleaving Flowers","FlowerCleave600_thumb.jpg",130,98,1);thumbnails[3757677]=new thumbnail(3757677,"68201","Lighten my Darkness","LightenmyDarkness600_thumb.jpg",130,97,1);thumbnails[889142]=new thumbnail(889142,"68201","God of my Rock","GodofmyRock600_thumb.jpg",130,98,1);thumbnails[2313939]=new thumbnail(2313939,"151263","Sing to the LORD","HolyAttire600_thumb.jpg",130,87,1);thumbnails[5553253]=new thumbnail(5553253,"49754","An End to Darkness","AnEndToDarkness600_thumb.jpg",130,173,1);thumbnails[5027955]=new thumbnail(5027955,"49754","Look Unto the Heavens","LookUntotheHeavens600_thumb.jpg",130,84,1);thumbnails[4160808]=new thumbnail(4160808,"49754","Where Wast Thou?","WhereWastThou600_thumb.jpg",130,59,1);thumbnails[3989902]=new thumbnail(3989902,"49754","Golden Splendor","WondrousWorksOfGod600_thumb.jpg",130,97,1);thumbnails[3757693]=new thumbnail(3757693,"49754","Leviathan","Leviathan600_thumb.jpg",130,67,1);thumbnails[2535870]=new thumbnail(2535870,"49754","Ancient Wisdom","AncientisWisdom600_thumb.jpg",130,98,1);thumbnails[1866647]=new thumbnail(1866647,"49754","Breath of God","BreathofGod600_thumb.jpg",130,95,1);thumbnails[1590046]=new thumbnail(1590046,"49754","Tried Gold","GoldTree600_thumb.jpg",130,98,1);thumbnails[953760]=new thumbnail(953760,"49754","Brass Wood","BrassWood600_thumb.jpg",130,98,1);thumbnails[652518]=new thumbnail(652518,"49754","Precious Thing","PreciousThing600_thumb.jpg",130,98,1);thumbnails[652519]=new thumbnail(652519,"49754","Protective Trees","RiverTrees600_thumb.jpg",130,98,1);thumbnails[5599715]=new thumbnail(5599715,"49750","In Your Light","InYourLight600_thumb.jpg",130,101,1);thumbnails[5288725]=new thumbnail(5288725,"49750","Hoarfrost Like Ashes","HoarfrostLikeAshes600_thumb.jpg",130,98,1);thumbnails[5288745]=new thumbnail(5288745,"49750","Renew a Right Spirit","RenewARightSpirit600_thumb.jpg",130,98,1);thumbnails[5288748]=new thumbnail(5288748,"49750","Summer and Winter","SummerAndWinter600_thumb.jpg",130,77,1);thumbnails[5226736]=new thumbnail(5226736,"49750","Be Not Far From Me","BeNotFarFromMe600_thumb.jpg",130,98,1);thumbnails[5028000]=new thumbnail(5028000,"49750","Trees of the Wood Rejoice","TreesoftheWoodRejoice600_thumb.jpg",130,93,1);thumbnails[4920785]=new thumbnail(4920785,"49750","The Lord Shall Preserve","TheLordShallPreserve600_thumb.jpg",130,98,1);thumbnails[4073889]=new thumbnail(4073889,"49750","Throne in Heaven","ThroneInHeaven600_thumb.jpg",130,76,1);thumbnails[2535940]=new thumbnail(2535940,"49750","Time of Trouble","TimeofTrouble600_thumb.jpg",130,84,1);thumbnails[2273953]=new thumbnail(2273953,"49750","Shadow of Your Wings","ShadowofYourWings600_thumb.jpg",130,98,1);thumbnails[2189635]=new thumbnail(2189635,"49750","Still Waters","StillWaters600_thumb.jpg",130,72,1);thumbnails[1866649]=new thumbnail(1866649,"49750","Splendour and Majesty","SplendourandMajesty600_thumb.jpg",130,99,1);thumbnails[1687135]=new thumbnail(1687135,"49750","East from West","EastfromWest600_thumb.jpg",130,98,1);thumbnails[1651640]=new thumbnail(1651640,"49750","Revive from Depths","RevivefromDepths600_thumb.jpg",130,98,1);thumbnails[1463900]=new thumbnail(1463900,"49750","Path of Light","PathofLight600_thumb.jpg",130,93,1);thumbnails[1118711]=new thumbnail(1118711,"49750","Sun Tent","SunTent600_thumb.jpg",130,98,1);thumbnails[889145]=new thumbnail(889145,"49750","Prospering Tree","ProsperingTree600_thumb.jpg",130,96,1);thumbnails[652508]=new thumbnail(652508,"49750","Fixed Heart","FixedHeart600_thumb.jpg",130,93,1);thumbnails[652511]=new thumbnail(652511,"49750","Little Hills","LittleHills600_thumb.jpg",130,96,1);thumbnails[652513]=new thumbnail(652513,"49750","Night River","NightRiver600_thumb.jpg",130,98,1);thumbnails[652514]=new thumbnail(652514,"49750","My Defense","NotbeMoved600_thumb.jpg",130,94,1);thumbnails[652515]=new thumbnail(652515,"49750","Open Rock","OpenRock600_thumb.jpg",130,98,1);thumbnails[652516]=new thumbnail(652516,"49750","Path of Life","PathofLife600_thumb.jpg",130,75,1);thumbnails[652517]=new thumbnail(652517,"49750","Perfection of Beauty","PerfectionofBeauty600_thumb.jpg",130,95,1);thumbnails[652520]=new thumbnail(652520,"49750","Smoking Hills","SmokingHills600_thumb.jpg",130,98,1);thumbnails[5288720]=new thumbnail(5288720,"55682","Faithful Messenger","FaithfulMessenger600_thumb.jpg",130,86,1);thumbnails[2273948]=new thumbnail(2273948,"55682","Righteous will Flourish","RighteouswillFlourish600_thumb.jpg",130,98,1);thumbnails[723303]=new thumbnail(723303,"55682","Prepared Horse","PreparedHorse600_thumb.jpg",130,98,1);thumbnails[3757666]=new thumbnail(3757666,"229273","Two are Better","TwoareBetter600_thumb.jpg",130,59,1);thumbnails[3989886]=new thumbnail(3989886,"241371","A Fountain of Gardens","AFountainOfGardens600_thumb.jpg",130,80,1);thumbnails[4073878]=new thumbnail(4073878,"49751","Peaceful Habitation","PeacefulHabitation600_thumb.jpg",130,97,1);thumbnails[3757670]=new thumbnail(3757670,"49751","Divider of the Sea","DivideroftheSea600_thumb.jpg",130,98,1);thumbnails[1687141]=new thumbnail(1687141,"49751","Purge","Purge600_thumb.jpg",130,98,1);thumbnails[1590039]=new thumbnail(1590039,"49751","Righteous Peace","RighteousPeace600_thumb.jpg",130,98,1);thumbnails[1118268]=new thumbnail(1118268,"49751","Arise and Shine (Green)","ArisenLightGreen600_thumb.jpg",130,98,1);thumbnails[1118357]=new thumbnail(1118357,"49751","Arise and Shine (Red)","ArisenLightRed600_thumb.jpg",130,98,1);thumbnails[889147]=new thumbnail(889147,"49751","Light and Darkness","PeaceandEvil600_thumb.jpg",130,98,1);thumbnails[652510]=new thumbnail(652510,"49751","Hollow Waters","HollowWaters600_thumb.jpg",130,96,1);thumbnails[652512]=new thumbnail(652512,"49751","Morning Light","MorningLight600_thumb.jpg",130,98,1);thumbnails[3757687]=new thumbnail(3757687,"229278","Tower and a Fortress","TowerandaFortress600_thumb.jpg",130,75,1);thumbnails[5027921]=new thumbnail(5027921,"241374","Dwell Safely","DwellSafely600_thumb.jpg",130,69,1);thumbnails[3989913]=new thumbnail(3989913,"241374","Sleep in the Woods","SleepintheWoods600_thumb.jpg",130,98,1);thumbnails[3160631]=new thumbnail(3160631,"193604","One Like a Vulture","SetTheTrumpet600_thumb.jpg",130,78,1);thumbnails[1687178]=new thumbnail(1687178,"113675","Tabernacle of David","TabernacleofDavid600_thumb.jpg",130,98,1);thumbnails[4073883]=new thumbnail(4073883,"144930","The Third Part","TheThirdPart600_thumb.jpg",130,98,1);thumbnails[3105017]=new thumbnail(3105017,"144930","Unique Day","UniqueDay600_thumb.jpg",130,98,1);thumbnails[3757682]=new thumbnail(3757682,"229277","He is Risen","HeisRisen600_thumb.jpg",130,102,1);thumbnails[1651638]=new thumbnail(1651638,"149485","God of the Living","GodofLiving600_thumb.jpg",130,98,1);thumbnails[1651706]=new thumbnail(1651706,"149485","Coming with the Clouds","ComingwiththeClouds600_thumb.jpg",130,98,1);thumbnails[3121058]=new thumbnail(3121058,"149487","Every Hill and Valley","EveryHillandValley600_thumb.jpg",130,71,1);thumbnails[1651710]=new thumbnail(1651710,"149487","Light in Darkness","GiveLight600_thumb.jpg",130,96,1);thumbnails[4690083]=new thumbnail(4690083,"149488","Walk Whilst There is Light","WalkWhileThereIsLight600_thumb.jpg",130,80,1);thumbnails[1463898]=new thumbnail(1463898,"149488","Many Rooms","ManyRooms600_thumb.jpg",130,98,1);thumbnails[1463897]=new thumbnail(1463897,"149484","Armour of Light","LightArmour600_thumb.jpg",130,95,1);thumbnails[2189627]=new thumbnail(2189627,"149484","Hour Has Come","HourHasCome600_thumb.jpg",130,98,1);thumbnails[2273961]=new thumbnail(2273961,"149484","Eager Longing","EagerLonging600_thumb.jpg",130,67,1);thumbnails[2535882]=new thumbnail(2535882,"149490","Caught up into Paradise","CaughtupintoParadise600_thumb.jpg",130,113,1);thumbnails[2535898]=new thumbnail(2535898,"149490","Glass Darkly","GlassDarkly600_thumb.jpg",130,98,1);thumbnails[953790]=new thumbnail(953790,"149490","The Last Trump","TrumpetIncorruptible600_thumb.jpg",130,110,1);thumbnails[4073874]=new thumbnail(4073874,"244956","Holding Forth the Word of Life","HoldingForthTheWordOfLife60_thumb.jpg",130,98,1);thumbnails[718602]=new thumbnail(718602,"149491","Pure Swan","PureSwan600_thumb.jpg",130,98,1);thumbnails[5474012]=new thumbnail(5474012,"149486","Looking for and Hasting","LookingForAndHasting600_thumb.jpg",130,96,1);thumbnails[1129308]=new thumbnail(1129308,"149486","Meek & Quiet","MeekQuiet600_thumb.jpg",130,98,1);thumbnails[4073896]=new thumbnail(4073896,"244959","What we Shall Be","WhatWeShallBe600_thumb.jpg",130,89,1);thumbnails[5473925]=new thumbnail(5473925,"269875","New Jerusalem","NewJerusalem600_thumb.jpg",130,97,1);thumbnails[5226737]=new thumbnail(5226737,"269875","Gold Tried in the Fire","GoldTriedInTheFire600_thumb.jpg",130,98,1);thumbnails[4690092]=new thumbnail(4690092,"269875","Heaven Scroll","HeavenScroll600_thumb.jpg",130,98,1);thumbnails[4690104]=new thumbnail(4690104,"269880","Stablish Your Hearts","StablishYourHearts600_thumb.jpg",130,63,1);var galleries=new Object();galleries[49739]=new gallery(49739,"3105017,2273948,723302,652518,652513","Old Testament - 63 Photos","gallery",[]);galleries[49733]=new gallery(49733,"4690083,2535898,1651638,1463897,1129308,718602","New Testament - 22 Photos","gallery",[]);galleries[55683]=new gallery(55683,"723302","Genesis - 3 Photos","gallery",[3757673,2264273,723302]);galleries[68201]=new gallery(68201,"3757677,889142","II Samuel - 2 Photos","gallery",[3757677,889142]);galleries[151263]=new gallery(151263,"2313939","Chronicles - 1 Photo","gallery",[2313939]);galleries[49754]=new gallery(49754,"652518","Job - 11 Photos","gallery",[5553253,5027955,4160808,3989902,3757693,2535870,1866647,1590046,953760,652518,652519]);galleries[49750]=new gallery(49750,"652513","Psalms - 25 Photos","gallery",[5599715,5288725,5288745,5288748,5226736,5028000,4920785,4073889,2535940,2273953,2189635,1866649,1687135,1651640,1463900,1118711,889145,652508,652511,652513,652514,652515,652516,652517,652520]);galleries[55682]=new gallery(55682,"2273948","Proverbs - 3 Photos","gallery",[5288720,2273948,723303]);galleries[229273]=new gallery(229273,"3757666","Ecclesiastes - 1 Photo","gallery",[3757666]);galleries[241371]=new gallery(241371,"3989886","Song of Solomon - 1 Photo","gallery",[3989886]);galleries[49751]=new gallery(49751,"4073878,3757670,1687141,1590039,1118357,1118268,889147,652512,652510","Isaiah - 9 Photos","gallery",[4073878,3757670,1687141,1590039,1118268,1118357,889147,652510,652512]);galleries[229278]=new gallery(229278,"3757687","Jeremiah - 1 Photo","gallery",[3757687]);galleries[241374]=new gallery(241374,"5027921,3989913","Ezekiel - 2 Photos","gallery",[5027921,3989913]);galleries[193604]=new gallery(193604,"3160631","Hosea - 1 Photo","gallery",[3160631]);galleries[113675]=new gallery(113675,"1687178","Amos - 1 Photo","gallery",[1687178]);galleries[144930]=new gallery(144930,"3105017","Zechariah - 2 Photos","gallery",[4073883,3105017]);galleries[229277]=new gallery(229277,"3757682","Matthew - 1 Photo","gallery",[3757682]);galleries[149485]=new gallery(149485,"1651638","Mark - 2 Photos","gallery",[1651638,1651706]);galleries[149487]=new gallery(149487,"3121058,1651710","Luke - 2 Photos","gallery",[3121058,1651710]);galleries[149488]=new gallery(149488,"4690083","John - 2 Photos","gallery",[4690083,1463898]);galleries[149484]=new gallery(149484,"1463897","Romans - 3 Photos","gallery",[1463897,2189627,2273961]);galleries[149490]=new gallery(149490,"2535898","Corinthians - 3 Photos","gallery",[2535882,2535898,953790]);galleries[244956]=new gallery(244956,"4073874","Philippians - 1 Photo","gallery",[4073874]);galleries[149491]=new gallery(149491,"718602","Hebrews - 1 Photo","gallery",[718602]);galleries[149486]=new gallery(149486,"1129308","1 & 2 Peter - 2 Photos","gallery",[5474012,1129308]);galleries[244959]=new gallery(244959,"4073896","1 John - 1 Photo","gallery",[4073896]);galleries[269875]=new gallery(269875,"5473925,5226737,4690092","Revelation - 3 Photos","gallery",[5473925,5226737,4690092]);galleries[269880]=new gallery(269880,"4690104","James - 1 Photo","gallery",[4690104]);var imageSets=new Object();imageSets[1]="652517";imageSets[2]="4690083,3105017,2535898,2273948,1651638,1463897,1129308,723302,718602,652518,652513";imageSets[3]="5599715,5553253,5474012,5473925,5288748,5288745,5288725,5288720,5226737,5226736,5028000,5027955,5027921,4920785,4690104,4690092,4690083,4160808,4073896,4073889,4073883,4073878,4073874,3989913,3989902,3989886,3757693,3757687,3757682,3757677,3757673,3757670,3757666,3160631,3121058,3105017,2535940,2535898,2535882,2535870,2313939,2273961,2273953,2273948,2264273,2189635,2189627,1866649,1866647,1687178";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/stuartwall/images";break}switch(a){case 1:b="http://www1.clikpic.com/stuartwall/images";break}switch(a){case 2:b="http://admin.clikpic.com/stuartwall/images";break}switch(a){case 24:b="http://tpc15/clikpic/stuartwall/images";break}switch(a){case 4:b="http://www.clikchurch.com/stuartwall/images";break}switch(a){case 5:b="http://www2.clikpic.com/stuartwall/images";break}switch(a){case 22:b="http://tpc5/clikpic/stuartwall/images";break}switch(a){case 23:b="http://tpc10/clikpic/stuartwall/images";break}switch(a){case 25:b="http://tpc16/clikpic/stuartwall/images";break}switch(a){case 15:b="http://www3.clikpic.com/stuartwall/images";break}switch(a){case 18:b="http://www4.clikpic.com/stuartwall/images";break}switch(a){case 19:b="http://www5.clikpic.com/stuartwall/images";break}switch(a){case 31:b="http://www7.clikpic.com/stuartwall/images";break}switch(a){case 32:b="http://admin2.clikpic.com/stuartwall/images";break}switch(a){case 33:b="http://www8.clikpic.com/stuartwall/images";break}switch(a){case 34:b="http://www9.clikpic.com/stuartwall/images";break}switch(a){case 35:b="http://admin3.clikpic.com/stuartwall/images";break}switch(a){case 37:b="http://admin4.clikpic.com/stuartwall/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="Pictures & Scriptures: "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="stuartalive@googlemail.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="stuartalive@googlemail.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};