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[5364577]=new thumbnail(5364577,"162172","Partytime","P1130155_thumb.JPG",130,125,5);thumbnails[5364994]=new thumbnail(5364994,"162172","Dance Studio","P1130171_thumb.JPG",130,92,5);thumbnails[5365028]=new thumbnail(5365028,"162172","Let it all Hang Out","P3100056_thumb.JPG",130,134,5);thumbnails[5369112]=new thumbnail(5369112,"162172","Born again","P1140190_thumb.JPG",130,90,5);thumbnails[5355288]=new thumbnail(5355288,"162172","Show Ming Lu","P3100051_thumb.JPG",130,167,5);thumbnails[5341267]=new thumbnail(5341267,"162172","high Energy","PB170700_thumb.JPG",130,180,5);thumbnails[5355285]=new thumbnail(5355285,"162172","Hang Loose","jags_fr_25x25_2_thumb.JPG",130,129,5);thumbnails[5342527]=new thumbnail(5342527,"162172","Ceroc","web_red_blue_ink_dancers1_thumb.jpg",130,216,5);thumbnails[5342589]=new thumbnail(5342589,"162172","Flamenco","web_flamenco_batik_thumb.jpg",130,86,5);thumbnails[2619426]=new thumbnail(2619426,"162172","Ballet Movement","ballet movement oil on foamboard 84x60 500px_thumb.jpg",130,185,5);thumbnails[5355287]=new thumbnail(5355287,"162172","Flying","jags_fr_41x33_thumb.JPG",130,101,5);thumbnails[2619436]=new thumbnail(2619436,"162172","Chorus","Litho dance 48x35 500px_thumb.jpg",130,93,5);thumbnails[5342505]=new thumbnail(5342505,"162172","Friday Night","web_dance_yelow_green_ink_thumb.jpg",130,89,5);thumbnails[5342796]=new thumbnail(5342796,"162172","First Dance","web_couples_dance_yellows_thumb.jpg",130,173,5);thumbnails[5342572]=new thumbnail(5342572,"162172","Line Dance","PB110730_thumb.JPG",130,61,5);thumbnails[2682029]=new thumbnail(2682029,"162172","Resting","Cassie seated oil on canvas roll 58x45 500px_thumb.jpg",130,94,5);thumbnails[5342593]=new thumbnail(5342593,"162172","Practice Session","web_couples_yellows_dance_thumb.jpg",130,189,5);thumbnails[2561534]=new thumbnail(2561534,"162172","Waltz","dance waltz collage5 500px_thumb.jpg",130,176,5);thumbnails[5341268]=new thumbnail(5341268,"162172","Tip-toe through the tulips","PB170702_thumb.JPG",130,78,5);thumbnails[5342585]=new thumbnail(5342585,"162172","Have Fun Go Mad","PB110733_thumb.JPG",130,119,5);thumbnails[5342522]=new thumbnail(5342522,"162172","The Trip","PB070708_thumb.JPG",130,94,5);thumbnails[5355283]=new thumbnail(5355283,"162172","Strictly Learning","jags_fr_24x25_2_thumb.JPG",130,133,5);thumbnails[2561537]=new thumbnail(2561537,"162172","Ballroom","dancer ballroom pastel 56x45 £2dancer 425 500px_thumb.jpg",130,98,5);thumbnails[5342556]=new thumbnail(5342556,"162172","Swing Time","PB110726_thumb.JPG",130,199,5);thumbnails[5342558]=new thumbnail(5342558,"162172","Orange Peeler","PB110728_thumb.JPG",130,124,5);thumbnails[5342743]=new thumbnail(5342743,"162172","Catch","PB110736_thumb.JPG",130,131,5);thumbnails[5342579]=new thumbnail(5342579,"162172","Disco","PB110732_thumb.JPG",130,124,5);thumbnails[5342567]=new thumbnail(5342567,"162172","Boogee","PB110729_thumb.JPG",130,91,5);thumbnails[5342738]=new thumbnail(5342738,"162172","Aston","PB110737_thumb.JPG",130,87,5);thumbnails[5369138]=new thumbnail(5369138,"162173","Big Guy","P1140188_thumb.JPG",130,132,5);thumbnails[5365247]=new thumbnail(5365247,"162173","Long Wait","PB120743_thumb.JPG",130,313,5);thumbnails[5364907]=new thumbnail(5364907,"162173","Grace","P1130163_thumb.JPG",130,159,5);thumbnails[5369184]=new thumbnail(5369184,"162173","Mother and child","web_henry_moore_thumb.jpg",130,150,5);thumbnails[5343084]=new thumbnail(5343084,"162173","Richie","PB090714_thumb.JPG",130,216,5);thumbnails[5355292]=new thumbnail(5355292,"162173","Getting to Know You","P3120173_thumb.JPG",130,190,5);thumbnails[5343100]=new thumbnail(5343100,"162173","Twins","PB090720_thumb.JPG",130,196,5);thumbnails[5343134]=new thumbnail(5343134,"162173","The Hammock","web_yelena_hammock_thumb.jpg",130,90,5);thumbnails[5343132]=new thumbnail(5343132,"162173","Embrace","PB090741_thumb.JPG",130,101,5);thumbnails[5348623]=new thumbnail(5348623,"162173","Connie","PB120739_thumb.JPG",130,182,5);thumbnails[5343106]=new thumbnail(5343106,"162173","One minute","PB090724_thumb.JPG",130,163,5);thumbnails[5343122]=new thumbnail(5343122,"162173","Glorya","PB090736_thumb.JPG",130,179,5);thumbnails[2619503]=new thumbnail(2619503,"162173","Kathryn","Orange Nude mm 36x55 500px_thumb.jpg",130,213,5);thumbnails[5355539]=new thumbnail(5355539,"162173","Yelena","PB120750_thumb.JPG",130,159,5);thumbnails[5343093]=new thumbnail(5343093,"162173","Missy","PB090717_thumb.JPG",130,98,5);thumbnails[5341274]=new thumbnail(5341274,"162173","better than One","PB190714_thumb.JPG",130,179,5);thumbnails[5355600]=new thumbnail(5355600,"162173","Ruby","PB120763_thumb.JPG",130,210,5);thumbnails[2684481]=new thumbnail(2684481,"162173","Gilda","life on staircase 500px_thumb.jpg",130,223,5);thumbnails[5343075]=new thumbnail(5343075,"162173","Christina","PB070712_thumb.JPG",130,205,5);thumbnails[2561277]=new thumbnail(2561277,"162173","Nerina","life kitchen batik one 500px_thumb.jpg",130,192,5);thumbnails[5355588]=new thumbnail(5355588,"162173","Balance","PB120752_thumb.JPG",130,229,5);thumbnails[5355596]=new thumbnail(5355596,"162173","Wishing","PB120761_thumb.JPG",130,88,5);thumbnails[5355290]=new thumbnail(5355290,"162173","Comfort Zone","P3120172_thumb.JPG",130,176,5);thumbnails[5348621]=new thumbnail(5348621,"162173","Lilia","PB100713_thumb.JPG",130,139,5);thumbnails[2691637]=new thumbnail(2691637,"162173","Dan","Dan 500px_thumb.jpg",130,104,5);thumbnails[2619495]=new thumbnail(2619495,"162173","Male Nude II","Male nude b 42x58 500px_thumb.jpg",130,184,5);thumbnails[5343109]=new thumbnail(5343109,"162173","Nita","PB090726_thumb.JPG",130,216,5);thumbnails[5343127]=new thumbnail(5343127,"162173","Ready","PB090739_thumb.JPG",130,139,5);thumbnails[5348625]=new thumbnail(5348625,"162173","Martha","PB120745_thumb.JPG",130,191,5);thumbnails[2684475]=new thumbnail(2684475,"162173","JJ3","Jane legs up monoprint 30x34 500px_thumb.jpg",130,141,5);thumbnails[5343098]=new thumbnail(5343098,"162173","Cara","PB090719_thumb.JPG",130,255,5);thumbnails[5355293]=new thumbnail(5355293,"162173","Uncertainty","P3120174_thumb.JPG",130,91,5);thumbnails[5355497]=new thumbnail(5355497,"162173","Daisy","PB090715_thumb.JPG",130,221,5);thumbnails[5343079]=new thumbnail(5343079,"162173","Peter","PB070713_thumb.JPG",130,219,5);thumbnails[5343116]=new thumbnail(5343116,"162173","Ellie","PB090733_thumb.JPG",130,177,5);thumbnails[2684485]=new thumbnail(2684485,"162173","Male Nude I","Male nude a mm 42x58 500px_thumb.jpg",130,185,5);thumbnails[5343094]=new thumbnail(5343094,"162173","Ricky","PB090718_thumb.JPG",130,93,5);thumbnails[5355522]=new thumbnail(5355522,"162173","Sacha","PB120747_thumb.JPG",130,147,5);thumbnails[5343137]=new thumbnail(5343137,"162173","Corinne","PB120748_thumb.JPG",130,192,5);thumbnails[5355536]=new thumbnail(5355536,"162173","Life Class","PB120749_thumb.JPG",130,91,5);thumbnails[5343124]=new thumbnail(5343124,"162173","Bella","PB090738_thumb.JPG",130,114,5);thumbnails[2619504]=new thumbnail(2619504,"162173","Miriam","Miriam 4 image monoprint 62x39 500px_thumb.jpg",130,82,5);thumbnails[5343113]=new thumbnail(5343113,"162173","Anais","PB090729_thumb.JPG",130,159,5);thumbnails[5343118]=new thumbnail(5343118,"162173","Millie","PB090734_thumb.JPG",130,171,5);thumbnails[5365240]=new thumbnail(5365240,"162173","Laura","PB120742_thumb.JPG",130,98,5);thumbnails[5364825]=new thumbnail(5364825,"162173","Sharon","P1130160_thumb.JPG",130,199,5);thumbnails[5364877]=new thumbnail(5364877,"162173","Green drape","P1130162_thumb.JPG",130,218,5);thumbnails[5355375]=new thumbnail(5355375,"162509","Through the Door","P8280032_thumb.JPG",130,130,5);thumbnails[5365018]=new thumbnail(5365018,"162509","Gildings","web_gildings_thumb.jpg",130,130,5);thumbnails[5355475]=new thumbnail(5355475,"162509","Apple Blossom","web_apple_blossom_thumb.jpg",130,123,5);thumbnails[5364934]=new thumbnail(5364934,"162509","Isolated","P1130167_thumb.JPG",130,94,5);thumbnails[5355467]=new thumbnail(5355467,"162509","Kraze","PB120755_thumb.JPG",130,96,5);thumbnails[2539686]=new thumbnail(2539686,"162509","6am Across Tregardock Cliffs","Landscape tregardock 5am 500px_thumb.jpg",130,85,5);thumbnails[5355455]=new thumbnail(5355455,"162509","Buchan","web_buchan_thumb.jpg",130,128,5);thumbnails[5355295]=new thumbnail(5355295,"162509","Arundel Castle","web_arundel_thumb.jpg",130,130,5);thumbnails[5355448]=new thumbnail(5355448,"162509","Looe","PB090730_thumb.JPG",130,120,5);thumbnails[2561058]=new thumbnail(2561058,"162509","Leonards Lee","web_leonards_lee_thumb.jpg",130,133,5);thumbnails[5355453]=new thumbnail(5355453,"162509","Henfold","web_henfold_thumb.jpg",130,130,5);thumbnails[5355331]=new thumbnail(5355331,"162509","Racing Time","P3120171_thumb.JPG",130,186,5);thumbnails[5355468]=new thumbnail(5355468,"162509","Blue Landscape","PB120756_thumb.JPG",130,108,5);thumbnails[5355471]=new thumbnail(5355471,"162509","Stoneways","web_stoneways_thumb.jpg",130,181,5);thumbnails[5355479]=new thumbnail(5355479,"162509","Eucalyptyus","web_eucalyptus_thumb.jpg",130,186,5);thumbnails[5355657]=new thumbnail(5355657,"162509","You Tree","You_Tree__mm_35cm_x_47cm__175_FR_thumb.JPG",130,194,5);thumbnails[5355481]=new thumbnail(5355481,"162509","Lilac","PB120765_thumb.JPG",130,88,5);thumbnails[5355428]=new thumbnail(5355428,"162509","Brun","PB090698_thumb.JPG",130,91,5);thumbnails[5355466]=new thumbnail(5355466,"162509","Edes","PB120744_thumb.JPG",130,188,5);thumbnails[5355445]=new thumbnail(5355445,"162509","Weavers","PB090727_thumb.JPG",130,147,5);thumbnails[5355469]=new thumbnail(5355469,"162509","Rumpy","PB120757_thumb.JPG",130,194,5);thumbnails[5355434]=new thumbnail(5355434,"162509","Belouse","PB070699_thumb.JPG",130,182,5);thumbnails[2682519]=new thumbnail(2682519,"162509","Tregardock gate","Tregardock gate charcoal 58x42 500px_thumb.jpg",130,90,5);thumbnails[2691415]=new thumbnail(2691415,"162509","Carodoc Lane","caradoc ammended 500px_thumb.jpg",130,163,5);thumbnails[2689227]=new thumbnail(2689227,"162509","Windermere","landscape windermere charcoal 500px_thumb.jpg",130,98,5);thumbnails[2691444]=new thumbnail(2691444,"162509","Lavenders","Lavenders 500px_thumb.jpg",130,97,5);thumbnails[5355406]=new thumbnail(5355406,"163118","Sunset over the Farm","web_sunset_lavenders_thumb.jpg",130,90,5);thumbnails[5364982]=new thumbnail(5364982,"163118","Vision","P1130168_thumb.JPG",130,91,5);thumbnails[5355410]=new thumbnail(5355410,"163118","Changeable","PB090750_thumb.JPG",130,125,5);thumbnails[2584037]=new thumbnail(2584037,"163118","Red Sky<br>\r\n","sky 2 arran acrtlic reds 500px_thumb.jpg",130,173,5);thumbnails[2567826]=new thumbnail(2567826,"163118","Across from Arran","seascape arran acrylic reds 500px_thumb.jpg",130,174,5);thumbnails[2533658]=new thumbnail(2533658,"163118","Tregardock","P7030045_thumb.JPG",130,130,5);thumbnails[2689228]=new thumbnail(2689228,"163118","Tregardock sunset","Sunset tregardock 500px_thumb.jpg",130,98,5);thumbnails[2684551]=new thumbnail(2684551,"163118","Catch me if you can","Red sunset 500px_thumb.jpg",130,90,5);thumbnails[2691324]=new thumbnail(2691324,"163118","Night Sky","night sky 500px_thumb.jpg",130,51,5);thumbnails[2689230]=new thumbnail(2689230,"163118","Setting Sun","sky tregardock 500px_thumb.jpg",130,92,5);thumbnails[2691361]=new thumbnail(2691361,"163118","Darkening Sky","Darkening Sky 500px_thumb.jpg",130,36,5);thumbnails[2691466]=new thumbnail(2691466,"163118","Newlands Corner","Newlands Corner 500px_thumb.jpg",130,93,5);thumbnails[2682421]=new thumbnail(2682421,"162508","Delabole","slate quarry  100x100  500px_thumb.jpg",130,130,5);thumbnails[5355512]=new thumbnail(5355512,"162508","Filtration","web_abstract_2_thumb.jpg",130,128,5);thumbnails[2689089]=new thumbnail(2689089,"162508","Crackington","rock froms 500px_thumb.jpg",130,185,5);thumbnails[5355318]=new thumbnail(5355318,"162508","Low Tide","P3100070_thumb.JPG",130,128,5);thumbnails[5355296]=new thumbnail(5355296,"162508","Space","web_abstract_3_thumb.jpg",130,129,5);thumbnails[5355316]=new thumbnail(5355316,"162508","Memory of Cornwall","P3100061_thumb.JPG",130,256,5);thumbnails[2533656]=new thumbnail(2533656,"162508","Direction","PB180705_thumb.JPG",130,161,5);thumbnails[2619445]=new thumbnail(2619445,"162508","The Present","web_abstract_1_thumb.jpg",130,131,5);thumbnails[2682341]=new thumbnail(2682341,"162508","Force 8","web_abstract_from_summerhouse_thumb.jpg",130,89,5);thumbnails[2682395]=new thumbnail(2682395,"162508","blue nude","Blue from the nude pastel 68x48 500px_thumb.jpg",130,92,5);thumbnails[2691309]=new thumbnail(2691309,"162508","Wey","Wey 500px_thumb.jpg",130,102,5);thumbnails[5369149]=new thumbnail(5369149,"162506","New Dawn","P1140184_thumb.JPG",130,179,5);thumbnails[5369160]=new thumbnail(5369160,"162506",'"I\'m Thinking"',"P1140182_thumb.JPG",130,138,5);thumbnails[5369170]=new thumbnail(5369170,"162506","Just Closing my eyes","P1140179_thumb.JPG",130,182,5);thumbnails[5365215]=new thumbnail(5365215,"162506","Into the Night","P4100163_thumb.JPG",130,195,5);thumbnails[5394605]=new thumbnail(5394605,"162506","Oliver","P1190004_thumb.JPG",130,82,5);thumbnails[5365233]=new thumbnail(5365233,"162506","Lauren","jags_uf_35x49_thumb.JPG",130,174,5);thumbnails[5364757]=new thumbnail(5364757,"162506","Percy","P1130159_thumb.JPG",130,203,5);thumbnails[5364672]=new thumbnail(5364672,"162506","The Woodsman","P1130157_thumb.JPG",130,201,5);thumbnails[5364857]=new thumbnail(5364857,"162506","Manda","P1130161_thumb.JPG",130,124,5);thumbnails[2619931]=new thumbnail(2619931,"162506","Lola","P8190053_thumb.JPG",130,86,5);thumbnails[5355519]=new thumbnail(5355519,"162506","Bessie","PB120741_thumb.JPG",130,92,5);thumbnails[2558499]=new thumbnail(2558499,"162506","Nigel","portrait Nigel 500px_thumb.jpg",130,174,5);thumbnails[2558576]=new thumbnail(2558576,"162506","Richard","portrait richard 500px_thumb.jpg",130,199,5);thumbnails[2558552]=new thumbnail(2558552,"162506","Hazel","portrait hazel 500px_thumb.jpg",130,185,5);thumbnails[2549298]=new thumbnail(2549298,"162506","Into the Sunset","portrait Alan and Susan 500px_thumb.jpg",130,186,5);thumbnails[2684505]=new thumbnail(2684505,"162506","Marta","life batik & acrylic 500px_thumb.jpg",130,196,5);thumbnails[2691285]=new thumbnail(2691285,"162506","The Spirit's Willing","Glad 500px_thumb.jpg",130,174,5);thumbnails[2691293]=new thumbnail(2691293,"162506","On Reflection","Reflection 500px_thumb.jpg",130,173,5);thumbnails[5364635]=new thumbnail(5364635,"162506","John","P1130156_thumb.JPG",130,191,5);thumbnails[5348617]=new thumbnail(5348617,"162506","Carrie","PB120754_thumb.JPG",130,225,5);thumbnails[5355500]=new thumbnail(5355500,"163416","Tobyland","web_sunflower_1_thumb.jpg",130,133,5);thumbnails[2558475]=new thumbnail(2558475,"163416","Poppies","flowers poppies silk 3 500px_thumb.jpg",130,125,5);thumbnails[2558490]=new thumbnail(2558490,"163416","Azaleas","web_azaleas_thumb.jpg",130,132,5);thumbnails[5355652]=new thumbnail(5355652,"163416","Orchid","P5010347_thumb.JPG",130,130,5);thumbnails[5355653]=new thumbnail(5355653,"163416","Daisies at Dodford","web_daisies_dodford_thumb.jpg",130,131,5);thumbnails[5355486]=new thumbnail(5355486,"163416","Buttercups","web_buttercups_thumb.jpg",130,126,5);thumbnails[5355654]=new thumbnail(5355654,"163416","Golden Lights","Golden_Days_mm_18cm_x_22cm_95_FR_thumb.JPG",130,170,5);thumbnails[5341284]=new thumbnail(5341284,"163416","Boucher","PB180711_thumb.JPG",130,131,5);thumbnails[5341288]=new thumbnail(5341288,"163416","Buzz","PB190716_thumb.JPG",130,131,5);thumbnails[5355503]=new thumbnail(5355503,"163416","One Heart","PB100716_thumb.JPG",130,142,5);thumbnails[2691278]=new thumbnail(2691278,"163416","Lily Pond","Lily pond 500px_thumb.jpg",130,103,5);thumbnails[5355510]=new thumbnail(5355510,"163416","Bluebells II","PB120746_thumb.JPG",130,126,5);thumbnails[5355505]=new thumbnail(5355505,"163416","May I?","PB120740_thumb.JPG",130,102,5);thumbnails[5365034]=new thumbnail(5365034,"162507","Flags","P8280034_2_thumb.JPG",130,176,5);thumbnails[5365168]=new thumbnail(5365168,"162507","Turquoise","P8280037_thumb.JPG",130,205,5);thumbnails[5365082]=new thumbnail(5365082,"162507","Nightcap","P8280036_thumb.JPG",130,96,5);thumbnails[2535041]=new thumbnail(2535041,"162507","Trebarwith","P7030049_thumb.JPG",130,89,5);thumbnails[2567827]=new thumbnail(2567827,"162507","The Rumps","The Rumps 100 x 30 500px_thumb.jpg",130,38,5);thumbnails[5355322]=new thumbnail(5355322,"162507","Catching the Light","P3100065_thumb.JPG",130,92,5);thumbnails[5355319]=new thumbnail(5355319,"162507","Gully","P3100055_thumb.JPG",130,98,5);thumbnails[2567832]=new thumbnail(2567832,"162507","Mist over Tregardock Beach","Mist over Tregardock Beach 100x30 500px_thumb.jpg",130,38,5);thumbnails[5355484]=new thumbnail(5355484,"162507","Yellow","PB090749_thumb.JPG",130,88,5);thumbnails[2684521]=new thumbnail(2684521,"162507","Gull Rock","gull rock acrylic  500px_thumb.jpg",130,104,5);thumbnails[2684548]=new thumbnail(2684548,"162507","Rocks","seascape rocks acrylic 500px_thumb.jpg",130,98,5);thumbnails[5342529]=new thumbnail(5342529,"162507","Seaford Head","web_7_sisters_thumb.jpg",130,129,5);thumbnails[2689231]=new thumbnail(2689231,"162507","Escaping the heat","seascape acrylic 2 500px_thumb.jpg",130,98,5);thumbnails[2689237]=new thumbnail(2689237,"162507","Evening Walk","seascape trebarwith evening walk 500px_thumb.jpg",130,173,5);thumbnails[2691322]=new thumbnail(2691322,"162507","Glowing Boscastle","Glowing Boscastle 500px_thumb.jpg",130,98,5);thumbnails[2691327]=new thumbnail(2691327,"162507","After the Rain","Wet day 500px_thumb.jpg",130,91,5);thumbnails[2691317]=new thumbnail(2691317,"162507","Crackington Haven","Crackington Haven 500px_thumb.jpg",130,164,5);thumbnails[2619220]=new thumbnail(2619220,"162512","Sixties ","Terry guitar acrylic 42x58 500px_thumb.jpg",130,186,5);thumbnails[2619218]=new thumbnail(2619218,"162512","Sax","Sax charcoal 40x42 500px_thumb.jpg",130,139,5);thumbnails[2619219]=new thumbnail(2619219,"162512","Cellist","Cellist hands mm 42x54 500px_thumb.jpg",130,147,5);thumbnails[2567854]=new thumbnail(2567854,"162512","Jazz","prague jazz oil 40x30 £175 500px_thumb.jpg",130,96,5);thumbnails[2684509]=new thumbnail(2684509,"162512","Classical Guitar","classic guitar charcoal 58x42 500px_thumb.jpg",130,90,5);thumbnails[2619170]=new thumbnail(2619170,"162511","Pheasant Cart","Pheasant cart acrylic on canvas 61x76 500px_thumb.jpg",130,161,5);thumbnails[2619195]=new thumbnail(2619195,"162511","Red-legged Partridge","red legs partridge oil on canvas 40x50 500px_thumb.jpg",130,165,5);thumbnails[2619173]=new thumbnail(2619173,"162511","Brace of Mallards","Duck brace oil on canvas 40x50 500px_thumb.jpg",130,172,5);thumbnails[2619196]=new thumbnail(2619196,"162511","Brace of Pheasant","pheasant brace oil on canvas 40x50 500px_thumb.jpg",130,167,5);thumbnails[2553417]=new thumbnail(2553417,"162511","Teal","game birds teal oil 500px_thumb.jpg",130,173,5);thumbnails[5365002]=new thumbnail(5365002,"162510","Westminster","P1130179_thumb.JPG",130,101,5);thumbnails[5355422]=new thumbnail(5355422,"162510","Shadwell","PB090751_thumb.JPG",130,89,5);thumbnails[5343120]=new thumbnail(5343120,"162510","Canary Wharf","web_canary_wharf_mm_thumb.jpg",130,252,5);thumbnails[5348615]=new thumbnail(5348615,"162510","Battersea","web_battersea_mm_thumb.jpg",130,127,5);thumbnails[2689092]=new thumbnail(2689092,"162510","Asgard","west dean pastel 500px_thumb.jpg",130,97,5);thumbnails[5365188]=new thumbnail(5365188,"163119","Ritz","P8280006_thumb.JPG",130,98,5);thumbnails[5364921]=new thumbnail(5364921,"163119","Glitter Bottles","web_glitter_bottles_thumb.jpg",130,95,5);thumbnails[5365041]=new thumbnail(5365041,"163119","Plumbers Shop","P8280032_28C90D2F-1D09-001F-99F5BBE5F441495D_thumb.JPG",130,194,5);thumbnails[5355391]=new thumbnail(5355391,"163119","Peckers","Peckers_mm_57cm_x_38cm_200_fr_thumb.JPG",130,87,5);thumbnails[5355402]=new thumbnail(5355402,"163119","Boats","PB070710_thumb.JPG",130,96,5);thumbnails[2567822]=new thumbnail(2567822,"163119","Gap Year","other boy on beach 500px_thumb.jpg",130,122,5);thumbnails[5355462]=new thumbnail(5355462,"163119","The Hulk","web_rust_heap_thumb.jpg",130,185,5);thumbnails[5355650]=new thumbnail(5355650,"163119","Lifeboat House","web_selsey_lifeboathouse_thumb.jpg",130,445,5);thumbnails[5355655]=new thumbnail(5355655,"163119","Red Boat","web_red_boat_thumb.jpg",130,175,5);var galleries=new Object();galleries[162172]=new gallery(162172,"5369112,5365028,5364994,5364577,5355288,5355287,5355285,5355283,5342796,5342743","Dance","gallery",[5364577,5364994,5365028,5369112,5355288,5341267,5355285,5342527,5342589,2619426,5355287,2619436,5342505,5342796,5342572,2682029,5342593,2561534,5341268,5342585,5342522,5355283,2561537,5342556,5342558,5342743,5342579,5342567,5342738]);galleries[162173]=new gallery(162173,"2619503","Life","gallery",[5369138,5365247,5364907,5369184,5343084,5355292,5343100,5343134,5343132,5348623,5343106,5343122,2619503,5355539,5343093,5341274,5355600,2684481,5343075,2561277,5355588,5355596,5355290,5348621,2691637,2619495,5343109,5343127,5348625,2684475,5343098,5355293,5355497,5343079,5343116,2684485,5343094,5355522,5343137,5355536,5343124,2619504,5343113,5343118,5365240,5364825,5364877]);galleries[162509]=new gallery(162509,"2689227","Landscapes","gallery",[5355375,5365018,5355475,5364934,5355467,2539686,5355455,5355295,5355448,2561058,5355453,5355331,5355468,5355471,5355479,5355657,5355481,5355428,5355466,5355445,5355469,5355434,2682519,2691415,2689227,2691444]);galleries[163118]=new gallery(163118,"2533658","Skies","gallery",[5355406,5364982,5355410,2584037,2567826,2533658,2689228,2684551,2691324,2689230,2691361,2691466]);galleries[162508]=new gallery(162508,"2533656","Abstract","gallery",[2682421,5355512,2689089,5355318,5355296,5355316,2533656,2619445,2682341,2682395,2691309]);galleries[162506]=new gallery(162506,"2619931","Portrait","gallery",[5369149,5369160,5369170,5365215,5394605,5365233,5364757,5364672,5364857,2619931,5355519,2558499,2558576,2558552,2549298,2684505,2691285,2691293,5364635,5348617]);galleries[163416]=new gallery(163416,"5355654,5355653,5355652,5355510,5355505,5355503,5355500,5355486,5341288,5341284","Flowers","gallery",[5355500,2558475,2558490,5355652,5355653,5355486,5355654,5341284,5341288,5355503,2691278,5355510,5355505]);galleries[162507]=new gallery(162507,"2535041","Seascapes","gallery",[5365034,5365168,5365082,2535041,2567827,5355322,5355319,2567832,5355484,2684521,2684548,5342529,2689231,2689237,2691322,2691327,2691317]);galleries[162512]=new gallery(162512,"2619220","Music","gallery",[2619220,2619218,2619219,2567854,2684509]);galleries[302196]=new gallery(302196,"","Archive ","gallery",[]);galleries[302379]=new gallery(302379,"","Archive II","gallery",[]);galleries[162511]=new gallery(162511,"2619196","Game Shooting","gallery",[2619170,2619195,2619173,2619196,2553417]);galleries[162510]=new gallery(162510,"5365002,5355422,5348615,5343120,2689092","Cityscapes","gallery",[5365002,5355422,5343120,5348615,2689092]);galleries[163119]=new gallery(163119,"5365188,5365041,5364921,5355655,5355650,5355462,5355402,5355391,2567822","Miscellaneous","gallery",[5365188,5364921,5365041,5355391,5355402,2567822,5355462,5355650,5355655]);var imageSets=new Object();imageSets[1]="2691637,2691466,2691444,2691415,2691361,2691327,2691324,2691322,2691317,2691309,2691293,2691285,2691278,2689237,2689231,2689230,2689228,2689227,2689092,2689089,2684551,2684548,2684521,2684509,2684505,2684485,2684481,2684475,2682519,2682421,2682395,2682341,2682029,2619931,2619504,2619503,2619495,2619445,2619436,2619426,2619220,2619219,2619218,2619196,2619195,2619173,2619170,2584037,2567854,2567832,2567827,2567826,2567822,2561537,2561534,2561277,2561058,2558576,2558552,2558499,2558490,2558475,2549298,2539686,2535041,2533658,2533656";imageSets[2]="2689227,2619931,2619503,2619220,2619196,2535041,2533658,2533656";imageSets[3]="5394605,5369184,5369170,5369160,5369149,5369138,5369112,5365247,5365240,5365233,5365215,5365188,5365168,5365082,5365041,5365034,5365028,5365018,5365002,5364994,5364982,5364934,5364921,5364907,5364877,5364857,5364825,5364757,5364672,5364635,5364577,5355657,5355655,5355654,5355653,5355652,5355650,5355600,5355596,5355588,5355539,5355536,5355522,5355519,5355512,5355510,5355505,5355503,5355500,5355497";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/dianakingart/images";break}switch(a){case 1:b="http://www1.clikpic.com/dianakingart/images";break}switch(a){case 2:b="http://admin.clikpic.com/dianakingart/images";break}switch(a){case 24:b="http://tpc15/clikpic/dianakingart/images";break}switch(a){case 4:b="http://www.clikchurch.com/dianakingart/images";break}switch(a){case 5:b="http://www2.clikpic.com/dianakingart/images";break}switch(a){case 22:b="http://tpc5/clikpic/dianakingart/images";break}switch(a){case 23:b="http://tpc10/clikpic/dianakingart/images";break}switch(a){case 25:b="http://tpc16/clikpic/dianakingart/images";break}switch(a){case 15:b="http://www3.clikpic.com/dianakingart/images";break}switch(a){case 18:b="http://www4.clikpic.com/dianakingart/images";break}switch(a){case 19:b="http://www5.clikpic.com/dianakingart/images";break}switch(a){case 31:b="http://www7.clikpic.com/dianakingart/images";break}switch(a){case 32:b="http://admin2.clikpic.com/dianakingart/images";break}switch(a){case 33:b="http://www8.clikpic.com/dianakingart/images";break}switch(a){case 34:b="http://www9.clikpic.com/dianakingart/images";break}switch(a){case 35:b="http://admin3.clikpic.com/dianakingart/images";break}switch(a){case 37:b="http://admin4.clikpic.com/dianakingart/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="Online art gallery from Diana King Art: "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="paypal@dianakingart.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="paypal@dianakingart.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};