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[4079142]=new thumbnail(4079142,"245223","Forgotten People - 1st Place  Gill Sharp","31_Forgotten_People_thumb.jpg",130,103,1);thumbnails[4079144]=new thumbnail(4079144,"245223","Nellie Takes Coffee - 2nd Place  Geoff France","55_Nellie_Takes_Coffee_thumb.jpg",130,89,1);thumbnails[4079146]=new thumbnail(4079146,"245223","Sense of Space - 3rd Place  Gill Sharp","34_Sense_of_space_thumb.jpg",130,49,1);thumbnails[1956856]=new thumbnail(1956856,"131484","1st - Lily","Lily_Web_thumb.jpg",130,99,1);thumbnails[1956858]=new thumbnail(1956858,"131484","Stocks","Stocks_Web_thumb.jpg",130,176,1);thumbnails[1956859]=new thumbnail(1956859,"131484","Lisianthus","Lisianthus_Web1_thumb.jpg",130,104,1);thumbnails[1956861]=new thumbnail(1956861,"131485","Island Life","0706Puffin3_thumb.jpg",130,127,1);thumbnails[1956866]=new thumbnail(1956866,"131485","Island Life","0706Puffins21_thumb.jpg",130,109,1);thumbnails[1956877]=new thumbnail(1956877,"131485","Island Life","0706BlackShag_thumb.jpg",130,91,1);thumbnails[3339988]=new thumbnail(3339988,"203770","Towards Barrow From Jenny Brown's Point - 1st Place (20 Points)","silverdale-3_thumb.jpg",130,88,1);thumbnails[3339992]=new thumbnail(3339992,"203770","Marsden Chimneys - 2nd Place (19.5 Points)","chimneys_web2_thumb.jpg",130,94,1);thumbnails[3340001]=new thumbnail(3340001,"203770","Rhubarb & Custard - 3rd Place (19 Points)","Rhubarb-And-Custard_Web_thumb.jpg",130,101,1);thumbnails[2050792]=new thumbnail(2050792,"137063","","Shed right _thumb.jpg",130,63,1);thumbnails[2050786]=new thumbnail(2050786,"137063","","Shed left _thumb.jpg",130,62,1);thumbnails[2050789]=new thumbnail(2050789,"137063","","Shed centre_thumb.jpg",130,63,1);thumbnails[3339775]=new thumbnail(3339775,"203762","Lincoln Cathedral - 1st Place (20 Points)","40 Lincoln cathedral_thumb.jpg",130,86,1);thumbnails[3339875]=new thumbnail(3339875,"203762","Lowry Centre Complex - 2nd Place (20 Points)","66 Lowry centre complex_thumb.jpg",130,96,1);thumbnails[3339905]=new thumbnail(3339905,"203762","Jonestown Castle - 3rd Place (20 Points)","36 Jonestown castle _thumb.jpg",130,82,1);thumbnails[3340062]=new thumbnail(3340062,"203771","Goodbent Lodge - 1st Place (20 Points)","74_Goodbent_Lodge_thumb.jpg",130,75,1);thumbnails[3340066]=new thumbnail(3340066,"203771","Travellers - Joint 2nd (18 Points)","28_Travellers_thumb.jpg",130,93,1);thumbnails[3340068]=new thumbnail(3340068,"203771","Walkworth Castle - Joint 2nd (18 Points)","39_Warkworth_castle_thumb.jpg",130,94,1);thumbnails[3340070]=new thumbnail(3340070,"203771","Riverside Reflections - Joint 2nd (18 Points)","58_Riverside_reflections_thumb.jpg",130,173,1);thumbnails[3120734]=new thumbnail(3120734,"191450","1st Place - The Beach (20 Points)","blackpool beach_thumb.jpg",130,62,1);thumbnails[3120738]=new thumbnail(3120738,"191450","2nd Place - Bridges of Newcastle (20 Points)","bridge_thumb.jpg",130,77,1);thumbnails[3120745]=new thumbnail(3120745,"191450","3rd Place - Final Destination (20 Points)","Final Destination JJ1 (1)_thumb.jpg",130,180,1);thumbnails[549054]=new thumbnail(549054,"16968","Untitled","Cliffe 41_thumb.jpg",130,85,1);thumbnails[551489]=new thumbnail(551489,"16968","Digley Quarry by Anne Field","Digley-Quarry-Oct_thumb.jpg",130,87,1);thumbnails[551491]=new thumbnail(551491,"16968","Digley Woodby Les Heywood","Digley-Wood_thumb.jpg",130,89,1);thumbnails[551495]=new thumbnail(551495,"16968","Flower Shop Honleyby Geoff France","Flower-Shop-Honley_thumb.jpg",130,92,1);thumbnails[551497]=new thumbnail(551497,"16968","Hepworth by Phil Hack","Hepworth_thumb.jpg",130,87,1);thumbnails[551499]=new thumbnail(551499,"16968","Holmfirth from Shaley Topby Phil Hack","Holmfirth_thumb.jpg",130,87,1);thumbnails[551501]=new thumbnail(551501,"16968","Marsden Clough - Bradshawby Edmund Spavin","Marsden-Clough---Bradshaw_thumb.jpg",130,85,1);thumbnails[551502]=new thumbnail(551502,"16968","Morris Dancers - Hollowgateby Les Heywood","morris-dancers_thumb.jpg",130,90,1);thumbnails[551503]=new thumbnail(551503,"16968","Netherthongby Phil Hack","Netherthong_thumb.jpg",130,86,1);thumbnails[551505]=new thumbnail(551505,"16968","Ramsden Reservoirby Edmund Spavin","Ramsden-Reservoir_thumb.jpg",130,86,1);thumbnails[551506]=new thumbnail(551506,"16968","St Mary's Honleyby Gill Sharpe","St-Marys-Honley_thumb.jpg",130,92,1);thumbnails[551508]=new thumbnail(551508,"16968","Wessenden Winterby Edmund Spavin","Wessenden-Winter_thumb.jpg",130,86,1);thumbnails[1565871]=new thumbnail(1565871,"107072","1st - Lowtide","No1_thumb.LOWTIDE.MF1.jpg",130,88,1);thumbnails[4868261]=new thumbnail(4868261,"277611","Airtime - 1st place","07_Air_Time2_thumb.jpg",130,94,1);thumbnails[5396770]=new thumbnail(5396770,"304618","The Etchings of Life     <br>\r\n1st place   Gill Sharp","12_The_Etchings_Of_Life_thumb.jpg",130,142,1);thumbnails[5399084]=new thumbnail(5399084,"304857","Bradshaw in Winter 1st","Bradshaw_in_winter_thumb.jpg",130,87,1);thumbnails[1565872]=new thumbnail(1565872,"107072","2nd - Poppy","No2-PoppyCN1_thumb.jpg",130,160,1);thumbnails[4868269]=new thumbnail(4868269,"277611","White Water Rafting at Bala - 2nd place","68_white_water_rafting_bala_thumb.jpg",130,87,1);thumbnails[5396809]=new thumbnail(5396809,"304618","Self Portrait   2nd Place  Victor Harris","53_Self_Portrait_thumb.jpg",130,98,1);thumbnails[5399143]=new thumbnail(5399143,"304857","Wintry Tale  2nd Place","wintry_tale3_thumb.jpg",130,53,1);thumbnails[1565873]=new thumbnail(1565873,"107072","3rd - Puffin","No3-Puffin1VTH_thumb.jpg",130,74,1);thumbnails[4868276]=new thumbnail(4868276,"277611","Falconry Action  - 3rd place","25_Falconry_action_thumb.jpg",130,119,1);thumbnails[5396783]=new thumbnail(5396783,"304618","Indian Smile       <br>\r\n3rd place<br>\r\nSteve Savage","70_Indian_smile_thumb.jpg",130,130,1);thumbnails[5399104]=new thumbnail(5399104,"304857","Cuba Side Street  3rd Place","CubaSideStreet_thumb.jpg",130,197,1);thumbnails[2912104]=new thumbnail(2912104,"180350","1st Place - Trumpet Blues (20 Points)","08_Trumpet_Blues_thumb.jpg",130,72,1);thumbnails[2912157]=new thumbnail(2912157,"180350","2nd Place - Spotted Colours (19 Points)","34_Spotted_colours_thumb.jpg",130,86,1);thumbnails[2912146]=new thumbnail(2912146,"180350","2nd Place - Gravity (19 Points)","48_Gravity_thumb.jpg",130,194,1);thumbnails[2912260]=new thumbnail(2912260,"180350","2nd Place - Eyeballs (19 Points)","61_Eyeballs_thumb.jpg",130,95,1);thumbnails[5688615]=new thumbnail(5688615,"322208","1st Shag Detail  Chris Newsome","3_Shag_detail_Phalacrocorax_aristoteliscn1_thumb.jpg",130,94,1);thumbnails[5688633]=new thumbnail(5688633,"322208","3rd Bluebell Detail   Geoff France","13_Bluebell_Detail_thumb.jpg",130,158,1);thumbnails[5688706]=new thumbnail(5688706,"322208","2nd Yellow Dung Fly  Peter Bartlett","3Yellow_Dung_FlyPB1_thumb.jpg",130,105,1);thumbnails[5396854]=new thumbnail(5396854,"304652","Girona Balcony  3rd Place  Pat Whalley","30_Girona_Balcony_thumb.jpg",130,92,1);thumbnails[5396865]=new thumbnail(5396865,"304652","Cold Stream   2nd Place  Andy Bewick","80_Cold_Stream_thumb.jpg",130,97,1);thumbnails[5396884]=new thumbnail(5396884,"304652","Northumbrian Coast   1st Place  Tony Butterworth","70_Northumbrian_Coast_thumb.jpg",130,101,1);thumbnails[531814]=new thumbnail(531814,"41217","1st Place:       Lace maker - Bruges.Author - Phil Hack","Lacemaker_Bruges_thumb.jpg",130,157,1);thumbnails[1565780]=new thumbnail(1565780,"107069","1st - Eyes","No1-Eyes-1VTH_thumb.jpg",130,68,1);thumbnails[3013975]=new thumbnail(3013975,"185505","1st Place - Wild In Africa (20 Points)","42 Wild in Africa_thumb.jpg",130,78,1);thumbnails[531816]=new thumbnail(531816,"41217","2nd Place: Hepworth ChurchNr. Holmfirth.Author - Phil Hack","Hepworth_church_thumb.jpg",130,194,1);thumbnails[1565810]=new thumbnail(1565810,"107069","2nd - Sally Toumi","No2-SallyToumiGF1_thumb.jpg",130,191,1);thumbnails[3013980]=new thumbnail(3013980,"185505","2nd Place - Glacial Ice (19 Points)","11 Glacial ice_thumb.jpg",130,87,1);thumbnails[3013991]=new thumbnail(3013991,"185505","2nd Place - Red Deer Stag (19 Points)","51 Red deer stag (Compressed)_thumb.jpg",130,69,1);thumbnails[531817]=new thumbnail(531817,"41217","3rd Place:  Buddah.Author - Ken Norcliffe","KN_buddah_thumb.jpg",130,199,1);thumbnails[1565812]=new thumbnail(1565812,"107069","Joint 3rd - Geof","No3-Geof-tt1_thumb.jpg",130,105,1);thumbnails[1565834]=new thumbnail(1565834,"107069","Joint 3rd - Julia","No3-JuliaGF1_thumb.jpg",130,194,1);thumbnails[548984]=new thumbnail(548984,"42437","1st Place - Roofscape BrugesAuthor: Phil Hack","roofscape_brugesPH_thumb.jpg",130,92,1);thumbnails[548992]=new thumbnail(548992,"42437","2nd Place  ","GoneforLunchAustriaIG_thumb.jpg",130,93,1);thumbnails[549002]=new thumbnail(549002,"42437","3rd Place - Pityoulish - Aviemore.Author: Geoff France","pityoulishGF_thumb.jpg",130,171,1);thumbnails[637399]=new thumbnail(637399,"48640","1st Place - Blue Tit - Author Les Harrison","LH01Birds_thumb.jpg",130,86,1);thumbnails[637401]=new thumbnail(637401,"48640","2nd Place - Snow Scene - Author: Gill Sharp","GS02Snowscene_thumb.jpg",130,50,1);thumbnails[637404]=new thumbnail(637404,"48640","3rd Place - 'Ruby' - Author: Gill Sharp","GS03Ruby_thumb.jpg",130,166,1);thumbnails[702262]=new thumbnail(702262,"53962","1st Place: Eggsactly one soldier - Author: Geoff France","1eggsactly_one_soldierGF_thumb.jpg",130,74,1);thumbnails[702263]=new thumbnail(702263,"53962","2nd Place: Great Tit - Author: Les Harrison","2Great-tit-LH_thumb.jpg",130,90,1);thumbnails[702264]=new thumbnail(702264,"53962","3rd Place: Langdale - Author: Edmund Spavin","3Langdale_ES_thumb.jpg",130,83,1);thumbnails[757556]=new thumbnail(757556,"58576","1st Place - Grace in Play: Author Roy Denton","1_RD_Grace in Play_RD_thumb.jpg",130,98,1);thumbnails[757570]=new thumbnail(757570,"58576","2nd Place - Robin - Author: Geoff France","2_GF_robin_gf_thumb.jpg",130,116,1);thumbnails[757577]=new thumbnail(757577,"58576","3rd Place - War Girl - Author: Vince Cunningham","3_VC_WarGirl_VC_thumb.jpg",130,99,1);thumbnails[757605]=new thumbnail(757605,"58577","Joint First - Author: Gill Sharp","1j_GS_capheaton5 mist_thumb.jpg",130,65,1);thumbnails[757611]=new thumbnail(757611,"58577","Joint 1st - Author: Gill Sharp","1j_GS_mist cows9_thumb.jpg",130,60,1);thumbnails[757613]=new thumbnail(757613,"58577","Joint 1st - Author: Gill Sharp","1j_GS_mist tree475_thumb.jpg",130,70,1);thumbnails[757622]=new thumbnail(757622,"58577","Joint 1st - Pte De La Galise ~ Val D'Isere - Author: Phil Hack","1j_PH_Pte-De-La-Galise_thumb.jpg",130,86,1);thumbnails[757625]=new thumbnail(757625,"58577","Joint 1st - The Sculptors Window ~ Bruges - Author: Phil Hack","1j_PH_The sculptor's window PH_thumb.jpg",130,173,1);thumbnails[757627]=new thumbnail(757627,"58577","Joint 1st - Tuscan Dawn - Val d'Orcia - Author: Phil Hack","1j_PH_TuscanDawn_thumb.jpg",130,67,1);thumbnails[757630]=new thumbnail(757630,"58577","3rd Place - Author: Ian Gold","3_IG_Lech 01_thumb.jpg",130,91,1);thumbnails[757644]=new thumbnail(757644,"58577","Untitled","3_IG_Lech-03_thumb.jpg",130,94,1);thumbnails[757640]=new thumbnail(757640,"58577","3rd Place - Author: Ian Gold","3_IG_Lech-02_thumb.jpg",130,181,1);thumbnails[603441]=new thumbnail(603441,"46343","1st Place - Calm after the storm - Author Ian Gold","1IG_CalmAfterStorm_thumb.jpg",130,87,1);thumbnails[603473]=new thumbnail(603473,"46343","2nd Place - Huddersfield Station - Author Peter Bray","2PBHudds_Station_thumb.jpg",130,87,1);thumbnails[603478]=new thumbnail(603478,"46343","3rd Place - Suzuki Rally Car - Author Allan Ellis","3AE_suzukiRally_thumb.jpg",130,87,1);thumbnails[1565051]=new thumbnail(1565051,"107064","Holme Moss","ab_Holme-Moss_thumb.jpg",130,86,1);thumbnails[1565055]=new thumbnail(1565055,"107064","Wessenden Head Moor","AB_Wessenden-Head-Moor_thumb.jpg",130,91,1);thumbnails[1565057]=new thumbnail(1565057,"107064","Park Blossom","ChrisHolmside-Park-Blossom_thumb.jpg",130,91,1);thumbnails[1565060]=new thumbnail(1565060,"107064","Bilberry Morning","ES_Bilberry-Morning_thumb.jpg",130,90,1);thumbnails[1565061]=new thumbnail(1565061,"107064","Winscar Farm","ES_Winscar-Farm_thumb.jpg",130,93,1);thumbnails[1565066]=new thumbnail(1565066,"107064","Magdale","GF_magdale_thumb.jpg",130,91,1);thumbnails[1565094]=new thumbnail(1565094,"107064","Over Digley","GF_over-digley_thumb.jpg",130,87,1);thumbnails[1565132]=new thumbnail(1565132,"107064","Andrews","LH_Andrews_thumb.jpg",130,91,1);thumbnails[1565167]=new thumbnail(1565167,"107064","Meltham & Nab","LH_Meltham&Nab_thumb.jpg",130,87,1);thumbnails[1565201]=new thumbnail(1565201,"107064","Rotcher","LH_Rotcher_thumb.jpg",130,91,1);thumbnails[1565231]=new thumbnail(1565231,"107064","Wooldale Arms","PH_Wooldale_Arms_thumb.jpg",130,91,1);thumbnails[1565268]=new thumbnail(1565268,"107064","Serendipity - Honley","VC_Serendipity-Honley_thumb.jpg",130,88,1);thumbnails[185131]=new thumbnail(185131,"17055","Untitled","Tree+dandelions_thumb.jpg",130,201,1);thumbnails[185134]=new thumbnail(185134,"17055","Wells at Cartworth","wells_thumb.jpg",130,92,1);thumbnails[185520]=new thumbnail(185520,"17055","Charlie","GCharlie_thumb.jpg",130,104,1);thumbnails[185555]=new thumbnail(185555,"17055","Dales with attitude","Gdales_with_attitude_thumb.jpg",130,57,1);thumbnails[737949]=new thumbnail(737949,"17055","Untitled","Cliffe 42_thumb.jpg",130,85,1);thumbnails[531833]=new thumbnail(531833,"41229","1st Place: Woolpack.Author - Peter Jackson","1woolpack_thumb.jpg",130,84,1);thumbnails[531835]=new thumbnail(531835,"41229","2nd Place: Combined combine.Author - Phil Hack","combined_combine_thumb.jpg",130,83,1);thumbnails[531836]=new thumbnail(531836,"41229","3rd Place: Feeding Time at Mr Gills Farm.Author - Les Heywood","3feeding_time_mr-gills_farm_thumb.jpg",130,75,1);var galleries=new Object();galleries[245223]=new gallery(245223,"4079146,4079144,4079142","3rd Open Digital Competition<br>(March 2009)","gallery",[4079142,4079144,4079146]);galleries[131484]=new gallery(131484,"1956859,1956858,1956856","2007 Balanced Panel 1st Place","gallery",[1956856,1956858,1956859]);galleries[131485]=new gallery(131485,"1956877,1956866,1956861","2007 Balanced Panel 2nd Place","gallery",[1956861,1956866,1956877]);galleries[203770]=new gallery(203770,"3340001","2nd Open Print<br>(Jan 2009)","gallery",[3339988,3339992,3340001]);galleries[137063]=new gallery(137063,"2050792,2050789,2050786","2007 Balanced Panel 3rd Place","gallery",[2050792,2050786,2050789]);galleries[203762]=new gallery(203762,"3339905,3339875,3339775","Architecture<br>(Dec 2008)","gallery",[3339775,3339875,3339905]);galleries[203771]=new gallery(203771,"3340070,3340068,3340066,3340062","Monochrome<br>(Dec 2008)","gallery",[3340062,3340066,3340068,3340070]);galleries[191450]=new gallery(191450,"3120738,3120734","1st Open Print<br>(Nov 2008)","gallery",[3120734,3120738,3120745]);galleries[107072]=new gallery(107072,"1565873,1565872,1565871","2007 1st Open Competition","gallery",[1565871,1565872,1565873]);galleries[180350]=new gallery(180350,"2912260,2912157,2912146,2912104","Abstract & Colour<br>(Oct 2008)","gallery",[2912104,2912157,2912146,2912260]);galleries[16968]=new gallery(16968,"551508,551506,551505,551503,551502,551501,551499,551497,551495,551491","Calendar Images 2007","gallery",[549054,551489,551491,551495,551497,551499,551501,551502,551503,551505,551506,551508]);galleries[304857]=new gallery(304857,"5399143,5399104,5399084","Open Print 1 2009/10","gallery",[5399084,5399143,5399104]);galleries[304618]=new gallery(304618,"5396809,5396783,5396770","Portrait 2009/10","gallery",[5396770,5396809,5396783]);galleries[277611]=new gallery(277611,"4868276,4868269,4868261","Special Subject<br>(Oct 2009)","gallery",[4868261,4868269,4868276]);galleries[322208]=new gallery(322208,"5688706,5688633,5688615","Natural History 2009/10","gallery",[5688615,5688633,5688706]);galleries[304652]=new gallery(304652,"5396884,5396865,5396854","Open Digital 2010","gallery",[5396854,5396865,5396884]);galleries[41217]=new gallery(41217,"531817,531816,531814","1st Open Competition Sept 06","gallery",[531814,531816,531817]);galleries[107069]=new gallery(107069,"1565834,1565812,1565810,1565780","2007 Portrait Competition","gallery",[1565780,1565810,1565812,1565834]);galleries[185505]=new gallery(185505,"3013991,3013980,3013975","Natural History<br>(Oct 2008)","gallery",[3013975,3013980,3013991]);galleries[42437]=new gallery(42437,"549002,548992,548984","2nd Open Competition Oct 06","gallery",[548984,548992,549002]);galleries[48640]=new gallery(48640,"637404,637401,637399","3rd Open Competition Nov 06","gallery",[637399,637401,637404]);galleries[53962]=new gallery(53962,"702264,702263,702262","4th Open Competition Jan 07","gallery",[702262,702263,702264]);galleries[58576]=new gallery(58576,"757577,757570,757556","5th Open Competition Feb 07","gallery",[757556,757570,757577]);galleries[58577]=new gallery(58577,"757644,757640,757630,757627,757625,757622,757613,757611,757605","A3 Print Competition","gallery",[757605,757611,757613,757622,757625,757627,757630,757644,757640]);galleries[46343]=new gallery(46343,"603478,603473,603441","Open Slide Folio","gallery",[603441,603473,603478]);galleries[107064]=new gallery(107064,"1565268,1565231,1565201,1565167,1565132,1565094,1565066,1565061,1565060,1565057","2008 Calender Images","gallery",[1565051,1565055,1565057,1565060,1565061,1565066,1565094,1565132,1565167,1565201,1565231,1565268]);galleries[17055]=new gallery(17055,"737949,185555,185520,185134,185131","Members Images","gallery",[185131,185134,185520,185555,737949]);galleries[107054]=new gallery(107054,"757644,757640,757630,757627,757625,757622,757613,757611,757605,757577","Season 2006-2007","gallery",[]);galleries[180347]=new gallery(180347,"2050792,2050789,2050786,1956877,1956866,1956861,1956859,1956858,1956856,1565873","Season 2007-2008","gallery",[]);galleries[277609]=new gallery(277609,"3340070,3340068,3340066,3340062,3340001,3339905,3339875,3339775,3120738,3120734,3013991,3013980,3013975,2912260,2912157,2912146,2912104","Season 2008-2009","gallery",[]);galleries[41229]=new gallery(41229,"531836,531835,531833","Special Subject - Agriculture","gallery",[531833,531835,531836]);var imageSets=new Object();imageSets[1]="3340062,3339992,1565268,1565231,1565201,1565167,1565132,1565094,1565066,1565061,1565060,1565057,1565055,1565051,737949,603473,551508,551506,551505,551503,551502,551501,551499,551497,551495,551491,551489,549054,531816";imageSets[2]="3340070,3340068,3340066,3340062,3340001,3339905,3339875,3339775,3120738,3120734,3013991,3013980,3013975,2912260,2912157,2912146,2912104";imageSets[3]="5688706,5688633,5688615,5399143,5399104,5399084,5396884,5396865,5396854,5396809,5396783,5396770,4868276,4868269,4868261,4079146,4079144,4079142,3340070,3340068,3340066,3340062,3340001,3339992,3339988,3339905,3339875,3339775,3120745,3120738,3120734,3013991,3013980,3013975,2912260,2912157,2912146,2912104,2050792,2050789,2050786,1956877,1956866,1956861,1956859,1956858,1956856,1565873,1565872,1565871";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/philhack/images";break}switch(a){case 1:b="http://www1.clikpic.com/philhack/images";break}switch(a){case 2:b="http://admin.clikpic.com/philhack/images";break}switch(a){case 24:b="http://tpc15/clikpic/philhack/images";break}switch(a){case 4:b="http://www.clikchurch.com/philhack/images";break}switch(a){case 5:b="http://www2.clikpic.com/philhack/images";break}switch(a){case 22:b="http://tpc5/clikpic/philhack/images";break}switch(a){case 23:b="http://tpc10/clikpic/philhack/images";break}switch(a){case 25:b="http://tpc16/clikpic/philhack/images";break}switch(a){case 15:b="http://www3.clikpic.com/philhack/images";break}switch(a){case 18:b="http://www4.clikpic.com/philhack/images";break}switch(a){case 19:b="http://www5.clikpic.com/philhack/images";break}switch(a){case 31:b="http://www7.clikpic.com/philhack/images";break}switch(a){case 32:b="http://admin2.clikpic.com/philhack/images";break}switch(a){case 33:b="http://www8.clikpic.com/philhack/images";break}switch(a){case 34:b="http://www9.clikpic.com/philhack/images";break}switch(a){case 35:b="http://admin3.clikpic.com/philhack/images";break}switch(a){case 37:b="http://admin4.clikpic.com/philhack/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="Holmfirth 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;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+'")'})}}};