window.thumbnails = {};
															thumbnails[9082435] = clik.newPhoto({"id":9082435,"src":"TrethevyQuoit1024_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9082435.html","width":130,"caption":"Trethevy Quoit, Cornwall. Limited Edition Giclée print.","height":175});
															thumbnails[9082404] = clik.newPhoto({"id":9082404,"src":"LanyonQuoitBW1024_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9082404.html","width":130,"caption":"Lanyon Quoit, Cornwall. Limited Edition Giclée print.","height":179});
															thumbnails[9087786] = clik.newPhoto({"id":9087786,"src":"ChunQuoitBW2_1_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9087786.html","width":130,"caption":"Chun Quoit, Cornwall. Limited Edition Giclée print.","height":173});
															thumbnails[1646292] = clik.newPhoto({"id":1646292,"src":"Beauty of Flowers no5 (600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646292.html","width":130,"caption":"Beauty of Flowers No.5: Dandelion. Limited Edition Giclée print.","height":409});
															thumbnails[9082274] = clik.newPhoto({"id":9082274,"src":"MachrieStone1024_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9082274.html","width":130,"caption":"Standing Stone: Machrie Moor, Arran. Limited Edition Giclée print.","height":173});
															thumbnails[1646288] = clik.newPhoto({"id":1646288,"src":"Beauty of flowers no6(600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646288.html","width":130,"caption":"Beauty of Flowers No.6: Gazania. Limited Edition Giclée print.","height":409});
															thumbnails[2343421] = clik.newPhoto({"id":2343421,"src":"LanyonQuoit(600)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_2343421.html","width":130,"caption":"Timelessness: Lanyon Quoit. Limited Edition Giclée print.","height":174});
															thumbnails[9082417] = clik.newPhoto({"id":9082417,"src":"StoneArranb1024_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9082417.html","width":130,"caption":"Standing Stone: Arran. Limited Edition Giclée print.","height":178});
															thumbnails[1646286] = clik.newPhoto({"id":1646286,"src":"Beauty of Flowers no7(600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646286.html","width":130,"caption":"Beauty of Flowers No.7: Maple. Limited Edition Giclée print.","height":409});
															thumbnails[8182341] = clik.newPhoto({"id":8182341,"src":"_MG_1173900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8182341.html","width":130,"caption":"Nightscape: St. Michael's Mount. Limited edition Giclée print.","height":87});
															thumbnails[9082399] = clik.newPhoto({"id":9082399,"src":"Callanish2b1024_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_9082399.html","width":130,"caption":"Stone Circle: Callanish, Lewis, Scotland. Limited Edition Giclée print.","height":177});
															thumbnails[1646284] = clik.newPhoto({"id":1646284,"src":"Beauty of Flowers no8(600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646284.html","width":130,"caption":"Beauty of Flowers No.8: Gazania. Limited Edition Giclée print.","height":184});
															thumbnails[8182342] = clik.newPhoto({"id":8182342,"src":"GodrevyNight900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8182342.html","width":130,"caption":"Nightscape: Godrevy Point. Limited edition giclée print.","height":83});
															thumbnails[699623] = clik.newPhoto({"id":699623,"src":"Stones+Paps(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_699623.html","width":130,"caption":"Standing Stones, Kintyre, and the Paps of Jura. Limited Edition print.","height":92});
															thumbnails[1646283] = clik.newPhoto({"id":1646283,"src":"Beauty of Flowers no9(600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646283.html","width":130,"caption":"Beauty of Flowers No.9: Gazania again. Limited Edition Giclée print.","height":184});
															thumbnails[8182349] = clik.newPhoto({"id":8182349,"src":"StMM2900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8182349.html","width":130,"caption":"Nightscape: St. Michael's Mount no.2. Limited edition Giclée print.","height":325});
															thumbnails[9096184] = clik.newPhoto({"id":9096184,"src":"CarnGalverEnginehouse1024_1_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_9096184.html","width":130,"caption":"Nightscape: Carn Galver Enginehouse. Limited Edition Giclée print.","height":193});
															thumbnails[1646281] = clik.newPhoto({"id":1646281,"src":"Beauty of Flowers no10(600)_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_1646281.html","width":130,"caption":"Beauty of Flowers No.10: Dandelion clock. Limited Edition Giclée print.","height":195});
															thumbnails[570889] = clik.newPhoto({"id":570889,"src":"Beauty of Flowers no1 600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_570889.html","width":130,"caption":"The Beauty of Flowers, No.1. Limited Edition Giclée print.","height":184});
															thumbnails[615170] = clik.newPhoto({"id":615170,"src":"0012a_15(400)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_615170.html","width":130,"caption":"St Michael's Mount ","height":85});
															thumbnails[622540] = clik.newPhoto({"id":622540,"src":"RedDeer_thumb.jpg","galleries_id":47606,"server_id":1,"link":"photo_622540.html","width":130,"caption":"Red Deer. Limited Edition Print.","height":173});
															thumbnails[622550] = clik.newPhoto({"id":622550,"src":"9911N_11_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622550.html","width":130,"caption":"Etosha National Park, Namibia.","height":95});
															thumbnails[699357] = clik.newPhoto({"id":699357,"src":"Callanish(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_699357.html","width":130,"caption":"Standing Stones at Callanish, Isle of Lewis, Scotland.","height":92});
															thumbnails[1035817] = clik.newPhoto({"id":1035817,"src":"Booby_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1035817.html","width":130,"caption":"Nature in Action: Blue-footed Booby diving. Limited Edition Print. (Winner of the 'Action' category of the 2007 Visions of Science Photo Competition).","height":184});
															thumbnails[4211002] = clik.newPhoto({"id":4211002,"src":"Nature_in_Action_Parrots_600_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_4211002.html","width":130,"caption":"Nature in Action: a parrot lick in Amazon. Limited Edition print.","height":94});
															thumbnails[8892037] = clik.newPhoto({"id":8892037,"src":"NatureInAction_Kestrel1024_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_8892037.html","width":130,"caption":"Nature in action: Kestrel, Limited edition Giclée print","height":65});
															thumbnails[7579542] = clik.newPhoto({"id":7579542,"src":"StMichaelsMount1900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_7579542.html","width":130,"caption":"April Showers: St Michael's Mount, Limited edition Giclée print","height":65});
															thumbnails[570895] = clik.newPhoto({"id":570895,"src":"Beauty of Flowers no2 600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_570895.html","width":130,"caption":"The Beauty of Flowers, No.2. Limited Edition Giclée print.","height":92});
															thumbnails[570966] = clik.newPhoto({"id":570966,"src":"TakingOffBuzzard_600_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_570966.html","width":130,"caption":"Taking Off - Common Buzzard. Limited Edition Print.","height":94});
															thumbnails[622542] = clik.newPhoto({"id":622542,"src":"RuthvenBarracks_thumb.jpg","galleries_id":47606,"server_id":1,"link":"photo_622542.html","width":130,"caption":"Evening Light - Ruthven Barracks. Limited Edition Print.","height":86});
															thumbnails[622551] = clik.newPhoto({"id":622551,"src":"0103A_02(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622551.html","width":130,"caption":"Mount Vesuvius across Naples Bay, Italy.","height":145});
															thumbnails[1035826] = clik.newPhoto({"id":1035826,"src":"Goldeneye_thumb.jpg","galleries_id":44113,"server_id":1,"link":"photo_1035826.html","width":130,"caption":"Natural Beauty: Goldeneye. Limited Edition Print.","height":93});
															thumbnails[4211003] = clik.newPhoto({"id":4211003,"src":"NatureinAction_GBTern_600_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_4211003.html","width":130,"caption":"Nature in Action: Gull-billed Tern. Limited Edition print.","height":89});
															thumbnails[570902] = clik.newPhoto({"id":570902,"src":"Beauty of flowers no3 600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_570902.html","width":130,"caption":"The Beauty of Flowers, No.3. Limited Edition Giclée print.","height":192});
															thumbnails[699366] = clik.newPhoto({"id":699366,"src":"Stonehenge(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_699366.html","width":130,"caption":"Stonehenge, Wiltshire.","height":92});
															thumbnails[570907] = clik.newPhoto({"id":570907,"src":"Beauty of flowers no4 600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_570907.html","width":130,"caption":"The Beauty of Flowers, No.4. Limited Edition Giclée print.","height":183});
															thumbnails[622528] = clik.newPhoto({"id":622528,"src":"9307e_19(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622528.html","width":130,"caption":"Fitful Head, Mainland, Shetland.","height":85});
															thumbnails[622530] = clik.newPhoto({"id":622530,"src":"crw_1476(400)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_622530.html","width":130,"caption":"St Michael's Mount.","height":78});
															thumbnails[622545] = clik.newPhoto({"id":622545,"src":"NewForestDawn_thumb.jpg","galleries_id":47606,"server_id":1,"link":"photo_622545.html","width":130,"caption":"Dawn after the Storm. Limited Edition Print.","height":160});
															thumbnails[622552] = clik.newPhoto({"id":622552,"src":"0105z09-03(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622552.html","width":130,"caption":"The Tatra Mountains, Poland.","height":93});
															thumbnails[1035833] = clik.newPhoto({"id":1035833,"src":"Swan taking off (sequence)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1035833.html","width":130,"caption":"Nature in Action: Swan taking off. Limited Edition Print.","height":39});
															thumbnails[570973] = clik.newPhoto({"id":570973,"src":"The Red Tree_600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_570973.html","width":130,"caption":"The Red Tree - homage to Piet Mondrian.","height":92});
															thumbnails[622529] = clik.newPhoto({"id":622529,"src":"9609g_02(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622529.html","width":130,"caption":"Dawn, North Ronaldsay, Orkney.","height":86});
															thumbnails[622532] = clik.newPhoto({"id":622532,"src":"02123_02(400)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_622532.html","width":130,"caption":"Sunset, St. Michael's Mount.","height":72});
															thumbnails[622554] = clik.newPhoto({"id":622554,"src":"0109P_03_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622554.html","width":130,"caption":"Amsterdam, Holland.","height":177});
															thumbnails[648590] = clik.newPhoto({"id":648590,"src":"Spotted_thumb.jpg","galleries_id":44113,"server_id":1,"link":"photo_648590.html","width":130,"caption":"Spotted. Limited Edition Print.","height":104});
															thumbnails[1035819] = clik.newPhoto({"id":1035819,"src":"Egret in flight_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1035819.html","width":130,"caption":"Nature in Action: Egret in flight. Limited Edition Print.","height":41});
															thumbnails[4210981] = clik.newPhoto({"id":4210981,"src":"Beauty_of_Flowers_11_600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_4210981.html","width":130,"caption":"Beauty of Flowers No.11; Goatsbeard.  Limited Edition Giclée print.","height":87});
															thumbnails[4210953] = clik.newPhoto({"id":4210953,"src":"Beauty_of_Flowers_12_600_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_4210953.html","width":130,"caption":"Beauty of Flowers No.12. Limited Edition Giclée print.","height":174});
															thumbnails[622533] = clik.newPhoto({"id":622533,"src":"0402i_15(400)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_622533.html","width":130,"caption":"Godrevy Point.","height":175});
															thumbnails[622555] = clik.newPhoto({"id":622555,"src":"0203B_09(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622555.html","width":130,"caption":"Cathedral at night, Barcelona, Spain.","height":173});
															thumbnails[622556] = clik.newPhoto({"id":622556,"src":"0404B_09(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622556.html","width":130,"caption":"Foothills of the Pyrenees.","height":94});
															thumbnails[699379] = clik.newPhoto({"id":699379,"src":"0006J_17BW1(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_699379.html","width":130,"caption":"Standing Stone on Machrie Moor.","height":72});
															thumbnails[1035823] = clik.newPhoto({"id":1035823,"src":"Egret landing fish_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1035823.html","width":130,"caption":"Nature in Action: Little Egret landing a fish. Limited Edition Print.","height":38});
															thumbnails[4210991] = clik.newPhoto({"id":4210991,"src":"Nature_in_Action_BlackStork_600_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_4210991.html","width":130,"caption":"Nature in Action: Black Stork landing. Limited Edition print.","height":36});
															thumbnails[615172] = clik.newPhoto({"id":615172,"src":"0110H_02(400)_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_615172.html","width":130,"caption":"Newlyn Harbour","height":97});
															thumbnails[8190629] = clik.newPhoto({"id":8190629,"src":"CRW_2241900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8190629.html","width":130,"caption":"Stormy day across Mount's Bay","height":67});
															thumbnails[2343437] = clik.newPhoto({"id":2343437,"src":"swan(600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_2343437.html","width":130,"caption":"Nature in Action: Swan in flight, panned. Limited Edition Giclée print.","height":45});
															thumbnails[622558] = clik.newPhoto({"id":622558,"src":"0411_4786(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622558.html","width":130,"caption":"The high Andes, Ecuador.","height":87});
															thumbnails[699383] = clik.newPhoto({"id":699383,"src":"0007N_02BW6b(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_699383.html","width":130,"caption":"Standing Stone, Jura.","height":85});
															thumbnails[1256060] = clik.newPhoto({"id":1256060,"src":"ju7z0240b(50x20)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1256060.html","width":130,"caption":"Nature in Action: Long-eared Owl, No.1. Limited Edition Giclée print.","height":39});
															thumbnails[8190683] = clik.newPhoto({"id":8190683,"src":"JU7Z0139900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8190683.html","width":130,"caption":"Lanyon Quoit, at dawn.","height":87});
															thumbnails[2343442] = clik.newPhoto({"id":2343442,"src":"Long-earedOwlNo2b(600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_2343442.html","width":130,"caption":"Nature in Action: Long-eared Owl, No.2. Limited Edition Giclée print.","height":39});
															thumbnails[8190649] = clik.newPhoto({"id":8190649,"src":"CRW_2261b900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8190649.html","width":130,"caption":"An evening storm, Mount's Bay.","height":96});
															thumbnails[622561] = clik.newPhoto({"id":622561,"src":"0504_8575(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622561.html","width":130,"caption":"City Walls, Tallinn, Estonia.","height":195});
															thumbnails[8190693] = clik.newPhoto({"id":8190693,"src":"JU7Z4344900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8190693.html","width":130,"caption":"Dawn, St. Michael's Mount.","height":87});
															thumbnails[8190706] = clik.newPhoto({"id":8190706,"src":"JU7Z5864900_thumb.jpg","galleries_id":45802,"server_id":1,"link":"photo_8190706.html","width":130,"caption":"Evening gold: St. Michael's Mount","height":87});
															thumbnails[570933] = clik.newPhoto({"id":570933,"src":"kingfisher_600_thumb.jpg","galleries_id":44113,"server_id":1,"link":"photo_570933.html","width":130,"caption":"Natural Beauty: Kingfishers. Limited Edition Print.","height":93});
															thumbnails[622563] = clik.newPhoto({"id":622563,"src":"JU7Z0616(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622563.html","width":130,"caption":"Vancouver, Canada.","height":87});
															thumbnails[8892591] = clik.newPhoto({"id":8892591,"src":"Umbellifer20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892591.html","width":130,"caption":"Gone to seed. Limited edition canvas","height":130});
															thumbnails[8892363] = clik.newPhoto({"id":8892363,"src":"dandelionseed20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892363.html","width":130,"caption":"Fairy in the wind. Limited edition canvas","height":130});
															thumbnails[8892428] = clik.newPhoto({"id":8892428,"src":"Gazania20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892428.html","width":130,"caption":"Starburst: Gazania. Limited edition canvas","height":130});
															thumbnails[8892334] = clik.newPhoto({"id":8892334,"src":"Dandelion20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892334.html","width":130,"caption":"Starburst: Dandelion: Limited edition canvas print.","height":130});
															thumbnails[8892599] = clik.newPhoto({"id":8892599,"src":"opium20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892599.html","width":130,"caption":"Starburst: Poppy. Limited edition canvas","height":130});
															thumbnails[8892645] = clik.newPhoto({"id":8892645,"src":"Leaf20x20_thumb.jpg","galleries_id":44114,"server_id":1,"link":"photo_8892645.html","width":130,"caption":"Leaf. Limited edition canvas.","height":130});
															thumbnails[622565] = clik.newPhoto({"id":622565,"src":"ju7z4154(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_622565.html","width":130,"caption":"Flying into LA International, California, USA.","height":85});
															thumbnails[648593] = clik.newPhoto({"id":648593,"src":"0012c_12BW(600)_thumb.jpg","galleries_id":49431,"server_id":1,"link":"photo_648593.html","width":130,"caption":"The \"Hurlers\" in winter.","height":90});
															thumbnails[644795] = clik.newPhoto({"id":644795,"src":"crw_1174(400)_thumb.jpg","galleries_id":47608,"server_id":1,"link":"photo_644795.html","width":130,"caption":"Svalbard, Norway.","height":87});
															thumbnails[2343454] = clik.newPhoto({"id":2343454,"src":"IcelandGull_flight (600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_2343454.html","width":130,"caption":"Nature in Action: Iceland Gull in flight. Limited Edition Giclée print.","height":40});
															thumbnails[2343450] = clik.newPhoto({"id":2343450,"src":"Curlew_flight(600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_2343450.html","width":130,"caption":"Nature in Action: Curlew in flight. Limited Edition Giclée print.","height":40});
															thumbnails[2343440] = clik.newPhoto({"id":2343440,"src":"Nature in Action Heron (600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_2343440.html","width":130,"caption":"Nature in Action: Heron in flight. Limited Edition Giclée print.","height":40});
															thumbnails[1254990] = clik.newPhoto({"id":1254990,"src":"SwanFlight2(600)_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_1254990.html","width":130,"caption":"Nature in Action: Mute Swan in flight.","height":33});
															thumbnails[9082216] = clik.newPhoto({"id":9082216,"src":"_TDM5816-8b1024_thumb.jpg","galleries_id":44108,"server_id":1,"link":"photo_9082216.html","width":130,"caption":"Nature in Action: Madagascar Bee-eater","height":96});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[45802] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall","link":"gallery_45802.html","maxRecords":0.0,"photoIDs":[2343421.0,8182341.0,8182342.0,8182349.0,9096184.0,615170.0,7579542.0,622530.0,622532.0,622533.0,615172.0,8190629.0,8190683.0,8190649.0,8190693.0,8190706.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096184,8190683,8182349,8182341,7579542,2343421,622533,622532,622530,615172,615170","id":45802,"singleSection":false});				  						galleries[44108] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature in Action","link":"gallery_44108.html","maxRecords":0.0,"photoIDs":[1035817.0,4211002.0,8892037.0,570966.0,4211003.0,1035833.0,1035819.0,1035823.0,4210991.0,2343437.0,1256060.0,2343442.0,2343454.0,2343450.0,2343440.0,1254990.0,9082216.0],"skipIndex":0,"section_code":"gallery","featured_images":"9082216,8892037,4211003,4211002,4210991,2343454,2343450,2343442,2343437,1254990,1035833,1035823,1035819,1035817,570966","id":44108,"singleSection":false});				  						galleries[44114] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Plant Extracts","link":"gallery_44114.html","maxRecords":0.0,"photoIDs":[1646292.0,1646288.0,1646286.0,1646284.0,1646283.0,1646281.0,570889.0,570895.0,570902.0,570907.0,570973.0,4210981.0,4210953.0,8892591.0,8892363.0,8892428.0,8892334.0,8892599.0,8892645.0],"skipIndex":0,"section_code":"gallery","featured_images":"8892599,8892591,8892428,8892363,4210981,4210953,1646292,1646288,1646286,1646284,1646283,1646281,570973,570907,570902,570895,570889","id":44114,"singleSection":false});				  						galleries[47606] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White Photography","link":"gallery_47606.html","maxRecords":0.0,"photoIDs":[622540.0,622542.0,622545.0],"skipIndex":0,"section_code":"gallery","featured_images":"622545,622542,622540","id":47606,"singleSection":false});				  						galleries[49431] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stones: Neolithic monuments.","link":"gallery_49431.html","maxRecords":0.0,"photoIDs":[9082435.0,9082404.0,9087786.0,9082274.0,9082417.0,9082399.0,699623.0,699357.0,699366.0,699379.0,699383.0,648593.0],"skipIndex":0,"section_code":"gallery","featured_images":"9087786,9082435,9082417,9082404,9082399,9082274,699623,699366,699357","id":49431,"singleSection":false});				  						galleries[44113] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Natural Beauty","link":"gallery_44113.html","maxRecords":0.0,"photoIDs":[1035826.0,648590.0,570933.0],"skipIndex":0,"section_code":"gallery","featured_images":"1035826,648590,570933","id":44113,"singleSection":false});				  						galleries[47608] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"World Travel","link":"gallery_47608.html","maxRecords":0.0,"photoIDs":[622550.0,622551.0,622528.0,622552.0,622529.0,622554.0,622555.0,622556.0,622558.0,622561.0,622563.0,622565.0,644795.0],"skipIndex":0,"section_code":"gallery","featured_images":"644795,622565,622563,622561,622558,622556,622555,622554,622552,622551,622529,622528","id":47608,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9082435,9082404,9087786,1646292,2343421,1646288,9082399,8182341,1646286,1646284,8182349,1646283,699623,1646281,1035817,699357,622540,615170,570889,4211002,8892037,7579542,1035826,622542,570966,570902,1035833,1035819,648590,4210953,1035823,2343437,8892591,8892363,9082216';
imageSets[2] = '9082435,9082404,9087786,9082274,1646292,9082417,2343421,1646288,9082399,8182341,1646286,1646284,9096184,8182349,1646283,699623,1646281,1035817,699357,622540,615170,570889,4211002,8892037,7579542,1035826,622551,622542,570966,570895,4211003,699366,570902,1035833,622552,622545,622530,622528,570907,1035819,648590,622554,622532,622529,570973,4210981,4210953,1035823,622556,622555,622533,4210991,615172,2343437,8190683,622558,2343442,622561,622563,570933,8892591,8892363,8892428,8892599,622565,2343454,644795,2343450,1254990,9082216';
imageSets[3] = '9096184,9087786,9082435,9082417,9082404,9082399,9082274,9082216,8892645,8892599,8892591,8892428,8892363,8892334,8892037,8190706,8190693,8190683,8190649,8190629,8182349,8182342,8182341,7579542,4211003,4211002,4210991,4210981,4210953,2343454,2343450,2343442,2343440,2343437,2343421,1646292,1646288,1646286,1646284,1646283,1646281,1256060,1254990,1035833,1035826,1035823,1035819,1035817,699623,699383';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/photoartbytonymills/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/photoartbytonymills/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 = 'PhotoArt by Tony Mills: ' + 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="tonymills@btinternet.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="tonymills@btinternet.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;
	}
}

			

