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[509600]=new thumbnail(509600,"50591","Dr. Colin J. Smith","Colin_thumb.jpg",130,188,18);thumbnails[665768]=new thumbnail(665768,"50592","What's With the Logo?","stonekirk_thumb.JPG",130,198,18);thumbnails[1715330]=new thumbnail(1715330,"115271","Loch Faskally","Loch Faskally_thumb.jpg",130,98,18);thumbnails[1715345]=new thumbnail(1715345,"115271","The hamlet of Port na Craig","Port na Craig_thumb.jpg",130,98,18);thumbnails[1715351]=new thumbnail(1715351,"115271","Whisky town!","Shop window_thumb.jpg",130,98,18);thumbnails[1715364]=new thumbnail(1715364,"115273","Aboyne Victory Hall","Aboyne Victory Hall_thumb.jpg",130,98,18);thumbnails[1715366]=new thumbnail(1715366,"115273","Posters for local events in Deeside","posters_thumb.jpg",130,98,18);thumbnails[1715370]=new thumbnail(1715370,"115273","The Ballroom, Glentanar Estate","Glentanar_thumb.jpg",130,84,18);thumbnails[1715377]=new thumbnail(1715377,"115274","The Scottish Style Awards 2007 event logo","ssa_logo_thumb.jpg",130,42,18);thumbnails[1715385]=new thumbnail(1715385,"115274","The Herald press coverage","SatHerald2_141006_thumb.jpg",130,172,18);thumbnails[1715395]=new thumbnail(1715395,"115276","The Mercat Cross, Culross","Mercat Cross 2_thumb.jpg",130,202,18);thumbnails[1715404]=new thumbnail(1715404,"115276","Culross Town House","Culross Town House_thumb.jpg",130,98,18);thumbnails[1715418]=new thumbnail(1715418,"115278","The logo of the Glasgow River Festival 2007","GRF logo 2007_thumb.jpg",130,85,18);thumbnails[1715428]=new thumbnail(1715428,"115278","Maritime heritage at Glasgow River Festival","pic1_thumb.jpg",130,86,18);thumbnails[1716683]=new thumbnail(1716683,"115337","Dunagoil Hillfort, Bute","Dunagoil_thumb.jpg",130,98,18);thumbnails[1716684]=new thumbnail(1716684,"115337","Ettrick Bay, Isle of Bute","Ettrick Bay General_thumb.jpg",130,98,18);thumbnails[1716688]=new thumbnail(1716688,"115337","The Discover Bute LPS Team","LPS Team small_thumb.jpg",130,86,18);thumbnails[1716713]=new thumbnail(1716713,"115276","Culross Palace","Palace_thumb.jpg",130,98,18);thumbnails[1716727]=new thumbnail(1716727,"115278","The Paddle Steamer WAVERLEY","Waverley1_thumb.jpg",130,69,18);thumbnails[1718139]=new thumbnail(1718139,"115274","Catwalk shows for 2007","fashion2_thumb.jpg",130,192,18);thumbnails[1718147]=new thumbnail(1718147,"115273","Pipe Majors at the Braemar Gathering","Pipe Majors_thumb.jpg",130,81,18);thumbnails[1718148]=new thumbnail(1718148,"115271","Pitlochry Festival Theatre","Pitlochry Festival Theatre2_thumb.jpg",130,97,18);thumbnails[1718256]=new thumbnail(1718256,"115436","UEFA Cup Final banners, George Square","UEFA_thumb.jpg",130,173,18);thumbnails[1718263]=new thumbnail(1718263,"115436","The National Stadium, Hampden Park, a venue for the 2014 Commonwealth Games","hampden-park_thumb.jpg",130,73,18);thumbnails[1820334]=new thumbnail(1820334,"115338","Caird Hall","Caird_thumb.jpg",130,202,18);thumbnails[1820339]=new thumbnail(1820339,"115338","Carnoustie Golf Course Hotel","Carnoustie_thumb.jpg",130,83,18);thumbnails[1820344]=new thumbnail(1820344,"115338",'Royal Research Ship "Discovery" at Dundee',"Discovery_thumb.jpg",130,83,18);thumbnails[3203480]=new thumbnail(3203480,"195842","Stroller ticket","stroller_thumb.jpg",130,49,18);thumbnails[3203481]=new thumbnail(3203481,"195842","The logo of the HSBC Brecon Jazz Festival","BJF Logo_thumb.jpg",130,91,18);thumbnails[3206241]=new thumbnail(3206241,"195841","The logo of the Banffshire Coast Tourism Partnership.","Banffshire Coast oneline logo_thumb.jpg",130,49,18);thumbnails[3206248]=new thumbnail(3206248,"195841","Cycling at Cullen","Cullen_thumb.jpg",130,87,18);thumbnails[3206251]=new thumbnail(3206251,"195841","Surf up at Banff Links","Banff_thumb.jpg",130,87,18);thumbnails[3206340]=new thumbnail(3206340,"195843","The Melrose Sevens","Melrose sevens_thumb.jpg",130,86,18);thumbnails[3206467]=new thumbnail(3206467,"195854","Braemar Castle","castle_thumb.jpg",130,87,18);thumbnails[3206530]=new thumbnail(3206530,"195854","Restored bedroom in Braemar Castle","room1_thumb.jpg",130,87,18);thumbnails[3206547]=new thumbnail(3206547,"195855","Glamis Post Office and Corner Shop","GlamisPO_thumb.jpg",130,195,18);thumbnails[3206564]=new thumbnail(3206564,"195854","Pots and kettles in Braemar Castle","Kettles_thumb.jpg",130,87,18);thumbnails[3245706]=new thumbnail(3245706,"198062","Logo of Deeside & The Cairngorms Ltd","cairngorm-logo_thumb.jpg",130,79,18);thumbnails[3245707]=new thumbnail(3245707,"198062","Balmoral Castle","Balmoral2_thumb.jpg",130,84,18);thumbnails[3245717]=new thumbnail(3245717,"198062","Launch of Deeside DMO","audience_thumb.jpg",130,87,18);thumbnails[3245720]=new thumbnail(3245720,"198063","The Destination Dundee logo ","Destination Dundee Logo_thumb.jpg",130,45,18);thumbnails[3245725]=new thumbnail(3245725,"198063","Destination Dundee Group Guide","Dundee group guide2_thumb.jpg",130,182,18);thumbnails[3245732]=new thumbnail(3245732,"198063","RRS Discovery - Dundee's main attraction","Discovery1_thumb.jpg",130,195,18);thumbnails[3246484]=new thumbnail(3246484,"195845","Loch Lomond at dusk","1_thumb.JPG",130,81,18);thumbnails[3246494]=new thumbnail(3246494,"195845","Stirling Castle","2_thumb.JPG",130,84,18);thumbnails[3246503]=new thumbnail(3246503,"195845","Stirling Old Town","3_thumb.JPG",130,83,18);thumbnails[3257534]=new thumbnail(3257534,"195849","Sensation logo","SENSATION colour2_thumb.jpg",130,30,18);thumbnails[3257537]=new thumbnail(3257537,"195849","Kids love Science","Science Centre_thumb.jpg",130,98,18);thumbnails[3257544]=new thumbnail(3257544,"195849","Sensation - Dundee Science Centre","Sensationpic_thumb.jpg",130,98,18);thumbnails[3257627]=new thumbnail(3257627,"195843","Scottish Borders Council logo","sbclogo_thumb.gif",130,45,18);thumbnails[3257636]=new thumbnail(3257636,"195843","The Hawick Reivers","reivers_thumb.jpg",130,53,18);thumbnails[3257794]=new thumbnail(3257794,"195842","Theatr Brycheiniog, Brecon","Theatr Brycheiniog_thumb.jpg",130,106,18);thumbnails[3258156]=new thumbnail(3258156,"148461","Linlithgow","tv24_thumb.jpg",130,201,18);thumbnails[3258181]=new thumbnail(3258181,"198675","The National Stadium, Glasgow","hampden-park1_thumb.jpg",130,73,18);thumbnails[3258186]=new thumbnail(3258186,"198675","Glasgow : Scotland with Style","logo_glasgow1_thumb.gif",130,66,18);thumbnails[3258205]=new thumbnail(3258205,"198675","Piping Live! Glasgow International Piping Festival","Piping Live_thumb.jpg",130,92,18);thumbnails[5241036]=new thumbnail(5241036,"295376","Cramond Ferry in the 19th Century","Former_ferry2_thumb.jpg",130,83,18);thumbnails[5241040]=new thumbnail(5241040,"295376","Cramond Ferry 20th Century style","Former_ferry11_thumb.jpg",130,88,18);thumbnails[5241048]=new thumbnail(5241048,"295376","The future at Cramond - Scotland's only chain ferry","New_ferry12_thumb.jpg",130,89,18);thumbnails[5284080]=new thumbnail(5284080,"295372","Glen Clova, Angus","Glen_Clova_thumb.jpg",130,87,18);thumbnails[5284087]=new thumbnail(5284087,"295372","Loch Tay, Perthshire","Loch_Tay_thumb.jpg",130,87,18);thumbnails[5284089]=new thumbnail(5284089,"295372","","Survey_logo_final_thumb.jpg",130,63,18);thumbnails[5284115]=new thumbnail(5284115,"297195","Pittenweem, Fife","Pittenweem_thumb.jpg",130,87,18);thumbnails[5300508]=new thumbnail(5300508,"295374","Plan for the proposed Carnoustie Centre","CCAG_Concept_2_A4_smallish1_thumb.jpg",130,93,18);thumbnails[5300513]=new thumbnail(5300513,"295374","Job done!","REPORT_PRESENTATION_small1_thumb.jpg",130,88,18);thumbnails[5300519]=new thumbnail(5300519,"297195","The Venue!","47_High_St_thumb.jpg",130,87,18);thumbnails[5317436]=new thumbnail(5317436,"295370","Edinburgh Castle","Castle1_thumb.jpg",130,87,18);thumbnails[5317444]=new thumbnail(5317444,"295370","","easyJet_thumb.jpg",130,87,18);thumbnails[5317483]=new thumbnail(5317483,"295373","The Old Course, St Andrews","St_Andrews_thumb.jpg",130,85,18);thumbnails[5317489]=new thumbnail(5317489,"295373","Dysart, Fife","Dysart_thumb.jpg",130,87,18);thumbnails[5317523]=new thumbnail(5317523,"295373","The Forth Road Bridge","frb_thumb.jpg",130,87,18);thumbnails[5317567]=new thumbnail(5317567,"295378","The Highlands of Scotland","Loch_Leven_thumb.jpg",130,87,18);thumbnails[5317636]=new thumbnail(5317636,"295378","The Old Town, Rhodes, Greece","Rhodes_Old_Town_thumb.jpg",130,87,18);thumbnails[5317715]=new thumbnail(5317715,"297195",'"Drifter" by More Horsburgh (courtesy of Pittenweem Arts Festival)',"picture_thumb.jpg",130,63,18);thumbnails[5317819]=new thumbnail(5317819,"299333","","SE_Logo_thumb.jpg",130,94,18);thumbnails[5320943]=new thumbnail(5320943,"295378","Salzburg, Austria","Salzburg0002_thumb.JPG",130,85,18);thumbnails[5995574]=new thumbnail(5995574,"337787","Proposed Murton reserve visitor centre","Revised_Floor_Plan_2sm_thumb.jpg",130,69,18);thumbnails[5995611]=new thumbnail(5995611,"337787","A hard winter at Murton","SP_A0736small_thumb.jpg",130,98,18);thumbnails[5995626]=new thumbnail(5995626,"337787","The loch at Murton Reserve","SP_A0723small_thumb.jpg",130,98,18);thumbnails[5995891]=new thumbnail(5995891,"195855","How will a wind farm affect my business?","wind-turbine_thumb.jpg",130,204,18);thumbnails[5996129]=new thumbnail(5996129,"295378","NATIONAL GEOGRAPHIC","NatGeoLogo_thumb.jpg",130,39,18);thumbnails[5996222]=new thumbnail(5996222,"295370","ETAG Logo","ETAG-Logo_thumb.jpg",130,43,18);thumbnails[5996893]=new thumbnail(5996893,"198675","Glasgow - Scotland with Style","logo_glasgow_thumb.jpg",130,66,18);thumbnails[6112668]=new thumbnail(6112668,"342568","Longtown Memorial Hall","Longtown-Memorial-Hall_thumb.jpg",130,50,18);thumbnails[6112669]=new thumbnail(6112669,"342568","Carlisle and the Borderlands","borderlands_thumb.jpg",130,87,18);thumbnails[6112672]=new thumbnail(6112672,"342568","A centre for the borderlands","Longtown_small_thumb.jpg",130,87,18);thumbnails[6668444]=new thumbnail(6668444,"364469","CARLISLE OLD TOWN HALL","SL381860small_thumb.jpg",130,98,18);thumbnails[6668446]=new thumbnail(6668446,"364469","CARLISLE OLD TOWN HALL","SP_A0702_small1_thumb.jpg",130,98,18);thumbnails[6668454]=new thumbnail(6668454,"364469","The project included detailed assessment of the historic fabric of the building","cutaway_small_thumb.jpg",130,92,18);thumbnails[5300554]=new thumbnail(5300554,"295374","Golf!","Carnoustie_Hotel_thumb.jpg",130,87,18);var galleries=new Object();galleries[50591]=new gallery(50591,"509600","About The Glamis Consultancy","section49774",[509600]);galleries[195841]=new gallery(195841,"3206251,3206248,3206241","Activity Tourism on the Banffshire Coast","section380864",[3206241,3206248,3206251]);galleries[195854]=new gallery(195854,"3206564,3206530,3206467","Braemar Castle - Review of Development Plan","section380865",[3206467,3206530,3206564]);galleries[364469]=new gallery(364469,"6668446,6668444","Carlisle Old Town Hall Redevelopment","section380873",[6668444,6668446,6668454]);galleries[295374]=new gallery(295374,"5300554,5300513,5300508","Carnoustie Centre Feasibility Study","section380865",[5300508,5300513,5300554]);galleries[195845]=new gallery(195845,"3246503,3246494,3246484","City of Stirling Visitor Survey","section380864",[3246484,3246494,3246503]);galleries[115276]=new gallery(115276,"1716713,1715404,1715395","Culross","section380864",[1715395,1715404,1716713]);galleries[198062]=new gallery(198062,"3245717,3245707,3245706","Deeside & The Cairngorms DMO","section380864",[3245706,3245707,3245717]);galleries[115337]=new gallery(115337,"1716684,1716683","Discover Bute","section380864",[1716683,1716684,1716688]);galleries[115338]=new gallery(115338,"1820344,1820339,1820334","Dundee & Angus Convention Bureau","section380873",[1820334,1820339,1820344]);galleries[195849]=new gallery(195849,"3257544,3257537,3257534","Dundee Science Learning Centre","section380873",[3257534,3257537,3257544]);galleries[195842]=new gallery(195842,"3257794,3203481,3203480","Evaluating the Brecon Jazz Festival","section380872",[3203480,3203481,3257794]);galleries[198063]=new gallery(198063,"3245732,3245725,3245720","Evaluation of Destination Dundee","section380872",[3245720,3245725,3245732]);galleries[115273]=new gallery(115273,"1718147","Events in the Eastern Cairngorms","section380877",[1715364,1715366,1715370,1718147]);galleries[295376]=new gallery(295376,"5241048,5241040,5241036","Feasibility Study for a Chain Ferry at Cramond","section380873",[5241036,5241040,5241048]);galleries[51140]=new gallery(51140,"","For the Private Sector ....","section75675",[]);galleries[51129]=new gallery(51129,"","For the Public Sector ....","section75675",[]);galleries[295370]=new gallery(295370,"5996222,5317444,5317436","Funding for Tourism in Edinburgh","section380864",[5317436,5317444,5996222]);galleries[115436]=new gallery(115436,"1718256","Glasgow City Marketing Bureau Events Plan","section380877",[1718256,1718263]);galleries[115278]=new gallery(115278,"1716727,1715428,1715418","Glasgow River Festival","section380877",[1715418,1715428,1716727]);galleries[198675]=new gallery(198675,"5996893,3258205,3258186,3258181","Glasgow Strategic Major Events Forum","section380877",[3258181,3258186,3258205,5996893]);galleries[342568]=new gallery(342568,"6112672,6112669,6112668","Longtown Heritage Centre","section380865",[6112668,6112669,6112672]);galleries[337787]=new gallery(337787,"5995626,5995611,5995574","Murton Wildlife Reserve","section380865",[5995574,5995611,5995626]);galleries[295378]=new gallery(295378,"5996129,5320943,5317636,5317567","National Geographic Destinations Survey 2009","section380864",[5317567,5317636,5320943,5996129]);galleries[115271]=new gallery(115271,"1718148,1715351,1715330","Pitlochry Partnership","section380864",[1715330,1715345,1715351,1718148]);galleries[297195]=new gallery(297195,"5317715,5300519,5284115","Pittenweem Arts Festival","section380873",[5284115,5300519,5317715]);galleries[295373]=new gallery(295373,"5317523,5317489,5317483","Review of the Fife Tourism Alliance","section380872",[5317483,5317489,5317523]);galleries[195843]=new gallery(195843,"3257636,3257627,3206340","Scottish Borders Strategic Events Programme","section380872",[3206340,3257627,3257636]);galleries[115274]=new gallery(115274,"1718139,1715385,1715377","Scottish Style Awards","section380877",[1715377,1715385,1718139]);galleries[195855]=new gallery(195855,"5995891,3206547","SMALL BUSINESSES AND COMMUNITIES","section404497",[3206547,5995891]);galleries[295372]=new gallery(295372,"5284089,5284087,5284080","Tourism in Angus and Rural Perthshire","section380864",[5284080,5284087,5284089]);galleries[299333]=new gallery(299333,"5317819","TOURISM INNOVATION","section380874",[5317819]);galleries[148461]=new gallery(148461,"3258156","West Lothian Tourism Strategy","section380864",[3258156]);galleries[50592]=new gallery(50592,"665768","What's with the  Logo?","section49774",[665768]);var imageSets=new Object();imageSets[1]="6668446,6668444,5284087,5284080,3206248,1820344,1820339,1716713,1715404,1715395,1715351";imageSets[2]="6668446,6668444,1820344,1820339,1820334,1718256,1718148,1718147,1716727,1716713,1716684,1716683,1715428,1715418,1715404,1715395,1715351,1715330";imageSets[3]="5317636,5317523";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/theglamisconsultancy/images";break}switch(a){case 1:b="http://www1.clikpic.com/theglamisconsultancy/images";break}switch(a){case 2:b="http://admin.clikpic.com/theglamisconsultancy/images";break}switch(a){case 24:b="http://tpc15/clikpic/theglamisconsultancy/images";break}switch(a){case 4:b="http://www.clikchurch.com/theglamisconsultancy/images";break}switch(a){case 5:b="http://www2.clikpic.com/theglamisconsultancy/images";break}switch(a){case 22:b="http://tpc5/clikpic/theglamisconsultancy/images";break}switch(a){case 23:b="http://tpc10/clikpic/theglamisconsultancy/images";break}switch(a){case 25:b="http://tpc16/clikpic/theglamisconsultancy/images";break}switch(a){case 15:b="http://www3.clikpic.com/theglamisconsultancy/images";break}switch(a){case 18:b="http://www4.clikpic.com/theglamisconsultancy/images";break}switch(a){case 19:b="http://www5.clikpic.com/theglamisconsultancy/images";break}switch(a){case 31:b="http://www7.clikpic.com/theglamisconsultancy/images";break}switch(a){case 32:b="http://admin2.clikpic.com/theglamisconsultancy/images";break}switch(a){case 33:b="http://www8.clikpic.com/theglamisconsultancy/images";break}switch(a){case 34:b="http://www9.clikpic.com/theglamisconsultancy/images";break}switch(a){case 35:b="http://admin3.clikpic.com/theglamisconsultancy/images";break}switch(a){case 37:b="http://admin4.clikpic.com/theglamisconsultancy/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("section49774"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section49774.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("section49774"!=""){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="The Glamis Consultancy: "+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+'")'})}}};