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[4736037]=new thumbnail(4736037,"270125","Gossip","Gossip1_thumb.jpg",130,72,5);thumbnails[4736055]=new thumbnail(4736055,"270125","Starling Swarm","Robbins-C-4259-A3_thumb.jpg",130,60,5);thumbnails[4736086]=new thumbnail(4736086,"270125","Cheesewring ","Cheese_Wring_copy1_thumb.jpg",130,80,5);thumbnails[4767436]=new thumbnail(4767436,"270125","The Boys","TheBoys_thumb.jpg",130,167,5);thumbnails[4767457]=new thumbnail(4767457,"270125","Chair and Door","ChairDoor_thumb.jpg",130,181,5);thumbnails[4991793]=new thumbnail(4991793,"283409"," Mémorial de Montormel-Coudehard","M02_Mémorial_de_Montormel-Coudehard_thumb.jpg",130,101,5);thumbnails[4991797]=new thumbnail(4991797,"283409","Steaming 2","M04_Steaming_2_thumb.jpg",130,98,5);thumbnails[4991851]=new thumbnail(4991851,"283409","Raffles","M18_2_Raffles_thumb.jpg",130,98,5);thumbnails[4991856]=new thumbnail(4991856,"283409","Mist over Lewdown","M19_2_Mist_over_Lewdown_thumb.jpg",130,98,5);thumbnails[4991858]=new thumbnail(4991858,"283409","Church at Stanley","M22Church_at_Stanley_thumb.jpg",130,87,5);thumbnails[4991903]=new thumbnail(4991903,"283409","MEMORIAL","M23-MEMORIAL_thumb.jpg",130,98,5);thumbnails[4991950]=new thumbnail(4991950,"283409","Old Door Handle","M24_Old_Door_Handle_thumb.jpg",130,98,5);thumbnails[4991956]=new thumbnail(4991956,"283409"," Built to Last","M25_Built_to_Last_thumb.jpg",130,87,5);thumbnails[4991959]=new thumbnail(4991959,"283409","nowhere to hide","M27_monochrome__nowhere_to_hide_thumb.jpg",130,173,5);thumbnails[4991966]=new thumbnail(4991966,"283409","Break-in-The-Storm-Borrowdale","M28-Break-in-The-Storm-Borrowdale_thumb.jpg",130,98,5);thumbnails[4991981]=new thumbnail(4991981,"283409","Gollitha-Falls","M33-Gollitha-Falls_thumb.jpg",130,96,5);thumbnails[4991985]=new thumbnail(4991985,"283409","China Sea","M38China_Sea_thumb.jpg",130,98,5);thumbnails[5228517]=new thumbnail(5228517,"294831","One man and his dog","M06__One_man_and_his_dog_thumb.jpg",130,89,5);thumbnails[5228519]=new thumbnail(5228519,"294831","golf-course-2009","M07-golf-course-2009_thumb.jpg",130,98,5);thumbnails[5228545]=new thumbnail(5228545,"294831","Playing in the Sand Dunes","M10Playing_in_the_Sand_Dunes_7562AA54-1D09-001F-9972B2F2FBD356E8_thumb.jpg",130,98,5);thumbnails[5228548]=new thumbnail(5228548,"294831","The Kill","M18_The_Kill_thumb.jpg",130,98,5);thumbnails[5228551]=new thumbnail(5228551,"294831"," Red Squirel","M19_Red_Squirel_thumb.jpg",130,98,5);thumbnails[5228578]=new thumbnail(5228578,"294831","Abstract in lichen","M20_-_Abstract_in_lichen_thumb.jpg",130,87,5);thumbnails[5228581]=new thumbnail(5228581,"294831","Harley Chrome","M25_Harley_Chrome_thumb.jpg",130,87,5);thumbnails[5228616]=new thumbnail(5228616,"294831","The-Fisherman","M29-The-Fisherman_thumb.jpg",130,98,5);thumbnails[5228667]=new thumbnail(5228667,"294831","Spectacled Guillemot","M33__Spectacled_Guillemot_thumb.jpg",130,89,5);thumbnails[5228676]=new thumbnail(5228676,"294831","Shaking those tail feathers","M40-Shaking_those_tail_feathers_thumb.jpg",130,65,5);thumbnails[5228678]=new thumbnail(5228678,"294831","Peony","M43_Peony_756D2262-1D09-001F-991369E6E8545E39_thumb.jpg",130,98,5);thumbnails[5233914]=new thumbnail(5233914,"203268","Heron taking off from the reed beds","M10Heron_taking_off_from_the_reed_bedsW_thumb.jpg",130,98,5);thumbnails[5233916]=new thumbnail(5233916,"203268","Stinkhorn","M18_Stinkhorn_thumb.jpg",130,189,5);thumbnails[5233920]=new thumbnail(5233920,"203268","","M19_Red_Squirel_7AB894C4-1D09-001F-999904B12E019296_thumb.jpg",130,98,5);thumbnails[5233924]=new thumbnail(5233924,"203268","Mynah-in-Grevillia","M22-Mynah-in-Grevillia_thumb.jpg",130,87,5);thumbnails[5233927]=new thumbnail(5233927,"203268","Black-winged-Stilts-in","M23-Black-winged-Stilts-in-_thumb.jpg",130,98,5);thumbnails[5233928]=new thumbnail(5233928,"203268"," fungi 3","M27_-_fungi_3_thumb.jpg",130,98,5);thumbnails[5233929]=new thumbnail(5233929,"203268","Grey Wagtail","M32_Grey_Wagtail_thumb.jpg",130,87,5);thumbnails[5233932]=new thumbnail(5233932,"203268","Shag feeding young","M33_Shag_feeding_young_thumb.jpg",130,100,5);thumbnails[5233935]=new thumbnail(5233935,"203268"," Fallow Deer","M35_Fallow_Deer_thumb.jpg",130,98,5);thumbnails[5233938]=new thumbnail(5233938,"203268","Dragonfly","M38-Dragonfly_thumb.jpg",130,98,5);thumbnails[5233941]=new thumbnail(5233941,"203268","Bee Orchid","M43_Bee_Orchid_thumb.jpg",130,132,5);thumbnails[5549382]=new thumbnail(5549382,"270125","Frosty Morning Postbridge.<br>\r\nWinner of the 2010 Charles Hoskins Trophy and<br>\r\nWon 3rd place in the 2009 CPA competition (Projected Imags)<br>\r\n","Frosty_Morning_Postbridge-HeatherBodle-LauncestonCC1_thumb.jpg",130,65,5);thumbnails[5586440]=new thumbnail(5586440,"270125","Tranquil Scene","Tranquil-Scene_thumb.jpg",130,72,5);thumbnails[5586460]=new thumbnail(5586460,"270125","Ullswater","Ullswater_thumb.jpg",130,54,5);thumbnails[5586465]=new thumbnail(5586465,"270125","High Alter and Apse Peterborough","HighAlterandApsePeterbouroughCathedraljpg_thumb.jpg",130,95,5);thumbnails[5592504]=new thumbnail(5592504,"317131","Looking out to Sea","01_M10Looking_out_to_Sea__dp_thumb.jpg",130,87,5);thumbnails[5592510]=new thumbnail(5592510,"317131","","02_M20_Loch_Lomand_and_the_Scottish_Lochs_125__thumb.jpg",130,79,5);thumbnails[5592552]=new thumbnail(5592552,"317131","Taking Flight","03_M25_Taking_Flight_thumb.jpg",130,61,5);thumbnails[5592560]=new thumbnail(5592560,"317131","Snow Trees","04_M40_-_Snow_Trees_thumb.jpg",130,195,5);thumbnails[5592581]=new thumbnail(5592581,"317131","Sultan Omar Mosque","05_M18_Sultan_Omar_Mosque_thumb.jpg",130,68,5);thumbnails[5592590]=new thumbnail(5592590,"317131","Evening on the Murry River","06_M22-Evening-on-the-Murray-River_thumb.jpg",130,86,5);thumbnails[5592664]=new thumbnail(5592664,"317131","Beer,Beach,Boats and Folks","07_M35_Beer_Beach_Boats__Folks_thumb.jpg",130,75,5);thumbnails[5592678]=new thumbnail(5592678,"317131","Stained Glass Window Maker","08_M10Stain_Glass_Window_Maker_thumb.jpg",130,197,5);thumbnails[5592703]=new thumbnail(5592703,"317131","Millie","09_M18_Millie_thumb.jpg",130,176,5);thumbnails[5592708]=new thumbnail(5592708,"317131","Evening Paddle","10_M02_Evening_Paddle_thumb.jpg",130,104,5);thumbnails[5592711]=new thumbnail(5592711,"317131","Aftermath","11_M22-Aftermath_thumb.jpg",130,87,5);thumbnails[5592717]=new thumbnail(5592717,"317131","Kids at Play","12_M23-Kids-at-Play_thumb.jpg",130,98,5);thumbnails[5592725]=new thumbnail(5592725,"317131","Thrift","13_M25_Thrift_thumb.jpg",130,214,5);thumbnails[5592727]=new thumbnail(5592727,"317131","Wheel Betsy in Winter","14_M29-Wheel-Betsy-in-Winter_thumb.jpg",130,77,5);thumbnails[5592730]=new thumbnail(5592730,"317131","Tree in Bronze","15_M40-Tree_in_Bronze_thumb.jpg",130,81,5);thumbnails[5592732]=new thumbnail(5592732,"317131","Durdle Door","16_M19_Durdle_Door_Dorset_thumb.jpg",130,86,5);thumbnails[5592733]=new thumbnail(5592733,"317131","Winter Windsurfing","17_M43_Winter_Windsurfing_thumb.jpg",130,68,5);thumbnails[5592734]=new thumbnail(5592734,"317131","Vancouver Skyline","18_M20Vancouver-Skyline_thumb.jpg",130,50,5);thumbnails[5592736]=new thumbnail(5592736,"317131","Iris","19_M02_Iris_thumb.jpg",130,175,5);thumbnails[5592819]=new thumbnail(5592819,"317131","Decommisioned","20_M25_Decommisioned_thumb.jpg",130,195,5);thumbnails[5592822]=new thumbnail(5592822,"317131","Artistic Impression","21_M29-Artistic-impression_thumb.jpg",130,86,5);thumbnails[5592824]=new thumbnail(5592824,"317131","Grey Seal Pup","22_M35_Grey_Seal_Pup_thumb.jpg",130,165,5);thumbnails[5592827]=new thumbnail(5592827,"317131","Dartmoor Landscape","23_M43_dartmoor_landscape_thumb.jpg",130,60,5);thumbnails[5592855]=new thumbnail(5592855,"317131","Water Shrew","24_M10Water_Shrew2__dp_thumb.jpg",130,85,5);thumbnails[5592857]=new thumbnail(5592857,"317131","Launceston from Nethercott","25_M18_Launceston_from_Nethercott_thumb.jpg",130,44,5);thumbnails[5592861]=new thumbnail(5592861,"317131","Tree Sculpture in Snow","26_M19_Tree_Sculpture_in_snow_thumb.jpg",130,237,5);thumbnails[5592869]=new thumbnail(5592869,"317131","Flowers on the Mountain","27_M23-Flowers-on-the-Mountain_thumb.jpg",130,76,5);thumbnails[5592887]=new thumbnail(5592887,"317131","Sunset Crackington Haven","28_M29-Sunset-Crackington-Haven_thumb.jpg",130,54,5);thumbnails[5592892]=new thumbnail(5592892,"317131","Three Puffens","29_M35_Three_Puffins_thumb.jpg",130,75,5);thumbnails[5592904]=new thumbnail(5592904,"317131","Bright Spinnaker","30_M40_-_Bright_Spinnaker_thumb.jpg",130,41,5);thumbnails[5592931]=new thumbnail(5592931,"317131","Yawning Seal","31_M43_Yawning_Seals_thumb.jpg",130,147,5);thumbnails[5592932]=new thumbnail(5592932,"317131","Redundent","32_M19_Redundent_thumb.jpg",130,73,5);thumbnails[5592935]=new thumbnail(5592935,"317131","Fjord in the Mist","33_M20Fjord_in_the_Mist_thumb.jpg",130,75,5);thumbnails[5592936]=new thumbnail(5592936,"317131","Acros the Plateau Mt Buffalo","34_M22-Across-the-Plateau-Mt-Buffalo_thumb.jpg",130,86,5);thumbnails[5592938]=new thumbnail(5592938,"317131","Snowdrops","35_M02_Snowdrops_thumb.jpg",130,143,5);thumbnails[5634683]=new thumbnail(5634683,"270125","Going Underground","Going_Underground_thumb.jpg",130,87,5);thumbnails[5920025]=new thumbnail(5920025,"334123","Winter Sun Reflection","Winter_Sun_Reflection-Hazel_Smith-Launceston_CC1_thumb.jpg",130,69,5);thumbnails[5920027]=new thumbnail(5920027,"334123","Taking Flight","TakingFlight-Don_Easter-Launceston_CC_thumb.jpg",130,60,5);thumbnails[5920028]=new thumbnail(5920028,"334123","Millie","Millie-Ian_Smith-Launceston_CC_thumb.jpg",130,176,5);thumbnails[5920032]=new thumbnail(5920032,"334123","Silver Surfer","SilverSurfer-Don_Easter-Launceston_CC_thumb.jpg",130,62,5);thumbnails[5920033]=new thumbnail(5920033,"334123","Misty Morning Grasmere","MistyMorningGrassmere-Nick_Bodle-Launceston_CC_thumb.jpg",130,56,5);thumbnails[5920035]=new thumbnail(5920035,"334123","Lavatarium Gloucester Cathedral","Lavatarium_Gloucester_Cathedral-Nick_Bodle-Launceston_CC__thumb.jpg",130,164,5);thumbnails[5920044]=new thumbnail(5920044,"334123","Smoke Screen","Smoke_Screen-Heather_Bodle-Launceston_CC_thumb.jpg",130,57,5);thumbnails[5920046]=new thumbnail(5920046,"334123","Rays of Light","Rays_of_Light-Heather_Boble-Launceston_CC1_thumb.jpg",130,52,5);thumbnails[5920048]=new thumbnail(5920048,"334123","Linit Feeding Youg","LinnetFeedingYoungW-Hilary_Philips-Launceston_CC_thumb.jpg",130,97,5);thumbnails[5920050]=new thumbnail(5920050,"334123","Dance","Dance-Chris_Robbins-Launceston_CC_thumb.jpg",130,207,5);thumbnails[5920055]=new thumbnail(5920055,"334123","Singing Starling","Singing_StarlingW-Adrian_Davey-Launceston_CC_thumb.jpg",130,156,5);thumbnails[5920063]=new thumbnail(5920063,"334123","Fagin Hiding in the Shadows","Fagin_Hiding_in_the_Shadows-Nick_Bodle-Launceston_CC_thumb.jpg",130,191,5);thumbnails[5920299]=new thumbnail(5920299,"334123","Splash of Light","Splash_of_Light-Heather-Bodle_thumb.jpg",130,58,5);thumbnails[5920306]=new thumbnail(5920306,"334123","Nuthatch","NuthatchW-Adrian_Davey-Launceston_CC_thumb.jpg",130,82,5);thumbnails[5920329]=new thumbnail(5920329,"334123","Hornet in Flight","Hornet_in_FlightW-Chris_Robbins_thumb.jpg",130,86,5);thumbnails[4720516]=new thumbnail(4720516,"174871","","LCC_MAP_thumb.jpg",130,84,5);var galleries=new Object();galleries[334123]=new gallery(334123,"5920329,5920306,5920299,5920063,5920055,5920050,5920048,5920046,5920044,5920035","Digital Entry for 2010 CPA Competition","gallery",[5920025,5920027,5920028,5920032,5920033,5920035,5920044,5920046,5920048,5920050,5920055,5920063,5920299,5920306,5920329]);galleries[283409]=new gallery(283409,"4991985,4991981,4991966,4991959,4991956,4991950,4991903,4991858,4991856,4991851,4991797,4991793","Don Harris Memorial Trophy","gallery",[4991793,4991797,4991851,4991856,4991858,4991903,4991950,4991956,4991959,4991966,4991981,4991985]);galleries[294831]=new gallery(294831,"5228678,5228676,5228667,5228616,5228581,5228578,5228551,5228548,5228545,5228519,5228517","Grand Slam","gallery",[5228517,5228519,5228545,5228548,5228551,5228578,5228581,5228616,5228667,5228676,5228678]);galleries[203268]=new gallery(203268,"5233941,5233938,5233935,5233932,5233929,5233928,5233924,5233920,5233916,5233914","NATURAL HISTORY ","gallery",[5233914,5233916,5233920,5233924,5233927,5233928,5233929,5233932,5233935,5233938,5233941]);galleries[317131]=new gallery(317131,"5592938,5592936,5592935,5592932,5592931,5592904,5592892,5592887,5592869,5592861","Open 23rd Feb 2010","gallery",[5592504,5592510,5592552,5592560,5592581,5592590,5592664,5592678,5592703,5592708,5592711,5592717,5592725,5592727,5592730,5592732,5592733,5592734,5592736,5592819,5592822,5592824,5592827,5592855,5592857,5592861,5592869,5592887,5592892,5592904,5592931,5592932,5592935,5592936,5592938]);galleries[270125]=new gallery(270125,"4736086,4736037","Winning Images.","gallery",[4736037,4736055,4736086,4767436,4767457,5549382,5586440,5586460,5586465,5634683]);galleries[174871]=new gallery(174871,"4720516","route map to Launceston Camera Club","gallery",[4720516]);galleries[174760]=new gallery(174760,"5233941,5233938,5233935,5233932,5233929,5233928,5233924,5233920,5233916,5233914,5228678,5228676,5228667,5228616,5228581,5228578,5228551,5228548,5228545,5228519,5228517,4991985,4991981,4991966,4991959,4991956,4991950,4991903,4991858,4991856,4991851,4991797,4991793","Competition Gallery","gallery",[]);var imageSets=new Object();imageSets[1]="5920329,5920306,5920063,5920055";imageSets[2]="5233941,5233938,5233935,5233932,5233929,5233928,5233924,5233920,5233916,5233914,5228678,5228676,5228667,5228616,5228581,5228578,5228551,5228548,5228545,5228519,5228517,4991985,4991981,4991966,4991959,4991956,4991950,4991903,4991858,4991856,4991851,4991797,4991793,4736086,4736037";imageSets[3]="5233941,5233938,5233935,5233932,5233929,5233928,5233924,5233920,5233916,5233914,5228678,5228676,5228667,5228616,5228581,5228578,5228551,5228548,5228545,5228519,5228517,4991985,4991981,4991966,4991959,4991956,4991950,4991903,4991858,4991856,4991851,4991797,4991793,4736086,4736037";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/edwardjf/images";break}switch(a){case 1:b="http://www1.clikpic.com/edwardjf/images";break}switch(a){case 2:b="http://admin.clikpic.com/edwardjf/images";break}switch(a){case 24:b="http://tpc15/clikpic/edwardjf/images";break}switch(a){case 4:b="http://www.clikchurch.com/edwardjf/images";break}switch(a){case 5:b="http://www2.clikpic.com/edwardjf/images";break}switch(a){case 22:b="http://tpc5/clikpic/edwardjf/images";break}switch(a){case 23:b="http://tpc10/clikpic/edwardjf/images";break}switch(a){case 25:b="http://tpc16/clikpic/edwardjf/images";break}switch(a){case 15:b="http://www3.clikpic.com/edwardjf/images";break}switch(a){case 18:b="http://www4.clikpic.com/edwardjf/images";break}switch(a){case 19:b="http://www5.clikpic.com/edwardjf/images";break}switch(a){case 31:b="http://www7.clikpic.com/edwardjf/images";break}switch(a){case 32:b="http://admin2.clikpic.com/edwardjf/images";break}switch(a){case 33:b="http://www8.clikpic.com/edwardjf/images";break}switch(a){case 34:b="http://www9.clikpic.com/edwardjf/images";break}switch(a){case 35:b="http://admin3.clikpic.com/edwardjf/images";break}switch(a){case 37:b="http://admin4.clikpic.com/edwardjf/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="'+escape(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="LauncestonCameraClub: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};