window.thumbnails = {};
															thumbnails[3931653] = clik.newPhoto({"id":3931653,"src":"rhythm2_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_3931653.html","width":130,"caption":"Rhythm of the Lanes","height":98});
															thumbnails[3784270] = clik.newPhoto({"id":3784270,"src":"rhythm1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3784270.html","width":130,"caption":"Rhythm of the Lanes","height":98});
															thumbnails[3713854] = clik.newPhoto({"id":3713854,"src":"mary_and_joseph_xmas_copy_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_3713854.html","width":130,"caption":"The Journey Home","height":203});
															thumbnails[3672860] = clik.newPhoto({"id":3672860,"src":"station_street_there_you_go_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3672860.html","width":130,"caption":"Station Street, Lewes","height":69});
															thumbnails[3672863] = clik.newPhoto({"id":3672863,"src":"castles_in_the_air_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3672863.html","width":130,"caption":"Castles in the Air, Lewes","height":124});
															thumbnails[3672941] = clik.newPhoto({"id":3672941,"src":"celebrate2_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3672941.html","width":130,"caption":"school children celebrate","height":136});
															thumbnails[3672948] = clik.newPhoto({"id":3672948,"src":"boys_zoo033_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3672948.html","width":130,"caption":"Boys enjoy a school trip","height":155});
															thumbnails[3672954] = clik.newPhoto({"id":3672954,"src":"choir2_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3672954.html","width":130,"caption":"a few of the school choir","height":195});
															thumbnails[3672965] = clik.newPhoto({"id":3672965,"src":"friends_together2_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3672965.html","width":130,"caption":"Happy friends","height":80});
															thumbnails[3542453] = clik.newPhoto({"id":3542453,"src":"top-of-the-town1_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_3542453.html","width":130,"caption":"\"Top of the Town\" ","height":127});
															thumbnails[3539949] = clik.newPhoto({"id":3539949,"src":"lets_do_it1_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_3539949.html","width":130,"caption":"\"Let's Do It\"","height":98});
															thumbnails[3539954] = clik.newPhoto({"id":3539954,"src":"window_shopping31_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_3539954.html","width":130,"caption":"\"Window Shopping\" ","height":73});
															thumbnails[3435579] = clik.newPhoto({"id":3435579,"src":"hetties elephant_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_3435579.html","width":130,"caption":"An elephant for Hettie","height":126});
															thumbnails[3435592] = clik.newPhoto({"id":3435592,"src":"bookshop5_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3435592.html","width":130,"caption":"The Bookshop","height":85});
															thumbnails[3435596] = clik.newPhoto({"id":3435596,"src":"andy and marvin5_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3435596.html","width":130,"caption":"A quick trim","height":97});
															thumbnails[3435611] = clik.newPhoto({"id":3435611,"src":"window shopping3_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3435611.html","width":130,"caption":"Window shopping","height":73});
															thumbnails[3435631] = clik.newPhoto({"id":3435631,"src":"good news_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_3435631.html","width":130,"caption":"Good news from school","height":91});
															thumbnails[3424435] = clik.newPhoto({"id":3424435,"src":"lets do it_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3424435.html","width":130,"caption":"Let's do it","height":98});
															thumbnails[2667606] = clik.newPhoto({"id":2667606,"src":"sarah-40_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_2667606.html","width":130,"caption":"'Sarah 40'","height":94});
															thumbnails[2667652] = clik.newPhoto({"id":2667652,"src":"hilltop_thumb.JPG","galleries_id":168812,"server_id":32,"link":"photo_2667652.html","width":130,"caption":"House in Plumpton","height":96});
															thumbnails[2673437] = clik.newPhoto({"id":2673437,"src":"brightpavilion4_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_2673437.html","width":130,"caption":"Brighton Pavillion","height":96});
															thumbnails[2674521] = clik.newPhoto({"id":2674521,"src":"chill_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_2674521.html","width":130,"caption":"'Chill'","height":130});
															thumbnails[2674552] = clik.newPhoto({"id":2674552,"src":"xmas-church5_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_2674552.html","width":130,"caption":"St Michael's Plumpton Green","height":128});
															thumbnails[2674561] = clik.newPhoto({"id":2674561,"src":"xmas-church4_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_2674561.html","width":130,"caption":"East Chiltington Church","height":130});
															thumbnails[2680930] = clik.newPhoto({"id":2680930,"src":"trampoline_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_2680930.html","width":130,"caption":"Trampoline","height":171});
															thumbnails[2681045] = clik.newPhoto({"id":2681045,"src":"drizzly-polperro_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_2681045.html","width":130,"caption":"Drizzly Polperro","height":201});
															thumbnails[2681427] = clik.newPhoto({"id":2681427,"src":"baby-poppy-colour_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_2681427.html","width":130,"caption":"Baby Poppy","height":189});
															thumbnails[2681479] = clik.newPhoto({"id":2681479,"src":"john50_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_2681479.html","width":130,"caption":"'Casa Miami'","height":94});
															thumbnails[3931777] = clik.newPhoto({"id":3931777,"src":"2_bedtime-1_copy_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3931777.html","width":130,"caption":"Bedtime story","height":124});
															thumbnails[3931783] = clik.newPhoto({"id":3931783,"src":"fuschia-1_copy_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3931783.html","width":130,"caption":"Fuschia","height":139});
															thumbnails[3931788] = clik.newPhoto({"id":3931788,"src":"old_car-1_copy_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3931788.html","width":130,"caption":"The Old Car","height":98});
															thumbnails[3931879] = clik.newPhoto({"id":3931879,"src":"cold_walk005_copy_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_3931879.html","width":130,"caption":"cold muddy walk","height":112});
															thumbnails[3932642] = clik.newPhoto({"id":3932642,"src":"jessica_christening_copy_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_3932642.html","width":130,"caption":"Jessica's Christening","height":129});
															thumbnails[4495473] = clik.newPhoto({"id":4495473,"src":"second_bar_vin_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_4495473.html","width":130,"caption":"The Old Anchor, Horsham","height":104});
															thumbnails[4920916] = clik.newPhoto({"id":4920916,"src":"christmas_castle_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_4920916.html","width":130,"caption":"Christmas Castle","height":98});
															thumbnails[4956500] = clik.newPhoto({"id":4956500,"src":"christmas_castle_gate_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_4956500.html","width":130,"caption":"Christmas Castle Gate","height":101});
															thumbnails[5204832] = clik.newPhoto({"id":5204832,"src":"buttermarket_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5204832.html","width":130,"caption":"The Leek Buttermarket","height":173});
															thumbnails[5253772] = clik.newPhoto({"id":5253772,"src":"home_and_colonial_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5253772.html","width":130,"caption":"Home & Colonial, Leek","height":182});
															thumbnails[5366158] = clik.newPhoto({"id":5366158,"src":"lewes_memories_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5366158.html","width":130,"caption":"Lewes Memories","height":122});
															thumbnails[5382674] = clik.newPhoto({"id":5382674,"src":"castle_fly_by_2_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5382674.html","width":130,"caption":"Castle Fly-by","height":171});
															thumbnails[5382677] = clik.newPhoto({"id":5382677,"src":"up_to_the_castle116_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5382677.html","width":130,"caption":"Up to the Castle","height":127});
															thumbnails[5435770] = clik.newPhoto({"id":5435770,"src":"lazy_lunch_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5435770.html","width":130,"caption":"Lazy lunch in Lewes","height":147});
															thumbnails[5565846] = clik.newPhoto({"id":5565846,"src":"chalk_1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5565846.html","width":130,"caption":"CHALK GALLERY, LEWES","height":202});
															thumbnails[5565854] = clik.newPhoto({"id":5565854,"src":"old_corner_for_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5565854.html","width":130,"caption":"OLD CORNER, LEWES","height":211});
															thumbnails[5583180] = clik.newPhoto({"id":5583180,"src":"regency_romance_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5583180.html","width":130,"caption":"Regency Romance","height":178});
															thumbnails[5630571] = clik.newPhoto({"id":5630571,"src":"brighton_breezy_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5630571.html","width":130,"caption":"Brighton Breezy","height":80});
															thumbnails[5820732] = clik.newPhoto({"id":5820732,"src":"whatever_ice2137_copy_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_5820732.html","width":130,"caption":"Whatever the Weather","height":84});
															thumbnails[5854683] = clik.newPhoto({"id":5854683,"src":"Amelias_Dog_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_5854683.html","width":130,"caption":"For A little girl's birthday","height":78});
															thumbnails[5927963] = clik.newPhoto({"id":5927963,"src":"racecourse_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_5927963.html","width":130,"caption":"Next the Novices, Plumpton","height":70});
															thumbnails[5939992] = clik.newPhoto({"id":5939992,"src":"racecourse_869623AF-24E8-5EC4-4F516F7F5744C9F8_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_5939992.html","width":130,"caption":"Next the Novices, Plumpton","height":70});
															thumbnails[5989390] = clik.newPhoto({"id":5989390,"src":"dont_need_deckchairs_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_5989390.html","width":130,"caption":"Don't need Deckchairs","height":173});
															thumbnails[5989402] = clik.newPhoto({"id":5989402,"src":"Spain_in_the_Lanes_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_5989402.html","width":130,"caption":"Casa Don Carlos<br>\r\n(Spain in the Lanes!)","height":217});
															thumbnails[5989448] = clik.newPhoto({"id":5989448,"src":"morgan_man_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_5989448.html","width":130,"caption":"Pride and Joy","height":83});
															thumbnails[6045585] = clik.newPhoto({"id":6045585,"src":"castles_in_the_air_E0633410-24E8-5EC4-4F9BEE2F5CFD53BD_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_6045585.html","width":130,"caption":"Castles in the Air","height":124});
															thumbnails[6045590] = clik.newPhoto({"id":6045590,"src":"breakfast_at_bills_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_6045590.html","width":130,"caption":"Breakfast at Bill's","height":92});
															thumbnails[6133460] = clik.newPhoto({"id":6133460,"src":"fishyfishsy_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6133460.html","width":130,"caption":"Fishy Fishy","height":237});
															thumbnails[6161411] = clik.newPhoto({"id":6161411,"src":"catch_up_again_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6161411.html","width":130,"caption":"Catch Up over Coffee, Fletching","height":178});
															thumbnails[6350940] = clik.newPhoto({"id":6350940,"src":"pink_hut_thumb.jpg","galleries_id":224298,"server_id":32,"link":"photo_6350940.html","width":130,"caption":"The Pink Hut","height":159});
															thumbnails[6350967] = clik.newPhoto({"id":6350967,"src":"old_bookshop_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6350967.html","width":130,"caption":"The fifteenth century bookshop, Lewes","height":98});
															thumbnails[6888841] = clik.newPhoto({"id":6888841,"src":"catlins_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6888841.html","width":130,"caption":"Catlin's  tobacconist and sweet shop, Lewes","height":173});
															thumbnails[6888871] = clik.newPhoto({"id":6888871,"src":"old_church_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6888871.html","width":130,"caption":"Beckworths at<br>\r\nThe Old Church House, Lewes","height":173});
															thumbnails[6888907] = clik.newPhoto({"id":6888907,"src":"Hobbs_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_6888907.html","width":130,"caption":"Milsom Street Memories Runner up in The Bath Prize 2010","height":171});
															thumbnails[6987886] = clik.newPhoto({"id":6987886,"src":"barristers_small-1_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_6987886.html","width":130,"caption":"Christmas at the Law Courts","height":189});
															thumbnails[6988153] = clik.newPhoto({"id":6988153,"src":"plumpton_station_5_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_6988153.html","width":130,"caption":"Plumpton, coming home for Christmas","height":84});
															thumbnails[7292559] = clik.newPhoto({"id":7292559,"src":"old_boots_3_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7292559.html","width":130,"caption":"David Smith Jewellery, Lewes","height":173});
															thumbnails[7294879] = clik.newPhoto({"id":7294879,"src":"christmas_castle2_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7294879.html","width":130,"caption":"Winter Castle, Lewes","height":127});
															thumbnails[7294883] = clik.newPhoto({"id":7294883,"src":"cuban_beach_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7294883.html","width":130,"caption":"Kids on the beach, Cuba","height":129});
															thumbnails[7294923] = clik.newPhoto({"id":7294923,"src":"golden_smiffs_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7294923.html","width":130,"caption":"The whole family celebrate!","height":77});
															thumbnails[7294947] = clik.newPhoto({"id":7294947,"src":"dales_xmas2_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7294947.html","width":130,"caption":"a family christmas card","height":142});
															thumbnails[7294951] = clik.newPhoto({"id":7294951,"src":"toad_hall_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7294951.html","width":130,"caption":"A family get ready to go out","height":103});
															thumbnails[7294959] = clik.newPhoto({"id":7294959,"src":"Spain_in_the_Lanes_66E2DC4C-1EC9-DFB6-090556BA6D9AA705_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_7294959.html","width":130,"caption":"","height":217});
															thumbnails[7321458] = clik.newPhoto({"id":7321458,"src":"newick_park_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7321458.html","width":130,"caption":"Newick Park","height":85});
															thumbnails[7391790] = clik.newPhoto({"id":7391790,"src":"diners_and_duchess_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7391790.html","width":130,"caption":"The Duchess and the Diners","height":191});
															thumbnails[7428212] = clik.newPhoto({"id":7428212,"src":"grange1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7428212.html","width":130,"caption":"Southover Grange","height":85});
															thumbnails[7453794] = clik.newPhoto({"id":7453794,"src":"helter_skelter_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7453794.html","width":130,"caption":"On a Clear Day...","height":194});
															thumbnails[7463901] = clik.newPhoto({"id":7463901,"src":"wades_farm_copy_edited-1_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_7463901.html","width":130,"caption":"A walk on the farm","height":84});
															thumbnails[7551225] = clik.newPhoto({"id":7551225,"src":"the_Cricketers2_copy_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7551225.html","width":130,"caption":"The Cricketers","height":105});
															thumbnails[7566015] = clik.newPhoto({"id":7566015,"src":"_dusartforweb_edited-1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7566015.html","width":130,"caption":"Dusarts Lewes","height":95});
															thumbnails[7605302] = clik.newPhoto({"id":7605302,"src":"black_friar_1_for_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7605302.html","width":130,"caption":"The Black Friar","height":175});
															thumbnails[7651245] = clik.newPhoto({"id":7651245,"src":"Bath_Buns2_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7651245.html","width":130,"caption":"Bath Buns and Hungry Tums","height":202});
															thumbnails[7746031] = clik.newPhoto({"id":7746031,"src":"barley_mow_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7746031.html","width":130,"caption":"The Barley Mow","height":170});
															thumbnails[7795776] = clik.newPhoto({"id":7795776,"src":"a_quarter_of_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7795776.html","width":130,"caption":"A Quarter of Sherbet Pips","height":172});
															thumbnails[7809932] = clik.newPhoto({"id":7809932,"src":"cliff_bridge_edited-1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7809932.html","width":130,"caption":"Harveys View","height":128});
															thumbnails[7966388] = clik.newPhoto({"id":7966388,"src":"bath_pub_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_7966388.html","width":130,"caption":"Coeur de Lion, Bath","height":190});
															thumbnails[8123861] = clik.newPhoto({"id":8123861,"src":"Martins_garage2_for_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8123861.html","width":130,"caption":"Riverside through time","height":63});
															thumbnails[8144221] = clik.newPhoto({"id":8144221,"src":"old_shades_for_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8144221.html","width":130,"caption":"The Old Shades","height":250});
															thumbnails[8234800] = clik.newPhoto({"id":8234800,"src":"Lewes_Arms_fini_2_-1_edited-1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8234800.html","width":130,"caption":"The Lewes Arms","height":153});
															thumbnails[8502177] = clik.newPhoto({"id":8502177,"src":"The_Snowdrop_Inn_for_web_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8502177.html","width":130,"caption":"The Snowdrop Inn, Lewes","height":92});
															thumbnails[8502191] = clik.newPhoto({"id":8502191,"src":"lets_do_lunch_-1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8502191.html","width":130,"caption":"Let's do Lunch, Milsom Place","height":146});
															thumbnails[8653407] = clik.newPhoto({"id":8653407,"src":"My_Butcher__thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8653407.html","width":130,"caption":"\"My Butcher\"","height":162});
															thumbnails[8703827] = clik.newPhoto({"id":8703827,"src":"Lansdown_fini_jpg_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_8703827.html","width":130,"caption":"The Lansdown Pub, Lewes","height":101});
															thumbnails[8703844] = clik.newPhoto({"id":8703844,"src":"hamster_house_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_8703844.html","width":130,"caption":"a fun house and family portrait","height":118});
															thumbnails[8836453] = clik.newPhoto({"id":8836453,"src":"bandstand2_edited-1_98147534-1E4F-37DC-7192D753E8279533_thumb.jpg","galleries_id":168812,"server_id":32,"link":"photo_8836453.html","width":130,"caption":"The Christmas Concert","height":94});
															thumbnails[9020112] = clik.newPhoto({"id":9020112,"src":"Lewes_food_market-10x15_edited-1_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_9020112.html","width":130,"caption":"Lewes Food Market","height":186});
															thumbnails[9020127] = clik.newPhoto({"id":9020127,"src":"old_shades_for_web_3253DE73-24E8-5EC4-4F1CCF7D4EF1D896_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_9020127.html","width":130,"caption":"The Old Shades, Whitehall, London","height":250});
															thumbnails[9020132] = clik.newPhoto({"id":9020132,"src":"Lewes_Arms_fini_2_-1_edited-1_325FAFF1-24E8-5EC4-4F273F716310A3EC_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_9020132.html","width":130,"caption":"The Lewes Arms","height":153});
															thumbnails[9020133] = clik.newPhoto({"id":9020133,"src":"black_friar_1_for_web1_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_9020133.html","width":130,"caption":"","height":175});
															thumbnails[9020138] = clik.newPhoto({"id":9020138,"src":"fishyfishsy_32751252-24E8-5EC4-4FDDB0B516EB732B_thumb.jpg","galleries_id":216548,"server_id":32,"link":"photo_9020138.html","width":130,"caption":"Fishy Fishy Brighton","height":237});
															thumbnails[3712485] = clik.newPhoto({"id":3712485,"src":"chestertons2_thumb.jpg","galleries_id":169039,"server_id":32,"link":"photo_3712485.html","width":130,"caption":"Chestertons, Ditchling","height":129});
															thumbnails[5050851] = clik.newPhoto({"id":5050851,"src":"christmas_college_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_5050851.html","width":130,"caption":"Plumpton College","height":93});
															thumbnails[5050856] = clik.newPhoto({"id":5050856,"src":"christmas_crossing_thumb.jpg","galleries_id":170037,"server_id":32,"link":"photo_5050856.html","width":130,"caption":"Christmas crossing, Plumpton","height":129});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[168812] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"commissions","link":"gallery_168812.html","maxRecords":0.0,"photoIDs":[3435579.0,3435631.0,2667606.0,2667652.0,2680930.0,2681479.0,3932642.0,5854683.0,5989448.0,6987886.0,7294883.0,7294923.0,7294947.0,7294951.0,7321458.0,7463901.0,8703844.0,8836453.0],"skipIndex":0,"section_code":"gallery","featured_images":"8703844,7294951,7294883,2681479,2667652","id":168812,"singleSection":false});				  						galleries[216548] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Giclee Prints","link":"gallery_216548.html","maxRecords":0.0,"photoIDs":[3931653.0,3542453.0,3539949.0,3539954.0,5939992.0,6045585.0,6045590.0,7294959.0,9020127.0,9020132.0,9020133.0,9020138.0],"skipIndex":0,"section_code":"gallery","featured_images":"7294959,3542453","id":216548,"singleSection":false});				  						galleries[170037] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greetings Cards","link":"gallery_170037.html","maxRecords":0.0,"photoIDs":[3713854.0,2674521.0,2674552.0,2674561.0,2681427.0,5820732.0,5927963.0,5989390.0,6988153.0,5050851.0,5050856.0],"skipIndex":0,"section_code":"gallery","featured_images":"5820732,2681427","id":170037,"singleSection":false});				  						galleries[169039] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes or townscapes","link":"gallery_169039.html","maxRecords":0.0,"photoIDs":[3784270.0,3672860.0,3672863.0,3435592.0,3435596.0,3435611.0,3424435.0,2673437.0,2681045.0,4495473.0,4956500.0,5204832.0,5253772.0,5366158.0,5382674.0,5382677.0,5435770.0,5565846.0,5565854.0,5583180.0,5630571.0,5989402.0,6133460.0,6161411.0,6350967.0,6888841.0,6888871.0,6888907.0,7292559.0,7294879.0,7391790.0,7428212.0,7453794.0,7551225.0,7566015.0,7605302.0,7651245.0,7746031.0,7795776.0,7809932.0,7966388.0,8123861.0,8144221.0,8234800.0,8502177.0,8502191.0,8653407.0,8703827.0,9020112.0,3712485.0],"skipIndex":0,"section_code":"gallery","featured_images":"8234800,6888907,6888841,5565854,3435611","id":169039,"singleSection":false});				  						galleries[224298] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Line Drawing and Illustrations","link":"gallery_224298.html","maxRecords":0.0,"photoIDs":[3672941.0,3672948.0,3672954.0,3672965.0,3931777.0,3931783.0,3931788.0,3931879.0,4920916.0,6350940.0],"skipIndex":0,"section_code":"gallery","featured_images":"6350940,3672965","id":224298,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9020127,9020112,8836453,8703827,8653407';
imageSets[2] = '8703844,8234800,7294959,7294951,7294883,6888907,6888841,6350940,5820732,5565854,3672965,3542453,3435611,2681479,2681427,2667652';
imageSets[3] = '9020138,9020133,9020132,9020127,9020112,8836453,8703844,8703827,8653407,8502191,8502177,8234800,8144221,8123861,7966388,7809932,7795776,7746031,7651245,7605302,7566015,7551225,7463901,7453794,7428212,7391790,7321458,7294959,7294951,7294947,7294923,7294883,7294879,7292559,6988153,6987886,6888907,6888871,6888841,6350967,6350940,6161411,6133460,6045590,6045585,5989448,5989402,5989390,5939992,5927963';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/plumptonfc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/plumptonfc/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Lyndsey Smith: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="lyndseyannsmith@tiscali.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="lyndseyannsmith@tiscali.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

