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[5485715]=new thumbnail(5485715,"262898","Pelican Agape","Pelican_agape-A_thumb.jpg",100,75,15);thumbnails[5485717]=new thumbnail(5485717,"262898","Chair Lift","ChairLift_thumb.jpg",100,71,15);thumbnails[5485720]=new thumbnail(5485720,"262898","Skegness Pier","Skeg_Pier_thumb.jpg",100,62,15);thumbnails[5485724]=new thumbnail(5485724,"262898","Pink Rose","Rose_thumb.jpg",100,70,15);thumbnails[5485728]=new thumbnail(5485728,"262898","Cromer Crab","Cromer_Crab_thumb.jpg",100,141,15);thumbnails[5485732]=new thumbnail(5485732,"262898","Buttermere","Buttermere_B53FBE67-1D09-001F-99D0EBB3B66FC1AC_thumb.jpg",100,71,15);thumbnails[4422411]=new thumbnail(4422411,"258955","Map of RPS venue","Map_of_RPS_venue_thumb.jpg",100,65,15);thumbnails[4429210]=new thumbnail(4429210,"259181","Kat","Kat_thumb.jpg",100,63,15);thumbnails[4436855]=new thumbnail(4436855,"259533","Bryce at dawn","Bryce_at_dawn_thumb.jpg",100,66,15);thumbnails[4436905]=new thumbnail(4436905,"259533","Alpine Panorama","Alpine_Panorama_thumb.jpg",100,46,15);thumbnails[4436952]=new thumbnail(4436952,"259536","Plum Pudding Motorcycle","4_Plum_Pudding_Motorcycle_thumb.jpg",100,61,15);thumbnails[4437163]=new thumbnail(4437163,"259541","Fungus Amongus","Fungus_Amongus_thumb.jpg",100,28,15);thumbnails[4443191]=new thumbnail(4443191,"259787","C2 Canoeist","C2Canoeist_thumb.jpg",100,75,15);thumbnails[4443209]=new thumbnail(4443209,"259787","Dusty follow through","DUSTY_FOLLOW_THROUGH_thumb.jpg",100,76,15);thumbnails[4443479]=new thumbnail(4443479,"259539","Granma's shadow","Granmas_shadow12_thumb.jpg",100,133,15);thumbnails[4443492]=new thumbnail(4443492,"259539","Wind swept but happy","wind_swept_but_happy1_thumb.jpg",100,169,15);thumbnails[4922033]=new thumbnail(4922033,"280269","7-Spot Ladybird Home 230609 006 (Roy Stenson) ","7-Spot_Ladybird_Home_230609_006_Roy_Stenson__thumb.jpg",100,71,15);thumbnails[4922070]=new thumbnail(4922070,"280275","Buttermere 2","Buttermere_2_thumb.jpg",100,67,15);thumbnails[5114306]=new thumbnail(5114306,"253547","Thistle","test_thumb.jpg",100,77,15);thumbnails[5160874]=new thumbnail(5160874,"291607","architecture","architectureweb_thumb.jpg",100,55,15);thumbnails[5160912]=new thumbnail(5160912,"253547","flower","BW-flower_thumb.jpg",100,66,15);thumbnails[5160928]=new thumbnail(5160928,"291614","Becki J","Becki-J-2_thumb.jpg",100,67,15);thumbnails[5381006]=new thumbnail(5381006,"303444","Bounty Island","Bounty_Island_thumb.jpg",100,75,15);thumbnails[5386252]=new thumbnail(5386252,"303900","Canal View","Canal_View_thumb.jpg",100,83,15);thumbnails[5412561]=new thumbnail(5412561,"305827","candelnana","candelnana_thumb.jpg",100,75,15);thumbnails[5448443]=new thumbnail(5448443,"308084","Ednsor Skies, Devonshire Estate, Bakewell","Ednsor_Skies_Devonshire_Estate_Bakewell_thumb.jpg",100,90,15);thumbnails[5448452]=new thumbnail(5448452,"308085","Attenborough","Attenborough_thumb.jpg",100,66,15);thumbnails[5448472]=new thumbnail(5448472,"308083","Busy Brighton","Busy_Brighton_thumb.jpg",100,43,15);thumbnails[4299344]=new thumbnail(4299344,"253547","Carving Hard","DSC_0047_thumb.jpg",130,87,15);thumbnails[4429211]=new thumbnail(4429211,"259181","Millenium Bridge - London","Millenium_Bridge_-_London_thumb.jpg",100,71,15);thumbnails[4436856]=new thumbnail(4436856,"259533","Snow near Mappleton","Snow_near_Mappleton_thumb.jpg",100,67,15);thumbnails[4436906]=new thumbnail(4436906,"259533","Dawn Light Bryce","Dawn_Light_Bryce_thumb.jpg",100,66,15);thumbnails[4436953]=new thumbnail(4436953,"259536","Heron Lift-off","4_Heron--lift-off_thumb.jpg",100,67,15);thumbnails[4437164]=new thumbnail(4437164,"259541","Malta Bus Panel","Malta_Bus__Panel_thumb.jpg",100,75,15);thumbnails[4443192]=new thumbnail(4443192,"259787","Dinner Time","DINNER_TIME_by_Margaret_Johnson_thumb.jpg",100,45,15);thumbnails[4443210]=new thumbnail(4443210,"259787","Duthie park blizzard","duthie_park_blizzard_thumb.jpg",100,58,15);thumbnails[4521468]=new thumbnail(4521468,"262898","Seed Head","Seed_Head_1_thumb.jpg",100,63,15);thumbnails[4922034]=new thumbnail(4922034,"280269","Barn Owl Middleton Hall, 310508 058 (Roy Stenson) ","Barn_Owl_Middleton_Hall_310508_058_Roy_Stenson__thumb.jpg",100,71,15);thumbnails[4922071]=new thumbnail(4922071,"280275","Buttermere 3","Buttermere_3_thumb.jpg",100,67,15);thumbnails[5160875]=new thumbnail(5160875,"291607","autumn","autumnweb_thumb.jpg",100,67,15);thumbnails[5160914]=new thumbnail(5160914,"253547","Grafitti","Grafitti_thumb.jpg",100,22,15);thumbnails[5160929]=new thumbnail(5160929,"291614","Dani G","Dani-G-2_thumb.jpg",100,150,15);thumbnails[5160945]=new thumbnail(5160945,"291614","Laura Jo","Laura-Jo-2_thumb.jpg",100,67,15);thumbnails[5161095]=new thumbnail(5161095,"291621","Female Mallard","Female-Mallard_thumb.jpg",100,56,15);thumbnails[5381007]=new thumbnail(5381007,"303444","The Backs & Cows","Cambridge_-_The_Backs__Cows__thumb.jpg",100,75,15);thumbnails[5386253]=new thumbnail(5386253,"303900","Newark Snow Storm","Newark_Snow_Storm_thumb.jpg",100,150,15);thumbnails[5412562]=new thumbnail(5412562,"305827","last of the summer wine","last_of_the_summer_wine_thumb.jpg",100,65,15);thumbnails[5448444]=new thumbnail(5448444,"308084","Reflections of Beijing","Reflections_of_Beijing_thumb.jpg",100,58,15);thumbnails[5448453]=new thumbnail(5448453,"308085","Buttermere","Buttermere_8B771E42-1D09-001F-996B849F6B1ECD0C_thumb.jpg",100,66,15);thumbnails[5448473]=new thumbnail(5448473,"308083","Eastern Water Dragon","Eastern_Water_Dragon_thumb.jpg",100,76,15);thumbnails[4299345]=new thumbnail(4299345,"253547","Airtime","DSC_0048_thumb.jpg",130,100,15);thumbnails[4429212]=new thumbnail(4429212,"259181","Shane (Shakey) Byrne","Shane_Shakey_Byrne_thumb.jpg",100,59,15);thumbnails[4436857]=new thumbnail(4436857,"259533","Tranquility","Tranquility_thumb.jpg",100,51,15);thumbnails[4436954]=new thumbnail(4436954,"259536","Pure Exhilaration","5_Pure_Exhileration_thumb.jpg",100,45,15);thumbnails[4437165]=new thumbnail(4437165,"259541","Reedbuntings","Reedbuntings_thumb.jpg",100,30,15);thumbnails[4443193]=new thumbnail(4443193,"259787","Dust Busters","Dust_Busters_3_thumb.jpg",100,75,15);thumbnails[4443211]=new thumbnail(4443211,"259787","Hands off my ball","HANDS_OFF_MY_BALL_thumb.jpg",100,79,15);thumbnails[4922035]=new thumbnail(4922035,"280269","Bumble Bee Bombus Soroeensis Acorn Farm 050709 062 (Roy Stenson) ","Bumble_Bee_Bombus_Soroeensis_Acorn_Farm_050709_062_Roy_Stenson__thumb.jpg",100,71,15);thumbnails[4922072]=new thumbnail(4922072,"280275","Buttermere 4","Buttermere_4_thumb.jpg",100,150,15);thumbnails[5160876]=new thumbnail(5160876,"291607","ello gorgeous","ello-gorgeousweb_thumb.jpg",100,79,15);thumbnails[5161096]=new thumbnail(5161096,"291621","Green Hairstreak","Green-Hairstreak_thumb.jpg",100,71,15);thumbnails[5381008]=new thumbnail(5381008,"303444","Menorca Harbour Night 3","Menorca_Harbour_Night_3_thumb.jpg",100,75,15);thumbnails[5386254]=new thumbnail(5386254,"303900","Newark Street","Newark_Street_thumb.jpg",100,67,15);thumbnails[5412563]=new thumbnail(5412563,"305827","small blue on fleabane ","small_blue_on_fleabane__thumb.jpg",100,142,15);thumbnails[5448445]=new thumbnail(5448445,"308084","The road to Esthwaite Water, Cumbria","The_road_to_Esthwaite_Water_Cumbria_thumb.jpg",100,133,15);thumbnails[5448454]=new thumbnail(5448454,"308085","Goth","Goth_thumb.jpg",100,146,15);thumbnails[5448474]=new thumbnail(5448474,"308083","lamb","lamb_thumb.jpg",100,133,15);thumbnails[4429213]=new thumbnail(4429213,"259533","Sunrise on a misty morn","Sunrise_on_a_misty_morn_thumb.jpg",100,52,15);thumbnails[4436858]=new thumbnail(4436858,"259533","Utah Farm","Utah_Farm_thumb.jpg",100,66,15);thumbnails[4436955]=new thumbnail(4436955,"259536","Frog Gone","5_Frog_Gone_thumb.jpg",100,42,15);thumbnails[4437166]=new thumbnail(4437166,"259541","Shane Shakey Byrne","Shane_Shakey_Byrne1_thumb.jpg",100,53,15);thumbnails[4443194]=new thumbnail(4443194,"259787","Guillemott with sand eel","Guillemott_with_sand_eel_thumb.jpg",100,140,15);thumbnails[4443212]=new thumbnail(4443212,"259787","Quad building Derby","Quad_building_Derby_thumb.jpg",100,70,15);thumbnails[4922036]=new thumbnail(4922036,"280269","Caddis Fly Odontocerum Albicorne Acorn Farm 050709 024 (A) (Roy Stenson) ","Caddis_Fly_Odontocerum_Albicorne_Acorn_Farm_050709_024_A_Roy_Stenson__thumb.jpg",100,141,15);thumbnails[4922073]=new thumbnail(4922073,"280275","Buttermere 5","Buttermere_5_thumb.jpg",100,67,15);thumbnails[5160877]=new thumbnail(5160877,"291607","gbr","gbrweb_thumb.jpg",100,67,15);thumbnails[5160930]=new thumbnail(5160930,"291614","Pepsi","Pepsi-1-2_thumb.jpg",100,62,15);thumbnails[5160946]=new thumbnail(5160946,"291614","Too late!!","Too-late-2_thumb.jpg",100,67,15);thumbnails[5161097]=new thumbnail(5161097,"291621","Lakeland door","Lakeland-door-IR-BW_thumb.jpg",100,55,15);thumbnails[5381009]=new thumbnail(5381009,"303444","The Colour Purple","The_Colour_Purple_thumb.jpg",100,133,15);thumbnails[5386255]=new thumbnail(5386255,"303900","Nott Post Box","Nott_Post_Box_thumb.jpg",100,133,15);thumbnails[5412564]=new thumbnail(5412564,"305827","totally peppered","totally_peppered_thumb.jpg",100,100,15);thumbnails[5448446]=new thumbnail(5448446,"308084","The shadowed wall ~ Beomeo Temple, South Korea","The_shadowed_wall__Beomeo_Temple_South_Korea_thumb.jpg",100,75,15);thumbnails[5448455]=new thumbnail(5448455,"308085","HolyTrinity","HolyTrinity_thumb.jpg",100,63,15);thumbnails[5448475]=new thumbnail(5448475,"308083","round the bend","round_the_bend_thumb.jpg",100,133,15);thumbnails[4429214]=new thumbnail(4429214,"259181","The Eye at night","The_Eye_at_night_thumb.jpg",100,167,15);thumbnails[4436859]=new thumbnail(4436859,"259533","winter sun","winter_sun_1_thumb.jpg",100,67,15);thumbnails[4436956]=new thumbnail(4436956,"259536","Fluid Motion","Fluid_Motion_thumb.jpg",100,69,15);thumbnails[4437167]=new thumbnail(4437167,"259541","You lookin' at me","Yoy_lookin_at_me_thumb.jpg",100,47,15);thumbnails[4443195]=new thumbnail(4443195,"259787","Malachite Kingfisher","Malachite_Kingfisher_thumb.jpg",100,75,15);thumbnails[4443213]=new thumbnail(4443213,"259787","Whats it all about","whats_it_all_about_thumb.jpg",100,67,15);thumbnails[4922037]=new thumbnail(4922037,"280269","Kestrel Middleton Hall, Tamworth 310508 050 (Roy Stenson) ","Kestrel_Middleton_Hall_Tamworth_310508_050_Roy_Stenson__thumb.jpg",100,71,15);thumbnails[4922074]=new thumbnail(4922074,"280275","Buttermere","Buttermere_thumb.jpg",100,67,15);thumbnails[5160878]=new thumbnail(5160878,"291607","the stare","the-stareweb_thumb.jpg",100,67,15);thumbnails[5161098]=new thumbnail(5161098,"291621","Pale Tussock Moth Caterpillar","Pale-Tussock-Moth-Caterpillar_thumb.jpg",100,61,15);thumbnails[5381010]=new thumbnail(5381010,"303444","Two Roses","Two_Roses_thumb.jpg",100,54,15);thumbnails[5386256]=new thumbnail(5386256,"303900","The Council House","The_Council_House_thumb.jpg",100,100,15);thumbnails[5412565]=new thumbnail(5412565,"305827","water rail","water_rail_thumb.jpg",100,38,15);thumbnails[5448447]=new thumbnail(5448447,"308084","Waterfalls of Voss County, Norway","Waterfalls_of_Voss_County_Norway_thumb.jpg",100,133,15);thumbnails[5448456]=new thumbnail(5448456,"308085","Newlands","Newlands_thumb.jpg",100,66,15);thumbnails[5448476]=new thumbnail(5448476,"308083","Swans Heart","Swans_Heart_thumb.jpg",100,100,15);thumbnails[5386257]=new thumbnail(5386257,"303900","Winter Dawn","Winter_Dawn_thumb.jpg",100,39,15);thumbnails[5448459]=new thumbnail(5448459,"308085","POTower","POTower_thumb.jpg",100,150,15);thumbnails[5448479]=new thumbnail(5448479,"308083","Sydney Harbour Bridge","Sydney_Harbour_Bridge_thumb.jpg",100,76,15);thumbnails[5161099]=new thumbnail(5161099,"291621","Storm over Newlands Pass","Storm-over-Newlands-Pass_thumb.jpg",100,66,15);thumbnails[5448460]=new thumbnail(5448460,"308085","Rocamador","Rocamador_thumb.jpg",100,117,15);thumbnails[5448480]=new thumbnail(5448480,"308083","Sydney Opea House","Sydney_Opea_House_thumb.jpg",100,76,15);thumbnails[5448461]=new thumbnail(5448461,"308085","TreeHedge","TreeHedge_thumb.jpg",100,55,15);thumbnails[5448481]=new thumbnail(5448481,"308083","The Scream","The_Scream_thumb.jpg",100,150,15);thumbnails[5448462]=new thumbnail(5448462,"308085","TrentBridge","TrentBridge_thumb.jpg",100,66,15);thumbnails[4299140]=new thumbnail(4299140,"258955","Venue Location","Tollerton_Location_picture_thumb.jpg",130,140,15);var galleries=new Object();galleries[259539]=new gallery(259539,"4443492,4443479","2008/09 Bi Monthly Comp - Round 1 - People","gallery",[4443479,4443492]);galleries[259533]=new gallery(259533,"4436906,4436905,4436859,4436858,4436857,4429213","2008/09 Bi Monthly Comp - Round 2 - Landscapes","gallery",[4436855,4436905,4436856,4436906,4436857,4429213,4436858,4436859]);galleries[259536]=new gallery(259536,"4436956,4436955,4436954,4436953,4436952","2008/09 Bi Monthly Comp - Round 3 - Motion","gallery",[4436952,4436953,4436954,4436955,4436956]);galleries[259541]=new gallery(259541,"4437167,4437166,4437165,4437164,4437163","2008/09 Panel Competition","gallery",[4437163,4437164,4437165,4437166,4437167]);galleries[304289]=new gallery(304289,"","2009/10 Bi-monthly comp - Round 1 - 'Reflections'","gallery",[]);galleries[259787]=new gallery(259787,"4443213,4443212,4443211,4443210,4443209,4443195,4443194,4443193,4443192,4443191","6th Rushcliffe Open Digital Projected Image","gallery",[4443191,4443209,4443192,4443210,4443193,4443211,4443194,4443212,4443195,4443213]);galleries[305827]=new gallery(305827,"5412565,5412564,5412563,5412562,5412561","Alan Hurst","gallery",[5412561,5412562,5412563,5412564,5412565]);galleries[259181]=new gallery(259181,"4429214,4429212,4429211,4429210","Anthony Clay","gallery",[4429210,4429211,4429212,4429214]);galleries[253547]=new gallery(253547,"5160914,5160912,5114306,4299344","Chris McMurray","gallery",[5114306,5160912,4299344,5160914,4299345]);galleries[258955]=new gallery(258955,"4422411,4299140","Club Venue Images","gallery",[4422411,4299140]);galleries[291607]=new gallery(291607,"5160878,5160877,5160876,5160875,5160874","Gillian Young","gallery",[5160874,5160875,5160876,5160877,5160878]);galleries[280275]=new gallery(280275,"4922074,4922073,4922072,4922071,4922070","Irene Pizura","gallery",[4922070,4922071,4922072,4922073,4922074]);galleries[308083]=new gallery(308083,"5448481,5448480,5448479,5448476,5448475,5448474,5448473,5448472","James McDonald","gallery",[5448472,5448473,5448474,5448475,5448476,5448479,5448480,5448481]);galleries[262898]=new gallery(262898,"5485732,5485728,5485720,5485717,5485715,4521468","Jeremy Richings","gallery",[5485715,5485717,5485720,5485724,5485728,5485732,4521468]);galleries[303444]=new gallery(303444,"5381010","John Anfield","gallery",[5381006,5381007,5381008,5381009,5381010]);galleries[303900]=new gallery(303900,"5386257,5386256,5386255,5386254,5386253,5386252","Malcolm Sales","gallery",[5386252,5386253,5386254,5386255,5386256,5386257]);galleries[291621]=new gallery(291621,"5161099,5161098,5161097,5161096,5161095","Robert Brown","gallery",[5161095,5161096,5161097,5161098,5161099]);galleries[308084]=new gallery(308084,"5448447,5448446,5448445,5448444,5448443","Roger Penson","gallery",[5448443,5448444,5448445,5448446,5448447]);galleries[280269]=new gallery(280269,"4922037,4922036,4922035,4922034,4922033","Roy Stenson","gallery",[4922033,4922034,4922035,4922036,4922037]);galleries[308085]=new gallery(308085,"5448462,5448461,5448460,5448459,5448456,5448455,5448454,5448453,5448452","Steve Gee","gallery",[5448452,5448453,5448454,5448455,5448456,5448459,5448460,5448461,5448462]);galleries[291614]=new gallery(291614,"5160946,5160945,5160930,5160929,5160928","Terry Draper","gallery",[5160928,5160929,5160945,5160930,5160946]);galleries[252060]=new gallery(252060,"5485732,5485728,5485720,5485717,5485715,5448481,5448480,5448479,5448476,5448475,5448474,5448473,5448472,5448462,5448461,5448460,5448459,5448456,5448455,5448454,5448453,5448452,5448447,5448446,5448445,5448444,5448443,5412565,5412564,5412563,5412562,5412561,5386257,5386256,5386255,5386254,5386253,5386252,5381010,5161099,5161098,5161097,5161096,5161095,5160946,5160945,5160930,5160929,5160928,5160914,5160912,5160878,5160877,5160876,5160875,5160874,5114306,4521468,4299344","Members Galleries","gallery",[]);galleries[252061]=new gallery(252061,"4443492,4443479,4443213,4443212,4443211,4443210,4443209,4443195,4443194,4443193,4443192,4443191,4437167,4437166,4437165,4437164,4437163,4436956,4436955,4436954,4436953,4436952,4436906,4436905,4436859,4436858,4436857,4429213","Club Competition Images","gallery",[]);var imageSets=new Object();imageSets[1]="5485732,5485728,5485720,5485717,5485715,5448481,5448480,5448479,5448476,5448475,5448474,5448473,5448472,5448462,5448461,5448460,5448459,5448456,5448455,5448454,5448453,5448452,5448447,5448446,5448445,5448444,5448443,5412565,5412564,5412563,5412562,5412561,5386257,5386256,5386255,5386254,5386253,5386252,5381010,5161099,5161098,5161097,5161096,5161095,5160946,5160945,5160930,5160929,5160928,5160914,5160912,5160878,5160877,5160876,5160875,5160874,5114306,4922074,4922073,4922072,4922071,4922070,4922037,4922036,4922035,4922034,4922033,4521468,4443492,4443479,4443213,4443212,4443211,4443210,4443209,4443195,4443194,4443193,4443192,4443191,4437167,4437166,4437165,4437164,4437163,4436956,4436955,4436954,4436953,4436952,4436906,4436905,4436859,4436858,4436857,4429213,4299344";imageSets[2]="5485732,5485728,5485720,5485717,5485715,5448481,5448480,5448479,5448476,5448475,5448474,5448473,5448472,5448462,5448461,5448460,5448459,5448456,5448455,5448454,5448453,5448452,5448447,5448446,5448445,5448444,5448443,5412565,5412564,5412563,5412562,5412561,5386257,5386256,5386255,5386254,5386253,5386252,5381010,5161099,5161098,5161097,5161096,5161095,5160946,5160945,5160930,5160929,5160928,5160914,5160912,5160878,5160877,5160876,5160875,5160874,5114306,4521468,4443492,4443479,4443213,4443212,4443211,4443210,4443209,4443195,4443194,4443193,4443192,4443191,4437167,4437166,4437165,4437164,4437163,4436956,4436955,4436954,4436953,4436952,4436906,4436905,4436859,4436858,4436857,4429213,4299344";imageSets[3]="5485732,5485728,5485724,5485720,5485717,5485715,5448481,5448480,5448479,5448476,5448475,5448474,5448473,5448472,5448462,5448461,5448460,5448459,5448456,5448455,5448454,5448453,5448452,5448447,5448446,5448445,5448444,5448443,5412565,5412564,5412563,5412562,5412561,5386257,5386256,5386255,5386254,5386253,5386252,5381010,5381009,5381008,5381007,5381006,5161099,5161098,5161097,5161096,5161095,5160946";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/rushcliffeps/images";break}switch(a){case 1:b="http://www1.clikpic.com/rushcliffeps/images";break}switch(a){case 2:b="http://admin.clikpic.com/rushcliffeps/images";break}switch(a){case 24:b="http://tpc15/clikpic/rushcliffeps/images";break}switch(a){case 4:b="http://www.clikchurch.com/rushcliffeps/images";break}switch(a){case 5:b="http://www2.clikpic.com/rushcliffeps/images";break}switch(a){case 22:b="http://tpc5/clikpic/rushcliffeps/images";break}switch(a){case 23:b="http://tpc10/clikpic/rushcliffeps/images";break}switch(a){case 25:b="http://tpc16/clikpic/rushcliffeps/images";break}switch(a){case 15:b="http://www3.clikpic.com/rushcliffeps/images";break}switch(a){case 18:b="http://www4.clikpic.com/rushcliffeps/images";break}switch(a){case 19:b="http://www5.clikpic.com/rushcliffeps/images";break}switch(a){case 31:b="http://www7.clikpic.com/rushcliffeps/images";break}switch(a){case 32:b="http://admin2.clikpic.com/rushcliffeps/images";break}switch(a){case 33:b="http://www8.clikpic.com/rushcliffeps/images";break}switch(a){case 34:b="http://www9.clikpic.com/rushcliffeps/images";break}switch(a){case 35:b="http://admin3.clikpic.com/rushcliffeps/images";break}switch(a){case 37:b="http://admin4.clikpic.com/rushcliffeps/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Rushcliffe Photographic Society";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<100){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+'")'})}}};