window.thumbnails = {};
															thumbnails[6611009] = clik.newPhoto({"id":6611009,"src":"beillngham_bridge_14june_2010_b12_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":70,"caption":"","height":47});
															thumbnails[6611012] = clik.newPhoto({"id":6611012,"src":"Bellingham_bridge_aug2010-0121_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":70,"caption":"","height":47});
															thumbnails[7494662] = clik.newPhoto({"id":7494662,"src":"fish_intro_page_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":68});
															thumbnails[6865257] = clik.newPhoto({"id":6865257,"src":"Tyne_Bridge_Frozen_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":90,"caption":"","height":60});
															thumbnails[6920102] = clik.newPhoto({"id":6920102,"src":"horse_and_2_dogs_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":128});
															thumbnails[1439754] = clik.newPhoto({"id":1439754,"src":"Spike Milligan-06_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_1439754.html","width":70,"caption":"Spike Milligan","height":72});
															thumbnails[1982738] = clik.newPhoto({"id":1982738,"src":"Nicole Faraday_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_1982738.html","width":70,"caption":"Nicole Faraday","height":95});
															thumbnails[5515751] = clik.newPhoto({"id":5515751,"src":"Patrick_Moore2_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5515751.html","width":70,"caption":"Patrick Moore","height":99});
															thumbnails[5518936] = clik.newPhoto({"id":5518936,"src":"John_Ryse-Davies-7_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518936.html","width":70,"caption":"John Rhys-Davies","height":105});
															thumbnails[5518934] = clik.newPhoto({"id":5518934,"src":"Trevor_Baylis-014_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518934.html","width":70,"caption":"Trevor G. Baylis","height":105});
															thumbnails[3814660] = clik.newPhoto({"id":3814660,"src":"mark-0391_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3814660.html","width":70,"caption":"","height":85});
															thumbnails[5518930] = clik.newPhoto({"id":5518930,"src":"murry_walker_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518930.html","width":70,"caption":"Murray Walker","height":96});
															thumbnails[5518931] = clik.newPhoto({"id":5518931,"src":"James_Cracknell_3_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518931.html","width":70,"caption":"James Cracknell","height":105});
															thumbnails[5704049] = clik.newPhoto({"id":5704049,"src":"DG-059_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5704049.html","width":70,"caption":"","height":105});
															thumbnails[1966985] = clik.newPhoto({"id":1966985,"src":"Felix Dennis-0072_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_1966985.html","width":70,"caption":"Felix Denis","height":105});
															thumbnails[2418330] = clik.newPhoto({"id":2418330,"src":"top gear 6 web_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2418330.html","width":70,"caption":"Maximillion Cooper","height":54});
															thumbnails[2731261] = clik.newPhoto({"id":2731261,"src":"Angle Grinder Man web_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2731261.html","width":70,"caption":"Angle Grinder Man","height":61});
															thumbnails[3099386] = clik.newPhoto({"id":3099386,"src":"VLN-100_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3099386.html","width":70,"caption":"Sabine Schmitz","height":87});
															thumbnails[1923074] = clik.newPhoto({"id":1923074,"src":"Montoya1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_1923074.html","width":70,"caption":"Juan Pablo Montoya","height":70});
															thumbnails[4861932] = clik.newPhoto({"id":4861932,"src":"ken_block_1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_4861932.html","width":70,"caption":"Ken Block","height":94});
															thumbnails[3335405] = clik.newPhoto({"id":3335405,"src":"Rugby-0401_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3335405.html","width":70,"caption":"","height":126});
															thumbnails[3273857] = clik.newPhoto({"id":3273857,"src":"TopGear_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3273857.html","width":70,"caption":"Jeremy Clarkson","height":47});
															thumbnails[3311795] = clik.newPhoto({"id":3311795,"src":"Tom-059_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3311795.html","width":70,"caption":"","height":51});
															thumbnails[6396165] = clik.newPhoto({"id":6396165,"src":"064_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_6396165.html","width":70,"caption":"Leyton Clarke","height":47});
															thumbnails[7289399] = clik.newPhoto({"id":7289399,"src":"043_1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_7289399.html","width":100,"caption":"","height":150});
															thumbnails[2985685] = clik.newPhoto({"id":2985685,"src":"Goodwood-056_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2985685.html","width":70,"caption":"Rowen Atkinson","height":47});
															thumbnails[2847547] = clik.newPhoto({"id":2847547,"src":"Essex man 1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2847547.html","width":70,"caption":"","height":53});
															thumbnails[3594161] = clik.newPhoto({"id":3594161,"src":"RallyDay2008-061_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3594161.html","width":70,"caption":"Mikko Hirvonen","height":47});
															thumbnails[5428057] = clik.newPhoto({"id":5428057,"src":"ford_MD_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5428057.html","width":70,"caption":"","height":47});
															thumbnails[3415937] = clik.newPhoto({"id":3415937,"src":"director CrispGeneralPR-010 (2)_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3415937.html","width":70,"caption":"","height":53});
															thumbnails[3404970] = clik.newPhoto({"id":3404970,"src":"ridge pr1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3404970.html","width":70,"caption":"","height":47});
															thumbnails[3335425] = clik.newPhoto({"id":3335425,"src":"Film-8_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3335425.html","width":70,"caption":"","height":47});
															thumbnails[3404972] = clik.newPhoto({"id":3404972,"src":"Felix Dennis-0061_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3404972.html","width":70,"caption":"Felix Denis","height":47});
															thumbnails[3404976] = clik.newPhoto({"id":3404976,"src":"director 71_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3404976.html","width":70,"caption":"","height":53});
															thumbnails[5518943] = clik.newPhoto({"id":5518943,"src":"director_AndyBrooks-012_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518943.html","width":70,"caption":"","height":97});
															thumbnails[2543491] = clik.newPhoto({"id":2543491,"src":"higgins New Suit-36_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2543491.html","width":70,"caption":"","height":95});
															thumbnails[2563105] = clik.newPhoto({"id":2563105,"src":"higgins (7)_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_2563105.html","width":70,"caption":"","height":50});
															thumbnails[3335428] = clik.newPhoto({"id":3335428,"src":"higgins (9)_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3335428.html","width":70,"caption":"","height":99});
															thumbnails[5518940] = clik.newPhoto({"id":5518940,"src":"Andrew_Goodall_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5518940.html","width":70,"caption":"","height":60});
															thumbnails[3335439] = clik.newPhoto({"id":3335439,"src":"DLG-0132_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3335439.html","width":70,"caption":"","height":105});
															thumbnails[3335409] = clik.newPhoto({"id":3335409,"src":"arts club1_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_3335409.html","width":70,"caption":"","height":105});
															thumbnails[1741016] = clik.newPhoto({"id":1741016,"src":"3 men_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_1741016.html","width":70,"caption":"","height":101});
															thumbnails[5514973] = clik.newPhoto({"id":5514973,"src":"hotelcom_thumb.jpg","galleries_id":199600,"server_id":18,"link":"photo_5514973.html","width":70,"caption":"","height":99});
															thumbnails[8479362] = clik.newPhoto({"id":8479362,"src":"098_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479362.html","width":100,"caption":"","height":67});
															thumbnails[8479410] = clik.newPhoto({"id":8479410,"src":"104_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479410.html","width":100,"caption":"","height":71});
															thumbnails[8479428] = clik.newPhoto({"id":8479428,"src":"121_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479428.html","width":100,"caption":"","height":150});
															thumbnails[8479444] = clik.newPhoto({"id":8479444,"src":"128_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479444.html","width":100,"caption":"","height":67});
															thumbnails[8479483] = clik.newPhoto({"id":8479483,"src":"139_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479483.html","width":100,"caption":"","height":67});
															thumbnails[8479512] = clik.newPhoto({"id":8479512,"src":"club_pride2004-037_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479512.html","width":100,"caption":"","height":79});
															thumbnails[8479521] = clik.newPhoto({"id":8479521,"src":"CrispGeneralPR-010_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479521.html","width":100,"caption":"","height":67});
															thumbnails[8479538] = clik.newPhoto({"id":8479538,"src":"director_AndyBrooks-003_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479538.html","width":100,"caption":"","height":72});
															thumbnails[8479541] = clik.newPhoto({"id":8479541,"src":"DLG-013_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479541.html","width":100,"caption":"","height":150});
															thumbnails[8479542] = clik.newPhoto({"id":8479542,"src":"EXCEL_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479542.html","width":100,"caption":"","height":103});
															thumbnails[8479543] = clik.newPhoto({"id":8479543,"src":"GOODALL1_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479543.html","width":100,"caption":"","height":86});
															thumbnails[8479544] = clik.newPhoto({"id":8479544,"src":"higgins_6_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479544.html","width":100,"caption":"","height":67});
															thumbnails[8479545] = clik.newPhoto({"id":8479545,"src":"Phase_3-021_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479545.html","width":100,"caption":"","height":67});
															thumbnails[8479546] = clik.newPhoto({"id":8479546,"src":"STEVE_BELL_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479546.html","width":100,"caption":"","height":70});
															thumbnails[8479547] = clik.newPhoto({"id":8479547,"src":"su-babe-ND0333-d_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479547.html","width":100,"caption":"","height":67});
															thumbnails[8479548] = clik.newPhoto({"id":8479548,"src":"su-charity-ND0309-17_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479548.html","width":100,"caption":"","height":67});
															thumbnails[8479549] = clik.newPhoto({"id":8479549,"src":"Ridgemount_pr1_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479549.html","width":100,"caption":"","height":67});
															thumbnails[8479551] = clik.newPhoto({"id":8479551,"src":"Nurburgring_24hr-173_thumb.JPG","galleries_id":448471,"server_id":18,"link":"photo_8479551.html","width":100,"caption":"","height":63});
															thumbnails[8479552] = clik.newPhoto({"id":8479552,"src":"su-aliG-ND02007-f_thumb.JPG","galleries_id":448471,"server_id":18,"link":"photo_8479552.html","width":100,"caption":"","height":67});
															thumbnails[8479554] = clik.newPhoto({"id":8479554,"src":"higgins_New_Suit-36_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479554.html","width":100,"caption":"","height":136});
															thumbnails[8479555] = clik.newPhoto({"id":8479555,"src":"Higgins_3_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479555.html","width":100,"caption":"","height":67});
															thumbnails[8479556] = clik.newPhoto({"id":8479556,"src":"Marco__Luke_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479556.html","width":100,"caption":"","height":73});
															thumbnails[8479557] = clik.newPhoto({"id":8479557,"src":"Nurburgring_24hr-195_thumb.JPG","galleries_id":448471,"server_id":18,"link":"photo_8479557.html","width":100,"caption":"","height":63});
															thumbnails[8479558] = clik.newPhoto({"id":8479558,"src":"ken_block_5_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479558.html","width":100,"caption":"","height":136});
															thumbnails[8479559] = clik.newPhoto({"id":8479559,"src":"NHS_3_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479559.html","width":100,"caption":"","height":67});
															thumbnails[8479560] = clik.newPhoto({"id":8479560,"src":"Tom-059_76B6C0AE-1E4F-37DC-718471853ABA1E4C_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479560.html","width":100,"caption":"","height":73});
															thumbnails[8479561] = clik.newPhoto({"id":8479561,"src":"Nurburgring_24hr-1731_thumb.JPG","galleries_id":448471,"server_id":18,"link":"photo_8479561.html","width":100,"caption":"","height":63});
															thumbnails[8479562] = clik.newPhoto({"id":8479562,"src":"Ball-038_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479562.html","width":100,"caption":"","height":67});
															thumbnails[8479572] = clik.newPhoto({"id":8479572,"src":"ford_MD_76B78044-1E4F-37DC-713B7DCAD9DCCD38_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479572.html","width":100,"caption":"","height":67});
															thumbnails[8479656] = clik.newPhoto({"id":8479656,"src":"PressPR-011_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479656.html","width":100,"caption":"","height":67});
															thumbnails[8479744] = clik.newPhoto({"id":8479744,"src":"911Rally-029_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479744.html","width":100,"caption":"","height":67});
															thumbnails[8479745] = clik.newPhoto({"id":8479745,"src":"bodypaint_1_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479745.html","width":100,"caption":"","height":82});
															thumbnails[8479746] = clik.newPhoto({"id":8479746,"src":"BUZZ_THE_CAT3_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479746.html","width":100,"caption":"","height":144});
															thumbnails[8479748] = clik.newPhoto({"id":8479748,"src":"Chief-05a_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479748.html","width":100,"caption":"","height":67});
															thumbnails[8479749] = clik.newPhoto({"id":8479749,"src":"portfolio-1_thumb.jpg","galleries_id":448471,"server_id":18,"link":"photo_8479749.html","width":100,"caption":"","height":35});
															thumbnails[6396172] = clik.newPhoto({"id":6396172,"src":"AudiA8-04_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6396172.html","width":70,"caption":"","height":34});
															thumbnails[6396178] = clik.newPhoto({"id":6396178,"src":"WebbCars-20_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6396178.html","width":70,"caption":"","height":39});
															thumbnails[6396180] = clik.newPhoto({"id":6396180,"src":"AudiA8-23-2_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6396180.html","width":70,"caption":"","height":39});
															thumbnails[6396186] = clik.newPhoto({"id":6396186,"src":"122_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6396186.html","width":70,"caption":"","height":47});
															thumbnails[6973759] = clik.newPhoto({"id":6973759,"src":"fish-019_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6973759.html","width":100,"caption":"","height":67});
															thumbnails[7494659] = clik.newPhoto({"id":7494659,"src":"sheep_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_7494659.html","width":100,"caption":"","height":67});
															thumbnails[2218972] = clik.newPhoto({"id":2218972,"src":"A4_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2218972.html","width":70,"caption":"","height":47});
															thumbnails[3333680] = clik.newPhoto({"id":3333680,"src":"Crystal Palace1_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_3333680.html","width":70,"caption":"","height":105});
															thumbnails[6571248] = clik.newPhoto({"id":6571248,"src":"Hareshaw_Linn_aug2010-008_11_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_6571248.html","width":70,"caption":"","height":47});
															thumbnails[5268071] = clik.newPhoto({"id":5268071,"src":"Nurburgring_24hr-275_thumb.JPG","galleries_id":177146,"server_id":18,"link":"photo_5268071.html","width":70,"caption":"","height":44});
															thumbnails[2403892] = clik.newPhoto({"id":2403892,"src":"park eb_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2403892.html","width":70,"caption":"","height":47});
															thumbnails[2185498] = clik.newPhoto({"id":2185498,"src":"North Land_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2185498.html","width":70,"caption":"","height":47});
															thumbnails[2218973] = clik.newPhoto({"id":2218973,"src":"A5_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2218973.html","width":70,"caption":"","height":47});
															thumbnails[5110541] = clik.newPhoto({"id":5110541,"src":"Kielder_1_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_5110541.html","width":70,"caption":"","height":47});
															thumbnails[5110543] = clik.newPhoto({"id":5110543,"src":"Kielder_Forest_5_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_5110543.html","width":70,"caption":"","height":47});
															thumbnails[1775892] = clik.newPhoto({"id":1775892,"src":"t-021_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_1775892.html","width":70,"caption":"","height":44});
															thumbnails[2336070] = clik.newPhoto({"id":2336070,"src":"car6 web_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2336070.html","width":70,"caption":"","height":47});
															thumbnails[1775889] = clik.newPhoto({"id":1775889,"src":"t-041_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_1775889.html","width":70,"caption":"","height":35});
															thumbnails[3114017] = clik.newPhoto({"id":3114017,"src":"TV pilon-1_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_3114017.html","width":70,"caption":"","height":105});
															thumbnails[7289396] = clik.newPhoto({"id":7289396,"src":"California-09_80205CB4-1EC9-D45B-1CC8C0E5E4F348CF_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_7289396.html","width":100,"caption":"","height":67});
															thumbnails[2403901] = clik.newPhoto({"id":2403901,"src":"American Diner A1 web_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_2403901.html","width":70,"caption":"","height":47});
															thumbnails[3851839] = clik.newPhoto({"id":3851839,"src":"CNV00020_thumb.jpg","galleries_id":177146,"server_id":18,"link":"photo_3851839.html","width":70,"caption":"","height":45});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[448471] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PR","link":"section539661.html","maxRecords":0.0,"photoIDs":[8479362.0,8479410.0,8479428.0,8479444.0,8479483.0,8479512.0,8479521.0,8479538.0,8479541.0,8479542.0,8479543.0,8479544.0,8479545.0,8479546.0,8479547.0,8479548.0,8479549.0,8479551.0,8479552.0,8479554.0,8479555.0,8479556.0,8479557.0,8479558.0,8479559.0,8479560.0,8479561.0,8479562.0,8479572.0,8479656.0,8479744.0,8479745.0,8479746.0,8479748.0,8479749.0],"skipIndex":0,"section_code":"section539661","featured_images":"8479749,8479748,8479746,8479745,8479744,8479656,8479572,8479562,8479561,8479560","id":448471,"singleSection":true});				  						galleries[199600] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section328683.html","maxRecords":0.0,"photoIDs":[1439754.0,1982738.0,5515751.0,5518936.0,5518934.0,3814660.0,5518930.0,5518931.0,5704049.0,1966985.0,2418330.0,2731261.0,3099386.0,1923074.0,4861932.0,3335405.0,3273857.0,3311795.0,6396165.0,7289399.0,2985685.0,2847547.0,3594161.0,5428057.0,3415937.0,3404970.0,3335425.0,3404972.0,3404976.0,5518943.0,2543491.0,2563105.0,3335428.0,5518940.0,3335439.0,3335409.0,1741016.0,5514973.0],"skipIndex":0,"section_code":"section328683","featured_images":3273857.0,"id":199600,"singleSection":true});				  						galleries[177146] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Personal","link":"section328005.html","maxRecords":0.0,"photoIDs":[6396172.0,6396178.0,6396180.0,6396186.0,6973759.0,7494659.0,2218972.0,3333680.0,6571248.0,5268071.0,2403892.0,2185498.0,2218973.0,5110541.0,5110543.0,1775892.0,2336070.0,1775889.0,3114017.0,7289396.0,2403901.0,3851839.0],"skipIndex":0,"section_code":"section328005","featured_images":2218972.0,"id":177146,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6973759';
imageSets[2] = '3273857,2218972';
imageSets[3] = '1439754';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/marlin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/marlin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/marlin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/marlin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/marlin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/marlin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/marlin/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 += 'section328683.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 && 'section328683' != '') {
					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 = 'Photographer UK: ' + 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 !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					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;
	}
}

			

