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[5565156]=new thumbnail(5565156,"26918","Three Graces2","c_t__Three_Graces2-1100_thumb.jpg",130,95,18);thumbnails[5565159]=new thumbnail(5565159,"26918","Sleeping Beauty","c_t__Sleeping_Beauty_thumb.jpg",130,96,18);thumbnails[5512726]=new thumbnail(5512726,"26918","Curves10","c_t__Curves10-1000_thumb.jpg",130,98,18);thumbnails[3968789]=new thumbnail(3968789,"26918","Curves9","c_t_Curves9_-0-1100_thumb.jpg",130,94,18);thumbnails[4075107]=new thumbnail(4075107,"26918","Black Stocking2","c_t__Black_Stocking2-1000_thumb.jpg",130,105,18);thumbnails[5427045]=new thumbnail(5427045,"26918","Coiled","c_t_coiled_1100_thumb.jpg",130,180,18);thumbnails[4053966]=new thumbnail(4053966,"26918","Looking Back","c_t__Looking_Back-1000_thumb.jpg",130,183,18);thumbnails[5427026]=new thumbnail(5427026,"26918","Back Torso","c_t_back_torso_1100_thumb.jpg",130,183,18);thumbnails[4025624]=new thumbnail(4025624,"26918","Asleep","c_t_Asleep1000_thumb.jpg",130,91,18);thumbnails[5427013]=new thumbnail(5427013,"26918","White Towel","c_t_white_towel-1100_thumb.jpg",130,172,18);thumbnails[4054052]=new thumbnail(4054052,"26918","In the Mood","c_t__In_the_Mood-1000_thumb.jpg",130,188,18);thumbnails[5427006]=new thumbnail(5427006,"26918","Coquettish","c_t__coquettish_1100_thumb.jpg",130,180,18);thumbnails[3974526]=new thumbnail(3974526,"26918","Joy","c_t_Turnedjpg-10001_thumb.jpg",130,166,18);thumbnails[3974519]=new thumbnail(3974519,"26918","Arched Body","c_t__Kneeling2jpg-1100_thumb.jpg",130,189,18);thumbnails[3974513]=new thumbnail(3974513,"26918","Desire","c_t__Desire-1000_thumb.jpg",130,170,18);thumbnails[3968818]=new thumbnail(3968818,"26918","Spanish Mood5","c_t_spanish_mood5-1000_thumb.jpg",130,164,18);thumbnails[3926051]=new thumbnail(3926051,"26918","Lying Down2","c_t_lying_down2-1_thumb.jpg",130,64,18);thumbnails[3904487]=new thumbnail(3904487,"26918","Peaceful","c_t_peacefuljpg-1100pix_thumb.jpg",130,93,18);thumbnails[3657035]=new thumbnail(3657035,"26918","Pear Shape","c_t_pear_shape_1000_thumb.jpg",130,239,18);thumbnails[3657028]=new thumbnail(3657028,"26918","Apple Shape","c_t_apple-shape_100012_thumb.jpg",130,245,18);thumbnails[2342443]=new thumbnail(2342443,"26918","Resting Hand","c_t_resting_hand_thumb.jpg",130,180,18);thumbnails[2342437]=new thumbnail(2342437,"26918","Loneliness","c_t_loneliness_thumb.jpg",130,186,18);thumbnails[2277122]=new thumbnail(2277122,"26918","Twisted Waist","c_t_twisted_waist_thumb.jpg",130,189,18);thumbnails[2200311]=new thumbnail(2200311,"26918","Kneeling2","c_t_kneeling2_thumb.jpg",130,187,18);thumbnails[2145680]=new thumbnail(2145680,"26918","Back4","c_t_back4_thumb.jpg",130,190,18);thumbnails[773784]=new thumbnail(773784,"26918","Grace","c t grace_thumb.jpg",130,190,18);thumbnails[4424737]=new thumbnail(4424737,"26918","Black Gloves","c_t_Black_Gloves1000_thumb.jpg",130,187,18);thumbnails[4424740]=new thumbnail(4424740,"26918","Melancholy","c_t_Melancholy1000_thumb.jpg",130,182,18);thumbnails[3034346]=new thumbnail(3034346,"26918","At The Table","c_t_at the table_thumb.jpg",130,183,18);thumbnails[3582205]=new thumbnail(3582205,"26918","Twisted1","c_t_Twisted1-1000_thumb.jpg",130,195,18);thumbnails[4357633]=new thumbnail(4357633,"26918","Wondering","c_t__wondering-10001_thumb.jpg",130,182,18);thumbnails[2241302]=new thumbnail(2241302,"26918","Expressive Torso","c_t_expressive_torso_thumb.jpg",130,186,18);thumbnails[3968798]=new thumbnail(3968798,"26918","Propped Back","c_t__Propped_Back_thumb.jpg",130,177,18);thumbnails[4357621]=new thumbnail(4357621,"26918","Cool Breeze","c_t__cool_breeze_thumb.jpg",130,181,18);thumbnails[4126135]=new thumbnail(4126135,"26918","Chiaroscuro-Bust","c_t__Chiaroscuro-Bust-1000_thumb.jpg",130,204,18);thumbnails[5241225]=new thumbnail(5241225,"26918","African Queen","c_t_African_Queen1100_thumb.jpg",130,187,18);thumbnails[4119447]=new thumbnail(4119447,"26918","Chiaroscuro-Torso","c_t_Chiaroscuro-Torso-1000_thumb.jpg",130,90,18);thumbnails[4054033]=new thumbnail(4054033,"26918","Gitana","c_t__Gitana-1000_thumb.jpg",130,187,18);thumbnails[4119440]=new thumbnail(4119440,"26918","Chiaroscuro-Blue Dress","c_t__Chiaroscuro-Blue_Dress-1000_thumb.jpg",130,187,18);thumbnails[4436365]=new thumbnail(4436365,"26918","Side Light","c_t_toroso-light_thumb.jpg",130,157,18);thumbnails[3654573]=new thumbnail(3654573,"26918","Standing-up","c_t_Standing-up1000_thumb.jpg",130,156,18);thumbnails[3654582]=new thumbnail(3654582,"26918","Frontal","c_t_frontal_thumb.jpg",130,156,18);thumbnails[1755572]=new thumbnail(1755572,"26918","Vintage Years-Pondering","c t_vintage years_pondering_thumb.8.jpg",130,166,18);thumbnails[1755567]=new thumbnail(1755567,"26918","Vintage Years-Black Stockings","c t_vintage years -black stockings8_thumb.jpg",130,165,18);thumbnails[1790293]=new thumbnail(1790293,"26918","Dreaming","dreamming 001_thumb.jpg=600.jpg",130,103,18);thumbnails[1793268]=new thumbnail(1793268,"26918","Into The Light","c_t_into the light001_thumb.jpg",130,102,18);thumbnails[315425]=new thumbnail(315425,"26918","Relaxation","c_t_Relaxation_thumb.jpg",130,85,18);thumbnails[1001512]=new thumbnail(1001512,"26918","Steps","c_t_Steps_thumb.jpg",130,245,18);thumbnails[1001521]=new thumbnail(1001521,"26918","Blue Shade","c-t-blue shade_thumb.jpg",130,210,18);thumbnails[323025]=new thumbnail(323025,"26918","Twisted Torso","c_t_twisted torso_thumb.jpg",130,200,18);thumbnails[315496]=new thumbnail(315496,"26918","Hot Night","c-t_hot night_thumb.jpg",130,203,18);thumbnails[713460]=new thumbnail(713460,"26918","Contemplation","c_t_Contemplation_thumb.jpg",130,84,18);thumbnails[636414]=new thumbnail(636414,"26918","Red Hair","c_t_red hair1_thumb.jpg",130,189,18);thumbnails[315428]=new thumbnail(315428,"26918","Blue Hair","c-t_Blue Hair_thumb.jpg",130,205,18);thumbnails[409577]=new thumbnail(409577,"26918","The Orange Wall","c_t_the orange wall_thumb.jpg",130,201,18);thumbnails[2897465]=new thumbnail(2897465,"26918","Blue & Gold","c_t_blue and gold_thumb.jpg",129,187,18);thumbnails[692912]=new thumbnail(692912,"26918","Chair","c_t_chair_thumb.jpg",130,188,18);thumbnails[315367]=new thumbnail(315367,"26918","Blue Light","c_thumb.t_blue_light.jpg",130,191,18);thumbnails[315429]=new thumbnail(315429,"26918","Red Light","ct-red_light_thumb.jpg",130,191,18);thumbnails[315421]=new thumbnail(315421,"26918","Scarf2","c_thumb.t_scarf2.jpg",130,195,18);thumbnails[315424]=new thumbnail(315424,"26918","Spanish Mood","c_thumb.t_spanish_mood1.jpg",130,185,18);thumbnails[323021]=new thumbnail(323021,"26918","Sleeping","c t sleeping 001_thumb.jpg",130,186,18);thumbnails[692909]=new thumbnail(692909,"26918","Hairdressing","c t hairdressing_thumb.jpg",130,190,18);thumbnails[2277092]=new thumbnail(2277092,"26918","Red Shade","c_t_red shade_thumb.jpg",130,192,18);thumbnails[2317916]=new thumbnail(2317916,"26918","Red Spirit","c_t_red_spirit_thumb.jpg",130,192,18);thumbnails[2409830]=new thumbnail(2409830,"26918","Hot Front","c_t_hot front_thumb.jpg",130,187,18);thumbnails[3582355]=new thumbnail(3582355,"26918","V Arm","ct_V_arm1000_thumb.jpg",130,191,18);thumbnails[315366]=new thumbnail(315366,"26918","Red Torso","c_thumb.t_arms up.jpg",130,190,18);thumbnails[3138771]=new thumbnail(3138771,"26918","Passionat & Mysterious2","c_t_ Passiona & Mysterious2- 029_thumb.jpg",130,319,18);thumbnails[3138774]=new thumbnail(3138774,"26918","Passionat & Mysterious3","c_t_Passionat and Mysterious3 006_thumb.jpg8.jpg",130,315,18);thumbnails[323029]=new thumbnail(323029,"26918","Red Back","c_thumb.t._red back.jpg",130,197,18);thumbnails[2187656]=new thumbnail(2187656,"26918","Propped Front","ct_propped front_thumb.jpg",130,197,18);thumbnails[2187671]=new thumbnail(2187671,"26918","Whisper","c_thumb.t-whisper.jpg",130,182,18);thumbnails[2276638]=new thumbnail(2276638,"26918","Sitting Side","c t sitting side_thumb.jpg",130,191,18);thumbnails[2342430]=new thumbnail(2342430,"26918","Fascination","c_t_fascination_thumb.jpg",130,185,18);thumbnails[315413]=new thumbnail(315413,"26918","In The Mirror","c_thumb.t_in_the_mirror.jpg",130,190,18);thumbnails[2187687]=new thumbnail(2187687,"26918","Warm Light","ct_warm_light_thumb.jpg",130,187,18);thumbnails[2897266]=new thumbnail(2897266,"26918","Ecstasy","c t ecstasy_thumb.jpg",130,186,18);thumbnails[5597676]=new thumbnail(5597676,"215715","Lovers-Golden Evening","c_t_Lovers__Golden_Evening-1000_thumb.jpg",130,179,18);thumbnails[5378250]=new thumbnail(5378250,"215715","Lovers -  Fervour","c_t__Lovers_-_Fervour1100_thumb.jpg",130,173,18);thumbnails[5378251]=new thumbnail(5378251,"215715","Lovers - Fruit of Love","c_t_Lovers_-_Fruit_of_Love1100_thumb.jpg",130,175,18);thumbnails[5241236]=new thumbnail(5241236,"215715","Lovers - Passion","c_t_Lovers_Passion1000_thumb.jpg",130,187,18);thumbnails[5241242]=new thumbnail(5241242,"215715","Lovers - Waves","c_t_Lovers_Waves1000_thumb.jpg",130,186,18);thumbnails[5148655]=new thumbnail(5148655,"215715","Lovers - In Your Arms","c_t_Lovers_-_In_Your_Arms_thumb.jpg",130,179,18);thumbnails[5241228]=new thumbnail(5241228,"215715","Lovers - Longing","c_t_Lovers_Longing1000_thumb.jpg",130,188,18);thumbnails[3581487]=new thumbnail(3581487,"215715","Lovers-Kiss","c_t_Lovers-Kiss-1000_thumb.jpg",130,101,18);thumbnails[5124835]=new thumbnail(5124835,"215715","Lovers - Loving You","c_t__Lovers-_Loving_You1100_thumb.jpg",130,95,18);thumbnails[3525317]=new thumbnail(3525317,"215715","Lovers-Seduction","c_t_Lovers -seduction001_thumb.jpg",130,167,18);thumbnails[2897813]=new thumbnail(2897813,"179635","Narcissus- Adoration","c_t_Narcissus- Adoration -800_thumb.jpg",130,188,18);thumbnails[2897816]=new thumbnail(2897816,"179635","Narcissus- Contemplation","c_t_Narcissus-Contemplation -800_thumb.jpg",130,196,18);thumbnails[2897822]=new thumbnail(2897822,"179635","Narcissus-Desperation","c_t_Narcissus-Desperation -800_thumb.jpg",130,181,18);thumbnails[2897829]=new thumbnail(2897829,"179635","Narcissus-Drowning","c_t_Narcissus-Drowning -800_thumb.jpg",129,192,18);thumbnails[2146050]=new thumbnail(2146050,"27012","Little Red Riding Hood","c_thumb.t_Little Red Riding Hood.jpg",130,172,18);thumbnails[3318874]=new thumbnail(3318874,"27012","A Kind Man","c_t_kind man_thumb.jpg",130,106,18);thumbnails[3318946]=new thumbnail(3318946,"27012","H&R","H&R_thumb.jpg",130,184,18);thumbnails[5600769]=new thumbnail(5600769,"58003","Last Supper canvas drawing & the artist","Last_Supper-canvas_063_thumb.jpg",130,98,18);thumbnails[3156899]=new thumbnail(3156899,"58003","St Anne with Virgin and Child","c_t_St Anne with Virgin and Child 015_thumb.jpg-1.jpg",130,187,18);thumbnails[3156886]=new thumbnail(3156886,"58003","The Burial","c_t_burial 001_thumb.jpg-1.jpg",130,92,18);var galleries=new Object();galleries[26918]=new gallery(26918,"5565159,5565156,5512726,5427045,5427026,5427013,5427006,5241225,4436365,4424740,4424737,4357633,4357621,4126135,4119447,4119440,4075107,4054052,4054033,4053966,4025624,3974526,3974519,3974513,3968818,3968798,3968789,3926051,3904487,3657035,3657028,3654582,3654573,3582355,3582205,3138774,3138771,3034346,2897465,2897266,2409830,2342443,2342437,2342430,2317916,2277122,2277092,2276638,2241302,2200311,2187687,2187671,2187656,2145680,1793268,1790293,1755572,1755567,1001521,1001512,773784,713460,692912,692909,636414,409577,323029,323025,323021,315496,315429,315428,315425,315424,315421,315413,315367,315366"," Nudes ","gallery",[5565156,5565159,5512726,3968789,4075107,5427045,4053966,5427026,4025624,5427013,4054052,5427006,3974526,3974519,3974513,3968818,3926051,3904487,3657035,3657028,2342443,2342437,2277122,2200311,2145680,773784,4424737,4424740,3034346,3582205,4357633,2241302,3968798,4357621,4126135,5241225,4119447,4054033,4119440,4436365,3654573,3654582,1755572,1755567,1790293,1793268,315425,1001512,1001521,323025,315496,713460,636414,315428,409577,2897465,692912,315367,315429,315421,315424,323021,692909,2277092,2317916,2409830,3582355,315366,3138771,3138774,323029,2187656,2187671,2276638,2342430,315413,2187687,2897266]);galleries[215715]=new gallery(215715,"5597676,5378251,5378250,5241242,5241236,5241228,5148655,5124835,3581487,3525317","Lovers","gallery",[5597676,5378250,5378251,5241236,5241242,5148655,5241228,3581487,5124835,3525317]);galleries[179635]=new gallery(179635,"2897829,2897822,2897816,2897813","Narcissus","gallery",[2897813,2897816,2897822,2897829]);galleries[27012]=new gallery(27012,"3318946,3318874,2146050","Portraits","gallery",[2146050,3318874,3318946]);galleries[58003]=new gallery(58003,"5600769,3156899,3156886","Passion of Christ","gallery",[5600769,3156899,3156886]);var imageSets=new Object();imageSets[1]="5600769,5597676,5565159,5565156,5512726,5427045,5427026,5427013,5427006,5378251,5378250,5241242,5241236,5241228,5241225,5148655,5124835,4436365,4424740,4424737,4357633,4357621,4126135,4119447,4119440,4075107,4054052,4054033,4053966,4025624,3974526,3974519,3974513,3968818,3968798,3968789,3926051,3904487,3657035,3657028,3654582,3654573,3582355,3582205,3581487,3525317,3318874,3156899,3156886,3138774,3138771,3034346,2897829,2897822,2897816,2897813,2897465,2897266,2409830,2342443,2342437,2342430,2317916,2277122,2277092,2276638,2241302,2200311,2187687,2187671,2187656,2146050,2145680,1793268,1790293,1755572,1755567,1001521,1001512,773784,713460,692912,692909,636414,409577,323029,323025,323021,315496,315429,315428,315425,315424,315421,315413,315367,315366";imageSets[2]="5600769,5597676,5565159,5565156,5512726,5427045,5427026,5427013,5427006,5378251,5378250,5241242,5241236,5241228,5241225,5148655,5124835,4436365,4424740,4424737,4357633,4357621,4126135,4119447,4119440,4075107,4054052,4054033,4053966,4025624,3974526,3974519,3974513,3968818,3968798,3968789,3926051,3904487,3657035,3657028,3654582,3654573,3582355,3582205,3581487,3525317,3318946,3318874,3156899,3156886,3138774,3138771,3034346,2897829,2897822,2897816,2897813,2897465,2897266,2409830,2342443,2342437,2342430,2317916,2277122,2277092,2276638,2241302,2200311,2187687,2187671,2187656,2146050,2145680,1793268,1790293,1755572,1755567,1001521,1001512,773784,713460,692912,692909,636414,409577,323029,323025,323021,315496,315429,315428,315425,315424,315421,315413,315367,315366";imageSets[3]="5600769,5597676,5565159,5565156,5512726,5427045,5427026,5427013,5427006,5378251,5378250,5241242,5241236,5241228,5241225,5148655,5124835,4436365,4424740,4424737,4357633,4357621,4119447,3654573";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/carmentyrrell/images";break}switch(a){case 1:b="http://www1.clikpic.com/carmentyrrell/images";break}switch(a){case 2:b="http://admin.clikpic.com/carmentyrrell/images";break}switch(a){case 24:b="http://tpc15/clikpic/carmentyrrell/images";break}switch(a){case 4:b="http://www.clikchurch.com/carmentyrrell/images";break}switch(a){case 5:b="http://www2.clikpic.com/carmentyrrell/images";break}switch(a){case 22:b="http://tpc5/clikpic/carmentyrrell/images";break}switch(a){case 23:b="http://tpc10/clikpic/carmentyrrell/images";break}switch(a){case 25:b="http://tpc16/clikpic/carmentyrrell/images";break}switch(a){case 15:b="http://www3.clikpic.com/carmentyrrell/images";break}switch(a){case 18:b="http://www4.clikpic.com/carmentyrrell/images";break}switch(a){case 19:b="http://www5.clikpic.com/carmentyrrell/images";break}switch(a){case 31:b="http://www7.clikpic.com/carmentyrrell/images";break}switch(a){case 32:b="http://admin2.clikpic.com/carmentyrrell/images";break}switch(a){case 33:b="http://www8.clikpic.com/carmentyrrell/images";break}switch(a){case 34:b="http://www9.clikpic.com/carmentyrrell/images";break}switch(a){case 35:b="http://admin3.clikpic.com/carmentyrrell/images";break}switch(a){case 37:b="http://admin4.clikpic.com/carmentyrrell/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="Carmen Tyrrell Figurative Artist: "+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({centre:true});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="carmentyrrell@yahoo.co.uk">';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="carmentyrrell@yahoo.co.uk">';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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};