window.thumbnails = {};
															thumbnails[8732477] = clik.newPhoto({"id":8732477,"src":"15.Lulworth_and_the_Dorset_Coast._thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_8732477.html","width":130,"caption":"Lulworth Cove","height":86});
															thumbnails[1527864] = clik.newPhoto({"id":1527864,"src":"Avon Causeway _thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_1527864.html","width":130,"caption":"Avon Causeway","height":86});
															thumbnails[2237224] = clik.newPhoto({"id":2237224,"src":"Card 6 Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237224.html","width":130,"caption":"Beech Trees at Badbury Rings ","height":86});
															thumbnails[9096284] = clik.newPhoto({"id":9096284,"src":"Badbury_Rings_Beech_Trees_01_copy_1_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_9096284.html","width":130,"caption":"Beech Avenue","height":86});
															thumbnails[3417759] = clik.newPhoto({"id":3417759,"src":"10 Beech Trees at Badbury Rings 02_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_3417759.html","width":130,"caption":"Beech Trees at Badbury Rings ","height":86});
															thumbnails[4466894] = clik.newPhoto({"id":4466894,"src":"Trees_at_Badbury_Rings_02_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4466894.html","width":130,"caption":"Beech Avenue","height":86});
															thumbnails[2237229] = clik.newPhoto({"id":2237229,"src":"Card_7_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237229.html","width":130,"caption":"Bournemouth Beach and Pier","height":83});
															thumbnails[4466895] = clik.newPhoto({"id":4466895,"src":"Trees_at_Badbury_Rings_07_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4466895.html","width":130,"caption":"Beech Avenue","height":87});
															thumbnails[5285785] = clik.newPhoto({"id":5285785,"src":"Badbury_Rings_Sunrise_12-1_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_5285785.html","width":130,"caption":"Dawn at Badbury Rings ","height":84});
															thumbnails[7018052] = clik.newPhoto({"id":7018052,"src":"DBadbury_Rings_Beech_Trees_02_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_7018052.html","width":130,"caption":"Badbury Rings in Autumn ","height":86});
															thumbnails[7124673] = clik.newPhoto({"id":7124673,"src":"Ashmore_Village_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124673.html","width":130,"caption":"Ashmore Village ","height":86});
															thumbnails[396754] = clik.newPhoto({"id":396754,"src":"DBadbury_Rings_Beech_Trees_01_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_396754.html","width":130,"caption":"Badbury Rings in Autumn ","height":86});
															thumbnails[6988492] = clik.newPhoto({"id":6988492,"src":"Card_11_Front_09AD4BF6-24E8-5EC4-4F20197979053CAD_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_6988492.html","width":130,"caption":"Bournemouth Pier ","height":86});
															thumbnails[8732346] = clik.newPhoto({"id":8732346,"src":"Boscombe_Pier_01_copy_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_8732346.html","width":130,"caption":"Boscombe Pier","height":94});
															thumbnails[2237238] = clik.newPhoto({"id":2237238,"src":"Card_13_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237238.html","width":130,"caption":"Chapman's Pool","height":87});
															thumbnails[4466902] = clik.newPhoto({"id":4466902,"src":"Harvest_Time_04_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4466902.html","width":130,"caption":"Harvest Time","height":67});
															thumbnails[5285786] = clik.newPhoto({"id":5285786,"src":"Badbury_Rings_Sunrise_16-1_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_5285786.html","width":130,"caption":"Dawn at Badbury Rings ","height":94});
															thumbnails[7124677] = clik.newPhoto({"id":7124677,"src":"Ashmore_Village_02_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124677.html","width":130,"caption":"Ashmore Village ","height":86});
															thumbnails[1013284] = clik.newPhoto({"id":1013284,"src":"Trees at Bradbury Rings 13[1]_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_1013284.html","width":130,"caption":"Badbury Rings Trees","height":86});
															thumbnails[2237241] = clik.newPhoto({"id":2237241,"src":"Card_4_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237241.html","width":130,"caption":"Christchurch Priory ","height":81});
															thumbnails[8712679] = clik.newPhoto({"id":8712679,"src":"NorthPoortonTree02bw_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_8712679.html","width":130,"caption":"North Poorton","height":87});
															thumbnails[9096395] = clik.newPhoto({"id":9096395,"src":"Badbury_Rings_Beech_Trees_08-2_1_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_9096395.html","width":130,"caption":"Badbury Rings in Winter","height":86});
															thumbnails[9096273] = clik.newPhoto({"id":9096273,"src":"Badbury_Rings_Beech_Trees_2_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_9096273.html","width":130,"caption":"Badbury Rings in Winter","height":86});
															thumbnails[2240935] = clik.newPhoto({"id":2240935,"src":"ChapmansPool01_thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_2240935.html","width":130,"caption":"Chapmans Pool","height":93});
															thumbnails[4455119] = clik.newPhoto({"id":4455119,"src":"Poole_Quay_01_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4455119.html","width":130,"caption":"Poole Quay","height":78});
															thumbnails[5678152] = clik.newPhoto({"id":5678152,"src":"Card_4_Front__thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678152.html","width":130,"caption":"Chesil Beach","height":88});
															thumbnails[7124705] = clik.newPhoto({"id":7124705,"src":"Avenue_in_the_Snow_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124705.html","width":130,"caption":"Beech Trees","height":86});
															thumbnails[7124963] = clik.newPhoto({"id":7124963,"src":"Gore_Clump_Trees_Compton_Abbas_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124963.html","width":130,"caption":"Compton Abbas ","height":86});
															thumbnails[2237213] = clik.newPhoto({"id":2237213,"src":"Card_1_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237213.html","width":130,"caption":"Colmer's Hill","height":86});
															thumbnails[4455125] = clik.newPhoto({"id":4455125,"src":"Poole_Town_from_Holes_Bay_at_Night_01_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4455125.html","width":130,"caption":"Poole Town ","height":87});
															thumbnails[3824633] = clik.newPhoto({"id":3824633,"src":"Delcombe_Woods_Bluebells_01_8E9D12FB-1E4F-37DC-7181704C53BCFF2C_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_3824633.html","width":130,"caption":"Bluebells","height":86});
															thumbnails[2237226] = clik.newPhoto({"id":2237226,"src":"Card_10_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237226.html","width":130,"caption":"Corfe Castle ","height":87});
															thumbnails[3414638] = clik.newPhoto({"id":3414638,"src":"2 Eyebridge 01_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_3414638.html","width":130,"caption":"Dawn at Eyebridge","height":86});
															thumbnails[4455113] = clik.newPhoto({"id":4455113,"src":"River_Frome_at_Sunrise_Wareham_01_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4455113.html","width":130,"caption":"River Frome","height":87});
															thumbnails[8712858] = clik.newPhoto({"id":8712858,"src":"TreesnearMoorCrichel01_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8712858.html","width":130,"caption":"Long Crichel ","height":86});
															thumbnails[3824630] = clik.newPhoto({"id":3824630,"src":"Delcombe_Woods_Bluebells_02_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_3824630.html","width":130,"caption":"Bluebells","height":86});
															thumbnails[5287420] = clik.newPhoto({"id":5287420,"src":"Durdle_Door_12_thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_5287420.html","width":130,"caption":"Durdle Door","height":87});
															thumbnails[6988480] = clik.newPhoto({"id":6988480,"src":"Card_18_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_6988480.html","width":130,"caption":"Cowgrove Dawn","height":92});
															thumbnails[8732353] = clik.newPhoto({"id":8732353,"src":"Moor_Crichel__Avenue_01_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8732353.html","width":130,"caption":"Moor Crichel ","height":86});
															thumbnails[8960225] = clik.newPhoto({"id":8960225,"src":"EyebridgeDawn01Copy_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_8960225.html","width":130,"caption":"Dawn at Eyebridge","height":86});
															thumbnails[394097] = clik.newPhoto({"id":394097,"src":"Christchurch Priory _thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_394097.html","width":130,"caption":"Christchurch Priory","height":86});
															thumbnails[3847165] = clik.newPhoto({"id":3847165,"src":"040605_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_3847165.html","width":130,"caption":"Bluebells ","height":87});
															thumbnails[5678116] = clik.newPhoto({"id":5678116,"src":"Dawn_at_Eyebridge_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678116.html","width":130,"caption":"Dawn at Eyebridge","height":86});
															thumbnails[5901782] = clik.newPhoto({"id":5901782,"src":"Delcombe_Woods_Bluebells_01_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_5901782.html","width":130,"caption":"Bluebells ","height":87});
															thumbnails[6060538] = clik.newPhoto({"id":6060538,"src":"Clikpic__The_Cobb_01_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_6060538.html","width":130,"caption":"The Cobb","height":87});
															thumbnails[8700046] = clik.newPhoto({"id":8700046,"src":"Track_near_Badbury_Rings_02_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8700046.html","width":130,"caption":"Pathway","height":86});
															thumbnails[8732357] = clik.newPhoto({"id":8732357,"src":"Moor_Crichel_Beech_Avenue_02_FE8F98F1-24E8-5EC4-4FA7FF606B553516_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8732357.html","width":130,"caption":"The Avenue","height":87});
															thumbnails[9096396] = clik.newPhoto({"id":9096396,"src":"Lyme_Regis_The_Cobb_12-1_1_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_9096396.html","width":130,"caption":"The Cobb","height":87});
															thumbnails[394103] = clik.newPhoto({"id":394103,"src":"Colmer Hill Nr Bridport _thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_394103.html","width":130,"caption":"Colmer Hill ","height":86});
															thumbnails[636489] = clik.newPhoto({"id":636489,"src":"Kimmeridge_05_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_636489.html","width":130,"caption":"Dawn at Kimmeridge ","height":78});
															thumbnails[4466891] = clik.newPhoto({"id":4466891,"src":"West_Dorset_Field_bw01-1_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_4466891.html","width":130,"caption":"The Field","height":87});
															thumbnails[5678127] = clik.newPhoto({"id":5678127,"src":"Card_2_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678127.html","width":130,"caption":"Dorset Bluebells","height":87});
															thumbnails[7211905] = clik.newPhoto({"id":7211905,"src":"Dunyeats_Hill_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7211905.html","width":130,"caption":"Dunyeats Hill ","height":87});
															thumbnails[8700005] = clik.newPhoto({"id":8700005,"src":"Moor_Crichel_Beech_Avenue_01_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8700005.html","width":130,"caption":"The Avenue","height":87});
															thumbnails[2237202] = clik.newPhoto({"id":2237202,"src":"Card 1 Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237202.html","width":130,"caption":"Dorset Poppies ","height":88});
															thumbnails[7124734] = clik.newPhoto({"id":7124734,"src":"Gold_Hill_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124734.html","width":130,"caption":"Gold Hill","height":86});
															thumbnails[8699983] = clik.newPhoto({"id":8699983,"src":"Upton_Park_04_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8699983.html","width":130,"caption":"Upton Park","height":87});
															thumbnails[9096308] = clik.newPhoto({"id":9096308,"src":"EggardonHillSunset03Copy_1_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_9096308.html","width":130,"caption":"Eggardon Hill ","height":86});
															thumbnails[393720] = clik.newPhoto({"id":393720,"src":"Corfe Castle 31_thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_393720.html","width":130,"caption":"Corfe Castle","height":86});
															thumbnails[2237220] = clik.newPhoto({"id":2237220,"src":"Card 5 Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237220.html","width":130,"caption":"Durdle Door Sunset","height":86});
															thumbnails[8700016] = clik.newPhoto({"id":8700016,"src":"Upton_Park_02_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8700016.html","width":130,"caption":"Upton Park","height":87});
															thumbnails[394137] = clik.newPhoto({"id":394137,"src":"Card_20_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_394137.html","width":130,"caption":"Gold Hill","height":86});
															thumbnails[3615156] = clik.newPhoto({"id":3615156,"src":"Z-Corfe_Castle_and_Train_thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_3615156.html","width":130,"caption":"Corfe Castle ","height":87});
															thumbnails[5678120] = clik.newPhoto({"id":5678120,"src":"Card_5_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678120.html","width":130,"caption":"Lyme Regis","height":83});
															thumbnails[8712875] = clik.newPhoto({"id":8712875,"src":"UptonPark05_thumb.jpg","galleries_id":458950,"server_id":1,"link":"photo_8712875.html","width":130,"caption":"Upton Park ","height":87});
															thumbnails[1527869] = clik.newPhoto({"id":1527869,"src":"Card_21_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_1527869.html","width":130,"caption":"Milton Abbas ","height":90});
															thumbnails[2237236] = clik.newPhoto({"id":2237236,"src":"Card_12_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237236.html","width":130,"caption":"Poole Harbour","height":86});
															thumbnails[7211939] = clik.newPhoto({"id":7211939,"src":"Dunyeats_Hill_03_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7211939.html","width":130,"caption":"Trees ","height":87});
															thumbnails[632720] = clik.newPhoto({"id":632720,"src":"Harvest_Time_17_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_632720.html","width":130,"caption":"Harvest Time ","height":86});
															thumbnails[396753] = clik.newPhoto({"id":396753,"src":"1_thumb.Hengistbury Head Beach at Dawn .jpg","galleries_id":31457,"server_id":1,"link":"photo_396753.html","width":130,"caption":"Hengistbury Head and Beach","height":87});
															thumbnails[5678124] = clik.newPhoto({"id":5678124,"src":"Card_11_Front_828A13D8-1EC9-D45B-1CFCA7FFB9625066_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678124.html","width":130,"caption":"Poole Park","height":87});
															thumbnails[7164551] = clik.newPhoto({"id":7164551,"src":"Moor_Crichel_Beech_Avenue_02_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_7164551.html","width":130,"caption":"Moor Crichel","height":86});
															thumbnails[7211935] = clik.newPhoto({"id":7211935,"src":"Dunyeats_Hill_02_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7211935.html","width":130,"caption":"Trees ","height":87});
															thumbnails[1527884] = clik.newPhoto({"id":1527884,"src":"Kimmeridge Beach _thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_1527884.html","width":130,"caption":"Kimmeridge Bay ","height":87});
															thumbnails[2237228] = clik.newPhoto({"id":2237228,"src":"Card_11_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237228.html","width":130,"caption":"Poole Quay","height":85});
															thumbnails[3615197] = clik.newPhoto({"id":3615197,"src":"Z-River_Frome_at_Wareham_01_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_3615197.html","width":130,"caption":"River Frome","height":87});
															thumbnails[7124934] = clik.newPhoto({"id":7124934,"src":"Trees_on_Zig_Zag_Hill_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124934.html","width":130,"caption":"Trees ","height":86});
															thumbnails[7211941] = clik.newPhoto({"id":7211941,"src":"View_from_Dunyeats_Hill_02_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7211941.html","width":130,"caption":"View from Dunyeat's Hill","height":83});
															thumbnails[9096339] = clik.newPhoto({"id":9096339,"src":"Swanage_Pier_04-1_1_thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_9096339.html","width":130,"caption":"Swanage Pier","height":87});
															thumbnails[7405622] = clik.newPhoto({"id":7405622,"src":"Snowdrops_09-1_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_7405622.html","width":130,"caption":"Snowdrops ","height":91});
															thumbnails[8763374] = clik.newPhoto({"id":8763374,"src":"Weymouth_Beach_Huts_17._thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_8763374.html","width":130,"caption":"Weymouth Beach Huts","height":86});
															thumbnails[2237234] = clik.newPhoto({"id":2237234,"src":"Card_6_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237234.html","width":130,"caption":"Portland Lighthouse","height":86});
															thumbnails[7124951] = clik.newPhoto({"id":7124951,"src":"View_from_Zig_Zag_Hill_01_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124951.html","width":130,"caption":"View from Zig Zag Hill ","height":86});
															thumbnails[7124971] = clik.newPhoto({"id":7124971,"src":"View_from_Zig_Zag_Hill_02_thumb.jpg","galleries_id":385365,"server_id":1,"link":"photo_7124971.html","width":130,"caption":"View from Zig Zag Hill ","height":86});
															thumbnails[5678149] = clik.newPhoto({"id":5678149,"src":"Card_3_Front__thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678149.html","width":130,"caption":"Portland Bill","height":87});
															thumbnails[2237218] = clik.newPhoto({"id":2237218,"src":"Card_9_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237218.html","width":130,"caption":"River Frome ","height":87});
															thumbnails[1013264] = clik.newPhoto({"id":1013264,"src":"Sunset over Poole Harbour 01_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_1013264.html","width":130,"caption":"Poole Harbour Sunset ","height":86});
															thumbnails[2240939] = clik.newPhoto({"id":2240939,"src":"Poole Quay jpg_thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_2240939.html","width":130,"caption":"Poole Quay ","height":72});
															thumbnails[9096356] = clik.newPhoto({"id":9096356,"src":"Trees_Compton_Abbas_bw01_1_thumb.jpg","galleries_id":260391,"server_id":1,"link":"photo_9096356.html","width":130,"caption":"Trees at Dusk","height":87});
															thumbnails[2237231] = clik.newPhoto({"id":2237231,"src":"Card_14_Front1_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2237231.html","width":130,"caption":"Swanage ","height":87});
															thumbnails[396791] = clik.newPhoto({"id":396791,"src":"Portland Bill 04_thumb.jpg","galleries_id":147318,"server_id":1,"link":"photo_396791.html","width":130,"caption":"Portland ","height":86});
															thumbnails[5678167] = clik.newPhoto({"id":5678167,"src":"Card_8_Front_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678167.html","width":130,"caption":"Swanage Pier<br>\r\n<br>\r\n<br>\r\n","height":87});
															thumbnails[5678159] = clik.newPhoto({"id":5678159,"src":"Card_12_Front_82966B92-1EC9-D45B-1C8C53CA1B869068_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678159.html","width":130,"caption":"The Cobb","height":85});
															thumbnails[3615160] = clik.newPhoto({"id":3615160,"src":"Z-Dawn_on_the_River_Frome_01jpg_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_3615160.html","width":130,"caption":"River Frome at Dawn","height":87});
															thumbnails[5678139] = clik.newPhoto({"id":5678139,"src":"Westbay_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678139.html","width":130,"caption":"Westbay ","height":91});
															thumbnails[6988472] = clik.newPhoto({"id":6988472,"src":"Card_12_Front_09A4EDC5-24E8-5EC4-4F2225B42284E794_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_6988472.html","width":130,"caption":"Weymouth","height":89});
															thumbnails[5678142] = clik.newPhoto({"id":5678142,"src":"Card_6_Front__thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_5678142.html","width":130,"caption":"Whitemill Bridge","height":87});
															thumbnails[2245729] = clik.newPhoto({"id":2245729,"src":"Card_12_Back_thumb.jpg","galleries_id":208827,"server_id":1,"link":"photo_2245729.html","width":130,"caption":"Sample of the back of the card","height":87});
															thumbnails[1013305] = clik.newPhoto({"id":1013305,"src":"River Stour at Dawn 05_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_1013305.html","width":130,"caption":"River Stour at Dawn.","height":86});
															thumbnails[629150] = clik.newPhoto({"id":629150,"src":"River Stour Sunrise_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_629150.html","width":130,"caption":"River Stour Sunrise ","height":87});
															thumbnails[725848] = clik.newPhoto({"id":725848,"src":"Sunset at Durdle Dor 01_thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_725848.html","width":130,"caption":"Sunset over Durdle Door","height":86});
															thumbnails[1527870] = clik.newPhoto({"id":1527870,"src":"Sunset over Portland _thumb.jpg","galleries_id":31457,"server_id":1,"link":"photo_1527870.html","width":130,"caption":"Sunset over Portland ","height":86});
															thumbnails[396783] = clik.newPhoto({"id":396783,"src":"View from Eggarden Hill 01_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_396783.html","width":130,"caption":"West Dorset","height":86});
															thumbnails[2240934] = clik.newPhoto({"id":2240934,"src":"_thumb.Worborrow Bay.jpg","galleries_id":147318,"server_id":1,"link":"photo_2240934.html","width":130,"caption":"Worbarrow Bay","height":76});
															thumbnails[4960007] = clik.newPhoto({"id":4960007,"src":"Clikpic_Whitemill_Bridge_09_thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_4960007.html","width":130,"caption":"Whitemill Bridge","height":87});
															thumbnails[3847229] = clik.newPhoto({"id":3847229,"src":"050605_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_3847229.html","width":130,"caption":"Wild Garlic ","height":87});
															thumbnails[9096243] = clik.newPhoto({"id":9096243,"src":"Whitemill_Bridge_5_thumb1_2.jpg","galleries_id":147328,"server_id":1,"link":"photo_9096243.html","width":130,"caption":"Whitemill Bridge ","height":83});
															thumbnails[1527881] = clik.newPhoto({"id":1527881,"src":"Witchampton Church 01-1_thumb.jpg","galleries_id":147328,"server_id":1,"link":"photo_1527881.html","width":130,"caption":"Witchampton Church ","height":86});
															thumbnails[396788] = clik.newPhoto({"id":396788,"src":"View from Zig-Zag Hill 41_thumb.jpg","galleries_id":31547,"server_id":1,"link":"photo_396788.html","width":130,"caption":"Zig-Zag Hill","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[458950] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset in Autumn","link":"gallery_458950.html","maxRecords":0.0,"photoIDs":[8712858.0,8732353.0,8700046.0,8732357.0,8700005.0,8699983.0,8700016.0,8712875.0],"skipIndex":0,"section_code":"gallery","featured_images":"8732357,8732353,8712875,8712858,8700046,8700016,8700005,8699983","id":458950,"singleSection":false});				  						galleries[260391] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset in Black & White","link":"gallery_260391.html","maxRecords":0.0,"photoIDs":[9096284.0,4466894.0,4466895.0,8732346.0,4466902.0,8712679.0,4455119.0,4455125.0,4455113.0,6060538.0,9096396.0,4466891.0,9096356.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096396,9096356,9096284,8732346,8712679,6060538,4466902,4466895,4466894,4466891","id":260391,"singleSection":false});				  						galleries[147328] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset Buildings ","link":"gallery_147328.html","maxRecords":0.0,"photoIDs":[394097.0,393720.0,3615156.0,9096339.0,8763374.0,4960007.0,9096243.0,1527881.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096339,9096243,8763374,4960007,3615156,1527881,394097,393720","id":147328,"singleSection":false});				  						galleries[147318] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset Coast","link":"gallery_147318.html","maxRecords":0.0,"photoIDs":[8732477.0,2240935.0,5287420.0,1527884.0,2240939.0,396791.0,2240934.0],"skipIndex":0,"section_code":"gallery","featured_images":"8732477,5287420,2240939,2240935,2240934,1527884,396791","id":147318,"singleSection":false});				  						galleries[31547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset Countryside","link":"gallery_31547.html","maxRecords":0.0,"photoIDs":[1527864.0,7018052.0,396754.0,1013284.0,9096273.0,3824633.0,3824630.0,3847165.0,5901782.0,394103.0,9096308.0,632720.0,7164551.0,3615197.0,7405622.0,396783.0,3847229.0,396788.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096308,9096273,7405622,7164551,7018052,5901782,3847229,3847165,3824633,3824630","id":31547,"singleSection":false});				  						galleries[31457] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset Sunsets and Sunrises","link":"gallery_31457.html","maxRecords":0.0,"photoIDs":[5285785.0,5285786.0,3414638.0,8960225.0,636489.0,396753.0,1013264.0,3615160.0,1013305.0,629150.0,725848.0,1527870.0],"skipIndex":0,"section_code":"gallery","featured_images":"8960225,5285786,5285785,3615160,3414638,1527870,1013305,1013264,725848,636489","id":31457,"singleSection":false});				  						galleries[208827] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset Cards ","link":"gallery_208827.html","maxRecords":0.0,"photoIDs":[2237224.0,3417759.0,2237229.0,6988492.0,2237238.0,2237241.0,5678152.0,2237213.0,2237226.0,6988480.0,5678116.0,5678127.0,2237202.0,2237220.0,394137.0,5678120.0,1527869.0,2237236.0,5678124.0,2237228.0,2237234.0,5678149.0,2237218.0,2237231.0,5678167.0,5678159.0,5678139.0,6988472.0,5678142.0,2245729.0],"skipIndex":0,"section_code":"gallery","featured_images":"6988492,6988480,6988472,5678167,5678159,5678152,5678149,5678142,5678139,5678127","id":208827,"singleSection":false});				  						galleries[385365] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset in Winter","link":"gallery_385365.html","maxRecords":0.0,"photoIDs":[7124673.0,7124677.0,9096395.0,7124705.0,7124963.0,7211905.0,7124734.0,7211939.0,7211935.0,7124934.0,7211941.0,7124951.0,7124971.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096395,7211941,7211939,7211935,7211905,7124971,7124963,7124951,7124934,7124734","id":385365,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8732477,9096284,4466895,8732346,5285786,1013284,8712679,9096273,2240935,8960225,8732353,5287420,6060538,8732357,636489,9096308,8700016,9096339,8763374,3615160,1013305,9096243';
imageSets[3] = '9096396,9096395,9096356,9096339,9096308,9096284,9096273,9096243,8960225,8763374,8732477,8732357,8732353,8732346,8712875,8712858,8712679,8700046,8700016,8700005,8699983,7405622,7211941,7211939,7211935,7211905,7164551,7124971,7124963,7124951,7124934,7124734,7124705,7124677,7124673,7018052,6988492,6988480,6988472,6060538,5901782,5678167,5678159,5678152,5678149,5678142,5678139,5678127,5678124,5678120';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Andrewchild/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Andrewchild/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 = 'Dorsetgallery: ' + 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="dorsetgallery@aol.com">';
					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="dorsetgallery@aol.com">';
				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;
	}
}

			

