window.thumbnails = {};
															thumbnails[609982] = clik.newPhoto({"id":609982,"src":"Charmouth_Dorset_7_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_609982.html","width":130,"caption":"Charmouth","height":92});
															thumbnails[609993] = clik.newPhoto({"id":609993,"src":"Bats_Head_&_Durdle Door_4_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_609993.html","width":130,"caption":"Bat's Head & Durdle Door","height":80});
															thumbnails[610028] = clik.newPhoto({"id":610028,"src":"Cardiff_Bay_Pierhead_buildings_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_610028.html","width":130,"caption":"Cardiff Bay","height":77});
															thumbnails[610041] = clik.newPhoto({"id":610041,"src":"Nash_Point_44_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_610041.html","width":130,"caption":"Nash Point","height":88});
															thumbnails[610047] = clik.newPhoto({"id":610047,"src":"Holkham_Sands_(BW)_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_610047.html","width":130,"caption":"Holkham Sands","height":92});
															thumbnails[610075] = clik.newPhoto({"id":610075,"src":"Thames_side_view1_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_610075.html","width":130,"caption":"Thames-side","height":92});
															thumbnails[610099] = clik.newPhoto({"id":610099,"src":"West_Bay_Cliffs1_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_610099.html","width":130,"caption":"West Bay","height":92});
															thumbnails[611435] = clik.newPhoto({"id":611435,"src":"Kimmeridge_Bay_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_611435.html","width":130,"caption":"Kimmeridge Bay","height":92});
															thumbnails[611439] = clik.newPhoto({"id":611439,"src":"Chapmans_Pool_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_611439.html","width":130,"caption":"Chapman's Pool","height":92});
															thumbnails[611511] = clik.newPhoto({"id":611511,"src":"Durdle_Door_Profile_at_Sunset_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_611511.html","width":130,"caption":"Durdle Door","height":92});
															thumbnails[611524] = clik.newPhoto({"id":611524,"src":"Brighton_West_Pier_Sunset_&_Birds_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_611524.html","width":130,"caption":"Brighton, West pier","height":92});
															thumbnails[611526] = clik.newPhoto({"id":611526,"src":"River_Cuckmere_3_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_611526.html","width":130,"caption":"River Cuckmere","height":92});
															thumbnails[612251] = clik.newPhoto({"id":612251,"src":"Craig_Y_Llyn_3_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_612251.html","width":130,"caption":"Craig-Y-LLyn","height":92});
															thumbnails[612259] = clik.newPhoto({"id":612259,"src":"Leigh_Creek_3_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_612259.html","width":130,"caption":"Leigh Creek","height":71});
															thumbnails[612291] = clik.newPhoto({"id":612291,"src":"Dunraven_Bay_Dramatic_Sunset_2_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_612291.html","width":130,"caption":"Dunraven Bay","height":70});
															thumbnails[612308] = clik.newPhoto({"id":612308,"src":"Rest_Bay_Porthcawl_4_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_612308.html","width":130,"caption":"Rest Bay","height":92});
															thumbnails[613597] = clik.newPhoto({"id":613597,"src":"Camber_Sands_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_613597.html","width":130,"caption":"Camber Sands","height":78});
															thumbnails[613603] = clik.newPhoto({"id":613603,"src":"Nr_Orcombe_Point_3_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_613603.html","width":130,"caption":"Near Orcombe Point","height":92});
															thumbnails[613609] = clik.newPhoto({"id":613609,"src":"Portland_Bill_Lighthouse_3_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_613609.html","width":130,"caption":"Portland Bill","height":92});
															thumbnails[613643] = clik.newPhoto({"id":613643,"src":"Tenby_Harbour_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_613643.html","width":130,"caption":"Tenby harbour","height":92});
															thumbnails[613977] = clik.newPhoto({"id":613977,"src":"Aberdulais1_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_613977.html","width":86,"caption":"Aberdulais Falls","height":130});
															thumbnails[614077] = clik.newPhoto({"id":614077,"src":"Sgwd_(Uchaf)_Clungwyn_2_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_614077.html","width":92,"caption":"Sgwd (Uchaf) Clun-Gwyn","height":130});
															thumbnails[614110] = clik.newPhoto({"id":614110,"src":"Sgwd_Gwladys_6_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_614110.html","width":87,"caption":"Sgwd Gwladys","height":130});
															thumbnails[615406] = clik.newPhoto({"id":615406,"src":"Norweigian_Church_(Sepia)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_615406.html","width":130,"caption":"The Norweigian Church","height":92});
															thumbnails[615408] = clik.newPhoto({"id":615408,"src":"Studland_at_Sunset_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_615408.html","width":130,"caption":"Studland ","height":83});
															thumbnails[615413] = clik.newPhoto({"id":615413,"src":"Leigh_Creek_3A_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_615413.html","width":130,"caption":"Leigh Creek","height":92});
															thumbnails[615570] = clik.newPhoto({"id":615570,"src":"Melincourt_(BW)_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_615570.html","width":92,"caption":"Melincourt falls","height":130});
															thumbnails[619036] = clik.newPhoto({"id":619036,"src":"Rhossili_Down_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_619036.html","width":130,"caption":"Rhossili Down","height":79});
															thumbnails[625360] = clik.newPhoto({"id":625360,"src":"Westminster_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_625360.html","width":130,"caption":"Westminster","height":104});
															thumbnails[627411] = clik.newPhoto({"id":627411,"src":"The_Needles_at_sunset_5_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_627411.html","width":130,"caption":"The Needles","height":70});
															thumbnails[636262] = clik.newPhoto({"id":636262,"src":"Pulpit_Rock_8_thumb.jpg","galleries_id":46296,"server_id":15,"link":"photo_636262.html","width":130,"caption":"Pulpit Rock","height":92});
															thumbnails[640748] = clik.newPhoto({"id":640748,"src":"Battersea Sunset_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_640748.html","width":86,"caption":"Bettersea Power Station","height":130});
															thumbnails[640750] = clik.newPhoto({"id":640750,"src":"The_London_Eye_&_river_view_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_640750.html","width":130,"caption":"The London Eye","height":93});
															thumbnails[648451] = clik.newPhoto({"id":648451,"src":"Worms_Head_31_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_648451.html","width":130,"caption":"Worms Head","height":92});
															thumbnails[649137] = clik.newPhoto({"id":649137,"src":"Mumbles_Head_&_Lighthouse_2 (BW)_ Lith_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_649137.html","width":130,"caption":"Mumbles Head","height":92});
															thumbnails[692505] = clik.newPhoto({"id":692505,"src":"Corfe_Castle_2_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_692505.html","width":87,"caption":"Corfe Castle","height":130});
															thumbnails[692515] = clik.newPhoto({"id":692515,"src":"Houses_of_Parliament_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_692515.html","width":130,"caption":"The Houses of Parliament","height":78});
															thumbnails[705529] = clik.newPhoto({"id":705529,"src":"Dunraven_Bay_at_Sunset_14_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_705529.html","width":130,"caption":"Dunraven Bay","height":92});
															thumbnails[714990] = clik.newPhoto({"id":714990,"src":"Leigh_Creek_5_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_714990.html","width":130,"caption":"Leigh Creek","height":87});
															thumbnails[716632] = clik.newPhoto({"id":716632,"src":"Mumbles_Head_&_Lighthouse_3_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_716632.html","width":130,"caption":"Mumbles Head","height":79});
															thumbnails[721904] = clik.newPhoto({"id":721904,"src":"Bracelet_Bay_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_721904.html","width":130,"caption":"Bracelet Bay","height":70});
															thumbnails[721906] = clik.newPhoto({"id":721906,"src":"Rhossilli_Bay_Gower_South_Wales_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_721906.html","width":130,"caption":"Rhossili Bay","height":92});
															thumbnails[722807] = clik.newPhoto({"id":722807,"src":"Rhondda_Heritage_Park_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_722807.html","width":130,"caption":"Rhondda Heritage Park","height":92});
															thumbnails[722809] = clik.newPhoto({"id":722809,"src":"St_Catherines_Oratory_(BW)_2_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_722809.html","width":130,"caption":"St. Catherine's Oratory","height":92});
															thumbnails[727225] = clik.newPhoto({"id":727225,"src":"Knap_beach_cloudscape1_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_727225.html","width":130,"caption":"Knap cloudscape","height":88});
															thumbnails[727234] = clik.newPhoto({"id":727234,"src":"The_Old_Harbour_Barry_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_727234.html","width":130,"caption":"The Old Harbour","height":92});
															thumbnails[733194] = clik.newPhoto({"id":733194,"src":"Sgwd_Isaf_Clungwyn_5 (BW)_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_733194.html","width":130,"caption":"Sgwd Isaf Clun Gwyn","height":80});
															thumbnails[754706] = clik.newPhoto({"id":754706,"src":"Broken_Fence_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_754706.html","width":130,"caption":"Broken Fence","height":85});
															thumbnails[1656048] = clik.newPhoto({"id":1656048,"src":"Boxgrove Priory 2 (BW)1_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_1656048.html","width":130,"caption":"Boxgrove Priory","height":89});
															thumbnails[1656052] = clik.newPhoto({"id":1656052,"src":"Nash Point 4 (BW)_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_1656052.html","width":130,"caption":"Nash Point, south Wales ","height":95});
															thumbnails[1656066] = clik.newPhoto({"id":1656066,"src":"Nash_Point_rocks_&_lighthouse_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1656066.html","width":130,"caption":"Nash Point Lighthouse","height":84});
															thumbnails[1666399] = clik.newPhoto({"id":1666399,"src":"St David's Hotel_thumb.jpg","galleries_id":46301,"server_id":15,"link":"photo_1666399.html","width":85,"caption":"St. David's Hotel","height":130});
															thumbnails[1666402] = clik.newPhoto({"id":1666402,"src":"De La Warr Interior 3_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1666402.html","width":130,"caption":"Stairwell","height":97});
															thumbnails[1666403] = clik.newPhoto({"id":1666403,"src":"Straw_Bales_South_Downs_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1666403.html","width":130,"caption":"South Downs","height":81});
															thumbnails[1673816] = clik.newPhoto({"id":1673816,"src":"Abney Park Chapel 2 (BW tone)_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_1673816.html","width":130,"caption":"Abandoned chapel","height":87});
															thumbnails[1742233] = clik.newPhoto({"id":1742233,"src":"Three Cliffs Bay 4 (BW)_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1742233.html","width":130,"caption":"Three Cliffs Bay","height":95});
															thumbnails[1745845] = clik.newPhoto({"id":1745845,"src":"Spinaker Tower 2 (BW)_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_1745845.html","width":86,"caption":"Spinnaker Tower","height":130});
															thumbnails[1747575] = clik.newPhoto({"id":1747575,"src":"Abney Park Chapel 3 (BW-tone)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1747575.html","width":130,"caption":"Disused Chapel","height":91});
															thumbnails[1767206] = clik.newPhoto({"id":1767206,"src":"Castell Coch 3 (BW-tone)_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1767206.html","width":130,"caption":"Castell Coch","height":92});
															thumbnails[1781767] = clik.newPhoto({"id":1781767,"src":"Pulpit Rock 4 (BW-Lith)_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1781767.html","width":130,"caption":"Pulpit Rock","height":86});
															thumbnails[1781783] = clik.newPhoto({"id":1781783,"src":"Whiteford Lighthouse_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1781783.html","width":130,"caption":"Whiteford Lighthouse","height":92});
															thumbnails[1781796] = clik.newPhoto({"id":1781796,"src":"Neath Abbey 5_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1781796.html","width":130,"caption":"Neath Abbey","height":74});
															thumbnails[1802503] = clik.newPhoto({"id":1802503,"src":"Camden Lock (tone)_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_1802503.html","width":94,"caption":"Regents Canal","height":130});
															thumbnails[1805163] = clik.newPhoto({"id":1805163,"src":"Rhossilli Bay Gower  South Wales 4_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1805163.html","width":130,"caption":"Rhossili Bay","height":85});
															thumbnails[1813221] = clik.newPhoto({"id":1813221,"src":"Battle abbey_thumb.jpg","galleries_id":46302,"server_id":15,"link":"photo_1813221.html","width":130,"caption":"Battle Abbey","height":83});
															thumbnails[1813300] = clik.newPhoto({"id":1813300,"src":"Wakehurst Tree 3 (IR-Tone)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1813300.html","width":88,"caption":"Enchanted tree","height":130});
															thumbnails[1813317] = clik.newPhoto({"id":1813317,"src":"Tintern Abbey (IR Gold)_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_1813317.html","width":130,"caption":"Tintern Abbey","height":85});
															thumbnails[1813325] = clik.newPhoto({"id":1813325,"src":"Dungeness Boats (BW) 2_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1813325.html","width":130,"caption":"Abandoned ","height":83});
															thumbnails[1813328] = clik.newPhoto({"id":1813328,"src":"Reculver Towers (BW) 2_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1813328.html","width":130,"caption":"Reculver Towers","height":91});
															thumbnails[1813335] = clik.newPhoto({"id":1813335,"src":"Wilton's 2 (BW)_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1813335.html","width":99,"caption":"Wilton's Music Hall","height":130});
															thumbnails[1814715] = clik.newPhoto({"id":1814715,"src":"Winter Hampstead Heath (tone)_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1814715.html","width":86,"caption":"Hampstead Heath ","height":130});
															thumbnails[1823417] = clik.newPhoto({"id":1823417,"src":"Thames barrier & Canary Wharf 2_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_1823417.html","width":130,"caption":"The Thames Barrier & Canary Wharf","height":70});
															thumbnails[1823492] = clik.newPhoto({"id":1823492,"src":"Churchill & Big Ben 2_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_1823492.html","width":89,"caption":"Churchill Statue & Big Ben","height":130});
															thumbnails[1826383] = clik.newPhoto({"id":1826383,"src":"Summer cloudscape IOW_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1826383.html","width":130,"caption":"Summer cloudscape","height":75});
															thumbnails[1846804] = clik.newPhoto({"id":1846804,"src":"Candleston Castle (BW-IR)-tone 7_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_1846804.html","width":130,"caption":"Candleston castle","height":90});
															thumbnails[1859830] = clik.newPhoto({"id":1859830,"src":"Mike Howell - Winter Hampstead Heath_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1859830.html","width":86,"caption":"Hampstead Heath","height":130});
															thumbnails[1875629] = clik.newPhoto({"id":1875629,"src":"Mewslade Bay (BW-IR)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1875629.html","width":130,"caption":"Mewslade Bay","height":66});
															thumbnails[1875674] = clik.newPhoto({"id":1875674,"src":"Pulteney Bridge 3 (BW-Sel)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1875674.html","width":83,"caption":"Pulteney bridge","height":130});
															thumbnails[1875722] = clik.newPhoto({"id":1875722,"src":"Royal Crescent 2 (BW)_thumb.jpg","galleries_id":46338,"server_id":15,"link":"photo_1875722.html","width":130,"caption":"Royal Crescent","height":62});
															thumbnails[1929755] = clik.newPhoto({"id":1929755,"src":"Tower Bridge at Dusk 4_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_1929755.html","width":130,"caption":"Tower Bridge","height":92});
															thumbnails[1929771] = clik.newPhoto({"id":1929771,"src":"Canary Wharf & O2 2_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_1929771.html","width":89,"caption":"Canary Wharf","height":130});
															thumbnails[1929783] = clik.newPhoto({"id":1929783,"src":"Tor Bay & Great Tor_thumb.jpg","galleries_id":46300,"server_id":15,"link":"photo_1929783.html","width":130,"caption":"Tor bay & Great Tor","height":86});
															thumbnails[1933897] = clik.newPhoto({"id":1933897,"src":"Sunset Birling Gap_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_1933897.html","width":130,"caption":"Sunset at Birling Gap","height":81});
															thumbnails[1933907] = clik.newPhoto({"id":1933907,"src":"Halnaker Windmill 3_thumb.jpg","galleries_id":46298,"server_id":15,"link":"photo_1933907.html","width":130,"caption":"Halnaker Windmill","height":86});
															thumbnails[1937304] = clik.newPhoto({"id":1937304,"src":"Lloyds_thumb.jpg","galleries_id":54858,"server_id":15,"link":"photo_1937304.html","width":87,"caption":"Lloyds","height":130});
															thumbnails[1937317] = clik.newPhoto({"id":1937317,"src":"British Museum Great Court_thumb.jpg","galleries_id":109941,"server_id":15,"link":"photo_1937317.html","width":130,"caption":"Great Court","height":90});
															thumbnails[1937355] = clik.newPhoto({"id":1937355,"src":"Cabot Square (Lith)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1937355.html","width":130,"caption":"Cabot Square","height":85});
															thumbnails[1944926] = clik.newPhoto({"id":1944926,"src":"Little Venice (tone)_thumb.jpg","galleries_id":109942,"server_id":15,"link":"photo_1944926.html","width":130,"caption":"Little Venice","height":82});
															thumbnails[2029255] = clik.newPhoto({"id":2029255,"src":"Candleston Castle (BW-IR) tone 8_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2029255.html","width":130,"caption":"Candleston Castle","height":87});
															thumbnails[2059025] = clik.newPhoto({"id":2059025,"src":"New Forest Meadow_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2059025.html","width":130,"caption":"New Forest Meadow","height":88});
															thumbnails[2086763] = clik.newPhoto({"id":2086763,"src":"Bembridge Windmill_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2086763.html","width":130,"caption":"Bembridge Windmill","height":92});
															thumbnails[2123685] = clik.newPhoto({"id":2123685,"src":"Battle Abbey 2_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2123685.html","width":130,"caption":"Battle Abbey","height":88});
															thumbnails[2185668] = clik.newPhoto({"id":2185668,"src":"Cowdray Park 3_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2185668.html","width":130,"caption":"Cowdray House","height":87});
															thumbnails[2185676] = clik.newPhoto({"id":2185676,"src":"Stourhead_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2185676.html","width":130,"caption":"Stourhead","height":88});
															thumbnails[2735813] = clik.newPhoto({"id":2735813,"src":"Usk Castle 2_thumb.jpg","galleries_id":109943,"server_id":15,"link":"photo_2735813.html","width":130,"caption":"Usk Castle","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[46302] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White 1","link":"gallery_46302.html","maxRecords":0.0,"photoIDs":[610047.0,615570.0,727225.0,727234.0,754706.0,1656048.0,1656052.0,1745845.0,1802503.0,1813221.0],"skipIndex":0,"section_code":"gallery","featured_images":"1656052,1656048,610047","id":46302,"singleSection":false});				  						galleries[46338] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White 2 ","link":"gallery_46338.html","maxRecords":0.0,"photoIDs":[613977.0,722807.0,733194.0,1666402.0,1742233.0,1781796.0,1813328.0,1826383.0,1875722.0],"skipIndex":0,"section_code":"gallery","featured_images":"1875722,1826383,1813328,1781796,1742233,1666402,733194,722807,613977","id":46338,"singleSection":false});				  						galleries[109941] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Toned Images 1","link":"gallery_109941.html","maxRecords":0.0,"photoIDs":[649137.0,1656066.0,1666403.0,1767206.0,1781767.0,1805163.0,1813325.0,1813335.0,1814715.0,1937317.0],"skipIndex":0,"section_code":"gallery","featured_images":"1937317,1656066","id":109941,"singleSection":false});				  						galleries[109942] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Toned Images 2","link":"gallery_109942.html","maxRecords":0.0,"photoIDs":[615406.0,722809.0,1747575.0,1781783.0,1813300.0,1859830.0,1875629.0,1875674.0,1937355.0,1944926.0],"skipIndex":0,"section_code":"gallery","featured_images":722809.0,"id":109942,"singleSection":false});				  						galleries[109943] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Infrared","link":"gallery_109943.html","maxRecords":0.0,"photoIDs":[1673816.0,1813317.0,1846804.0,2029255.0,2059025.0,2086763.0,2123685.0,2185668.0,2185676.0,2735813.0],"skipIndex":0,"section_code":"gallery","featured_images":"2185668,2029255","id":109943,"singleSection":false});				  						galleries[46300] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Gower","link":"gallery_46300.html","maxRecords":0.0,"photoIDs":[619036.0,648451.0,716632.0,721904.0,721906.0,1929783.0],"skipIndex":0,"section_code":"gallery","featured_images":716632.0,"id":46300,"singleSection":false});				  						galleries[46301] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South & West Wales","link":"gallery_46301.html","maxRecords":0.0,"photoIDs":[610028.0,610041.0,612251.0,612291.0,612308.0,613643.0,614077.0,614110.0,705529.0,1666399.0],"skipIndex":0,"section_code":"gallery","featured_images":"1666399,610028","id":46301,"singleSection":false});				  						galleries[46296] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jurassic Coast ","link":"gallery_46296.html","maxRecords":0.0,"photoIDs":[609982.0,609993.0,610099.0,611435.0,611439.0,611511.0,613603.0,613609.0,615408.0,636262.0],"skipIndex":0,"section_code":"gallery","featured_images":"609993,609982","id":46296,"singleSection":false});				  						galleries[46298] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Southern & Eastern England","link":"gallery_46298.html","maxRecords":0.0,"photoIDs":[611524.0,611526.0,612259.0,613597.0,615413.0,627411.0,692505.0,714990.0,1933897.0,1933907.0],"skipIndex":0,"section_code":"gallery","featured_images":1933897.0,"id":46298,"singleSection":false});				  						galleries[54858] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_54858.html","maxRecords":0.0,"photoIDs":[610075.0,625360.0,640748.0,640750.0,692515.0,1823417.0,1823492.0,1929755.0,1929771.0,1937304.0],"skipIndex":0,"section_code":"gallery","featured_images":"1929755,625360","id":54858,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2185676,1813325,1813300,1742233';
imageSets[2] = '2185668,2029255,1937317,1933897,1929755,1666399,1656066,1656052,1656048,722809,716632,625360,610047,610028,609993,609982';
imageSets[3] = '2735813,2185676,2185668,2123685,2086763,2059025,2029255,1944926,1937355,1937317,1937304,1933907,1933897,1929783,1929771,1929755,1875722,1875674,1875629,1859830,1846804,1826383,1823492,1823417,1814715,1813335,1813328,1813325,1813317,1813300,1813221,1805163,1802503,1781796,1781783,1781767,1767206,1747575,1745845,1742233,1673816,1666403,1666402,1666399,1656066,1656052,1656048,754706,733194,727234';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mdhowell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mdhowell/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 && backgrounds[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 = 'Mike Howell Photographic Artist: ' + 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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 += '<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;
	}
}

			

