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[3293834]=new thumbnail(3293834,"","","jenlogo2_thumb.jpg",130,37,15);thumbnails[3298979]=new thumbnail(3298979,"","","Exhibition II_thumb.jpg",130,215,15);thumbnails[3298981]=new thumbnail(3298981,"","","Exhibition I_thumb.jpg",130,203,15);thumbnails[3319390]=new thumbnail(3319390,"","","40_thumb. Joseph.jpg",130,171,15);thumbnails[5973842]=new thumbnail(5973842,"336870","The Chalice","IMG_6823_thumb.JPG",130,173,15);thumbnails[5973911]=new thumbnail(5973911,"336871","The Menorah","IMG_6834_thumb.JPG",130,98,15);thumbnails[5973967]=new thumbnail(5973967,"336870","Freedom.","IMG_6830_thumb.JPG",130,98,15);thumbnails[5973973]=new thumbnail(5973973,"336871","Freedom","IMG_68301_thumb.JPG",130,98,15);thumbnails[5973982]=new thumbnail(5973982,"336871","Hosts of Heaven.","IMG_6828_thumb.JPG",130,173,15);thumbnails[5973987]=new thumbnail(5973987,"336870","Hosts of Heaven","IMG_68281_thumb.JPG",130,173,15);thumbnails[5973995]=new thumbnail(5973995,"336871","Celebration.","IMG_6825_thumb.JPG",130,173,15);thumbnails[5974072]=new thumbnail(5974072,"336870","Celebration","IMG_68251_thumb.JPG",130,173,15);thumbnails[5974102]=new thumbnail(5974102,"336870","The Communion Cup.","IMG_6832_thumb.JPG",130,98,15);thumbnails[5974106]=new thumbnail(5974106,"336871","The Communion Cup","IMG_68321_thumb.JPG",130,98,15);thumbnails[5974153]=new thumbnail(5974153,"336871","He is with us.","IMG_6838_thumb.JPG",130,149,15);thumbnails[5974158]=new thumbnail(5974158,"336871","Journey","IMG_6839_thumb.JPG",130,130,15);thumbnails[5974196]=new thumbnail(5974196,"336871","Strong Tower.","IMG_6845_thumb.JPG",130,149,15);thumbnails[5974199]=new thumbnail(5974199,"336870","Sheep of His Pasture.","IMG_6841_thumb.JPG",130,98,15);thumbnails[5974201]=new thumbnail(5974201,"336871","Sheep of His Pasture","IMG_68411_thumb.JPG",130,98,15);thumbnails[5974203]=new thumbnail(5974203,"336871","King of Kings","IMG_6843_thumb.JPG",130,98,15);thumbnails[5974204]=new thumbnail(5974204,"336871","The Chalice","IMG_68231_thumb.JPG",130,173,15);thumbnails[6102230]=new thumbnail(6102230,"","","Jenny_daisy_red2_thumb.jpg",130,73,15);thumbnails[4719096]=new thumbnail(4719096,"267026","Worshippers.","a083_thumb.jpg",130,167,15);thumbnails[4719119]=new thumbnail(4719119,"267026","The Jetty","a084_thumb.jpg",130,167,15);thumbnails[4719124]=new thumbnail(4719124,"267026","Going to worship.","a085_thumb.jpg",130,101,15);thumbnails[4719127]=new thumbnail(4719127,"267026","Spirit of the Lord hovers over the Deep.","a086_thumb.jpg",130,101,15);thumbnails[4719133]=new thumbnail(4719133,"267026","Waterfall.","a087_thumb.jpg",130,167,15);thumbnails[4719141]=new thumbnail(4719141,"267026","Creation.","a088_thumb.jpg",130,101,15);thumbnails[4719143]=new thumbnail(4719143,"267026","Creation. Water.","a089_thumb.jpg",130,101,15);thumbnails[4719334]=new thumbnail(4719334,"267026","The Music of Creation.","a090_thumb.jpg",130,101,15);thumbnails[4719394]=new thumbnail(4719394,"267026","The Kings' Crown.","a091_thumb.jpg",130,101,15);thumbnails[4946610]=new thumbnail(4946610,"267026","Mercy.","mercy_thumb.jpg",130,93,15);thumbnails[4946655]=new thumbnail(4946655,"267026","Out of the Fire.","out_of_the_fire_thumb.jpg",130,86,15);thumbnails[4946658]=new thumbnail(4946658,"267026","Grace.","Grace_thumb.jpg",130,182,15);thumbnails[3278494]=new thumbnail(3278494,"199644",'"Gloria"',"gloria_thumb.jpg",130,91,15);thumbnails[3278522]=new thumbnail(3278522,"199644","Archangel","archangel_thumb.jpg",130,179,15);thumbnails[3280736]=new thumbnail(3280736,"199644","Redeemer","3_thumb.redeemer.jpg",130,186,15);thumbnails[3280739]=new thumbnail(3280739,"199644","Visitation","4_thumb.visitation.jpg",130,172,15);thumbnails[3280762]=new thumbnail(3280762,"199644","World in His Hands","6_thumb.world_in_His_hands.jpg",130,88,15);thumbnails[3280766]=new thumbnail(3280766,"199644","Gabriel","7_thumb.Gabriel.jpg",130,171,15);thumbnails[3280778]=new thumbnail(3280778,"199644","God's Good Earth","8_thumb.Gods_good_earth.jpg",130,105,15);thumbnails[3280782]=new thumbnail(3280782,"199644","The Cross","11_thumb.The_Cross.jpg",130,158,15);thumbnails[3280787]=new thumbnail(3280787,"199644","Over the Waters","12_thumb.Over_the_waters.jpg",130,88,15);thumbnails[3280793]=new thumbnail(3280793,"199644","The Joy of falling!","13_thumb.joy_of_falling.jpg",130,127,15);thumbnails[3280810]=new thumbnail(3280810,"199644","Pilgrim Way","14_thumb.pilgrims.jpg",130,172,15);thumbnails[3280818]=new thumbnail(3280818,"199644","Worshipping","16_thumb.worshipping.jpg",130,94,15);thumbnails[3280825]=new thumbnail(3280825,"199644",'"Grace"',"17_thumb.Grace.jpg",130,182,15);thumbnails[3280832]=new thumbnail(3280832,"199644","Triumph","18_thumb.Triumph.jpg",130,188,15);thumbnails[3280838]=new thumbnail(3280838,"199644","Jehovah-Raphe,God is my Righteousness.","19_thumb.Jehovah.jpg",130,167,15);thumbnails[3280840]=new thumbnail(3280840,"199644",'"Mercy"',"21_thumb.mercy.jpg",130,93,15);thumbnails[3280843]=new thumbnail(3280843,"199644","Prayer Flags","23_thumb.prayer_flags.jpg",130,145,15);thumbnails[3280844]=new thumbnail(3280844,"199644","Out of the fire.","22_thumb.out_of_the_fire.jpg",130,86,15);thumbnails[3319614]=new thumbnail(3319614,"199645","Reflections.","100_thumb. Reflections.jpg",130,154,15);thumbnails[3319618]=new thumbnail(3319618,"199645","Memories.","101_thumb. Memories.jpg",130,88,15);thumbnails[3319621]=new thumbnail(3319621,"199645","The Beach.","102_thumb. The Beach.jpg",130,93,15);thumbnails[3319625]=new thumbnail(3319625,"199645","Early Morning","103_thumb. Early Morning.jpg",130,132,15);thumbnails[3319627]=new thumbnail(3319627,"199645","Umbrellas.","104_thumb. Umbrellas.jpg",130,90,15);thumbnails[3319660]=new thumbnail(3319660,"199645","In the Sun.","105_thumb. In the Sun.jpg",130,99,15);thumbnails[3319664]=new thumbnail(3319664,"199645","Sienna","106_thumb. Sienna.jpg",130,171,15);thumbnails[3319670]=new thumbnail(3319670,"199645","Sienna Sun.","107_thumb. Sienna Sun.jpg",130,100,15);thumbnails[3319924]=new thumbnail(3319924,"199645","Safe Harbour","108_thumb. Safe Harbour.jpg",130,90,15);thumbnails[3319925]=new thumbnail(3319925,"199645","Mooring.","109_thumb. Mooring.jpg",130,88,15);thumbnails[3319927]=new thumbnail(3319927,"199645","Resting","110_thumb. Resting.jpg",130,88,15);thumbnails[3319930]=new thumbnail(3319930,"199645","Jessie.","111_thumb. Jessie.jpg",130,164,15);thumbnails[3319933]=new thumbnail(3319933,"199645","Claudie.","112_thumb. Claudie.jpg",130,145,15);thumbnails[3319936]=new thumbnail(3319936,"199645","Friends.","115_thumb. Friends.jpg",130,101,15);thumbnails[3319945]=new thumbnail(3319945,"199645","Lilies.","116_thumb. Lillies.jpg",130,130,15);thumbnails[3319949]=new thumbnail(3319949,"199645","Lilies 2.","117_thumb. Lillies II.jpg",130,90,15);thumbnails[3319955]=new thumbnail(3319955,"199645","Spring Tulips.","119_thumb. Spring Tulips.jpg",130,101,15);thumbnails[3319959]=new thumbnail(3319959,"199645","Masts","120_thumb. Masts.jpg",130,102,15);thumbnails[3319539]=new thumbnail(3319539,"201595","Joseph","40_thumb. Joseph1.jpg",130,171,15);thumbnails[3319548]=new thumbnail(3319548,"201595","Joseph's Dream","41_thumb. Joseph's Dream.jpg",130,174,15);thumbnails[3319554]=new thumbnail(3319554,"201595","Josephs coat.","42_thumb. Joseph's Coat.jpg",130,167,15);thumbnails[3319564]=new thumbnail(3319564,"201595","The Prodigal returns.","43_thumb. Prodigal Returns.jpg",130,178,15);thumbnails[3319568]=new thumbnail(3319568,"201595","Dawn.","44_thumb. Dawn.jpg",130,91,15);thumbnails[3319570]=new thumbnail(3319570,"201595","Going Home.","45_thumb. Going Home.jpg",130,89,15);thumbnails[3319576]=new thumbnail(3319576,"201595","Winter Walk","45_thumb. Winter Walk.jpg",130,96,15);thumbnails[3319578]=new thumbnail(3319578,"201595","Rainy Day.","47_thumb. Rainy Day.jpg",130,93,15);thumbnails[3319587]=new thumbnail(3319587,"201595","Tanglewood","48_thumb. Tanglewood.jpg",130,91,15);thumbnails[3319595]=new thumbnail(3319595,"201595","Bethlehem.","49_thumb. Bethlehem.jpg",130,93,15);thumbnails[3319600]=new thumbnail(3319600,"201595","St Peters, Rome.","50_thumb. St Peters.jpg",130,91,15);thumbnails[3319603]=new thumbnail(3319603,"201595","Autumn Leaves.","51_thumb. Autumn Leaves.jpg",130,131,15);thumbnails[3319609]=new thumbnail(3319609,"201595","Snowy Day.","52_thumb. Snowy Day.jpg",130,128,15);thumbnails[3920668]=new thumbnail(3920668,"201595","Coming Home","painting_252_thumb.jpg",130,186,15);thumbnails[3920673]=new thumbnail(3920673,"201595","Galilee","painting_253_thumb.jpg",130,97,15);thumbnails[3920757]=new thumbnail(3920757,"201595","Pinks","painting_2561_thumb.jpg",130,95,15);thumbnails[3920762]=new thumbnail(3920762,"201595","Blue splash","painting_257_thumb.jpg",130,96,15);thumbnails[3920780]=new thumbnail(3920780,"201595","LIlac haze","painting_261_thumb.jpg",130,105,15);thumbnails[3920791]=new thumbnail(3920791,"201595","The temple","painting_262_thumb.jpg",130,88,15);thumbnails[3923224]=new thumbnail(3923224,"201595","oasis","painting_263_thumb.jpg",130,102,15);thumbnails[3923233]=new thumbnail(3923233,"201595","The return.","painting_266_thumb.jpg",130,101,15);thumbnails[3923244]=new thumbnail(3923244,"201595","Venice","painting_268_thumb.jpg",130,102,15);thumbnails[3923263]=new thumbnail(3923263,"201595","Ducks","painting_274_thumb.jpg",130,90,15);thumbnails[3923272]=new thumbnail(3923272,"201595","Flower Market","painting_2721_thumb.jpg",130,86,15);var galleries=new Object();galleries[336870]=new gallery(336870,"5974199,5974102,5974072,5973987,5973967,5973842"," Gallery 1 .New paintings for sale","gallery",[5973842,5973967,5973987,5974072,5974102,5974199]);galleries[336871]=new gallery(336871,"5974204,5974203,5974201,5974196,5974158,5974153,5974106,5973995,5973982,5973973","Gallery 2. New cards for sale","gallery",[5973911,5973973,5973982,5973995,5974106,5974153,5974158,5974196,5974201,5974203,5974204]);galleries[267026]=new gallery(267026,"4946658,4946655,4946610,4719394,4719334,4719143,4719141,4719133,4719127,4719124","Gallery 3.Original Paintings for sale.","gallery",[4719096,4719119,4719124,4719127,4719133,4719141,4719143,4719334,4719394,4946610,4946655,4946658]);galleries[199644]=new gallery(199644,"3280844,3280843,3280840,3280838,3280832,3280825,3280818,3280810,3280793,3280787"," Gallery 4. Greetings cards on spiritual themes.","gallery",[3278494,3278522,3280736,3280739,3280762,3280766,3280778,3280782,3280787,3280793,3280810,3280818,3280825,3280832,3280838,3280840,3280843,3280844]);galleries[199645]=new gallery(199645,"3319959,3319955,3319945,3319936,3319933,3319930,3319927,3319925,3319924,3319670,3319664,3319660,3319627,3319625,3319621,3319618,3319614","Gallery 5.Greetings cards for every day use..","gallery",[3319614,3319618,3319621,3319625,3319627,3319660,3319664,3319670,3319924,3319925,3319927,3319930,3319933,3319936,3319945,3319949,3319955,3319959]);galleries[201595]=new gallery(201595,"3923272,3923263,3923244,3923233,3920762,3920673,3920668,3319609,3319603,3319600,3319595,3319587,3319578,3319576,3319570,3319568,3319564,3319554,3319548,3319539","Gallery 6..Greetings cards. Eddie Askew.","gallery",[3319539,3319548,3319554,3319564,3319568,3319570,3319576,3319578,3319587,3319595,3319600,3319603,3319609,3920668,3920673,3920757,3920762,3920780,3920791,3923224,3923233,3923244,3923263,3923272]);var imageSets=new Object();imageSets[1]="6102230,3923272,3923263,3923244,3923233,3923224,3920780,3920762,3920757,3920673,3920668,3280843,3280832,3280825,3280818,3280793,3280778,3278522,3278494";imageSets[2]="3923272,3923263,3923244,3923233,3920762,3920673,3920668,3319959,3319955,3319945,3319936,3319933,3319930,3319927,3319925,3319924,3319670,3319664,3319660,3319627,3319625,3319621,3319618,3319614,3319609,3319603,3319600,3319595,3319587,3319578,3319576,3319570,3319568,3319564,3319554,3319548,3319539";imageSets[3]="6102230,5974204,5974203,5974201,5974199,5974196,5974158,5974153,5974106,5974102,5974072,5973995,5973987,5973982,5973973,5973967,5973911,5973842,4946658,4946655,4946610,4719394,4719334,4719143,4719141,4719133,4719127,4719124,4719119,4719096,3923272,3923263,3923244,3923233,3923224,3920791,3920780,3920762,3920757,3920673,3920668,3319959,3319955,3319949,3319945,3319936,3319933,3319930,3319927,3319925";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/jennyaskew/images";break}switch(a){case 1:b="http://www1.clikpic.com/jennyaskew/images";break}switch(a){case 2:b="http://admin.clikpic.com/jennyaskew/images";break}switch(a){case 24:b="http://tpc15/clikpic/jennyaskew/images";break}switch(a){case 4:b="http://www.clikchurch.com/jennyaskew/images";break}switch(a){case 5:b="http://www2.clikpic.com/jennyaskew/images";break}switch(a){case 22:b="http://tpc5/clikpic/jennyaskew/images";break}switch(a){case 23:b="http://tpc10/clikpic/jennyaskew/images";break}switch(a){case 25:b="http://tpc16/clikpic/jennyaskew/images";break}switch(a){case 15:b="http://www3.clikpic.com/jennyaskew/images";break}switch(a){case 18:b="http://www4.clikpic.com/jennyaskew/images";break}switch(a){case 19:b="http://www5.clikpic.com/jennyaskew/images";break}switch(a){case 31:b="http://www7.clikpic.com/jennyaskew/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jennyaskew/images";break}switch(a){case 33:b="http://www8.clikpic.com/jennyaskew/images";break}switch(a){case 34:b="http://www9.clikpic.com/jennyaskew/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jennyaskew/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jennyaskew/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="Creative Grace: "+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>Artist: </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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="JENNYASKEW">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to Cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};