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[2711208]=new thumbnail(2711208,"","","HI_AWARDS_RGB_thumb.jpg",130,105,18);thumbnails[2711210]=new thumbnail(2711210,"","","NL_AWARDS_RGB_HR_thumb.jpg",130,30,18);thumbnails[5700652]=new thumbnail(5700652,"322730","1st Place. Annual Digital 2010 (Advanced): Ken Thorn","which_came_1st_thumb.JPG",130,87,18);thumbnails[5700666]=new thumbnail(5700666,"322730","2nd Place. Annual Digital 2010 (Advanced): Ornella Walker","Scary_Fly____By_Ornella_Walker_thumb.jpg",130,99,18);thumbnails[5700691]=new thumbnail(5700691,"322730","3rd Place. Annual Digital 2010(Advanced): John Watling","DSC_0014_old_boat_thumb.jpg",130,92,18);thumbnails[5700714]=new thumbnail(5700714,"322730","1st Place. Annual Digital 2010(Standard): Vincent Lazaro","dont_you_wish_you_were_me_right_now_-_photography_by_vincent_lazaro_9781AFF7-24E8-5EC4-4F2DC46C0F4CF2A3_thumb.jpg",130,157,18);thumbnails[5700728]=new thumbnail(5700728,"322730","2nd Place. Annual Digital 2010(Standard): John Watson","JLW_CiaoMama_97841CD3-24E8-5EC4-4F8C715CFDCE0C1D_thumb.jpg",130,237,18);thumbnails[5700739]=new thumbnail(5700739,"322730","3rd Place. Annual Digital 2010(Standard): Lesley Pegrum","Loch-Reflections_thumb.jpg",130,87,18);thumbnails[6348334]=new thumbnail(6348334,"322730","<br>\r\n1st Place  Kick Push<br>\r\nMonthly digital (STANDARD): July 2010<br>\r\nAuthor : Vincent Lazaro","kick_push_-_photography_by_vincent_lazaro_Medium_thumb.JPG",130,94,18);thumbnails[6358902]=new thumbnail(6358902,"322730","2nd Place : After 12<br>\r\nMonthly Digital (STANDARD): July 2010<br>\r\nAuthor: Vincent Lazaro","after_12_-_photography_by_vincent_lazaro_Medium_thumb.JPG",130,87,18);thumbnails[6358930]=new thumbnail(6358930,"322730","3rd Place : Sunset on Ludgate<br>\r\nMonthly Digital (STANDARD): JULY 2010<br>\r\nAuthor: Michael Hewson<br>\r\n","Sunset_On_Ludgate_Hill_Medium_thumb.jpg",130,163,18);thumbnails[6358932]=new thumbnail(6358932,"322730","1st Place: Corbier Sunset<br>\r\nMonthly Digital (ADVANCED): July 2010<br>\r\nAuthor:  Marcus Owen","corbier_sunset_Medium_thumb.JPG",130,68,18);thumbnails[6358933]=new thumbnail(6358933,"322730","2nd Place: Backwarden Danbury<br>\r\nMonthly Digital (ADVANCED): July 2010<br>\r\nAuthor: Sam Shippey","Backwarden_Danbury_2003_d_copy_Medium_thumb.jpg",130,173,18);thumbnails[6358934]=new thumbnail(6358934,"322730","3rd Place: Is It On?<br>\r\nMonthly Digital (ADVANCED): July 2010<br>\r\nAuthor: John Watson","JLW_Adv_Jul_Digital_Is_It_On_Medium1_thumb.jpg",130,178,18);thumbnails[5718282]=new thumbnail(5718282,"322878","1st Place.Annual Colour Print 2010 (Standard): Lesley Pegrum","Robin_CC_thumb.jpg",130,163,18);thumbnails[5718416]=new thumbnail(5718416,"322878","2nd Place.Annual Colour Print 2010(Standard): Sam Shippey","_9_Dec_2009_Red_arrows_digital_print__copy_thumb.jpg",130,83,18);thumbnails[5722511]=new thumbnail(5722511,"322878","1st Place.Annual Print.2010.Colour (Advanced): Ken Thorn","ByTheBeach1stPlace_thumb.jpg",130,98,18);thumbnails[5722556]=new thumbnail(5722556,"322878","2nd Place Annual Print.2010. Colour.(Advanced): Ornella Walker","A_Long_Way_to_go2nd_Place_l_thumb.jpg",130,78,18);thumbnails[5722572]=new thumbnail(5722572,"322878","3rd Place. Annual Print.2010. Colour (Advanced): Ken Thorn","HardAtWork3rd_Place_thumb.jpg",130,98,18);thumbnails[5727730]=new thumbnail(5727730,"322878","3rd Place.Annual Colour Print 2010.(Standard): John Watson","Venice_LeaningTower_Web1_thumb.jpg",130,235,18);thumbnails[6175429]=new thumbnail(6175429,"92863","","Boat_Mooring_Heybridge_thumb.jpg",130,195,18);thumbnails[6175430]=new thumbnail(6175430,"92863","","On_Patrol_thumb.jpg",130,194,18);thumbnails[6175434]=new thumbnail(6175434,"92863","","Red_and_Yellow_thumb.jpg",130,89,18);thumbnails[1827978]=new thumbnail(1827978,"92257","","FXCD0004_thumb.JPG",130,112,18);thumbnails[1827980]=new thumbnail(1827980,"92257","","FXCD0002_thumb.JPG",130,98,18);thumbnails[3007793]=new thumbnail(3007793,"92257","","aprilshowers_thumb.jpg",130,98,18);thumbnails[1344009]=new thumbnail(1344009,"94393","","Goldfish_thumb.jpg",130,208,18);thumbnails[1344017]=new thumbnail(1344017,"94393","","Spider Wasp and Prey1_thumb.jpg",130,73,18);thumbnails[1344008]=new thumbnail(1344008,"94393","","Fortune in the sand_thumb.jpg",130,68,18);thumbnails[5635956]=new thumbnail(5635956,"319549","","DSCF5422_thumb.jpeg",130,98,18);thumbnails[5635958]=new thumbnail(5635958,"319549","","DSC_0034_thumb.jpeg",130,101,18);thumbnails[5637081]=new thumbnail(5637081,"319549","","DSCF6973_thumb.jpeg",130,95,18);thumbnails[1320552]=new thumbnail(1320552,"93269","","Boats-at-Thorpeness11_thumb.jpg",130,76,18);thumbnails[1320554]=new thumbnail(1320554,"93269","","snow-joke11_thumb.jpg",130,148,18);thumbnails[1320555]=new thumbnail(1320555,"93269","","Waterfall1_thumb.jpg",130,184,18);thumbnails[5950244]=new thumbnail(5950244,"93271","","Round_ball4sharp_xl_thumb.jpg",130,167,18);thumbnails[5950246]=new thumbnail(5950246,"93271","","Pure_Colour3_xl_thumb.jpg",130,87,18);thumbnails[5950247]=new thumbnail(5950247,"93271","","Boy_on_PillarBW_xl_thumb.jpg",130,231,18);thumbnails[1359528]=new thumbnail(1359528,"95162","","G1_thumb.jpg",130,94,18);thumbnails[1359532]=new thumbnail(1359532,"95162","","IMG_1465a_thumb.jpg",130,163,18);thumbnails[1359535]=new thumbnail(1359535,"95162","","IMG_4019as_thumb.jpg",130,201,18);thumbnails[1479267]=new thumbnail(1479267,"101996","","bridge_thumb.jpg",130,98,18);thumbnails[1479274]=new thumbnail(1479274,"101996","","winter_thumb.jpg",130,98,18);thumbnails[6135438]=new thumbnail(6135438,"101996","","Its_cold_up_here_7410_thumb.JPG",130,98,18);thumbnails[5639317]=new thumbnail(5639317,"107688","","bluebell_railway-02_014_edited-1_thumb.jpg",130,98,18);thumbnails[5639334]=new thumbnail(5639334,"107688","","DSC_002_my_robin-2_thumb.jpg",130,101,18);thumbnails[5639337]=new thumbnail(5639337,"107688","","the_river_thumb.jpg",130,97,18);thumbnails[5635961]=new thumbnail(5635961,"124271","","A_Sting_in_the_tail_1600x1200_thumb.jpg",130,107,18);thumbnails[5635962]=new thumbnail(5635962,"124271","","bet_he_fancys_a_Guiness_1600x1200_thumb.jpg",130,167,18);thumbnails[5635966]=new thumbnail(5635966,"124271","","South_Bank1600x1200_thumb.jpg",130,195,18);thumbnails[5731555]=new thumbnail(5731555,"324745","","Dog_and_Ball_l_thumb.jpg",130,98,18);thumbnails[5731558]=new thumbnail(5731558,"324745","","Sand_dune_l_thumb.jpg",130,195,18);thumbnails[5731560]=new thumbnail(5731560,"324745","","Landscape_view_l_thumb.jpg",130,61,18);thumbnails[2711322]=new thumbnail(2711322,"124272","","IMGP0837_thumb.JPG",130,196,18);thumbnails[3007701]=new thumbnail(3007701,"124272","","IMGP1108c_thumb.jpg",130,86,18);thumbnails[3007708]=new thumbnail(3007708,"124272","","IMGP1259c_thumb.jpg",130,79,18);thumbnails[3146529]=new thumbnail(3146529,"192920","","image1  053_thumb.jpg",130,98,18);thumbnails[3146532]=new thumbnail(3146532,"192920","","image2  054_thumb.jpg",130,86,18);thumbnails[5662809]=new thumbnail(5662809,"192920","","Comma-HCP_thumb.jpg",130,87,18);thumbnails[1320525]=new thumbnail(1320525,"92477","","2007_04080015_thumb.JPG",130,194,18);thumbnails[1320528]=new thumbnail(1320528,"92477","","Leigh 4_thumb.JPG",130,82,18);thumbnails[5647698]=new thumbnail(5647698,"319988","","NRCC_1_thumb.jpg",130,87,18);thumbnails[5647701]=new thumbnail(5647701,"319988","","NRCC_2_thumb.jpg",130,212,18);thumbnails[5658819]=new thumbnail(5658819,"320531","","Bar-Italia-Web_thumb.jpg",130,98,18);thumbnails[5658820]=new thumbnail(5658820,"320531","","Forgotten-Bench-Web_thumb.jpg",130,130,18);thumbnails[5658822]=new thumbnail(5658822,"320531","","SnowTaxi-Web_thumb.jpg",130,104,18);thumbnails[5659056]=new thumbnail(5659056,"320568","","DSC_00271_nrcc_thumb.jpg",130,120,18);thumbnails[5662699]=new thumbnail(5662699,"320797","","London_Eye_thumb.JPG",130,85,18);thumbnails[5662708]=new thumbnail(5662708,"320798","","dont_you_wish_you_were_me_right_now_-_photography_by_vincent_lazaro_thumb.jpg",130,157,18);thumbnails[5662713]=new thumbnail(5662713,"320798","","look_right_look_left_and_look_right_again_-_photography_by_vincent_lazaro_thumb.JPG",130,87,18);thumbnails[5662719]=new thumbnail(5662719,"320798","","ready_to_blow_-_photography_by_vincent_lazaro_thumb.jpg",130,83,18);thumbnails[5662721]=new thumbnail(5662721,"320799","","deer_final_thumb.jpg",130,180,18);thumbnails[5662724]=new thumbnail(5662724,"320799","","Stockholm_at_night______Steve_Carlile_thumb.jpg",130,65,18);thumbnails[5662738]=new thumbnail(5662738,"320799","","It_just_landed_in_the_Garden________Steve_Carlile_thumb.jpg",130,181,18);thumbnails[5662745]=new thumbnail(5662745,"320800","","boston-boarder_thumb.jpg",130,70,18);thumbnails[5662753]=new thumbnail(5662753,"320800","","fledgling_thumb.jpg",130,85,18);thumbnails[5662765]=new thumbnail(5662765,"320800","","boston-snow-party_thumb.jpg",130,182,18);thumbnails[5662769]=new thumbnail(5662769,"320801","","come_to_daddy_thumb.JPG",130,93,18);thumbnails[5662774]=new thumbnail(5662774,"320801","","ows_that_thumb.jpg",130,145,18);thumbnails[5662779]=new thumbnail(5662779,"320801","","perspective_thumb.jpg",130,195,18);thumbnails[5662781]=new thumbnail(5662781,"320802","","BOAT_ON_LAKE_-_Judy_Monaghan_thumb.jpg",130,196,18);thumbnails[5662783]=new thumbnail(5662783,"320802","","Greek_Rocks_-_Judy_Monaghan_thumb.jpg",130,94,18);thumbnails[5662791]=new thumbnail(5662791,"320803","","BusyFlower_thumb.jpg",130,185,18);thumbnails[5662798]=new thumbnail(5662798,"320803","","JLW_CiaoMama_thumb.jpg",130,237,18);thumbnails[5727701]=new thumbnail(5727701,"320803","","Venice_LeaningTower_Web_thumb.jpg",130,235,18);thumbnails[5662802]=new thumbnail(5662802,"320804","","London_Eye_____John_Downs_thumb.jpg",130,87,18);thumbnails[5662804]=new thumbnail(5662804,"320804","","London_eye_from_westminster_bridge_____John_Downs_thumb.jpg",130,104,18);thumbnails[5662806]=new thumbnail(5662806,"320804","","South_bank_skateboarding____John_Downs_thumb.jpg",130,88,18);thumbnails[5662816]=new thumbnail(5662816,"320805","","A-Charge-for-your-charges_thumb.jpg",130,87,18);thumbnails[5662836]=new thumbnail(5662836,"320805","","For_you_thumb.jpg",130,112,18);thumbnails[5662839]=new thumbnail(5662839,"320805","","three-as-a-bird_thumb.jpg",130,81,18);thumbnails[5636135]=new thumbnail(5636135,"332428","","IMG_0063for-web_thumb.jpg",130,165,18);thumbnails[5885604]=new thumbnail(5885604,"332430","April 2010. Presentation/Dinner","P1030324_xl_thumb.jpg",130,73,18);thumbnails[5929036]=new thumbnail(5929036,"332430","9th May 2010.Club 'Walkabout'","DSCF3330_xl_thumb.jpg",130,105,18);thumbnails[6392328]=new thumbnail(6392328,"332430","21-7-10. Evening Club Walkabout","Group2_xl2_thumb.jpg",130,98,18);thumbnails[6392346]=new thumbnail(6392346,"332430","21-7-10.  Evening Club Walkabout","Group1_xl3_thumb.jpg",130,98,18);var galleries=new Object();galleries[322730]=new gallery(322730,"6358934,6358933,6358932,6358930,6358902,6348334,5700739,5700728,5700714,5700691","Competition Winners DIGITAL","gallery",[5700652,5700666,5700691,5700714,5700728,5700739,6348334,6358902,6358930,6358932,6358933,6358934]);galleries[322878]=new gallery(322878,"5727730,5722572,5722556,5722511,5718416,5718282","Competition Winners PRINT","gallery",[5718282,5718416,5722511,5722556,5722572,5727730]);galleries[92863]=new gallery(92863,"6175434,6175430,6175429","Graham Caile","gallery",[6175429,6175430,6175434]);galleries[92257]=new gallery(92257,"3007793,1827980,1827978","Ken Thorn","gallery",[1827978,1827980,3007793]);galleries[94393]=new gallery(94393,"1344017,1344009,1344008","Ron James","gallery",[1344009,1344017,1344008]);galleries[319549]=new gallery(319549,"5637081,5635958,5635956","Sam Shippey","gallery",[5635956,5635958,5637081]);galleries[93269]=new gallery(93269,"1320555,1320554,1320552","Mike Pitter","gallery",[1320552,1320554,1320555]);galleries[93271]=new gallery(93271,"5950247,5950246,5950244","Ornella Walker","gallery",[5950244,5950246,5950247]);galleries[95162]=new gallery(95162,"1359535,1359532,1359528","George Tidder","gallery",[1359528,1359532,1359535]);galleries[101996]=new gallery(101996,"6135438,1479274,1479267","Emine Tasker","gallery",[1479267,1479274,6135438]);galleries[107688]=new gallery(107688,"5639337,5639334,5639317","John Watling","gallery",[5639317,5639334,5639337]);galleries[124271]=new gallery(124271,"5635966,5635962,5635961","Alan Hemmings","gallery",[5635961,5635962,5635966]);galleries[324745]=new gallery(324745,"5731560,5731558,5731555","Jill Dixson-Smith","gallery",[5731555,5731558,5731560]);galleries[124272]=new gallery(124272,"3007708,3007701,2711322","Kath Hemmings","gallery",[2711322,3007701,3007708]);galleries[192920]=new gallery(192920,"5662809,3146532,3146529","Gordon Walkley","gallery",[3146529,3146532,5662809]);galleries[92477]=new gallery(92477,"1320528,1320525","Stan Doe","gallery",[1320525,1320528]);galleries[319988]=new gallery(319988,"5647701,5647698","Lesley Pegrum","gallery",[5647698,5647701]);galleries[320531]=new gallery(320531,"5658822,5658820,5658819","Michael Hewson","gallery",[5658819,5658820,5658822]);galleries[320568]=new gallery(320568,"5659056","Mike Cole","gallery",[5659056]);galleries[320797]=new gallery(320797,"5662699","Michael Bigmore","gallery",[5662699]);galleries[320798]=new gallery(320798,"5662719,5662713,5662708","Vincent Lazaro","gallery",[5662708,5662713,5662719]);galleries[320799]=new gallery(320799,"5662738,5662724,5662721","Steve Carlile","gallery",[5662721,5662724,5662738]);galleries[320800]=new gallery(320800,"5662765,5662753,5662745","Ray Justice","gallery",[5662745,5662753,5662765]);galleries[320801]=new gallery(320801,"5662779,5662774,5662769","Marcus Owen","gallery",[5662769,5662774,5662779]);galleries[320802]=new gallery(320802,"5662783,5662781","Judy Monaghan","gallery",[5662781,5662783]);galleries[320803]=new gallery(320803,"5727701,5662798,5662791","John Watson","gallery",[5662791,5662798,5727701]);galleries[320804]=new gallery(320804,"5662806,5662804,5662802","John Downs","gallery",[5662802,5662804,5662806]);galleries[320805]=new gallery(320805,"5662839,5662836,5662816","James Snell","gallery",[5662816,5662836,5662839]);galleries[332428]=new gallery(332428,"5636135","Thames Chase Photo Event Day","gallery",[5636135]);galleries[332430]=new gallery(332430,"6392346,6392328,5929036,5885604","NRCClub Events","gallery",[5885604,5929036,6392328,6392346]);var imageSets=new Object();imageSets[1]="3007793,1344009,1344008,1320555,1320552";imageSets[3]="6392346,6392328,6358934,6358933,6358932,6358930,6358902,6348334,6175434,6175430,6175429,6135438,5950247,5950246,5950244,5929036,5885604,5731560,5731558,5731555,5727730,5727701,5722572,5722556,5722511,5718416,5718282,5700739,5700728,5700714,5700691,5700666,5700652,5662839,5662836,5662816,5662809,5662806,5662804,5662802,5662798,5662791,5662783,5662781,5662779,5662774,5662769,5662765,5662753,5662745";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/northromfordcameraclub/images";break}switch(a){case 1:b="http://www1.clikpic.com/northromfordcameraclub/images";break}switch(a){case 2:b="http://admin.clikpic.com/northromfordcameraclub/images";break}switch(a){case 24:b="http://tpc15/clikpic/northromfordcameraclub/images";break}switch(a){case 4:b="http://www.clikchurch.com/northromfordcameraclub/images";break}switch(a){case 5:b="http://www2.clikpic.com/northromfordcameraclub/images";break}switch(a){case 22:b="http://tpc5/clikpic/northromfordcameraclub/images";break}switch(a){case 23:b="http://tpc10/clikpic/northromfordcameraclub/images";break}switch(a){case 25:b="http://tpc16/clikpic/northromfordcameraclub/images";break}switch(a){case 15:b="http://www3.clikpic.com/northromfordcameraclub/images";break}switch(a){case 18:b="http://www4.clikpic.com/northromfordcameraclub/images";break}switch(a){case 19:b="http://www5.clikpic.com/northromfordcameraclub/images";break}switch(a){case 31:b="http://www7.clikpic.com/northromfordcameraclub/images";break}switch(a){case 32:b="http://admin2.clikpic.com/northromfordcameraclub/images";break}switch(a){case 33:b="http://www8.clikpic.com/northromfordcameraclub/images";break}switch(a){case 34:b="http://www9.clikpic.com/northromfordcameraclub/images";break}switch(a){case 35:b="http://admin3.clikpic.com/northromfordcameraclub/images";break}switch(a){case 37:b="http://admin4.clikpic.com/northromfordcameraclub/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="NORTH  ROMFORD  CAMERA  CLUB: "+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();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(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+'")'})}}};