window.thumbnails = {};
															thumbnails[3304594] = clik.newPhoto({"id":3304594,"src":"Turkey-1164_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Rhodes","height":87});
															thumbnails[6138165] = clik.newPhoto({"id":6138165,"src":"0610_Hols_1121_thumb.jpg","galleries_id":343804,"server_id":1,"link":"photo_6138165.html","width":130,"caption":"Michael Schumaker","height":75});
															thumbnails[6138177] = clik.newPhoto({"id":6138177,"src":"0610_Hols_1123_thumb.jpg","galleries_id":343804,"server_id":1,"link":"photo_6138177.html","width":130,"caption":"Mark Webber","height":70});
															thumbnails[6138183] = clik.newPhoto({"id":6138183,"src":"0610_Hols_1124_thumb.jpg","galleries_id":343804,"server_id":1,"link":"photo_6138183.html","width":130,"caption":"Sebastian Vettel","height":75});
															thumbnails[6138184] = clik.newPhoto({"id":6138184,"src":"0610_Hols_1125_thumb.jpg","galleries_id":343804,"server_id":1,"link":"photo_6138184.html","width":130,"caption":"Lewis Hamilton","height":63});
															thumbnails[6138185] = clik.newPhoto({"id":6138185,"src":"0610_Hols_1273_thumb.jpg","galleries_id":343804,"server_id":1,"link":"photo_6138185.html","width":130,"caption":"Eureka Tower","height":195});
															thumbnails[6138142] = clik.newPhoto({"id":6138142,"src":"0610_Hols_142_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138142.html","width":130,"caption":"The Peak","height":71});
															thumbnails[6138145] = clik.newPhoto({"id":6138145,"src":"0610_Hols_322_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138145.html","width":130,"caption":"","height":195});
															thumbnails[6138296] = clik.newPhoto({"id":6138296,"src":"0610_Hols_524_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138296.html","width":130,"caption":"Chi Lin Nunnery","height":87});
															thumbnails[6138302] = clik.newPhoto({"id":6138302,"src":"0610_Hols_119_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138302.html","width":130,"caption":"","height":195});
															thumbnails[6138187] = clik.newPhoto({"id":6138187,"src":"0610_Hols_572_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138187.html","width":130,"caption":"Chinease Garden","height":195});
															thumbnails[6138188] = clik.newPhoto({"id":6138188,"src":"Holiday-0001_thumb.jpg","galleries_id":343768,"server_id":1,"link":"photo_6138188.html","width":130,"caption":"Hong Kong Harbour","height":57});
															thumbnails[6935290] = clik.newPhoto({"id":6935290,"src":"_39Z2483-Edit_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_6935290.html","width":130,"caption":"Ashleigh","height":184});
															thumbnails[6935291] = clik.newPhoto({"id":6935291,"src":"_39Z2800_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_6935291.html","width":130,"caption":"Ashleigh","height":87});
															thumbnails[6935393] = clik.newPhoto({"id":6935393,"src":"_39Z3145-Edit_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_6935393.html","width":130,"caption":"Ashleigh","height":195});
															thumbnails[6935477] = clik.newPhoto({"id":6935477,"src":"_39Z3180_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_6935477.html","width":130,"caption":"Lyndsay","height":195});
															thumbnails[3882704] = clik.newPhoto({"id":3882704,"src":"1_of_1-Edit2_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3882704.html","width":130,"caption":"Rose","height":179});
															thumbnails[3304532] = clik.newPhoto({"id":3304532,"src":"170_7004_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304532.html","width":130,"caption":"Portrait","height":178});
															thumbnails[3304533] = clik.newPhoto({"id":3304533,"src":"177_7703_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304533.html","width":130,"caption":"Lady in Red","height":195});
															thumbnails[3304536] = clik.newPhoto({"id":3304536,"src":"198_9811-2_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304536.html","width":130,"caption":"Sarah","height":195});
															thumbnails[3304538] = clik.newPhoto({"id":3304538,"src":"200_0009_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304538.html","width":130,"caption":"Portrait","height":195});
															thumbnails[3304565] = clik.newPhoto({"id":3304565,"src":"H drive-63481_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304565.html","width":130,"caption":"Leanne","height":195});
															thumbnails[3304573] = clik.newPhoto({"id":3304573,"src":"IMG_0060_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304573.html","width":130,"caption":"Portrait","height":195});
															thumbnails[3304588] = clik.newPhoto({"id":3304588,"src":"TIFF0021_RT16_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304588.html","width":130,"caption":"Leanne","height":187});
															thumbnails[3304613] = clik.newPhoto({"id":3304613,"src":"_MG_11241_thumb.jpg","galleries_id":29120,"server_id":1,"link":"photo_3304613.html","width":130,"caption":"Windswept","height":193});
															thumbnails[6137973] = clik.newPhoto({"id":6137973,"src":"0610_Hols_001_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_6137973.html","width":130,"caption":"Hong Kong Harbour","height":57});
															thumbnails[3896001] = clik.newPhoto({"id":3896001,"src":"1208_Frost_102_resize_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3896001.html","width":130,"caption":"Drifting mist","height":87});
															thumbnails[3304514] = clik.newPhoto({"id":3304514,"src":"0115_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304514.html","width":130,"caption":"Bothy","height":87});
															thumbnails[3304519] = clik.newPhoto({"id":3304519,"src":"1108_Mull_161-2_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304519.html","width":130,"caption":"Salen boats","height":100});
															thumbnails[3304521] = clik.newPhoto({"id":3304521,"src":"118_1879_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304521.html","width":130,"caption":"Tree copse","height":23});
															thumbnails[3304524] = clik.newPhoto({"id":3304524,"src":"1208_Frost_090-Edit_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304524.html","width":130,"caption":"Frosty branches","height":180});
															thumbnails[3304537] = clik.newPhoto({"id":3304537,"src":"20070622-Mull-45-2_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304537.html","width":130,"caption":"Staffa","height":87});
															thumbnails[3304546] = clik.newPhoto({"id":3304546,"src":"ae_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304546.html","width":130,"caption":"Oil rigs","height":32});
															thumbnails[3304549] = clik.newPhoto({"id":3304549,"src":"copy0054_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304549.html","width":130,"caption":"Duffus Castle","height":87});
															thumbnails[3304534] = clik.newPhoto({"id":3304534,"src":"178_7876_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304534.html","width":130,"caption":"Ruthven Barracks","height":37});
															thumbnails[3304551] = clik.newPhoto({"id":3304551,"src":"Courier--2_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304551.html","width":130,"caption":"Glenfinnan Monument, statue of a Jacobite soldier","height":188});
															thumbnails[3304556] = clik.newPhoto({"id":3304556,"src":"Edinburgh weekend-64_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304556.html","width":130,"caption":"Edinburgh","height":275});
															thumbnails[3304560] = clik.newPhoto({"id":3304560,"src":"Glen Affric_6-Edit_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304560.html","width":130,"caption":"Glen Affric ","height":75});
															thumbnails[3304563] = clik.newPhoto({"id":3304563,"src":"H drive-2773_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304563.html","width":130,"caption":"Suilven","height":87});
															thumbnails[3304576] = clik.newPhoto({"id":3304576,"src":"IMG_5648_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304576.html","width":130,"caption":"Loch Coruisk","height":48});
															thumbnails[3304578] = clik.newPhoto({"id":3304578,"src":"IMG_75471_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304578.html","width":130,"caption":"Lossiemouth","height":33});
															thumbnails[3304580] = clik.newPhoto({"id":3304580,"src":"Kessock bridge_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304580.html","width":130,"caption":"Kessock bridge","height":55});
															thumbnails[3304581] = clik.newPhoto({"id":3304581,"src":"Mull-5-7_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304581.html","width":130,"caption":"Fingals Cave","height":67});
															thumbnails[3304582] = clik.newPhoto({"id":3304582,"src":"Mull_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304582.html","width":130,"caption":"Iona Abbey","height":87});
															thumbnails[3304586] = clik.newPhoto({"id":3304586,"src":"Skye_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304586.html","width":130,"caption":"Lonely tree","height":44});
															thumbnails[3304605] = clik.newPhoto({"id":3304605,"src":"z_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304605.html","width":130,"caption":"Dunnottar Castle","height":90});
															thumbnails[3304606] = clik.newPhoto({"id":3304606,"src":"_39Z03501_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304606.html","width":130,"caption":"Sandwood Bay","height":67});
															thumbnails[3304607] = clik.newPhoto({"id":3304607,"src":"_39Z07011_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304607.html","width":130,"caption":"Balchladich Bay","height":34});
															thumbnails[3304608] = clik.newPhoto({"id":3304608,"src":"_MG_02321_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304608.html","width":130,"caption":"Kylesku bridge","height":86});
															thumbnails[3304610] = clik.newPhoto({"id":3304610,"src":"_MG_03961_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304610.html","width":130,"caption":"Famous tree","height":86});
															thumbnails[3304612] = clik.newPhoto({"id":3304612,"src":"_MG_1080-Edit1_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304612.html","width":130,"caption":"Duart Castle, Mull","height":34});
															thumbnails[3304618] = clik.newPhoto({"id":3304618,"src":"_MG_2807_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304618.html","width":130,"caption":"Loch Ard","height":87});
															thumbnails[3304624] = clik.newPhoto({"id":3304624,"src":"_MG_5195_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304624.html","width":130,"caption":"Quiraing","height":164});
															thumbnails[3304626] = clik.newPhoto({"id":3304626,"src":"_MG_5394_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304626.html","width":130,"caption":"Old Man of Storr","height":87});
															thumbnails[3304629] = clik.newPhoto({"id":3304629,"src":"_MG_5615_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304629.html","width":130,"caption":"Elgol","height":31});
															thumbnails[3304632] = clik.newPhoto({"id":3304632,"src":"_MG_7568_thumb.jpg","galleries_id":29121,"server_id":1,"link":"photo_3304632.html","width":130,"caption":"Cullen Sands","height":87});
															thumbnails[3356311] = clik.newPhoto({"id":3356311,"src":"_MG_6552_resize_thumb.jpg","galleries_id":29122,"server_id":1,"link":"photo_3356311.html","width":130,"caption":"Ben & Ruth's Wedding","height":94});
															thumbnails[3436350] = clik.newPhoto({"id":3436350,"src":"Stoer-4810_resize_thumb.jpg","galleries_id":29122,"server_id":1,"link":"photo_3436350.html","width":130,"caption":"Piano shot 2","height":87});
															thumbnails[4220513] = clik.newPhoto({"id":4220513,"src":"0609_Mikes_CD_065_thumb.jpg","galleries_id":29122,"server_id":1,"link":"photo_4220513.html","width":130,"caption":"Bouquet","height":195});
															thumbnails[3304513] = clik.newPhoto({"id":3304513,"src":"-9-Edit_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304513.html","width":130,"caption":"Lily","height":87});
															thumbnails[3304526] = clik.newPhoto({"id":3304526,"src":"1208_Still Life_004-Edit_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304526.html","width":130,"caption":"Male Siskin with mate approaching","height":109});
															thumbnails[3304527] = clik.newPhoto({"id":3304527,"src":"1208_Still Life_005-Edit_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304527.html","width":130,"caption":"Female Siskin","height":234});
															thumbnails[3304528] = clik.newPhoto({"id":3304528,"src":"1208_Still Life_016-Edit_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304528.html","width":130,"caption":"Male Chaffinch","height":120});
															thumbnails[3304558] = clik.newPhoto({"id":3304558,"src":"Flora and Fauna-6-2_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304558.html","width":130,"caption":"Wasp on Lily","height":77});
															thumbnails[3304568] = clik.newPhoto({"id":3304568,"src":"H drive-9021_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304568.html","width":130,"caption":"Fred being cheeky","height":87});
															thumbnails[3304589] = clik.newPhoto({"id":3304589,"src":"TIFF0025_RT16_thumb.jpg","galleries_id":201500,"server_id":1,"link":"photo_3304589.html","width":130,"caption":"Ptarmigan","height":57});
															thumbnails[3308301] = clik.newPhoto({"id":3308301,"src":"11_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308301.html","width":130,"caption":1.0,"height":163});
															thumbnails[3308302] = clik.newPhoto({"id":3308302,"src":"2_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308302.html","width":130,"caption":2.0,"height":104});
															thumbnails[3308303] = clik.newPhoto({"id":3308303,"src":"31_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308303.html","width":130,"caption":3.0,"height":104});
															thumbnails[3308304] = clik.newPhoto({"id":3308304,"src":"4_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308304.html","width":130,"caption":4.0,"height":104});
															thumbnails[3308305] = clik.newPhoto({"id":3308305,"src":"5_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308305.html","width":130,"caption":5.0,"height":163});
															thumbnails[3308306] = clik.newPhoto({"id":3308306,"src":"6_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308306.html","width":130,"caption":6.0,"height":163});
															thumbnails[3308307] = clik.newPhoto({"id":3308307,"src":"7_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308307.html","width":130,"caption":7.0,"height":104});
															thumbnails[3308308] = clik.newPhoto({"id":3308308,"src":"8_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308308.html","width":130,"caption":8.0,"height":104});
															thumbnails[3308309] = clik.newPhoto({"id":3308309,"src":"9_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308309.html","width":130,"caption":9.0,"height":104});
															thumbnails[3308310] = clik.newPhoto({"id":3308310,"src":"99_thumb.jpg","galleries_id":201565,"server_id":1,"link":"photo_3308310.html","width":130,"caption":10.0,"height":163});
															thumbnails[3436230] = clik.newPhoto({"id":3436230,"src":"Turkey-120-4_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436230.html","width":130,"caption":"12 Islands","height":87});
															thumbnails[3436231] = clik.newPhoto({"id":3436231,"src":"Turkey-128-2_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436231.html","width":130,"caption":"Tents near Gocek","height":195});
															thumbnails[3436232] = clik.newPhoto({"id":3436232,"src":"Turkey-15-Edit_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436232.html","width":130,"caption":"Sails high","height":85});
															thumbnails[3436233] = clik.newPhoto({"id":3436233,"src":"Turkey-179_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436233.html","width":130,"caption":"Dawn at 12 Islands","height":195});
															thumbnails[3436234] = clik.newPhoto({"id":3436234,"src":"Turkey-300_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436234.html","width":130,"caption":"Heading into Fethiye harbour","height":87});
															thumbnails[3436235] = clik.newPhoto({"id":3436235,"src":"Turkey-380_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436235.html","width":130,"caption":"Yaught moored at Fethiye harbour","height":120});
															thumbnails[3436236] = clik.newPhoto({"id":3436236,"src":"Turkey-393_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3436236.html","width":130,"caption":"Turkey-393","height":195});
															thumbnails[3304591] = clik.newPhoto({"id":3304591,"src":"Turkey-1037_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304591.html","width":130,"caption":"Turkey","height":195});
															thumbnails[3304592] = clik.newPhoto({"id":3304592,"src":"Turkey-1039_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304592.html","width":130,"caption":"Turkey","height":195});
															thumbnails[3304593] = clik.newPhoto({"id":3304593,"src":"Turkey-1044_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304593.html","width":130,"caption":"Turkey","height":87});
															thumbnails[3304595] = clik.newPhoto({"id":3304595,"src":"Turkey-16_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304595.html","width":130,"caption":"Gullet, Turkey","height":195});
															thumbnails[3304596] = clik.newPhoto({"id":3304596,"src":"Turkey-34-Edit_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304596.html","width":130,"caption":"Turkey","height":38});
															thumbnails[3304598] = clik.newPhoto({"id":3304598,"src":"Turkey-374_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304598.html","width":130,"caption":"Turkey","height":55});
															thumbnails[3304599] = clik.newPhoto({"id":3304599,"src":"Turkey-398_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304599.html","width":130,"caption":"Gullet gang, Turkey","height":83});
															thumbnails[3304601] = clik.newPhoto({"id":3304601,"src":"Turkey-88_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304601.html","width":130,"caption":"Turkey","height":60});
															thumbnails[3304603] = clik.newPhoto({"id":3304603,"src":"Turkey-958_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304603.html","width":130,"caption":"Turkey","height":195});
															thumbnails[3304604] = clik.newPhoto({"id":3304604,"src":"Turkey-959_thumb.jpg","galleries_id":201494,"server_id":1,"link":"photo_3304604.html","width":130,"caption":"Turkey","height":87});
															thumbnails[3305493] = clik.newPhoto({"id":3305493,"src":"Leanne layered-Edit-Edit-2_thumb.jpg","galleries_id":201507,"server_id":1,"link":"photo_3305493.html","width":130,"caption":"Leanne","height":88});
															thumbnails[3882708] = clik.newPhoto({"id":3882708,"src":"_39Z2361-Edit_thumb.jpg","galleries_id":201507,"server_id":1,"link":"photo_3882708.html","width":130,"caption":"Smoke trails","height":70});
															thumbnails[3895943] = clik.newPhoto({"id":3895943,"src":"_39Z2243-Edit1_thumb.jpg","galleries_id":201507,"server_id":1,"link":"photo_3895943.html","width":130,"caption":"Smoke trails","height":149});
															thumbnails[3895944] = clik.newPhoto({"id":3895944,"src":"_39Z2275-Edit1_thumb.jpg","galleries_id":201507,"server_id":1,"link":"photo_3895944.html","width":130,"caption":"Smoke image","height":170});
															thumbnails[3304545] = clik.newPhoto({"id":3304545,"src":"4_thumb.tiff.jpg","galleries_id":201507,"server_id":1,"link":"photo_3304545.html","width":130,"caption":"Lily","height":184});
															thumbnails[8122611] = clik.newPhoto({"id":8122611,"src":"Marks_Image_Flyer_thumb.jpg","galleries_id":434590,"server_id":1,"link":"photo_8122611.html","width":130,"caption":"Marks Image Flyer","height":184});
															thumbnails[8119925] = clik.newPhoto({"id":8119925,"src":"Tri_brochure_inside_thumb.jpg","galleries_id":434590,"server_id":1,"link":"photo_8119925.html","width":130,"caption":"Tri brochure inside","height":92});
															thumbnails[8122570] = clik.newPhoto({"id":8122570,"src":"Tri_brochure_out_cover_023B5DD1-1EC9-DFB6-092DE19E9381D9CC_thumb.jpg","galleries_id":434590,"server_id":1,"link":"photo_8122570.html","width":130,"caption":"Tri brochure out cover","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[343804] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Australia","link":"section410729.html","maxRecords":0.0,"photoIDs":[6138165.0,6138177.0,6138183.0,6138184.0,6138185.0],"skipIndex":0,"section_code":"section410729","featured_images":"6138185,6138184,6138183,6138177,6138165","id":343804,"singleSection":true});				  						galleries[201507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fine Art","link":"section248112.html","maxRecords":0.0,"photoIDs":[3305493.0,3882708.0,3895943.0,3895944.0,3304545.0],"skipIndex":0,"section_code":"section248112","featured_images":"3305493,3304545","id":201507,"singleSection":true});				  						galleries[201500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flora and Fauna","link":"section248111.html","maxRecords":0.0,"photoIDs":[3304513.0,3304526.0,3304527.0,3304528.0,3304558.0,3304568.0,3304589.0],"skipIndex":0,"section_code":"section248111","featured_images":"3304589,3304568,3304558,3304527,3304526,3304513","id":201500,"singleSection":true});				  						galleries[343768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hong Kong","link":"section410708.html","maxRecords":0.0,"photoIDs":[6138142.0,6138145.0,6138296.0,6138302.0,6138187.0,6138188.0],"skipIndex":0,"section_code":"section410708","featured_images":"6138302,6138296,6138188,6138187,6138145,6138142","id":343768,"singleSection":true});				  						galleries[201565] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"L.R.P.S.","link":"section248168.html","maxRecords":0.0,"photoIDs":[3308301.0,3308302.0,3308303.0,3308304.0,3308305.0,3308306.0,3308307.0,3308308.0,3308309.0,3308310.0],"skipIndex":0,"section_code":"section248168","featured_images":"3308310,3308309,3308308,3308307,3308306,3308305,3308304,3308303,3308302,3308301","id":201565,"singleSection":true});				  						galleries[29121] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"section48046.html","maxRecords":0.0,"photoIDs":[6137973.0,3896001.0,3304514.0,3304519.0,3304521.0,3304524.0,3304537.0,3304546.0,3304549.0,3304534.0,3304551.0,3304556.0,3304560.0,3304563.0,3304576.0,3304578.0,3304580.0,3304581.0,3304582.0,3304586.0,3304605.0,3304606.0,3304607.0,3304608.0,3304610.0,3304612.0,3304618.0,3304624.0,3304626.0,3304629.0,3304632.0],"skipIndex":0,"section_code":"section48046","featured_images":"3304632,3304629,3304626,3304624,3304618,3304612,3304610,3304608,3304607,3304606,3304605,3304586,3304582,3304581,3304580,3304578,3304576,3304563,3304560,3304556,3304551,3304549,3304546,3304537,3304534,3304524,3304521,3304519,3304514","id":29121,"singleSection":true});				  						galleries[434590] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photographic Tours","link":"section521981.html","maxRecords":0.0,"photoIDs":[8122611.0,8119925.0,8122570.0],"skipIndex":0,"section_code":"section521981","featured_images":8119925.0,"id":434590,"singleSection":true});				  						galleries[29120] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section48045.html","maxRecords":0.0,"photoIDs":[6935290.0,6935291.0,6935393.0,6935477.0,3882704.0,3304532.0,3304533.0,3304536.0,3304538.0,3304565.0,3304573.0,3304588.0,3304613.0],"skipIndex":0,"section_code":"section48045","featured_images":"3304613,3304588,3304573,3304565,3304538,3304536,3304533,3304532","id":29120,"singleSection":true});				  						galleries[201561] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"section248167.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section248167","featured_images":"","id":201561,"singleSection":true});				  						galleries[201494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Turkey","link":"section246826.html","maxRecords":0.0,"photoIDs":[3436230.0,3436231.0,3436232.0,3436233.0,3436234.0,3436235.0,3436236.0,3304591.0,3304592.0,3304593.0,3304595.0,3304596.0,3304598.0,3304599.0,3304601.0,3304603.0,3304604.0],"skipIndex":0,"section_code":"section246826","featured_images":"3304604,3304603,3304601,3304599,3304598,3304596,3304595,3304593,3304592,3304591","id":201494,"singleSection":true});				  						galleries[29122] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section48047.html","maxRecords":0.0,"photoIDs":[3356311.0,3436350.0,4220513.0],"skipIndex":0,"section_code":"section48047","featured_images":"4220513,3436350,3356311","id":29122,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3304528';
imageSets[2] = '3305493,8119925,3304513,3304514,3308301,3308302,3304519,3308303,3308304,3304521,3308305,3308306,3308307,3308308,3304524,3308309,3308310,3304526,3304527,3304532,3304533,3304536,3304537,3304538,3304545,3304546,3304549,3304534,3304551,3304556,3304558,3304560,3304563,3304565,3304568,3304573,3304576,3304578,3304580,3304581,3304582,3304586,3304588,3304589,3304591,3304592,3304593,3304594,3304595,3304596,3304598,3304599,3304601,3304603,3304604,3304605,3304606,3304607,3304608,3304610,3304612,3304613,3304618,3304624,3304626,3304629,3304632';
imageSets[3] = '6935477,6935393,6935291,6935290,6138302,6138296,6138177,6138165,6138145,6138142,6137973,3896001,3882704,3305493,3436230,4220513,3436350,3436231,3356311,6138183,3436232,6138184,3436233,6138185,3436234,3436235,3308301,6138187,3436236,3308302,6138188,3308303,3895943,3882708,3308304,3895944,3308305,3308306,3308307,3308308,3308309,3308310';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/markl7/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/markl7/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/markl7/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/markl7/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/markl7/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/markl7/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/markl7/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 += 'section410729.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 && 'section410729' != '') {
					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 = 'Marks Image: ' + 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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MARKL7">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

