window.thumbnails = {};
															thumbnails[8281229] = clik.newPhoto({"id":8281229,"src":"P1013327_A5_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_8281229.html","width":130,"caption":"Billy and Joanne","height":98});
															thumbnails[8281233] = clik.newPhoto({"id":8281233,"src":"P1013330_A5_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_8281233.html","width":130,"caption":"Billy and Joanne","height":98});
															thumbnails[8281252] = clik.newPhoto({"id":8281252,"src":"P1013334_A5_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_8281252.html","width":130,"caption":"Billy and Joanne","height":98});
															thumbnails[8281261] = clik.newPhoto({"id":8281261,"src":"P1013335_A5_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_8281261.html","width":130,"caption":"Billy and Joanne","height":173});
															thumbnails[5771019] = clik.newPhoto({"id":5771019,"src":"Glacierexpress_LQ161_thumb.jpg","galleries_id":316972,"server_id":18,"link":"photo_5771019.html","width":130,"caption":"Above Arosa","height":86});
															thumbnails[5771013] = clik.newPhoto({"id":5771013,"src":"Glacierexpress_LQ137_thumb.jpg","galleries_id":316972,"server_id":18,"link":"photo_5771013.html","width":130,"caption":"Landwasser viaduct","height":85});
															thumbnails[5356407] = clik.newPhoto({"id":5356407,"src":"P1012265_thumb.JPG","galleries_id":259602,"server_id":18,"link":"photo_5356407.html","width":130,"caption":"St Ethelred's Church","height":98});
															thumbnails[5356391] = clik.newPhoto({"id":5356391,"src":"P1012216_thumb.JPG","galleries_id":259602,"server_id":18,"link":"photo_5356391.html","width":130,"caption":"Old Hatfield","height":98});
															thumbnails[4796581] = clik.newPhoto({"id":4796581,"src":"P9020370_thumb.JPG","galleries_id":274460,"server_id":18,"link":"photo_4796581.html","width":130,"caption":"Local market","height":98});
															thumbnails[4796563] = clik.newPhoto({"id":4796563,"src":"P8240089_thumb.JPG","galleries_id":274460,"server_id":18,"link":"photo_4796563.html","width":130,"caption":"Sacsaywamen","height":98});
															thumbnails[4438665] = clik.newPhoto({"id":4438665,"src":"KZ24_thumb.jpg","galleries_id":259602,"server_id":18,"link":"photo_4438665.html","width":130,"caption":"St Ethelreds churchyard","height":86});
															thumbnails[4438667] = clik.newPhoto({"id":4438667,"src":"KZ29_thumb.jpg","galleries_id":259602,"server_id":18,"link":"photo_4438667.html","width":130,"caption":"Ancient Oak, Hatfield House estate","height":87});
															thumbnails[4438749] = clik.newPhoto({"id":4438749,"src":"St_Ethelreds_KZ261_thumb.jpg","galleries_id":259602,"server_id":18,"link":"photo_4438749.html","width":130,"caption":"St Ethelreds church","height":198});
															thumbnails[4438768] = clik.newPhoto({"id":4438768,"src":"HL354e_LR1_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438768.html","width":130,"caption":"Kilimanjaro sunrise","height":86});
															thumbnails[4438769] = clik.newPhoto({"id":4438769,"src":"HL363a_LR_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438769.html","width":130,"caption":"Kilimanjaro","height":87});
															thumbnails[4438770] = clik.newPhoto({"id":4438770,"src":"hl445_LR_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438770.html","width":130,"caption":"Kilimanjaro at about 15,000ft","height":86});
															thumbnails[4438800] = clik.newPhoto({"id":4438800,"src":"HL466_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438800.html","width":130,"caption":"Kilimanjaro summit ice fields","height":86});
															thumbnails[4438801] = clik.newPhoto({"id":4438801,"src":"HL468_LR_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438801.html","width":130,"caption":"Kilimanjaro summit ice fields","height":84});
															thumbnails[4438803] = clik.newPhoto({"id":4438803,"src":"HL474_LR_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4438803.html","width":130,"caption":"Kilimanjaro summit ice fields","height":85});
															thumbnails[4441661] = clik.newPhoto({"id":4441661,"src":"City_KN151_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441661.html","width":130,"caption":"Modern city","height":86});
															thumbnails[4441670] = clik.newPhoto({"id":4441670,"src":"Clock_Tower_JU41_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441670.html","width":130,"caption":"Clock Tower","height":196});
															thumbnails[4441684] = clik.newPhoto({"id":4441684,"src":"Clock_tr_FB131_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441684.html","width":130,"caption":"Bodicea ","height":197});
															thumbnails[4441689] = clik.newPhoto({"id":4441689,"src":"Lloyds_KN61_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441689.html","width":130,"caption":"Lloyds","height":86});
															thumbnails[4441843] = clik.newPhoto({"id":4441843,"src":"London_eye_KE18_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441843.html","width":130,"caption":"London Eye","height":199});
															thumbnails[4441848] = clik.newPhoto({"id":4441848,"src":"Vic_tower_HE34_LR1_thumb.jpg","galleries_id":259439,"server_id":18,"link":"photo_4441848.html","width":130,"caption":"Victoria Tower","height":198});
															thumbnails[4441918] = clik.newPhoto({"id":4441918,"src":"EX183_thumb.jpg","galleries_id":259729,"server_id":18,"link":"photo_4441918.html","width":130,"caption":"Armansfelt","height":86});
															thumbnails[4441932] = clik.newPhoto({"id":4441932,"src":"EX184a_thumb.jpg","galleries_id":259729,"server_id":18,"link":"photo_4441932.html","width":130,"caption":"Armansfelt","height":86});
															thumbnails[4441938] = clik.newPhoto({"id":4441938,"src":"EX467_Oberfoss1_thumb.jpg","galleries_id":259729,"server_id":18,"link":"photo_4441938.html","width":130,"caption":"Oberfofos","height":86});
															thumbnails[4441949] = clik.newPhoto({"id":4441949,"src":"EX474_thumb.jpg","galleries_id":259729,"server_id":18,"link":"photo_4441949.html","width":130,"caption":"Hot springs, Landmanalauger","height":87});
															thumbnails[4442164] = clik.newPhoto({"id":4442164,"src":"FC112_Malham_Cove1_thumb.jpg","galleries_id":259739,"server_id":18,"link":"photo_4442164.html","width":130,"caption":"Malham Cove","height":196});
															thumbnails[4442169] = clik.newPhoto({"id":4442169,"src":"FC161_Hardraw_Force1_thumb.jpg","galleries_id":259739,"server_id":18,"link":"photo_4442169.html","width":130,"caption":"Hardraw Force","height":197});
															thumbnails[4442171] = clik.newPhoto({"id":4442171,"src":"FC167_Hardraw_Force1_thumb.jpg","galleries_id":259739,"server_id":18,"link":"photo_4442171.html","width":130,"caption":"Hardraw Force","height":86});
															thumbnails[4442176] = clik.newPhoto({"id":4442176,"src":"FC322_Housteds_Fort1_thumb.jpg","galleries_id":259739,"server_id":18,"link":"photo_4442176.html","width":130,"caption":"Housteds Fort","height":86});
															thumbnails[4442858] = clik.newPhoto({"id":4442858,"src":"FX39_thumb.jpg","galleries_id":259778,"server_id":18,"link":"photo_4442858.html","width":130,"caption":"First sight of Loch Lomond","height":86});
															thumbnails[4442864] = clik.newPhoto({"id":4442864,"src":"FX219_thumb.jpg","galleries_id":259778,"server_id":18,"link":"photo_4442864.html","width":130,"caption":"Rannoch Moor","height":86});
															thumbnails[4442873] = clik.newPhoto({"id":4442873,"src":"FX323_Ben_Nevis1_thumb.jpg","galleries_id":259778,"server_id":18,"link":"photo_4442873.html","width":130,"caption":"From Ben Nevis","height":85});
															thumbnails[4449591] = clik.newPhoto({"id":4449591,"src":"HG61_thumb.jpg","galleries_id":260135,"server_id":18,"link":"photo_4449591.html","width":130,"caption":"","height":87});
															thumbnails[4449599] = clik.newPhoto({"id":4449599,"src":"HG109_LR1_thumb.jpg","galleries_id":260135,"server_id":18,"link":"photo_4449599.html","width":130,"caption":"","height":87});
															thumbnails[4449605] = clik.newPhoto({"id":4449605,"src":"HG149_LR1_thumb.jpg","galleries_id":260135,"server_id":18,"link":"photo_4449605.html","width":130,"caption":"","height":86});
															thumbnails[4452471] = clik.newPhoto({"id":4452471,"src":"Back_street_of_Venice_KR88_LR_copy1_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452471.html","width":130,"caption":"Back street of Venice","height":87});
															thumbnails[4452474] = clik.newPhoto({"id":4452474,"src":"LC2_LR_copy1_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452474.html","width":130,"caption":"St PeterCathedral","height":198});
															thumbnails[4452476] = clik.newPhoto({"id":4452476,"src":"LC129_LR1_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452476.html","width":130,"caption":"St Peters Cathedral","height":84});
															thumbnails[4452480] = clik.newPhoto({"id":4452480,"src":"LC135_LR1_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452480.html","width":130,"caption":"St Peters Square","height":197});
															thumbnails[4452481] = clik.newPhoto({"id":4452481,"src":"LC139_LR1_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452481.html","width":130,"caption":"St Peters Cathedral","height":85});
															thumbnails[4452496] = clik.newPhoto({"id":4452496,"src":"Pompei_Vesuvius_LH101_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452496.html","width":130,"caption":"Pompei and Vesuvius","height":85});
															thumbnails[4452548] = clik.newPhoto({"id":4452548,"src":"Verona_HG2641_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452548.html","width":130,"caption":"Verona","height":89});
															thumbnails[4452551] = clik.newPhoto({"id":4452551,"src":"Vesuvius_LH2761_thumb.jpg","galleries_id":260137,"server_id":18,"link":"photo_4452551.html","width":130,"caption":"Vesuvius crater","height":84});
															thumbnails[4453983] = clik.newPhoto({"id":4453983,"src":"HL80_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4453983.html","width":130,"caption":"Lioness","height":101});
															thumbnails[4453987] = clik.newPhoto({"id":4453987,"src":"HL142_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4453987.html","width":130,"caption":"Impala","height":99});
															thumbnails[4453989] = clik.newPhoto({"id":4453989,"src":"HL184_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4453989.html","width":130,"caption":"Monkey","height":179});
															thumbnails[4453995] = clik.newPhoto({"id":4453995,"src":"HL187_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4453995.html","width":130,"caption":"Buffalo","height":100});
															thumbnails[4454008] = clik.newPhoto({"id":4454008,"src":"HL256_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4454008.html","width":130,"caption":"Lioness","height":94});
															thumbnails[4454030] = clik.newPhoto({"id":4454030,"src":"HL285_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4454030.html","width":130,"caption":"Amorous Giraffes","height":90});
															thumbnails[4454042] = clik.newPhoto({"id":4454042,"src":"HL291_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4454042.html","width":130,"caption":"Giraffes","height":98});
															thumbnails[4454045] = clik.newPhoto({"id":4454045,"src":"Masai_ladies_HL310_thumb.jpg","galleries_id":259438,"server_id":18,"link":"photo_4454045.html","width":130,"caption":"Masai Ladies","height":86});
															thumbnails[4454219] = clik.newPhoto({"id":4454219,"src":"Annapurna_children_GR2281_thumb.jpg","galleries_id":260364,"server_id":18,"link":"photo_4454219.html","width":130,"caption":"Annapurna children","height":86});
															thumbnails[4454247] = clik.newPhoto({"id":4454247,"src":"Bodnath_Stupa_GR711_thumb.jpg","galleries_id":260364,"server_id":18,"link":"photo_4454247.html","width":130,"caption":"Bodnath Stupa","height":86});
															thumbnails[4454256] = clik.newPhoto({"id":4454256,"src":"Pashupatinath_temple_GR561_thumb.jpg","galleries_id":260364,"server_id":18,"link":"photo_4454256.html","width":130,"caption":"Pashupatinath temple","height":86});
															thumbnails[4454288] = clik.newPhoto({"id":4454288,"src":"GR28621_thumb.jpg","galleries_id":260364,"server_id":18,"link":"photo_4454288.html","width":130,"caption":"Elephant sunrise","height":86});
															thumbnails[4454293] = clik.newPhoto({"id":4454293,"src":"GR393_thumb.jpg","galleries_id":260364,"server_id":18,"link":"photo_4454293.html","width":130,"caption":"Everest","height":86});
															thumbnails[4454934] = clik.newPhoto({"id":4454934,"src":"Briksdal_glacier_LF109_thumb.jpg","galleries_id":260389,"server_id":18,"link":"photo_4454934.html","width":130,"caption":"Briksdal glacier","height":85});
															thumbnails[4454938] = clik.newPhoto({"id":4454938,"src":"Briksdal_glacier_waterfall_LF75_thumb.jpg","galleries_id":260389,"server_id":18,"link":"photo_4454938.html","width":130,"caption":"Briksdal glacier waterfall","height":196});
															thumbnails[4455108] = clik.newPhoto({"id":4455108,"src":"Innvik_Fjord_LF56_thumb.jpg","galleries_id":260389,"server_id":18,"link":"photo_4455108.html","width":130,"caption":"Innvik Fjord","height":195});
															thumbnails[4457792] = clik.newPhoto({"id":4457792,"src":"CE93_LR1_thumb.jpg","galleries_id":260495,"server_id":18,"link":"photo_4457792.html","width":130,"caption":"Elio de Angelis","height":87});
															thumbnails[4457795] = clik.newPhoto({"id":4457795,"src":"P1011483_LR1_thumb.jpg","galleries_id":260495,"server_id":18,"link":"photo_4457795.html","width":130,"caption":"Lewis Hamilton","height":44});
															thumbnails[4478366] = clik.newPhoto({"id":4478366,"src":"KL6_thumb.jpg","galleries_id":260388,"server_id":18,"link":"photo_4478366.html","width":130,"caption":"","height":86});
															thumbnails[4478367] = clik.newPhoto({"id":4478367,"src":"KL67_thumb.jpg","galleries_id":260388,"server_id":18,"link":"photo_4478367.html","width":130,"caption":"","height":198});
															thumbnails[4478369] = clik.newPhoto({"id":4478369,"src":"kl90_thumb.jpg","galleries_id":260388,"server_id":18,"link":"photo_4478369.html","width":130,"caption":"","height":86});
															thumbnails[4478371] = clik.newPhoto({"id":4478371,"src":"kl99_thumb.jpg","galleries_id":260388,"server_id":18,"link":"photo_4478371.html","width":130,"caption":"","height":86});
															thumbnails[4478374] = clik.newPhoto({"id":4478374,"src":"KL113_thumb.jpg","galleries_id":260388,"server_id":18,"link":"photo_4478374.html","width":130,"caption":"","height":85});
															thumbnails[4478398] = clik.newPhoto({"id":4478398,"src":"HQ39_LR1_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478398.html","width":130,"caption":"Ski school","height":87});
															thumbnails[4478410] = clik.newPhoto({"id":4478410,"src":"HQ65_LR1_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478410.html","width":130,"caption":"Blizzard","height":86});
															thumbnails[4478417] = clik.newPhoto({"id":4478417,"src":"HQ71_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478417.html","width":130,"caption":"","height":197});
															thumbnails[4478426] = clik.newPhoto({"id":4478426,"src":"JW15a_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478426.html","width":130,"caption":"","height":86});
															thumbnails[4478429] = clik.newPhoto({"id":4478429,"src":"JW64_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478429.html","width":130,"caption":"Into infinity","height":87});
															thumbnails[4478438] = clik.newPhoto({"id":4478438,"src":"JW90_thumb.jpg","galleries_id":261175,"server_id":18,"link":"photo_4478438.html","width":130,"caption":"Ski break","height":86});
															thumbnails[5589360] = clik.newPhoto({"id":5589360,"src":"P1012378_thumb.JPG","galleries_id":316972,"server_id":18,"link":"photo_5589360.html","width":130,"caption":"The Matterhorn from Gornergrat","height":173});
															thumbnails[5589362] = clik.newPhoto({"id":5589362,"src":"P1012467_thumb.JPG","galleries_id":316972,"server_id":18,"link":"photo_5589362.html","width":130,"caption":"Andermatt from the Glacier Express","height":98});
															thumbnails[5589368] = clik.newPhoto({"id":5589368,"src":"P1012484_thumb.JPG","galleries_id":316972,"server_id":18,"link":"photo_5589368.html","width":130,"caption":"Bernina Express","height":98});
															thumbnails[7158006] = clik.newPhoto({"id":7158006,"src":"P1012712_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_7158006.html","width":130,"caption":"Kate and Dave","height":98});
															thumbnails[7158022] = clik.newPhoto({"id":7158022,"src":"P1011943_thumb.jpg","galleries_id":386920,"server_id":18,"link":"photo_7158022.html","width":130,"caption":"Adrian and Jo","height":98});
															thumbnails[7158140] = clik.newPhoto({"id":7158140,"src":"P1010169_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_7158140.html","width":130,"caption":"Keith and Lindsay","height":173});
															thumbnails[7158157] = clik.newPhoto({"id":7158157,"src":"274_A5_thumb.jpg","galleries_id":386920,"server_id":18,"link":"photo_7158157.html","width":130,"caption":"Keith and Lindsay","height":98});
															thumbnails[7158169] = clik.newPhoto({"id":7158169,"src":"P1012736_thumb.JPG","galleries_id":386920,"server_id":18,"link":"photo_7158169.html","width":130,"caption":"Kate and Dave","height":176});
															thumbnails[7460358] = clik.newPhoto({"id":7460358,"src":"BZ1_thumb.jpg","galleries_id":260495,"server_id":18,"link":"photo_7460358.html","width":130,"caption":"Yoko Tobi Geri","height":86});
															thumbnails[8621145] = clik.newPhoto({"id":8621145,"src":"17_P8220036_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8621145.html","width":130,"caption":"Banff from Sulphur Mountain","height":98});
															thumbnails[8621146] = clik.newPhoto({"id":8621146,"src":"23_P8220054_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8621146.html","width":130,"caption":"Lake Moraine","height":96});
															thumbnails[8621147] = clik.newPhoto({"id":8621147,"src":"34_P8230081_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8621147.html","width":130,"caption":"Chipmunk","height":98});
															thumbnails[8621166] = clik.newPhoto({"id":8621166,"src":"37_P1013407_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8621166.html","width":130,"caption":"Lake Hector","height":89});
															thumbnails[8623864] = clik.newPhoto({"id":8623864,"src":"44_P1013412_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8623864.html","width":130,"caption":"Athabasca Glacier","height":98});
															thumbnails[8623882] = clik.newPhoto({"id":8623882,"src":"53_P8260128_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8623882.html","width":130,"caption":"Canadian Pacific Steam Train","height":98});
															thumbnails[8623943] = clik.newPhoto({"id":8623943,"src":"65_P1013453_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8623943.html","width":130,"caption":"Maligne Lake","height":98});
															thumbnails[8623970] = clik.newPhoto({"id":8623970,"src":"74_P1013469_thumb.JPG","galleries_id":455672,"server_id":18,"link":"photo_8623970.html","width":130,"caption":"Lac Lejeune, 5.45am","height":98});
															thumbnails[4796591] = clik.newPhoto({"id":4796591,"src":"P8290190_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796591.html","width":130,"caption":"Start of the Inca Trail","height":98});
															thumbnails[4796611] = clik.newPhoto({"id":4796611,"src":"P8310261_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796611.html","width":130,"caption":"Warmiwanusca","height":98});
															thumbnails[4796612] = clik.newPhoto({"id":4796612,"src":"P9010284_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796612.html","width":130,"caption":"Snow capped mountains","height":98});
															thumbnails[4796614] = clik.newPhoto({"id":4796614,"src":"P9010285_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796614.html","width":130,"caption":"Phuyupatamarca","height":98});
															thumbnails[4796620] = clik.newPhoto({"id":4796620,"src":"P9010298_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796620.html","width":130,"caption":"First sight of Machu Pichu","height":98});
															thumbnails[4796625] = clik.newPhoto({"id":4796625,"src":"P9010309_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796625.html","width":130,"caption":"Machu Pichu","height":98});
															thumbnails[4796628] = clik.newPhoto({"id":4796628,"src":"P9020316_thumb.JPG","galleries_id":274305,"server_id":18,"link":"photo_4796628.html","width":130,"caption":"Machu Pichu","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[455672] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Canada","link":"gallery_455672.html","maxRecords":0.0,"photoIDs":[8621145.0,8621146.0,8621147.0,8621166.0,8623864.0,8623882.0,8623943.0,8623970.0],"skipIndex":0,"section_code":"gallery","featured_images":"8623970,8623943,8623882,8623864,8621166,8621147,8621146,8621145","id":455672,"singleSection":false});				  						galleries[260389] = clik.newGallery({"parentGallery":260386,"usePopups":false,"title":"Cruise","link":"gallery_260389.html","maxRecords":0.0,"photoIDs":[4454934.0,4454938.0,4455108.0],"skipIndex":0,"section_code":"gallery","featured_images":"4455108,4454938,4454934","id":260389,"singleSection":false});				  						galleries[260135] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dolomites","link":"gallery_260135.html","maxRecords":0.0,"photoIDs":[4449591.0,4449599.0,4449605.0],"skipIndex":0,"section_code":"gallery","featured_images":"4449605,4449599,4449591","id":260135,"singleSection":false});				  						galleries[260388] = clik.newGallery({"parentGallery":260386,"usePopups":false,"title":"Evja","link":"gallery_260388.html","maxRecords":0.0,"photoIDs":[4478366.0,4478367.0,4478369.0,4478371.0,4478374.0],"skipIndex":0,"section_code":"gallery","featured_images":"4478374,4478371,4478369,4478367,4478366","id":260388,"singleSection":false});				  						galleries[316972] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glacier Express","link":"gallery_316972.html","maxRecords":0.0,"photoIDs":[5771019.0,5771013.0,5589360.0,5589362.0,5589368.0],"skipIndex":0,"section_code":"gallery","featured_images":"5771019,5771013,5589368,5589362,5589360","id":316972,"singleSection":false});				  						galleries[259602] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hertfordshire","link":"gallery_259602.html","maxRecords":0.0,"photoIDs":[5356407.0,5356391.0,4438665.0,4438667.0,4438749.0],"skipIndex":0,"section_code":"gallery","featured_images":"5356407,5356391,4438749,4438667,4438665","id":259602,"singleSection":false});				  						galleries[259729] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Iceland","link":"gallery_259729.html","maxRecords":0.0,"photoIDs":[4441918.0,4441932.0,4441938.0,4441949.0],"skipIndex":0,"section_code":"gallery","featured_images":"4441949,4441938,4441932,4441918","id":259729,"singleSection":false});				  						galleries[274305] = clik.newGallery({"parentGallery":274303,"usePopups":false,"title":"Inca trail to Machu Picchu","link":"gallery_274305.html","maxRecords":0.0,"photoIDs":[4796591.0,4796611.0,4796612.0,4796614.0,4796620.0,4796625.0,4796628.0],"skipIndex":0,"section_code":"gallery","featured_images":"4796628,4796625,4796620,4796614,4796612,4796611,4796591","id":274305,"singleSection":false});				  						galleries[260137] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Italy","link":"gallery_260137.html","maxRecords":0.0,"photoIDs":[4452471.0,4452474.0,4452476.0,4452480.0,4452481.0,4452496.0,4452548.0,4452551.0],"skipIndex":0,"section_code":"gallery","featured_images":"4452551,4452548,4452496,4452481,4452480,4452476,4452474,4452471","id":260137,"singleSection":false});				  						galleries[260364] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nepal","link":"gallery_260364.html","maxRecords":0.0,"photoIDs":[4454219.0,4454247.0,4454256.0,4454288.0,4454293.0],"skipIndex":0,"section_code":"gallery","featured_images":"4454293,4454288,4454256,4454247,4454219","id":260364,"singleSection":false});				  						galleries[260386] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norway","link":"gallery_260386.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4478374,4478371,4478369,4478367,4478366,4455108,4454938,4454934","id":260386,"singleSection":false});				  						galleries[259739] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pennine Way","link":"gallery_259739.html","maxRecords":0.0,"photoIDs":[4442164.0,4442169.0,4442171.0,4442176.0],"skipIndex":0,"section_code":"gallery","featured_images":"4442176,4442171,4442169,4442164","id":259739,"singleSection":false});				  						galleries[274303] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Peru","link":"gallery_274303.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4796628,4796625,4796620,4796614,4796612,4796611,4796591,4796581,4796563","id":274303,"singleSection":false});				  						galleries[274460] = clik.newGallery({"parentGallery":274303,"usePopups":false,"title":"Peruvian highland","link":"gallery_274460.html","maxRecords":0.0,"photoIDs":[4796581.0,4796563.0],"skipIndex":0,"section_code":"gallery","featured_images":"4796581,4796563","id":274460,"singleSection":false});				  						galleries[260495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"gallery_260495.html","maxRecords":0.0,"photoIDs":[4457792.0,4457795.0,7460358.0],"skipIndex":0,"section_code":"gallery","featured_images":"7460358,4457795,4457792","id":260495,"singleSection":false});				  						galleries[386920] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_386920.html","maxRecords":0.0,"photoIDs":[8281229.0,8281233.0,8281252.0,8281261.0,7158006.0,7158022.0,7158140.0,7158157.0,7158169.0],"skipIndex":0,"section_code":"gallery","featured_images":"8281261,8281252,8281233,8281229,7158169,7158157,7158140,7158022,7158006","id":386920,"singleSection":false});				  						galleries[259778] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"West Highland Way","link":"gallery_259778.html","maxRecords":0.0,"photoIDs":[4442858.0,4442864.0,4442873.0],"skipIndex":0,"section_code":"gallery","featured_images":"4442873,4442864,4442858","id":259778,"singleSection":false});				  						galleries[261175] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winter","link":"gallery_261175.html","maxRecords":0.0,"photoIDs":[4478398.0,4478410.0,4478417.0,4478426.0,4478429.0,4478438.0],"skipIndex":0,"section_code":"gallery","featured_images":"4478438,4478429,4478426,4478417,4478410,4478398","id":261175,"singleSection":false});				  						galleries[259438] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tanzania and Kilimanjaro","link":"gallery_259438.html","maxRecords":0.0,"photoIDs":[4438768.0,4438769.0,4438770.0,4438800.0,4438801.0,4438803.0,4453983.0,4453987.0,4453989.0,4453995.0,4454008.0,4454030.0,4454042.0,4454045.0],"skipIndex":0,"section_code":"gallery","featured_images":"4454045,4454042,4454030,4454008,4453995,4453989,4453987,4453983,4438803,4438801","id":259438,"singleSection":false});				  						galleries[259439] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_259439.html","maxRecords":0.0,"photoIDs":[4441661.0,4441670.0,4441684.0,4441689.0,4441843.0,4441848.0],"skipIndex":0,"section_code":"gallery","featured_images":"4441848,4441843,4441689,4441684,4441670,4441661","id":259439,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8623970,8623943,8623882,8623864,8621166,8621147,8621146,8621145,8281261,8281252,8281233,8281229,7460358,7158169,7158157,7158140,7158022,7158006,5771019,5771013,5589368,5589362,5589360,5356407,5356391,4796628,4796625,4796620,4796614,4796612,4796611,4796591,4796581,4796563,4478438,4478429,4478426,4478417,4478410,4478398,4478374,4478371,4478369,4478367,4478366,4457795,4457792,4455108,4454938,4454934';
imageSets[3] = '8623970,8623943,8623882,8623864,8621166,8621147,8621146,8621145,8281261,8281252,8281233,8281229,7460358,7158169,7158157,7158140,7158022,7158006,5771019,5771013,5589368,5589362,5589360,5356407,5356391,4796628,4796625,4796620,4796614,4796612,4796611,4796591,4796581,4796563,4478438,4478429,4478426,4478417,4478410,4478398,4478374,4478371,4478369,4478367,4478366,4457795,4457792,4455108,4454938,4454934';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/staffordsteed/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/staffordsteed/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 = 'Stafford Steed World of Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

			

