window.thumbnails = {};
															thumbnails[7244030] = clik.newPhoto({"id":7244030,"src":"DB51_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Aston Martin DB5","height":87});
															thumbnails[7067619] = clik.newPhoto({"id":7067619,"src":"IMG_8544_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_7067619.html","width":130,"caption":"DJ Smail Showroom","height":87});
															thumbnails[6505069] = clik.newPhoto({"id":6505069,"src":"IMG_9476_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_6505069.html","width":130,"caption":"MuchaDo Deli","height":87});
															thumbnails[6505066] = clik.newPhoto({"id":6505066,"src":"IMG_1846_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_6505066.html","width":130,"caption":"MuchaDo Deli","height":87});
															thumbnails[6505074] = clik.newPhoto({"id":6505074,"src":"IMG_4505_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_6505074.html","width":130,"caption":"Jackie Vine Glass","height":87});
															thumbnails[6505076] = clik.newPhoto({"id":6505076,"src":"IMG_4509_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_6505076.html","width":130,"caption":"Jackie Vine Glass","height":87});
															thumbnails[6505189] = clik.newPhoto({"id":6505189,"src":"IMG_6043_1_thumb.JPG","galleries_id":357930,"server_id":15,"link":"photo_6505189.html","width":130,"caption":"Teapots Cafe","height":87});
															thumbnails[6505192] = clik.newPhoto({"id":6505192,"src":"Interior_1_thumb.jpg","galleries_id":357930,"server_id":15,"link":"photo_6505192.html","width":130,"caption":"Teapots Cafe","height":88});
															thumbnails[6504018] = clik.newPhoto({"id":6504018,"src":"IMG_0545_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6504018.html","width":130,"caption":"Beachy Head ","height":87});
															thumbnails[6503985] = clik.newPhoto({"id":6503985,"src":"IMG_0544_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6503985.html","width":130,"caption":"Beachy Head","height":86});
															thumbnails[6508587] = clik.newPhoto({"id":6508587,"src":"kiosk_copy_copy_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6508587.html","width":130,"caption":"Brighton shelter","height":86});
															thumbnails[6869850] = clik.newPhoto({"id":6869850,"src":"IMG_5063_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869850.html","width":130,"caption":"Houseboat - Shoreham","height":87});
															thumbnails[6869856] = clik.newPhoto({"id":6869856,"src":"IMG_5064_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869856.html","width":130,"caption":"Houseboat at Shoreham","height":86});
															thumbnails[6508550] = clik.newPhoto({"id":6508550,"src":"IMG_3371_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6508550.html","width":130,"caption":"Bognor beach huts","height":87});
															thumbnails[6601566] = clik.newPhoto({"id":6601566,"src":"Bognor_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601566.html","width":130,"caption":"Groyn at Bognor","height":87});
															thumbnails[6601579] = clik.newPhoto({"id":6601579,"src":"Portsmouth_Habour_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601579.html","width":130,"caption":"Portsmouth Harbour","height":86});
															thumbnails[6601567] = clik.newPhoto({"id":6601567,"src":"Durdle_Dore_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601567.html","width":130,"caption":"Durdle Door","height":87});
															thumbnails[6856943] = clik.newPhoto({"id":6856943,"src":"IMG_6321_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6856943.html","width":130,"caption":"Fowey","height":87});
															thumbnails[6601589] = clik.newPhoto({"id":6601589,"src":"Unhappy_fish_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601589.html","width":130,"caption":"A grumpy fish","height":87});
															thumbnails[6853726] = clik.newPhoto({"id":6853726,"src":"IMG_4286_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6853726.html","width":130,"caption":"Cadgwith Cove - Cornwall","height":87});
															thumbnails[6853735] = clik.newPhoto({"id":6853735,"src":"Bones_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6853735.html","width":130,"caption":"An ex fish","height":87});
															thumbnails[6869875] = clik.newPhoto({"id":6869875,"src":"IMG_2675_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869875.html","width":130,"caption":"Kyance Cove - Cornwall","height":87});
															thumbnails[6869881] = clik.newPhoto({"id":6869881,"src":"IMG_2626_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869881.html","width":130,"caption":"Kyance Cove - Cornwall","height":87});
															thumbnails[6869867] = clik.newPhoto({"id":6869867,"src":"IMG_6531_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869867.html","width":130,"caption":"Kyance Cove - Cornwall","height":86});
															thumbnails[6869890] = clik.newPhoto({"id":6869890,"src":"IMG_6163_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869890.html","width":130,"caption":"Porthleven - Cornwall","height":87});
															thumbnails[6869892] = clik.newPhoto({"id":6869892,"src":"IMG_6196_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869892.html","width":130,"caption":"Porthleven - Cornwall","height":87});
															thumbnails[6869895] = clik.newPhoto({"id":6869895,"src":"IMG_6303_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869895.html","width":130,"caption":"Porthleven - Cornwall","height":86});
															thumbnails[6869913] = clik.newPhoto({"id":6869913,"src":"IMG_8326_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869913.html","width":130,"caption":"Porthleven - Cornwall","height":86});
															thumbnails[7051438] = clik.newPhoto({"id":7051438,"src":"IMG_8471_1_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7051438.html","width":130,"caption":"St Micheals Mount","height":86});
															thumbnails[6869886] = clik.newPhoto({"id":6869886,"src":"IMG_81711_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869886.html","width":130,"caption":"Lamorna Cove - Cornwall","height":86});
															thumbnails[6870789] = clik.newPhoto({"id":6870789,"src":"IMG_6434_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6870789.html","width":130,"caption":"Porth Curno  - Cornwall ","height":87});
															thumbnails[6870792] = clik.newPhoto({"id":6870792,"src":"IMG_6401_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6870792.html","width":130,"caption":"Porth Curno - Cornwall","height":87});
															thumbnails[6856962] = clik.newPhoto({"id":6856962,"src":"IMG_8434_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6856962.html","width":130,"caption":"Lands End- Cornwall","height":87});
															thumbnails[6512127] = clik.newPhoto({"id":6512127,"src":"IMG_2525_thumb.JPG","galleries_id":356793,"server_id":15,"link":"photo_6512127.html","width":130,"caption":"Sennen Cove - Cornwall","height":87});
															thumbnails[6601584] = clik.newPhoto({"id":6601584,"src":"Tin_mine_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601584.html","width":130,"caption":"Tin Mine","height":87});
															thumbnails[6515307] = clik.newPhoto({"id":6515307,"src":"IMG_2470_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6515307.html","width":130,"caption":"Tin Mines - Cornwall","height":87});
															thumbnails[8647664] = clik.newPhoto({"id":8647664,"src":"St_Ives_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_8647664.html","width":130,"caption":"The roof tops of St Ives, Cornwall","height":86});
															thumbnails[7067646] = clik.newPhoto({"id":7067646,"src":"IMG_2717_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7067646.html","width":130,"caption":"St Ives - Cornwall","height":87});
															thumbnails[7067651] = clik.newPhoto({"id":7067651,"src":"IMG_2820_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7067651.html","width":130,"caption":"St Ives Sunset","height":87});
															thumbnails[7067653] = clik.newPhoto({"id":7067653,"src":"IMG_2881_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7067653.html","width":130,"caption":"Enjoying the surf","height":87});
															thumbnails[7067656] = clik.newPhoto({"id":7067656,"src":"IMG_6515_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7067656.html","width":130,"caption":"Godrevy - Cornwall","height":86});
															thumbnails[6869829] = clik.newPhoto({"id":6869829,"src":"IMG_2433_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869829.html","width":130,"caption":"Portreath - Cornwall","height":87});
															thumbnails[6601573] = clik.newPhoto({"id":6601573,"src":"Laughane_Castle_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601573.html","width":130,"caption":"Laughane Castle","height":87});
															thumbnails[6601586] = clik.newPhoto({"id":6601586,"src":"Tree_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6601586.html","width":130,"caption":"Tree on a beach","height":87});
															thumbnails[8647662] = clik.newPhoto({"id":8647662,"src":"stone_1_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_8647662.html","width":130,"caption":"Stones","height":87});
															thumbnails[6870412] = clik.newPhoto({"id":6870412,"src":"Dark_Clouds_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6870412.html","width":130,"caption":"The Taf estuary","height":87});
															thumbnails[6869846] = clik.newPhoto({"id":6869846,"src":"IMG_1122_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869846.html","width":130,"caption":"Pendine Speed Musuem","height":86});
															thumbnails[6869843] = clik.newPhoto({"id":6869843,"src":"IMG_1121_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869843.html","width":130,"caption":"Pendine Beach","height":86});
															thumbnails[6869848] = clik.newPhoto({"id":6869848,"src":"IMG_1101_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869848.html","width":130,"caption":"Rock on the beach","height":87});
															thumbnails[6869839] = clik.newPhoto({"id":6869839,"src":"IMG_0112_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869839.html","width":130,"caption":"Tenby","height":87});
															thumbnails[6869840] = clik.newPhoto({"id":6869840,"src":"IMG_1099_1_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_6869840.html","width":130,"caption":"Tenby","height":87});
															thumbnails[7051425] = clik.newPhoto({"id":7051425,"src":"IMG_0176_thumb.jpg","galleries_id":356793,"server_id":15,"link":"photo_7051425.html","width":130,"caption":"Whitesands Bay - Wales","height":87});
															thumbnails[6601664] = clik.newPhoto({"id":6601664,"src":"IMG_5684_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_6601664.html","width":130,"caption":"Bittern","height":86});
															thumbnails[6601675] = clik.newPhoto({"id":6601675,"src":"IMG_8251_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_6601675.html","width":130,"caption":"Bittern at Wolverton","height":86});
															thumbnails[6917892] = clik.newPhoto({"id":6917892,"src":"IMG_1193_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_6917892.html","width":130,"caption":"Dutchess of Sutherland","height":87});
															thumbnails[7051216] = clik.newPhoto({"id":7051216,"src":"IMG_1237_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7051216.html","width":130,"caption":"Black 5","height":87});
															thumbnails[7086699] = clik.newPhoto({"id":7086699,"src":"IMG_8054_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7086699.html","width":130,"caption":"Pendolino","height":87});
															thumbnails[7086705] = clik.newPhoto({"id":7086705,"src":"IMG_1220_1_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7086705.html","width":130,"caption":"Rail","height":87});
															thumbnails[7101211] = clik.newPhoto({"id":7101211,"src":"IMG_3277_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7101211.html","width":130,"caption":"Oliver Cromwell","height":87});
															thumbnails[7101212] = clik.newPhoto({"id":7101212,"src":"IMG_7780_d_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7101212.html","width":130,"caption":"Pricess Elizabeth","height":87});
															thumbnails[7101218] = clik.newPhoto({"id":7101218,"src":"IMG_4933_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7101218.html","width":130,"caption":"Tornado","height":87});
															thumbnails[7156261] = clik.newPhoto({"id":7156261,"src":"Waiting_for_Green_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7156261.html","width":130,"caption":"Waiting for green","height":87});
															thumbnails[7156262] = clik.newPhoto({"id":7156262,"src":"At_Bedford_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7156262.html","width":130,"caption":"Tornado","height":87});
															thumbnails[7156319] = clik.newPhoto({"id":7156319,"src":"IMG_1330_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7156319.html","width":130,"caption":"Tornado steaming","height":87});
															thumbnails[7764776] = clik.newPhoto({"id":7764776,"src":"IMG_9090_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7764776.html","width":130,"caption":"Priness Elizabeth","height":86});
															thumbnails[7764779] = clik.newPhoto({"id":7764779,"src":"IMG_9336_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7764779.html","width":130,"caption":"Oliver Cromwell","height":87});
															thumbnails[7764780] = clik.newPhoto({"id":7764780,"src":"IMG_9341_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_7764780.html","width":130,"caption":"Oliver Cromwell","height":87});
															thumbnails[8885137] = clik.newPhoto({"id":8885137,"src":"IMG_0735_thumb.jpg","galleries_id":361759,"server_id":15,"link":"photo_8885137.html","width":130,"caption":"Britannia","height":90});
															thumbnails[6914968] = clik.newPhoto({"id":6914968,"src":"IMG_8032_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914968.html","width":130,"caption":"country road","height":86});
															thumbnails[6914971] = clik.newPhoto({"id":6914971,"src":"IMG_6793_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914971.html","width":130,"caption":"Trees","height":87});
															thumbnails[6914978] = clik.newPhoto({"id":6914978,"src":"IMG_6772_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914978.html","width":130,"caption":"Bridge","height":86});
															thumbnails[6914982] = clik.newPhoto({"id":6914982,"src":"IMG_5127_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914982.html","width":130,"caption":"Reflection","height":87});
															thumbnails[6914988] = clik.newPhoto({"id":6914988,"src":"IMG_5366_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914988.html","width":130,"caption":"Concrete Cows","height":87});
															thumbnails[6914994] = clik.newPhoto({"id":6914994,"src":"IMG_9542_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914994.html","width":130,"caption":"City Centre","height":87});
															thumbnails[6914998] = clik.newPhoto({"id":6914998,"src":"IMG_5491_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6914998.html","width":130,"caption":"Willen lake","height":87});
															thumbnails[6915086] = clik.newPhoto({"id":6915086,"src":"IMG_5334_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915086.html","width":130,"caption":"Library","height":86});
															thumbnails[6915175] = clik.newPhoto({"id":6915175,"src":"IMG_4627_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915175.html","width":130,"caption":"river & fields - Olney","height":86});
															thumbnails[6915270] = clik.newPhoto({"id":6915270,"src":"IMG_4653_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915270.html","width":130,"caption":"High Street - Olney","height":88});
															thumbnails[6915273] = clik.newPhoto({"id":6915273,"src":"Bridge_in_the_snow_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915273.html","width":130,"caption":"Bridge in the snow","height":87});
															thumbnails[6915291] = clik.newPhoto({"id":6915291,"src":"IMG_1646_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915291.html","width":130,"caption":"Walking in snow","height":87});
															thumbnails[6915299] = clik.newPhoto({"id":6915299,"src":"IMG_5178_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_6915299.html","width":130,"caption":"City Centre","height":87});
															thumbnails[7101962] = clik.newPhoto({"id":7101962,"src":"IMG_89801_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_7101962.html","width":130,"caption":"Emberton Park","height":87});
															thumbnails[7178489] = clik.newPhoto({"id":7178489,"src":"Frosty_morning_thumb.jpg","galleries_id":361758,"server_id":15,"link":"photo_7178489.html","width":130,"caption":"Frosty morning near Olney","height":87});
															thumbnails[6601625] = clik.newPhoto({"id":6601625,"src":"Chichester_Catherdral_thumb.jpg","galleries_id":361763,"server_id":15,"link":"photo_6601625.html","width":130,"caption":"Chichester Catherdral","height":87});
															thumbnails[6917895] = clik.newPhoto({"id":6917895,"src":"pavement_thumb.jpg","galleries_id":361763,"server_id":15,"link":"photo_6917895.html","width":130,"caption":"pavement - Bath","height":87});
															thumbnails[6920687] = clik.newPhoto({"id":6920687,"src":"IMG_2410_thumb.jpg","galleries_id":361763,"server_id":15,"link":"photo_6920687.html","width":130,"caption":"Chichester Catherdral","height":87});
															thumbnails[6915148] = clik.newPhoto({"id":6915148,"src":"sign_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_6915148.html","width":130,"caption":"Sign","height":86});
															thumbnails[9035268] = clik.newPhoto({"id":9035268,"src":"IMG_0796_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_9035268.html","width":130,"caption":"Spooky","height":83});
															thumbnails[6915128] = clik.newPhoto({"id":6915128,"src":"IMG_9550_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_6915128.html","width":130,"caption":"Theatre","height":87});
															thumbnails[7086708] = clik.newPhoto({"id":7086708,"src":"IMG_1308_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_7086708.html","width":130,"caption":"Milton Keynes station","height":86});
															thumbnails[7101652] = clik.newPhoto({"id":7101652,"src":"IMG_1305_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_7101652.html","width":130,"caption":"Milton Keynes Station","height":87});
															thumbnails[7101673] = clik.newPhoto({"id":7101673,"src":"IMG_1307_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_7101673.html","width":130,"caption":"Milton Keynes Station","height":87});
															thumbnails[6601575] = clik.newPhoto({"id":6601575,"src":"Mousehole_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_6601575.html","width":130,"caption":"Mousehole - Cornwall","height":87});
															thumbnails[9048825] = clik.newPhoto({"id":9048825,"src":"IMG_0780_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_9048825.html","width":130,"caption":"Tickford Bridge","height":87});
															thumbnails[9048829] = clik.newPhoto({"id":9048829,"src":"IMG_0795_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_9048829.html","width":130,"caption":"Olney Church","height":184});
															thumbnails[9035270] = clik.newPhoto({"id":9035270,"src":"Newport_Passage_thumb.jpg","galleries_id":476044,"server_id":15,"link":"photo_9035270.html","width":130,"caption":"Steps in the Dark","height":195});
															thumbnails[6601609] = clik.newPhoto({"id":6601609,"src":"hats_thumb.jpg","galleries_id":361756,"server_id":15,"link":"photo_6601609.html","width":130,"caption":"Hats","height":87});
															thumbnails[7178482] = clik.newPhoto({"id":7178482,"src":"IMG_9834_thumb.jpg","galleries_id":361756,"server_id":15,"link":"photo_7178482.html","width":130,"caption":"Driving in France","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[357930] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"section425273.html","maxRecords":0.0,"photoIDs":[7067619.0,6505069.0,6505066.0,6505074.0,6505076.0,6505189.0,6505192.0],"skipIndex":0,"section_code":"section425273","featured_images":"7067619,6505192,6505189,6505076,6505074,6505069,6505066","id":357930,"singleSection":true});				  						galleries[476044] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In the Dark","link":"section579385.html","maxRecords":0.0,"photoIDs":[6915148.0,9035268.0,6915128.0,7086708.0,7101652.0,7101673.0,6601575.0,9048825.0,9048829.0,9035270.0],"skipIndex":0,"section_code":"section579385","featured_images":"9048829,9048825,9035270,9035268,7101673,7101652,7086708,6915148,6915128,6601575","id":476044,"singleSection":true});				  						galleries[361758] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Milton Keynes and Olney","link":"section425277.html","maxRecords":0.0,"photoIDs":[6914968.0,6914971.0,6914978.0,6914982.0,6914988.0,6914994.0,6914998.0,6915086.0,6915175.0,6915270.0,6915273.0,6915291.0,6915299.0,7101962.0,7178489.0],"skipIndex":0,"section_code":"section425277","featured_images":"7178489,7101962,6915299,6915291,6915273,6915270,6915175,6915086,6914998,6914994","id":361758,"singleSection":true});				  						galleries[361756] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other","link":"section431081.html","maxRecords":0.0,"photoIDs":[6601609.0,7178482.0],"skipIndex":0,"section_code":"section431081","featured_images":"7178482,6601609","id":361756,"singleSection":true});				  						galleries[361763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Places","link":"section431083.html","maxRecords":0.0,"photoIDs":[6601625.0,6917895.0,6920687.0],"skipIndex":0,"section_code":"section431083","featured_images":"6920687,6917895,6601625","id":361763,"singleSection":true});				  						galleries[356793] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Coast","link":"section425274.html","maxRecords":0.0,"photoIDs":[6504018.0,6503985.0,6508587.0,6869850.0,6869856.0,6508550.0,6601566.0,6601579.0,6601567.0,6856943.0,6601589.0,6853726.0,6853735.0,6869875.0,6869881.0,6869867.0,6869890.0,6869892.0,6869895.0,6869913.0,7051438.0,6869886.0,6870789.0,6870792.0,6856962.0,6512127.0,6601584.0,6515307.0,8647664.0,7067646.0,7067651.0,7067653.0,7067656.0,6869829.0,6601573.0,6601586.0,8647662.0,6870412.0,6869846.0,6869843.0,6869848.0,6869839.0,6869840.0,7051425.0],"skipIndex":0,"section_code":"section425274","featured_images":"8647664,8647662,7067656,7067653,7067651,7067646,7051438,7051425,6870792,6870789","id":356793,"singleSection":true});				  						galleries[361759] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trains","link":"section425276.html","maxRecords":0.0,"photoIDs":[6601664.0,6601675.0,6917892.0,7051216.0,7086699.0,7086705.0,7101211.0,7101212.0,7101218.0,7156261.0,7156262.0,7156319.0,7764776.0,7764779.0,7764780.0,8885137.0],"skipIndex":0,"section_code":"section425276","featured_images":"8885137,7764780,7764779,7764776,7156319,7156262,7156261,7101218,7101212,7101211","id":361759,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7244030';
imageSets[3] = '9048829,9048825,9035270,9035268,8885137,8647664,8647662,7764780,7764779,7764776,7244030,7178489,7178482,7156319,7156262,7156261,7101962,7101673,7101652,7101218,7101212,7101211,7086708,7086705,7086699,7067656,7067653,7067651,7067646,7067619,7051438,7051425,7051216,6920687,6917895,6917892,6915299,6915291,6915273,6915270,6915175,6915148,6915128,6915086,6914998,6914994,6914988,6914982,6914978,6914971';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Oldgit50/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Oldgit50/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 += 'section425273.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 && 'section425273' != '') {
					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 = 'DAWSON IMAGES - Photography: ' + 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> &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.item_price !== '') {
																		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="">';
					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="">';
				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;
	}
}

			

