window.thumbnails = {};
															thumbnails[8831096] = clik.newPhoto({"id":8831096,"src":"dale_30_of_33_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831096.html","width":160,"caption":"","height":145});
															thumbnails[8831110] = clik.newPhoto({"id":8831110,"src":"Untitled_Panorama1_path_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831110.html","width":160,"caption":"","height":117});
															thumbnails[8831113] = clik.newPhoto({"id":8831113,"src":"tresss_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831113.html","width":160,"caption":"","height":149});
															thumbnails[8831114] = clik.newPhoto({"id":8831114,"src":"hunwick_31_of_37_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831114.html","width":160,"caption":"","height":107});
															thumbnails[8831115] = clik.newPhoto({"id":8831115,"src":"hunwick_panorama_1_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831115.html","width":160,"caption":"","height":124});
															thumbnails[8831117] = clik.newPhoto({"id":8831117,"src":"bed_burn_9_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831117.html","width":160,"caption":"","height":93});
															thumbnails[8831118] = clik.newPhoto({"id":8831118,"src":"fernhdr_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831118.html","width":160,"caption":"","height":240});
															thumbnails[8831119] = clik.newPhoto({"id":8831119,"src":"hunwick_33_of_37_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831119.html","width":160,"caption":"","height":240});
															thumbnails[8831122] = clik.newPhoto({"id":8831122,"src":"dale_25_of_33_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831122.html","width":160,"caption":"","height":240});
															thumbnails[8831124] = clik.newPhoto({"id":8831124,"src":"stormy_road_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831124.html","width":160,"caption":"","height":92});
															thumbnails[8831125] = clik.newPhoto({"id":8831125,"src":"bridge_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831125.html","width":160,"caption":"","height":107});
															thumbnails[8831126] = clik.newPhoto({"id":8831126,"src":"building_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831126.html","width":160,"caption":"","height":80});
															thumbnails[8831127] = clik.newPhoto({"id":8831127,"src":"3_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831127.html","width":160,"caption":"","height":101});
															thumbnails[8831128] = clik.newPhoto({"id":8831128,"src":"1_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831128.html","width":160,"caption":"","height":106});
															thumbnails[8831129] = clik.newPhoto({"id":8831129,"src":"2_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831129.html","width":160,"caption":"","height":90});
															thumbnails[8831130] = clik.newPhoto({"id":8831130,"src":"lumiere_8_copy_thumb.jpg","galleries_id":464416,"server_id":32,"link":"photo_8831130.html","width":160,"caption":"","height":107});
															thumbnails[8833128] = clik.newPhoto({"id":8833128,"src":"IMG_0732_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833128.html","width":160,"caption":"","height":107});
															thumbnails[8833130] = clik.newPhoto({"id":8833130,"src":"IMG_0847_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833130.html","width":160,"caption":"","height":107});
															thumbnails[8833131] = clik.newPhoto({"id":8833131,"src":"IMG_0978_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833131.html","width":160,"caption":"","height":107});
															thumbnails[8833133] = clik.newPhoto({"id":8833133,"src":"IMG_1018_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833133.html","width":160,"caption":"","height":107});
															thumbnails[8833135] = clik.newPhoto({"id":8833135,"src":"IMG_1021_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833135.html","width":160,"caption":"","height":107});
															thumbnails[8833136] = clik.newPhoto({"id":8833136,"src":"IMG_2939_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833136.html","width":160,"caption":"","height":240});
															thumbnails[8833137] = clik.newPhoto({"id":8833137,"src":"IMG_8570_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833137.html","width":160,"caption":"","height":86});
															thumbnails[8833138] = clik.newPhoto({"id":8833138,"src":"IMG_8660_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833138.html","width":160,"caption":"","height":107});
															thumbnails[8833139] = clik.newPhoto({"id":8833139,"src":"IMG_8747_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833139.html","width":160,"caption":"","height":107});
															thumbnails[8833140] = clik.newPhoto({"id":8833140,"src":"IMG_8710_thumb.JPG","galleries_id":464689,"server_id":32,"link":"photo_8833140.html","width":160,"caption":"","height":240});
															thumbnails[8835520] = clik.newPhoto({"id":8835520,"src":"5211261001_d346c98daa_b_93F29449-1EC9-D45B-1C27E012BC9F75A4_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835520.html","width":160,"caption":"","height":107});
															thumbnails[8835526] = clik.newPhoto({"id":8835526,"src":"5211263585_327f1c2959_b_93FCB4DA-1EC9-D45B-1C50CF110358F0AD_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835526.html","width":160,"caption":"","height":107});
															thumbnails[8835530] = clik.newPhoto({"id":8835530,"src":"Halloween_Happenings_2011_58_of_64_copy_94014547-1EC9-D45B-1C30DE358B2ADEFD_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835530.html","width":160,"caption":"","height":107});
															thumbnails[8835535] = clik.newPhoto({"id":8835535,"src":"Halloween_Happenings_2011_48_of_64_copy_9407B314-1EC9-D45B-1CB95EB0FB4E6780_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835535.html","width":160,"caption":"","height":240});
															thumbnails[8835537] = clik.newPhoto({"id":8835537,"src":"Halloween_Happenings_2011_2_of_64_copy_940C57CA-1EC9-D45B-1C98A0040D0B334E_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835537.html","width":160,"caption":"","height":107});
															thumbnails[8835539] = clik.newPhoto({"id":8835539,"src":"Halloween_Happenings_2011_64_of_64_940F57B3-1EC9-D45B-1C6E0CAA4759C952_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8835539.html","width":160,"caption":"","height":107});
															thumbnails[8836228] = clik.newPhoto({"id":8836228,"src":"Miners_Gala_2011_19_of_105_copy_96476B4E-1E4F-37DC-711C9C163714D9BC_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836228.html","width":160,"caption":"","height":107});
															thumbnails[8836236] = clik.newPhoto({"id":8836236,"src":"Miners_Gala_2011_38_of_105_copy_964D5697-1E4F-37DC-71D148FE816387F6_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836236.html","width":160,"caption":"","height":240});
															thumbnails[8836241] = clik.newPhoto({"id":8836241,"src":"Miners_Gala_2011_62_of_105_copy_965063EA-1E4F-37DC-716CD9683A299969_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836241.html","width":160,"caption":"","height":107});
															thumbnails[8836248] = clik.newPhoto({"id":8836248,"src":"Miners_Gala_2011_54_of_105_copy_96552EF6-1E4F-37DC-7130DE8C729F7671_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836248.html","width":160,"caption":"","height":240});
															thumbnails[8836254] = clik.newPhoto({"id":8836254,"src":"Miners_Gala_2011_93_of_105_copy_965C2DD8-1E4F-37DC-7131C636EA7877F9_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836254.html","width":160,"caption":"","height":107});
															thumbnails[8836256] = clik.newPhoto({"id":8836256,"src":"gala_2010-8_copy_96604FEF-1E4F-37DC-71BBABC9E8A4340D_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836256.html","width":160,"caption":"","height":107});
															thumbnails[8836258] = clik.newPhoto({"id":8836258,"src":"Miners_Gala_2011_18_of_105_copy_9663C209-1E4F-37DC-71F1C96A1C9965FB_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836258.html","width":160,"caption":"","height":240});
															thumbnails[8836267] = clik.newPhoto({"id":8836267,"src":"Miners_Gala_2011_45_of_105_copy_966CD545-1E4F-37DC-714E120F45E5DDD1_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836267.html","width":160,"caption":"","height":240});
															thumbnails[8836275] = clik.newPhoto({"id":8836275,"src":"Miners_Gala_2011_74_of_105_copy_966FF564-1E4F-37DC-718DC3AC0B0512CC_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836275.html","width":160,"caption":"","height":240});
															thumbnails[8836284] = clik.newPhoto({"id":8836284,"src":"Miners_Gala_2011_61_of_105_copy_9674B257-1E4F-37DC-715A4A9ACC194504_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836284.html","width":160,"caption":"","height":240});
															thumbnails[8836295] = clik.newPhoto({"id":8836295,"src":"Miners_Gala_2011_34_of_105_copy_96797C8F-1E4F-37DC-71417E55D8134517_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836295.html","width":160,"caption":"","height":240});
															thumbnails[8836304] = clik.newPhoto({"id":8836304,"src":"Miners_Gala_2011_104_of_105_copy_967DE6EF-1E4F-37DC-7158B26403C988BE_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836304.html","width":160,"caption":"","height":107});
															thumbnails[8836313] = clik.newPhoto({"id":8836313,"src":"Newcastle_2010_-21_copy_96822A7B-1E4F-37DC-71FEBA9275C096BE_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836313.html","width":160,"caption":"","height":107});
															thumbnails[8836320] = clik.newPhoto({"id":8836320,"src":"Newcastle_2011-21_copy_-_Copy_96855C29-1E4F-37DC-71C91A9028509AD8_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836320.html","width":160,"caption":"","height":107});
															thumbnails[8836326] = clik.newPhoto({"id":8836326,"src":"Newcastle_2011-12_copy_96889F03-1E4F-37DC-7113EA1A7E95F321_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836326.html","width":160,"caption":"","height":240});
															thumbnails[8836329] = clik.newPhoto({"id":8836329,"src":"Newcastle_2011-11_copy_968C3211-1E4F-37DC-7125368998FEAF52_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836329.html","width":160,"caption":"","height":107});
															thumbnails[8836331] = clik.newPhoto({"id":8836331,"src":"Newcastle_2011-24_copy_968F577B-1E4F-37DC-719D14CAF7E4C44D_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836331.html","width":160,"caption":"","height":107});
															thumbnails[8836332] = clik.newPhoto({"id":8836332,"src":"Newcastle_2011-28_9692669E-1E4F-37DC-71B46F4C77F8C1C9_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836332.html","width":160,"caption":"","height":240});
															thumbnails[8836334] = clik.newPhoto({"id":8836334,"src":"Zombie_Walk_2011_13_of_55_copy_9695E150-1E4F-37DC-7135F095CFFCEAA9_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836334.html","width":160,"caption":"","height":240});
															thumbnails[8836336] = clik.newPhoto({"id":8836336,"src":"Zombie_Walk_2011_17_of_55_copy_-_Copy_969BA4C1-1E4F-37DC-71449EBC4687B82B_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836336.html","width":160,"caption":"","height":107});
															thumbnails[8836338] = clik.newPhoto({"id":8836338,"src":"Zombie_Walk_2011_18_of_55_copy_96A0CB7C-1E4F-37DC-71A9AD6AD4E2FC89_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836338.html","width":160,"caption":"","height":240});
															thumbnails[8836340] = clik.newPhoto({"id":8836340,"src":"Zombie_Walk_2011_34_of_55_copy_96A385F8-1E4F-37DC-71B41F07B1EC0202_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836340.html","width":160,"caption":"","height":240});
															thumbnails[8836342] = clik.newPhoto({"id":8836342,"src":"Zombie_Walk_2011_36_of_55_copy_96A60C40-1E4F-37DC-717834AC075A7B87_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836342.html","width":160,"caption":"","height":240});
															thumbnails[8836344] = clik.newPhoto({"id":8836344,"src":"Zombie_Walk_2011_37_of_55_copy_-_Copy_96AC6541-1E4F-37DC-71E18B696D854C6C_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836344.html","width":160,"caption":"","height":107});
															thumbnails[8836345] = clik.newPhoto({"id":8836345,"src":"Zombie_Walk_2011_38_of_55_copy_-_Copy_96AF9229-1E4F-37DC-71757474C67081B4_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836345.html","width":160,"caption":"","height":107});
															thumbnails[8836347] = clik.newPhoto({"id":8836347,"src":"Zombie_Walk_2011_40_of_55_copy_96B2BBA7-1E4F-37DC-71B889CD18541772_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836347.html","width":160,"caption":"","height":240});
															thumbnails[8836349] = clik.newPhoto({"id":8836349,"src":"Zombie_Walk_2011_35_of_55_copy_-_Copy_96B6EDEC-1E4F-37DC-711E5FDC9C34A24C_thumb.jpg","galleries_id":464834,"server_id":32,"link":"photo_8836349.html","width":160,"caption":"","height":71});
															thumbnails[8846912] = clik.newPhoto({"id":8846912,"src":"caseofbelonging-1_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846912.html","width":160,"caption":"","height":107});
															thumbnails[8846913] = clik.newPhoto({"id":8846913,"src":"caseofbelonging-12_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846913.html","width":160,"caption":"","height":107});
															thumbnails[8846914] = clik.newPhoto({"id":8846914,"src":"caseofbelonging-17_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846914.html","width":160,"caption":"","height":240});
															thumbnails[8846915] = clik.newPhoto({"id":8846915,"src":"caseofbelonging-32_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846915.html","width":160,"caption":"","height":240});
															thumbnails[8846917] = clik.newPhoto({"id":8846917,"src":"caseofbelonging-38_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846917.html","width":160,"caption":"","height":107});
															thumbnails[8846918] = clik.newPhoto({"id":8846918,"src":"caseofbelonging-58_copy_thumb.jpg","galleries_id":464801,"server_id":32,"link":"photo_8846918.html","width":160,"caption":"","height":107});
															thumbnails[8847775] = clik.newPhoto({"id":8847775,"src":"IMG_3464_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847775.html","width":160,"caption":"","height":107});
															thumbnails[8847776] = clik.newPhoto({"id":8847776,"src":"IMG_4529_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847776.html","width":160,"caption":"","height":107});
															thumbnails[8847777] = clik.newPhoto({"id":8847777,"src":"IMG_4754_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847777.html","width":160,"caption":"","height":240});
															thumbnails[8847778] = clik.newPhoto({"id":8847778,"src":"IMG_4780_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847778.html","width":160,"caption":"","height":107});
															thumbnails[8847779] = clik.newPhoto({"id":8847779,"src":"IMG_4997_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847779.html","width":160,"caption":"","height":107});
															thumbnails[8847780] = clik.newPhoto({"id":8847780,"src":"IMG_4833_copy1_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847780.html","width":160,"caption":"","height":115});
															thumbnails[8847781] = clik.newPhoto({"id":8847781,"src":"IMG_5352_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847781.html","width":160,"caption":"","height":107});
															thumbnails[8847782] = clik.newPhoto({"id":8847782,"src":"IMG_5574_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847782.html","width":160,"caption":"","height":107});
															thumbnails[8847783] = clik.newPhoto({"id":8847783,"src":"IMG_5623_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847783.html","width":160,"caption":"","height":107});
															thumbnails[8847784] = clik.newPhoto({"id":8847784,"src":"IMG_5640_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847784.html","width":160,"caption":"","height":240});
															thumbnails[8847785] = clik.newPhoto({"id":8847785,"src":"IMG_5755_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847785.html","width":160,"caption":"","height":107});
															thumbnails[8847786] = clik.newPhoto({"id":8847786,"src":"IMG_5832_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847786.html","width":160,"caption":"","height":107});
															thumbnails[8847788] = clik.newPhoto({"id":8847788,"src":"IMG_5926_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847788.html","width":160,"caption":"","height":240});
															thumbnails[8847789] = clik.newPhoto({"id":8847789,"src":"IMG_5944_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847789.html","width":160,"caption":"","height":107});
															thumbnails[8847790] = clik.newPhoto({"id":8847790,"src":"IMG_6091_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847790.html","width":160,"caption":"","height":240});
															thumbnails[8847791] = clik.newPhoto({"id":8847791,"src":"IMG_6150_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847791.html","width":160,"caption":"","height":240});
															thumbnails[8847792] = clik.newPhoto({"id":8847792,"src":"IMG_6166_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847792.html","width":160,"caption":"","height":107});
															thumbnails[8847793] = clik.newPhoto({"id":8847793,"src":"IMG_6178_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847793.html","width":160,"caption":"","height":107});
															thumbnails[8847795] = clik.newPhoto({"id":8847795,"src":"IMG_6200_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847795.html","width":160,"caption":"","height":240});
															thumbnails[8847796] = clik.newPhoto({"id":8847796,"src":"IMG_6391_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847796.html","width":160,"caption":"","height":240});
															thumbnails[8847797] = clik.newPhoto({"id":8847797,"src":"IMG_9455_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847797.html","width":160,"caption":"","height":107});
															thumbnails[8847798] = clik.newPhoto({"id":8847798,"src":"IMG_9473_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847798.html","width":160,"caption":"","height":107});
															thumbnails[8847799] = clik.newPhoto({"id":8847799,"src":"IMG_9505_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847799.html","width":160,"caption":"","height":107});
															thumbnails[8847800] = clik.newPhoto({"id":8847800,"src":"IMG_9609_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847800.html","width":160,"caption":"","height":107});
															thumbnails[8847801] = clik.newPhoto({"id":8847801,"src":"IMG_9769_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847801.html","width":160,"caption":"","height":107});
															thumbnails[8847802] = clik.newPhoto({"id":8847802,"src":"IMG_9796_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847802.html","width":160,"caption":"","height":107});
															thumbnails[8847803] = clik.newPhoto({"id":8847803,"src":"out_takes-37_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847803.html","width":160,"caption":"","height":107});
															thumbnails[8847804] = clik.newPhoto({"id":8847804,"src":"out_takes-59_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847804.html","width":160,"caption":"","height":240});
															thumbnails[8847805] = clik.newPhoto({"id":8847805,"src":"out_takes-60_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847805.html","width":160,"caption":"","height":240});
															thumbnails[8847820] = clik.newPhoto({"id":8847820,"src":"start_year_3_04072011_-127_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847820.html","width":160,"caption":"","height":107});
															thumbnails[8847907] = clik.newPhoto({"id":8847907,"src":"start_year_3_04072011_-159_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847907.html","width":160,"caption":"","height":107});
															thumbnails[8847909] = clik.newPhoto({"id":8847909,"src":"start_year_3_06072011_-273_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847909.html","width":160,"caption":"","height":107});
															thumbnails[8847910] = clik.newPhoto({"id":8847910,"src":"start_year_3_08072011_-366_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847910.html","width":160,"caption":"","height":107});
															thumbnails[8847911] = clik.newPhoto({"id":8847911,"src":"start_year_3_28062011_-28_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847911.html","width":160,"caption":"","height":107});
															thumbnails[8847912] = clik.newPhoto({"id":8847912,"src":"start_year_3_30062011_-115_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847912.html","width":160,"caption":"","height":107});
															thumbnails[8847913] = clik.newPhoto({"id":8847913,"src":"IMG_4634_copy_thumb.jpg","galleries_id":473592,"server_id":32,"link":"photo_8847913.html","width":160,"caption":"","height":107});
															thumbnails[8829657] = clik.newPhoto({"id":8829657,"src":"IMG_1703_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829657.html","width":160,"caption":"","height":240});
															thumbnails[8829659] = clik.newPhoto({"id":8829659,"src":"IMG_2684_copy_1_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829659.html","width":160,"caption":"","height":107});
															thumbnails[8829660] = clik.newPhoto({"id":8829660,"src":"IMG_3491_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829660.html","width":160,"caption":"","height":129});
															thumbnails[8829666] = clik.newPhoto({"id":8829666,"src":"Hannah_7_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829666.html","width":160,"caption":"","height":240});
															thumbnails[8829671] = clik.newPhoto({"id":8829671,"src":"Hannah_16_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829671.html","width":160,"caption":"","height":107});
															thumbnails[8846906] = clik.newPhoto({"id":8846906,"src":"fashion-27_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8846906.html","width":160,"caption":"","height":240});
															thumbnails[8829686] = clik.newPhoto({"id":8829686,"src":"4387805243_1570cfa272_b_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829686.html","width":160,"caption":"","height":240});
															thumbnails[8829755] = clik.newPhoto({"id":8829755,"src":"4543296365_abf6b1ced5_b_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829755.html","width":160,"caption":"","height":107});
															thumbnails[8829819] = clik.newPhoto({"id":8829819,"src":"5453634367_7ca76b7dd0_b_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829819.html","width":160,"caption":"","height":107});
															thumbnails[8829835] = clik.newPhoto({"id":8829835,"src":"5454257250_61ea511bf5_b_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829835.html","width":160,"caption":"","height":240});
															thumbnails[8846907] = clik.newPhoto({"id":8846907,"src":"fashion-83_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8846907.html","width":160,"caption":"","height":240});
															thumbnails[8829840] = clik.newPhoto({"id":8829840,"src":"4965408071_f444801da7_b_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829840.html","width":160,"caption":"","height":107});
															thumbnails[8846908] = clik.newPhoto({"id":8846908,"src":"IMG_7231_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8846908.html","width":160,"caption":"","height":240});
															thumbnails[8846910] = clik.newPhoto({"id":8846910,"src":"IMG_7235_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8846910.html","width":160,"caption":"","height":240});
															thumbnails[8846911] = clik.newPhoto({"id":8846911,"src":"IMG_7253_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8846911.html","width":160,"caption":"","height":240});
															thumbnails[8829845] = clik.newPhoto({"id":8829845,"src":"IMG_5103_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829845.html","width":160,"caption":"","height":107});
															thumbnails[8829848] = clik.newPhoto({"id":8829848,"src":"IMG_5079_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8829848.html","width":160,"caption":"","height":240});
															thumbnails[8829914] = clik.newPhoto({"id":8829914,"src":"IMG_8319_copy_1_thumb.JPG","galleries_id":464511,"server_id":32,"link":"photo_8829914.html","width":160,"caption":"","height":240});
															thumbnails[8830001] = clik.newPhoto({"id":8830001,"src":"IMG_8331_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8830001.html","width":160,"caption":"","height":107});
															thumbnails[8830002] = clik.newPhoto({"id":8830002,"src":"IMG_8439_copy_3_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8830002.html","width":160,"caption":"","height":107});
															thumbnails[8830005] = clik.newPhoto({"id":8830005,"src":"IMG_1703-2_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8830005.html","width":160,"caption":"","height":125});
															thumbnails[8830115] = clik.newPhoto({"id":8830115,"src":"IMG_0200_copy_thumb.jpg","galleries_id":464511,"server_id":32,"link":"photo_8830115.html","width":160,"caption":"","height":240});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[464689] = clik.newGallery({"parentGallery":464687,"usePopups":false,"title":"Music","link":"section562197_464689.html","maxRecords":0.0,"photoIDs":[8833128.0,8833130.0,8833131.0,8833133.0,8833135.0,8833136.0,8833137.0,8833138.0,8833139.0,8833140.0],"skipIndex":0,"section_code":"section562197","featured_images":8833140.0,"id":464689,"singleSection":false});				  						galleries[464834] = clik.newGallery({"parentGallery":465323,"usePopups":false,"title":"Street Life","link":"section562197_464834.html","maxRecords":0.0,"photoIDs":[8836228.0,8836236.0,8836241.0,8836248.0,8836254.0,8836256.0,8836258.0,8836267.0,8836275.0,8836284.0,8836295.0,8836304.0,8836313.0,8836320.0,8836326.0,8836329.0,8836331.0,8836332.0,8836334.0,8836336.0,8836338.0,8836340.0,8836342.0,8836344.0,8836345.0,8836347.0,8836349.0],"skipIndex":0,"section_code":"section562197","featured_images":"8836334,8836332,8836326,8836284,8836267","id":464834,"singleSection":false});				  						galleries[464801] = clik.newGallery({"parentGallery":464687,"usePopups":false,"title":"Theatrical","link":"section562197_464801.html","maxRecords":0.0,"photoIDs":[8835520.0,8835526.0,8835530.0,8835535.0,8835537.0,8835539.0,8846912.0,8846913.0,8846914.0,8846915.0,8846917.0,8846918.0],"skipIndex":0,"section_code":"section562197","featured_images":"8846915,8835535","id":464801,"singleSection":false});				  						galleries[473592] = clik.newGallery({"parentGallery":465323,"usePopups":false,"title":"Workshops","link":"section562197_473592.html","maxRecords":0.0,"photoIDs":[8847775.0,8847776.0,8847777.0,8847778.0,8847779.0,8847780.0,8847781.0,8847782.0,8847783.0,8847784.0,8847785.0,8847786.0,8847788.0,8847789.0,8847790.0,8847791.0,8847792.0,8847793.0,8847795.0,8847796.0,8847797.0,8847798.0,8847799.0,8847800.0,8847801.0,8847802.0,8847803.0,8847804.0,8847805.0,8847820.0,8847907.0,8847909.0,8847910.0,8847911.0,8847912.0,8847913.0],"skipIndex":0,"section_code":"section562197","featured_images":"8847795,8847791,8847790,8847788,8847784","id":473592,"singleSection":false});				  						galleries[464511] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"section562197_464511.html","maxRecords":0.0,"photoIDs":[8829657.0,8829659.0,8829660.0,8829666.0,8829671.0,8846906.0,8829686.0,8829755.0,8829819.0,8829835.0,8846907.0,8829840.0,8846908.0,8846910.0,8846911.0,8829845.0,8829848.0,8829914.0,8830001.0,8830002.0,8830005.0,8830115.0],"skipIndex":0,"section_code":"section562197","featured_images":"8846910,8829914,8829835,8829666","id":464511,"singleSection":false});				  						galleries[464687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Performances","link":"section562197_464687.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section562197","featured_images":"8846915,8835535,8833140","id":464687,"singleSection":false});				  						galleries[465323] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Documentary","link":"section562197_465323.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section562197","featured_images":"8847795,8847791,8847790,8847788,8847784,8836334,8836332,8836326,8836284,8836267","id":465323,"singleSection":false});				  						galleries[464416] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"section562197_464416.html","maxRecords":0.0,"photoIDs":[8831096.0,8831110.0,8831113.0,8831114.0,8831115.0,8831117.0,8831118.0,8831119.0,8831122.0,8831124.0,8831125.0,8831126.0,8831127.0,8831128.0,8831129.0,8831130.0],"skipIndex":0,"section_code":"section562197","featured_images":"8831122,8831119,8831118","id":464416,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8847912,8847793,8847782,8847779,8846912,8836336,8836329,8836304,8835537,8835526,8831118,8831110,8831096,8829840';
imageSets[2] = '8847795,8847791,8847790,8847788,8847784,8846915,8836334,8836332,8836326,8836284,8836267,8835535,8833140,8831122,8831119,8831118,8829666,8829835,8846910,8829914';
imageSets[3] = '8847782';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jamie_sproates/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jamie_sproates/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 += 'section562197.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 && 'section562197' != '') {
					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 = 'Jamie Sproates: ' + 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;
	}
}

			

