window.thumbnails = {};
															thumbnails[8837105] = clik.newPhoto({"id":8837105,"src":"DSC_2183_9D68EFB1-24E8-5EC4-4FC5F5A7A6C93458_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8837105.html","width":130,"caption":"TORQUE RINGS CLEARLY SHOWN ON THIS HAWKER HURRICANE 11c","height":73});
															thumbnails[8838082] = clik.newPhoto({"id":8838082,"src":"DSC_0329_B54171A8-1EC9-DFB6-09BE8D91DB61A69F_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8838082.html","width":130,"caption":"DH TIGER MOTH R4922 G-APAO","height":72});
															thumbnails[7555806] = clik.newPhoto({"id":7555806,"src":"DSC_0105_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7555806.html","width":130,"caption":"What may be seen as a flaw is to me part of the beauty of the whole.","height":121});
															thumbnails[6346117] = clik.newPhoto({"id":6346117,"src":"_DSC0441_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6346117.html","width":130,"caption":"","height":82});
															thumbnails[6347019] = clik.newPhoto({"id":6347019,"src":"_DSC0358_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6347019.html","width":130,"caption":"BOEING STEARMAN N2-4 KAYDET","height":83});
															thumbnails[6350173] = clik.newPhoto({"id":6350173,"src":"_DSC0122_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6350173.html","width":130,"caption":"STAMPE SV4C","height":81});
															thumbnails[6350189] = clik.newPhoto({"id":6350189,"src":"_DSC0318_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6350189.html","width":130,"caption":"BOEING STEARMAN N2-4 KAYDET","height":79});
															thumbnails[6351136] = clik.newPhoto({"id":6351136,"src":"_DSC0253_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6351136.html","width":130,"caption":"","height":79});
															thumbnails[6351144] = clik.newPhoto({"id":6351144,"src":"_DSC0281_D8055069-24E8-5EC4-4F2B90214D2F0984_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6351144.html","width":130,"caption":"","height":78});
															thumbnails[6351149] = clik.newPhoto({"id":6351149,"src":"aaaae-3_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6351149.html","width":130,"caption":"","height":81});
															thumbnails[6352426] = clik.newPhoto({"id":6352426,"src":"_DSC0026_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6352426.html","width":130,"caption":"","height":77});
															thumbnails[6352436] = clik.newPhoto({"id":6352436,"src":"_DSC0114_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6352436.html","width":130,"caption":"","height":91});
															thumbnails[6548217] = clik.newPhoto({"id":6548217,"src":"Copy-2-of-_DSC01231_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6548217.html","width":130,"caption":"","height":103});
															thumbnails[6548262] = clik.newPhoto({"id":6548262,"src":"Copy_of_QWERT11_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6548262.html","width":130,"caption":"","height":86});
															thumbnails[6548454] = clik.newPhoto({"id":6548454,"src":"sue_thumb.jpg","galleries_id":359531,"server_id":1,"link":"photo_6548454.html","width":130,"caption":"","height":99});
															thumbnails[6560750] = clik.newPhoto({"id":6560750,"src":"_DSC0100_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6560750.html","width":130,"caption":"BLUSTERY DAY!","height":87});
															thumbnails[6560772] = clik.newPhoto({"id":6560772,"src":"_DSC0210_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6560772.html","width":130,"caption":"NEW LEAVES - THE CYCLE COMPLETE!","height":176});
															thumbnails[6561099] = clik.newPhoto({"id":6561099,"src":"_DSC0018_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6561099.html","width":130,"caption":"AUTUMN COLOURS 2009","height":115});
															thumbnails[6561104] = clik.newPhoto({"id":6561104,"src":"_DSC0005_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6561104.html","width":130,"caption":"","height":96});
															thumbnails[6561106] = clik.newPhoto({"id":6561106,"src":"_DSC0011_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6561106.html","width":130,"caption":"","height":117});
															thumbnails[6561109] = clik.newPhoto({"id":6561109,"src":"IMG_2459-copy_thumb.jpg","galleries_id":359531,"server_id":1,"link":"photo_6561109.html","width":130,"caption":"BRENZETT, KENT,  SHOW 2009","height":195});
															thumbnails[6567768] = clik.newPhoto({"id":6567768,"src":"2-1-copy_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_6567768.html","width":130,"caption":"","height":87});
															thumbnails[6567783] = clik.newPhoto({"id":6567783,"src":"YUYU-6-copy_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_6567783.html","width":130,"caption":"SNOWDONIA","height":84});
															thumbnails[6571043] = clik.newPhoto({"id":6571043,"src":"1133190F_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6571043.html","width":130,"caption":"AIR- BRITAIN COLLECTION.","height":78});
															thumbnails[6624287] = clik.newPhoto({"id":6624287,"src":"_DSC0001_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6624287.html","width":130,"caption":"","height":96});
															thumbnails[6624291] = clik.newPhoto({"id":6624291,"src":"_DSC0035_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6624291.html","width":130,"caption":"","height":109});
															thumbnails[6624293] = clik.newPhoto({"id":6624293,"src":"_DSC0006_BAB156B3-24E8-5EC4-4FB0E9743707963F_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6624293.html","width":130,"caption":"","height":90});
															thumbnails[6625120] = clik.newPhoto({"id":6625120,"src":"_DSC0044_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6625120.html","width":130,"caption":"","height":101});
															thumbnails[6716175] = clik.newPhoto({"id":6716175,"src":"111_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6716175.html","width":130,"caption":"","height":84});
															thumbnails[6733077] = clik.newPhoto({"id":6733077,"src":"_DSC0103_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6733077.html","width":130,"caption":"","height":87});
															thumbnails[6759543] = clik.newPhoto({"id":6759543,"src":"Copy-of-4_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6759543.html","width":130,"caption":"","height":86});
															thumbnails[6759544] = clik.newPhoto({"id":6759544,"src":"Copy-of-5_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6759544.html","width":130,"caption":"MENDING THE NETS on the beach at Hastings, Sussex.","height":98});
															thumbnails[6759561] = clik.newPhoto({"id":6759561,"src":"Copy-of-8_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6759561.html","width":130,"caption":"","height":172});
															thumbnails[6759564] = clik.newPhoto({"id":6759564,"src":"Copy-of-_DSC0123_edited-1_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6759564.html","width":130,"caption":"","height":87});
															thumbnails[6764315] = clik.newPhoto({"id":6764315,"src":"_DSC0152_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6764315.html","width":130,"caption":"","height":87});
															thumbnails[6764334] = clik.newPhoto({"id":6764334,"src":"_DSC0201_2B93CF01-1D09-001F-996EB3B49C277FEA_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6764334.html","width":130,"caption":"PEACE AND TRANQUILITY","height":87});
															thumbnails[6764351] = clik.newPhoto({"id":6764351,"src":"_DSC0337_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6764351.html","width":130,"caption":"IT'S CONKER TIME!","height":103});
															thumbnails[6764352] = clik.newPhoto({"id":6764352,"src":"_DSC0361_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6764352.html","width":130,"caption":"","height":94});
															thumbnails[6770171] = clik.newPhoto({"id":6770171,"src":"_DSC02131_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6770171.html","width":130,"caption":"","height":194});
															thumbnails[6848631] = clik.newPhoto({"id":6848631,"src":"_DSC0291_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6848631.html","width":130,"caption":"HAWKER HURRICANE IIC SERIAL LF751.<br>\r\nTHE SPITFIRE AND HURRICANE MEMORIAL MUSEUM. MANSTON, KENT.<br>\r\nThis superb museum is on the site of the famous Battle of Britain Airfield - RAF MANSTON.<br>\r\n","height":88});
															thumbnails[6848652] = clik.newPhoto({"id":6848652,"src":"_DSC0319_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6848652.html","width":130,"caption":"CLOSE UP OF A PACKARD MERLIN ENGINE!<br>\r\nSUPERMARINE SPITFIRE MK XV1 (LF) TYPE 361 SERIAL TB752","height":87});
															thumbnails[6848665] = clik.newPhoto({"id":6848665,"src":"_DSC0351_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6848665.html","width":130,"caption":"SUPERMARINE SPITFIRE MK XV1 (LF) TYPE 361.<br>\r\nCLOSE UP OF THE COCKPIT AREA.","height":182});
															thumbnails[6848712] = clik.newPhoto({"id":6848712,"src":"Copy-of-_DSC0314_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_6848712.html","width":130,"caption":"SUPERMARINE SPITFIRE MKXV1 (LF) TYPE 361 SERIAL TB752.","height":84});
															thumbnails[6925589] = clik.newPhoto({"id":6925589,"src":"MPB-33_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6925589.html","width":130,"caption":"FIGUREHEAD FROM THE 74 GUN SHIP IMPLACABLE, - ORIGINALLY THE FRENCH 74 GUN SHIP DUGUAY TROUIN SHE FOUGHT AGAINST NELSON'S FLEET AT THE BATTLE OF TRAFALGAR ON 21 OCTOBER 1805 AND ESCAPED, ONLY TO BE CAPTURED BY THE BRITISH TWO WEEKS LATER.   SHE WAS TAKEN INTO THE ROYAL NAVY, RENAMED IMPLACABLE AND ENJOYED A LONG CAREER.<br>\r\nIMPLACABLE WAS SCUTTLED ON 2ND DECEMBER 1949 - AMID PUBLIC UPROAR - AND HER FIGUREHEAD AND STERN CARVINGS DONATED TO THE NATIONAL MARITIME MUSEUM, GREENWICH. ENGLAND.","height":184});
															thumbnails[6925594] = clik.newPhoto({"id":6925594,"src":"MPB-42_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_6925594.html","width":130,"caption":"STERN CARVINGS FROM THE 74 GUN SHIP IMPLACABLE, 1800.<br>\r\nFOUGHT AT THE BATTLE OF TRAFALGAR 1805.<br>\r\nSEE MY FIGUREHEAD IMAGE FOR MORE INFORMATION ON THIS SHIP.","height":118});
															thumbnails[6947263] = clik.newPhoto({"id":6947263,"src":"_DSC0030_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_6947263.html","width":130,"caption":"","height":101});
															thumbnails[7036038] = clik.newPhoto({"id":7036038,"src":"Copy-of-autumn1_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7036038.html","width":130,"caption":"THE WONDERFUL COLOURS OF AUTUMN!","height":87});
															thumbnails[7056058] = clik.newPhoto({"id":7056058,"src":"Copy-of-_DSC0031_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_7056058.html","width":130,"caption":"EARLY MORNING SUNLIGHT ON THE RUINS OF ST MARYS CHURCH, LITTLE CHART. KENT. ENGLAND","height":87});
															thumbnails[7316150] = clik.newPhoto({"id":7316150,"src":"rrrr_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_7316150.html","width":130,"caption":"","height":109});
															thumbnails[7402133] = clik.newPhoto({"id":7402133,"src":"4plus1_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_7402133.html","width":130,"caption":"BEACHING THE RX258  IN A WINTERY SEA.","height":94});
															thumbnails[7533162] = clik.newPhoto({"id":7533162,"src":"Copy-of-42HNM_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7533162.html","width":130,"caption":"SPRING 2011","height":178});
															thumbnails[7533165] = clik.newPhoto({"id":7533165,"src":"Copy-of-4F56_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7533165.html","width":130,"caption":"SPRING 2011","height":117});
															thumbnails[7533170] = clik.newPhoto({"id":7533170,"src":"Copy-of-J9FC_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7533170.html","width":130,"caption":"SPRING 2011","height":103});
															thumbnails[7537711] = clik.newPhoto({"id":7537711,"src":"web1_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7537711.html","width":130,"caption":"SPRING 2011","height":151});
															thumbnails[7537926] = clik.newPhoto({"id":7537926,"src":"12145_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_7537926.html","width":130,"caption":"Hastings from the East Hill.","height":87});
															thumbnails[7537929] = clik.newPhoto({"id":7537929,"src":"_DSC0027_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_7537929.html","width":130,"caption":"Main Gate to Canterbury Cathedral, Kent, England showing detail.","height":194});
															thumbnails[7541863] = clik.newPhoto({"id":7541863,"src":"Copy-of-vmnj_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7541863.html","width":130,"caption":"SPRING 2011","height":104});
															thumbnails[7564628] = clik.newPhoto({"id":7564628,"src":"DSC_0070_thumb.jpg","galleries_id":359531,"server_id":1,"link":"photo_7564628.html","width":130,"caption":"PUPPY LOVE!","height":87});
															thumbnails[7569864] = clik.newPhoto({"id":7569864,"src":"296_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_7569864.html","width":130,"caption":"LEEDS CASTLE, KENT. ENGLAND MARCH 2011","height":85});
															thumbnails[7570441] = clik.newPhoto({"id":7570441,"src":"Copy-of-301_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_7570441.html","width":130,"caption":"Leeds Castle - through the blossom!","height":87});
															thumbnails[7671970] = clik.newPhoto({"id":7671970,"src":"DSC_0038_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_7671970.html","width":130,"caption":"","height":92});
															thumbnails[7739229] = clik.newPhoto({"id":7739229,"src":"u889_thumb.jpg","galleries_id":359531,"server_id":1,"link":"photo_7739229.html","width":130,"caption":"GETTING A TAN!","height":97});
															thumbnails[8206836] = clik.newPhoto({"id":8206836,"src":"DSCXX_5621_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_8206836.html","width":130,"caption":"NORWICH CATHEDRAL","height":186});
															thumbnails[8774117] = clik.newPhoto({"id":8774117,"src":"XXX_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8774117.html","width":130,"caption":"NORTH AMERICAN T6 HARVARD","height":90});
															thumbnails[8785447] = clik.newPhoto({"id":8785447,"src":"DSC_6361_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8785447.html","width":130,"caption":"HARVARD CLOSE UP ","height":86});
															thumbnails[8796977] = clik.newPhoto({"id":8796977,"src":"DSC_4137_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8796977.html","width":130,"caption":"BOLKOW JUNIOR","height":75});
															thumbnails[8796982] = clik.newPhoto({"id":8796982,"src":"DSC_6174_thumb.jpg","galleries_id":359522,"server_id":1,"link":"photo_8796982.html","width":130,"caption":"STAMPE SV4(C)G","height":78});
															thumbnails[8796991] = clik.newPhoto({"id":8796991,"src":"DSC_5603_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_8796991.html","width":130,"caption":"SCOTNEY CASTLE, KENT, ENGLAND","height":86});
															thumbnails[8813356] = clik.newPhoto({"id":8813356,"src":"DSC_5874_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_8813356.html","width":130,"caption":"WINTER BERRIES","height":120});
															thumbnails[8813398] = clik.newPhoto({"id":8813398,"src":"DSC_6015_thumb.jpg","galleries_id":359530,"server_id":1,"link":"photo_8813398.html","width":130,"caption":"WINTER LEAF STUDY","height":219});
															thumbnails[8821414] = clik.newPhoto({"id":8821414,"src":"DSC_6552_thumb.jpg","galleries_id":359540,"server_id":1,"link":"photo_8821414.html","width":130,"caption":"FIGUREHEAD OF THE 'SUNBEAM' 1876","height":212});
															thumbnails[8821416] = clik.newPhoto({"id":8821416,"src":"DSC_6622_thumb.jpg","galleries_id":359534,"server_id":1,"link":"photo_8821416.html","width":130,"caption":"Late afternoon, the OLD ROYAL NAVAL COLLEGE, GREENWICH, LONDON. ENGLAND","height":85});
															thumbnails[9089474] = clik.newPhoto({"id":9089474,"src":"Copy-of-IMG_3382.jpg","galleries_id":359540,"server_id":1,"link":"photo_9089474.html","width":130,"caption":"RX 60 ALFIE ELLIOT","height":101});
															thumbnails[9092186] = clik.newPhoto({"id":9092186,"src":"IMG_3112.jpg","galleries_id":359540,"server_id":1,"link":"photo_9092186.html","width":130,"caption":"THE RX 60 ALFIE ELLIOT, RETURNS FROM FISHING.","height":87});
															thumbnails[9108208] = clik.newPhoto({"id":9108208,"src":"Copy-of-IMG_5262.jpg","galleries_id":359531,"server_id":35,"link":"photo_9108208.html","width":130,"caption":"RETURNING THE BALL!","height":127});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[359522] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AIRCRAFT","link":"gallery_359522.html","maxRecords":0.0,"photoIDs":[8837105.0,8838082.0,6346117.0,6347019.0,6350173.0,6350189.0,6351136.0,6351144.0,6351149.0,6352426.0,6352436.0,6571043.0,6848631.0,6848652.0,6848665.0,6848712.0,7316150.0,8774117.0,8785447.0,8796977.0,8796982.0],"skipIndex":0,"section_code":"gallery","featured_images":"8838082,8837105,8796982,8796977,8785447,8774117,7316150,6848712,6848665,6848652","id":359522,"singleSection":false});				  						galleries[359531] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ANIMALS","link":"gallery_359531.html","maxRecords":0.0,"photoIDs":[6548454.0,6561109.0,7564628.0,7739229.0,9108208.0],"skipIndex":0,"section_code":"gallery","featured_images":"9108208,7739229,7564628,6561109,6548454","id":359531,"singleSection":false});				  						galleries[359533] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GENERAL INTEREST","link":"gallery_359533.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":359533,"singleSection":false});				  						galleries[359530] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NATURE","link":"gallery_359530.html","maxRecords":0.0,"photoIDs":[7555806.0,6548217.0,6560772.0,6561099.0,6561104.0,6561106.0,6624287.0,6624291.0,6624293.0,6625120.0,6716175.0,6764315.0,6764334.0,6764351.0,6764352.0,6770171.0,6947263.0,7036038.0,7533162.0,7533165.0,7533170.0,7537711.0,7541863.0,7671970.0,8813356.0,8813398.0],"skipIndex":0,"section_code":"gallery","featured_images":"8813398,8813356,7671970,7555806,7541863,7537711,7533170,7533165,7533162,7036038","id":359530,"singleSection":false});				  						galleries[359534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PLACES AND BUILDINGS","link":"gallery_359534.html","maxRecords":0.0,"photoIDs":[6567768.0,6567783.0,7056058.0,7537926.0,7537929.0,7569864.0,7570441.0,8206836.0,8796991.0,8821416.0],"skipIndex":0,"section_code":"gallery","featured_images":"8821416,8796991,8206836,7570441,7569864,7537929,7537926,7056058,6567783,6567768","id":359534,"singleSection":false});				  						galleries[359540] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SHIPS AND THE SEA","link":"gallery_359540.html","maxRecords":0.0,"photoIDs":[6548262.0,6560750.0,6733077.0,6759543.0,6759544.0,6759561.0,6759564.0,6925589.0,6925594.0,7402133.0,8821414.0,9089474.0,9092186.0],"skipIndex":0,"section_code":"gallery","featured_images":"9092186,9089474,8821414,7402133,6925594,6925589,6759564,6759561,6759544,6759543","id":359540,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9108208,9092186,9089474,8838082,8837105,8821416,8821414,8813398,8813356,8796991,8796982,8796977,8785447,8774117,8206836,7739229,7671970,7570441,7569864,7564628,7555806,7541863,7537929,7537926,7537711,7533170,7533165,7533162,7402133,7316150,7056058,7036038,6947263,6925594,6925589,6848712,6848665,6848652,6848631,6770171,6764352,6764351,6764334,6764315,6759564,6759561,6759544,6759543,6733077,6716175';
imageSets[3] = '9108208,9092186,9089474,8838082,8837105,8821416,8821414,8813398,8813356,8796991,8796982,8796977,8785447,8774117,8206836,7739229,7671970,7570441,7569864,7564628,7555806,7541863,7537929,7537926,7537711,7533170,7533165,7533162,7402133,7316150,7056058,7036038,6947263,6925594,6925589,6848712,6848665,6848652,6848631,6770171,6764352,6764351,6764334,6764315,6759564,6759561,6759544,6759543,6733077,6716175';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/martinbee/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/martinbee/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/martinbee/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 = 'MARTIN PHILIP BROWNE  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>';
	}
				
	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="MARTINBEE">';
			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;
	}
}

			

