window.thumbnails = new Object();
												thumbnails[7429709] = new thumbnail(7429709,'394339','','ff1_thumb.jpg',130, 110,15,'photo_7429709.html');
												thumbnails[7429719] = new thumbnail(7429719,'394339','','ff2_thumb.jpg',130, 115,15,'photo_7429719.html');
												thumbnails[7429720] = new thumbnail(7429720,'394339','','ff3_thumb.jpg',130, 124,15,'photo_7429720.html');
												thumbnails[7429722] = new thumbnail(7429722,'394339','','ff4_thumb.jpg',130, 121,15,'photo_7429722.html');
												thumbnails[7429724] = new thumbnail(7429724,'394339','','ff5_thumb.jpg',130, 114,15,'photo_7429724.html');
												thumbnails[7429728] = new thumbnail(7429728,'394339','','ff7_thumb.jpg',130, 106,15,'photo_7429728.html');
												thumbnails[6888198] = new thumbnail(6888198,'224890','','kew_1_thumb.jpg',130, 195,15,'photo_6888198.html');
												thumbnails[6888311] = new thumbnail(6888311,'394339','','kew_7_thumb.jpg',130, 124,15,'photo_6888311.html');
												thumbnails[6888313] = new thumbnail(6888313,'224890','','kew_8_thumb.jpg',130, 87,15,'photo_6888313.html');
												thumbnails[6888482] = new thumbnail(6888482,'224890','','kew_21_thumb.jpg',130, 132,15,'photo_6888482.html');
												thumbnails[6888492] = new thumbnail(6888492,'224890','','kew_23_thumb.jpg',130, 87,15,'photo_6888492.html');
												thumbnails[6802158] = new thumbnail(6802158,'331315','','d1_thumb.jpg',130, 98,15,'photo_6802158.html');
												thumbnails[6802364] = new thumbnail(6802364,'224890','','IMG_0133_thumb.jpg',130, 86,15,'photo_6802364.html');
												thumbnails[6802370] = new thumbnail(6802370,'224890','','IMG_0137_thumb.jpg',130, 106,15,'photo_6802370.html');
												thumbnails[6802474] = new thumbnail(6802474,'331315','','IMG_0298_thumb.jpg',130, 93,15,'photo_6802474.html');
												thumbnails[6802488] = new thumbnail(6802488,'331315','','IMG_0481_thumb.jpg',130, 143,15,'photo_6802488.html');
												thumbnails[6802498] = new thumbnail(6802498,'331315','','IMG_0487_thumb.jpg',130, 147,15,'photo_6802498.html');
												thumbnails[6802514] = new thumbnail(6802514,'224890','','lass_thumb.jpg',130, 87,15,'photo_6802514.html');
												thumbnails[6802524] = new thumbnail(6802524,'224890','','old_timer_thumb.jpg',130, 106,15,'photo_6802524.html');
												thumbnails[6802538] = new thumbnail(6802538,'331315','','yes_thumb.jpg',130, 107,15,'photo_6802538.html');
												thumbnails[6802351] = new thumbnail(6802351,'224890','','IMG_0093_thumb.jpg',130, 87,15,'photo_6802351.html');
												thumbnails[6888457] = new thumbnail(6888457,'224891','','kew_15_thumb.jpg',130, 143,15,'photo_6888457.html');
												thumbnails[6802172] = new thumbnail(6802172,'224891','','hamerton_3_thumb.jpg',130, 133,15,'photo_6802172.html');
												thumbnails[6802182] = new thumbnail(6802182,'224891','','hamerton_4_thumb.jpg',130, 123,15,'photo_6802182.html');
												thumbnails[6802189] = new thumbnail(6802189,'224891','','hamerton_5_thumb.jpg',130, 131,15,'photo_6802189.html');
												thumbnails[6802194] = new thumbnail(6802194,'224891','','hamerton_6_thumb.jpg',130, 124,15,'photo_6802194.html');
												thumbnails[6802199] = new thumbnail(6802199,'331315','','hamerton_8_thumb.jpg',130, 284,15,'photo_6802199.html');
												thumbnails[6802207] = new thumbnail(6802207,'224891','','hamerton_9_thumb.jpg',130, 109,15,'photo_6802207.html');
												thumbnails[6802213] = new thumbnail(6802213,'224891','','hamerton_10_thumb.jpg',130, 85,15,'photo_6802213.html');
												thumbnails[6802224] = new thumbnail(6802224,'224891','','hamerton_11_thumb.jpg',130, 118,15,'photo_6802224.html');
												thumbnails[6802315] = new thumbnail(6802315,'224891','','hamerton_12_thumb.jpg',130, 137,15,'photo_6802315.html');
												thumbnails[6410204] = new thumbnail(6410204,'354192','','IMG_00041_thumb.jpg',130, 114,15,'photo_6410204.html');
												thumbnails[6410212] = new thumbnail(6410212,'354192','','IMG_0006_thumb.jpg',130, 87,15,'photo_6410212.html');
												thumbnails[6410276] = new thumbnail(6410276,'354192','','IMG_0008_thumb.jpg',130, 77,15,'photo_6410276.html');
												thumbnails[6410280] = new thumbnail(6410280,'354192','','IMG_0010_thumb.jpg',130, 78,15,'photo_6410280.html');
												thumbnails[6410676] = new thumbnail(6410676,'354192','','IMG_0011_thumb.jpg',130, 39,15,'photo_6410676.html');
												thumbnails[6410958] = new thumbnail(6410958,'354192','','IMG_0028_thumb.jpg',130, 84,15,'photo_6410958.html');
												thumbnails[6411017] = new thumbnail(6411017,'354192','','nsra_shuttleworth1_thumb.jpg',130, 52,15,'photo_6411017.html');
												thumbnails[6411170] = new thumbnail(6411170,'354192','','IMG_0032_thumb.jpg',130, 65,15,'photo_6411170.html');
												thumbnails[6411177] = new thumbnail(6411177,'354192','','IMG_0052_thumb.jpg',130, 101,15,'photo_6411177.html');
												thumbnails[6411180] = new thumbnail(6411180,'354192','','IMG_0053_thumb.jpg',130, 77,15,'photo_6411180.html');
												thumbnails[6411186] = new thumbnail(6411186,'354192','','IMG_0055_thumb.jpg',130, 77,15,'photo_6411186.html');
												thumbnails[6411192] = new thumbnail(6411192,'354192','','IMG_0060_thumb.jpg',130, 79,15,'photo_6411192.html');
												thumbnails[6411196] = new thumbnail(6411196,'354192','','IMG_0062_thumb.jpg',130, 81,15,'photo_6411196.html');
												thumbnails[6411213] = new thumbnail(6411213,'354192','','IMG_0065_thumb.jpg',130, 95,15,'photo_6411213.html');
												thumbnails[6411238] = new thumbnail(6411238,'354192','','IMG_0066_thumb.jpg',130, 94,15,'photo_6411238.html');
												thumbnails[6411244] = new thumbnail(6411244,'354192','','IMG_0067_thumb.jpg',130, 92,15,'photo_6411244.html');
												thumbnails[6411249] = new thumbnail(6411249,'354192','','IMG_0070_thumb.jpg',130, 71,15,'photo_6411249.html');
												thumbnails[6411254] = new thumbnail(6411254,'354192','','IMG_0071_thumb.jpg',130, 87,15,'photo_6411254.html');
												thumbnails[6411261] = new thumbnail(6411261,'354192','','IMG_0073_thumb.jpg',130, 52,15,'photo_6411261.html');
												thumbnails[6411273] = new thumbnail(6411273,'354192','','IMG_0076_thumb.jpg',130, 87,15,'photo_6411273.html');
												thumbnails[6411276] = new thumbnail(6411276,'354192','','IMG_0078_thumb.jpg',130, 121,15,'photo_6411276.html');
												thumbnails[6411279] = new thumbnail(6411279,'354192','','IMG_0081_thumb.jpg',130, 75,15,'photo_6411279.html');
												thumbnails[6411284] = new thumbnail(6411284,'354192','','IMG_0083_thumb.jpg',130, 162,15,'photo_6411284.html');
												thumbnails[6411289] = new thumbnail(6411289,'331315','','IMG_0097_thumb.jpg',130, 133,15,'photo_6411289.html');
												thumbnails[6411371] = new thumbnail(6411371,'354192','','moggy_1_thumb.jpg',130, 87,15,'photo_6411371.html');
												thumbnails[6411378] = new thumbnail(6411378,'354192','','moggy_2_thumb.jpg',130, 87,15,'photo_6411378.html');
												thumbnails[6411381] = new thumbnail(6411381,'354192','','moggy_3_thumb.jpg',130, 87,15,'photo_6411381.html');
												thumbnails[6411386] = new thumbnail(6411386,'354192','','moggy_4_thumb.jpg',130, 87,15,'photo_6411386.html');
												thumbnails[6411393] = new thumbnail(6411393,'354192','','moggy_5_thumb.jpg',130, 95,15,'photo_6411393.html');
												thumbnails[6391074] = new thumbnail(6391074,'331315','','web_2___19_7_thumb.jpg',130, 160,15,'photo_6391074.html');
												thumbnails[6391081] = new thumbnail(6391081,'331315','','web_4_19_7_thumb.jpg',130, 126,15,'photo_6391081.html');
												thumbnails[6391086] = new thumbnail(6391086,'331315','','web_5_F650031C-1D09-001F-990619D75F8C8458_thumb.jpg',130, 162,15,'photo_6391086.html');
												thumbnails[6391052] = new thumbnail(6391052,'331315','','b_e_w_1____17_7_thumb.jpg',130, 89,15,'photo_6391052.html');
												thumbnails[6055693] = new thumbnail(6055693,'394341','brecon beacons','B_B_1_thumb.jpg',130, 75,15,'photo_6055693.html');
												thumbnails[6055711] = new thumbnail(6055711,'394341','','B_B_0005_thumb.jpg',130, 75,15,'photo_6055711.html');
												thumbnails[6055717] = new thumbnail(6055717,'394341','','B_B_0009_thumb.jpg',130, 76,15,'photo_6055717.html');
												thumbnails[6055738] = new thumbnail(6055738,'224890','','B_B_0011_thumb.jpg',130, 66,15,'photo_6055738.html');
												thumbnails[6055757] = new thumbnail(6055757,'394340','','B_B_0027_thumb.jpg',130, 87,15,'photo_6055757.html');
												thumbnails[6055935] = new thumbnail(6055935,'394340','','B_B_0077_thumb.jpg',130, 87,15,'photo_6055935.html');
												thumbnails[6055943] = new thumbnail(6055943,'394340','','B_B_0086_thumb.jpg',130, 87,15,'photo_6055943.html');
												thumbnails[6055970] = new thumbnail(6055970,'394340','','B_B_0142_thumb.jpg',130, 87,15,'photo_6055970.html');
												thumbnails[6056016] = new thumbnail(6056016,'394340','','B_B_0169_thumb.jpg',130, 87,15,'photo_6056016.html');
												thumbnails[5915891] = new thumbnail(5915891,'331315','','s7_thumb.jpg',130, 94,15,'photo_5915891.html');
												thumbnails[5916740] = new thumbnail(5916740,'331315','','s11_thumb.jpg',130, 113,15,'photo_5916740.html');
												thumbnails[5916768] = new thumbnail(5916768,'331315','','s31_thumb.jpg',130, 87,15,'photo_5916768.html');
												thumbnails[5916790] = new thumbnail(5916790,'331315','','s61_thumb.jpg',130, 73,15,'photo_5916790.html');
												thumbnails[4767487] = new thumbnail(4767487,'224891','','z10_thumb.jpg',130, 137,15,'photo_4767487.html');
												thumbnails[4767492] = new thumbnail(4767492,'224891','','z9_thumb.jpg',130, 87,15,'photo_4767492.html');
												thumbnails[3681994] = new thumbnail(3681994,'394339','','den20fly_thumb.jpg',130, 82,15,'photo_3681994.html');
												thumbnails[3682057] = new thumbnail(3682057,'224890','','FAN20den_thumb.jpg',130, 83,15,'photo_3682057.html');
												thumbnails[3682061] = new thumbnail(3682061,'224891','','hopper1_thumb.jpg',130, 96,15,'photo_3682061.html');
												thumbnails[3682063] = new thumbnail(3682063,'394339','','web201_thumb.jpg',130, 87,15,'photo_3682063.html');
												thumbnails[3686767] = new thumbnail(3686767,'394339','','WEB_1_thumb.jpg',130, 87,15,'photo_3686767.html');
												thumbnails[3686773] = new thumbnail(3686773,'394529','','WEB_2_thumb.jpg',130, 87,15,'photo_3686773.html');
												thumbnails[3687437] = new thumbnail(3687437,'224890','','web_thumb.jpg',130, 89,15,'photo_3687437.html');
												thumbnails[3687442] = new thumbnail(3687442,'224890','','web1_thumb.jpg',130, 87,15,'photo_3687442.html');
												thumbnails[3687450] = new thumbnail(3687450,'224890','','web7_thumb.jpg',130, 87,15,'photo_3687450.html');
												thumbnails[3687451] = new thumbnail(3687451,'224890','','web_21_thumb.jpg',130, 87,15,'photo_3687451.html');
												thumbnails[3687478] = new thumbnail(3687478,'224890','','web_3_thumb.jpg',130, 70,15,'photo_3687478.html');
												thumbnails[3687500] = new thumbnail(3687500,'394339','','web_9_thumb.jpg',130, 87,15,'photo_3687500.html');
												thumbnails[3687502] = new thumbnail(3687502,'394341','','web_10_thumb.jpg',130, 87,15,'photo_3687502.html');
												thumbnails[3687507] = new thumbnail(3687507,'224890','','web_13_thumb.jpg',130, 91,15,'photo_3687507.html');
												thumbnails[3687528] = new thumbnail(3687528,'224890','','web_14_thumb.jpg',130, 87,15,'photo_3687528.html');
												thumbnails[3687531] = new thumbnail(3687531,'224890','','web_15_thumb.jpg',130, 84,15,'photo_3687531.html');
												thumbnails[3687539] = new thumbnail(3687539,'224890','','web_17_thumb.jpg',130, 171,15,'photo_3687539.html');
												thumbnails[3696103] = new thumbnail(3696103,'394529','','web_31_thumb.jpg',130, 87,15,'photo_3696103.html');
												thumbnails[3696105] = new thumbnail(3696105,'394529','','web_41_thumb.jpg',130, 87,15,'photo_3696105.html');
												thumbnails[3696110] = new thumbnail(3696110,'394529','','web_5_thumb.jpg',130, 87,15,'photo_3696110.html');
												thumbnails[3708695] = new thumbnail(3708695,'331315','','1_thumb.jpg',130, 126,15,'photo_3708695.html');
												thumbnails[3708696] = new thumbnail(3708696,'224891','','2_thumb.jpg',130, 112,15,'photo_3708696.html');
												thumbnails[3708697] = new thumbnail(3708697,'331315','','3_thumb.jpg',130, 108,15,'photo_3708697.html');
												thumbnails[3708714] = new thumbnail(3708714,'224891','','9_thumb.jpg',130, 87,15,'photo_3708714.html');
												thumbnails[3708716] = new thumbnail(3708716,'331315','','10_thumb.jpg',130, 87,15,'photo_3708716.html');
												thumbnails[3769048] = new thumbnail(3769048,'224891','','web2_thumb.jpg',130, 114,15,'photo_3769048.html');
												thumbnails[3769060] = new thumbnail(3769060,'394529','','web6_thumb.jpg',130, 87,15,'photo_3769060.html');
												thumbnails[3769124] = new thumbnail(3769124,'224891','','web13_thumb.jpg',130, 100,15,'photo_3769124.html');
												thumbnails[3769134] = new thumbnail(3769134,'224890','','web15_thumb.jpg',130, 87,15,'photo_3769134.html');
												thumbnails[4023283] = new thumbnail(4023283,'224890','','b_b_thumb.jpg',130, 152,15,'photo_4023283.html');
												thumbnails[4023340] = new thumbnail(4023340,'224890','','sailor_thumb.jpg',130, 87,15,'photo_4023340.html');
												thumbnails[4119349] = new thumbnail(4119349,'224891','','w_thumb.jpg',130, 109,15,'photo_4119349.html');
												thumbnails[4119352] = new thumbnail(4119352,'394341','','w1_thumb.jpg',130, 87,15,'photo_4119352.html');
												thumbnails[4119368] = new thumbnail(4119368,'331315','','we1_thumb.jpg',130, 87,15,'photo_4119368.html');
												thumbnails[4119379] = new thumbnail(4119379,'394341','','we4_thumb.jpg',130, 87,15,'photo_4119379.html');
												thumbnails[4119383] = new thumbnail(4119383,'394529','','we5_thumb.jpg',130, 82,15,'photo_4119383.html');
												thumbnails[4119389] = new thumbnail(4119389,'394529','','ww1_thumb.jpg',130, 87,15,'photo_4119389.html');
												thumbnails[4119391] = new thumbnail(4119391,'224890','','www1_thumb.jpg',130, 87,15,'photo_4119391.html');
												thumbnails[4121683] = new thumbnail(4121683,'224890','','wwwww777_thumb.jpg',130, 87,15,'photo_4121683.html');
												thumbnails[4121685] = new thumbnail(4121685,'224890','','wwwwwwww888_thumb.jpg',130, 195,15,'photo_4121685.html');
												thumbnails[4205983] = new thumbnail(4205983,'224890','','r1_thumb.jpg',130, 55,15,'photo_4205983.html');
												thumbnails[4205992] = new thumbnail(4205992,'224890','','r4_thumb.jpg',130, 149,15,'photo_4205992.html');
												thumbnails[4205997] = new thumbnail(4205997,'224891','','r6_thumb.jpg',130, 75,15,'photo_4205997.html');
												thumbnails[4206000] = new thumbnail(4206000,'224891','','r7_thumb.jpg',130, 79,15,'photo_4206000.html');
												thumbnails[4306230] = new thumbnail(4306230,'224890','','f1_thumb.jpg',130, 116,15,'photo_4306230.html');
												thumbnails[4306232] = new thumbnail(4306232,'224890','','f2_thumb.jpg',130, 124,15,'photo_4306232.html');
												thumbnails[4400510] = new thumbnail(4400510,'224891','','aaaaaaa_thumb.jpg',130, 124,15,'photo_4400510.html');
												thumbnails[4400519] = new thumbnail(4400519,'224891','','aaaaaaaaa_thumb.jpg',130, 109,15,'photo_4400519.html');
												thumbnails[4400533] = new thumbnail(4400533,'224891','','aaaaaaaaaaaa_thumb.jpg',130, 123,15,'photo_4400533.html');
												thumbnails[4400536] = new thumbnail(4400536,'224891','','aaaaaaaaaaaaa_thumb.jpg',130, 109,15,'photo_4400536.html');
												thumbnails[4400538] = new thumbnail(4400538,'224891','','aaaaaaaaaaaaaa_thumb.jpg',130, 104,15,'photo_4400538.html');
												thumbnails[4473927] = new thumbnail(4473927,'224891','','bb_1_thumb.jpg',130, 107,15,'photo_4473927.html');
												thumbnails[4767312] = new thumbnail(4767312,'331315','','z29_thumb.jpg',130, 116,15,'photo_4767312.html');
												thumbnails[4767313] = new thumbnail(4767313,'331315','','z28_thumb.jpg',130, 160,15,'photo_4767313.html');
												thumbnails[4767314] = new thumbnail(4767314,'331315','','z27_thumb.jpg',130, 134,15,'photo_4767314.html');
												thumbnails[5534021] = new thumbnail(5534021,'224890','','y_thumb.jpg',130, 87,15,'photo_5534021.html');
												thumbnails[5534027] = new thumbnail(5534027,'224890','','w_ECB6054B-1D09-001F-99F7B2E910EBA447_thumb.jpg',130, 87,15,'photo_5534027.html');
												thumbnails[5534030] = new thumbnail(5534030,'394341','','v_thumb.jpg',130, 87,15,'photo_5534030.html');
												thumbnails[5534042] = new thumbnail(5534042,'394340','','u_thumb.jpg',130, 87,15,'photo_5534042.html');
												thumbnails[5534049] = new thumbnail(5534049,'394339','','r_thumb.jpg',130, 87,15,'photo_5534049.html');
												thumbnails[5534057] = new thumbnail(5534057,'224890','','qwe_thumb.jpg',130, 87,15,'photo_5534057.html');
												thumbnails[5534072] = new thumbnail(5534072,'331315','','p_thumb.jpg',130, 118,15,'photo_5534072.html');
												thumbnails[5534157] = new thumbnail(5534157,'224891','','m_thumb.jpg',130, 153,15,'photo_5534157.html');
												thumbnails[5534169] = new thumbnail(5534169,'331315','','io_thumb.jpg',130, 98,15,'photo_5534169.html');
												thumbnails[5851774] = new thumbnail(5851774,'331315','','1_359E9E8E-1D09-001F-99963EA44011E2A7_thumb.jpg',130, 69,15,'photo_5851774.html');
												thumbnails[5851777] = new thumbnail(5851777,'331315','','2_359F6087-1D09-001F-99F5E9F191C568AF_thumb.jpg',130, 109,15,'photo_5851777.html');
												thumbnails[5851793] = new thumbnail(5851793,'224890','','7_35A2D3A5-1D09-001F-9997832A2A9F9EBA_thumb.jpg',130, 87,15,'photo_5851793.html');
												thumbnails[5851837] = new thumbnail(5851837,'394340','','8_35A37DB0-1D09-001F-99193FE3E4290207_thumb.jpg',130, 87,15,'photo_5851837.html');
												thumbnails[5851885] = new thumbnail(5851885,'394341','','9_35A4032C-1D09-001F-99DAC900496CE225_thumb.jpg',130, 70,15,'photo_5851885.html');
												thumbnails[5861078] = new thumbnail(5861078,'331315','','2_3B1B69FF-1D09-001F-99F84326F0ECD83A_thumb.jpg',130, 106,15,'photo_5861078.html');
												thumbnails[5861086] = new thumbnail(5861086,'331315','','4_3B1CE1CA-1D09-001F-997A96FC6E5E730E_thumb.jpg',130, 195,15,'photo_5861086.html');
												thumbnails[5861089] = new thumbnail(5861089,'331315','','5_3B1D9D5A-1D09-001F-99ABA7AC960DBFDD_thumb.jpg',130, 205,15,'photo_5861089.html');
												thumbnails[5861099] = new thumbnail(5861099,'331315','','9_3B1FE6BD-1D09-001F-995B071CD8AFC457_thumb.jpg',130, 87,15,'photo_5861099.html');
												thumbnails[5861151] = new thumbnail(5861151,'331315','','8_3B29811D-1D09-001F-99EAEF55390089B8_thumb.jpg',130, 112,15,'photo_5861151.html');
												thumbnails[7285885] = new thumbnail(7285885,'394339','','f1_C80722E7-1EC9-DFB6-09FECF4CA728B612_thumb.jpg',130, 87,15,'photo_7285885.html');
												thumbnails[7285886] = new thumbnail(7285886,'331315','','f2_C80CBCB5-1EC9-DFB6-0911D550692BCE09_thumb.jpg',130, 106,15,'photo_7285886.html');
												thumbnails[7285892] = new thumbnail(7285892,'394339','','s1_thumb.jpg',130, 87,15,'photo_7285892.html');
												thumbnails[7285896] = new thumbnail(7285896,'394339','','s2_thumb.jpg',130, 87,15,'photo_7285896.html');
												thumbnails[7285900] = new thumbnail(7285900,'394339','','s3_C81F689D-1EC9-DFB6-09D74573176442C6_thumb.jpg',130, 87,15,'photo_7285900.html');
												thumbnails[7285905] = new thumbnail(7285905,'394339','A DROP OF WATER','w1_C829468E-1EC9-DFB6-091C322FA24A4299_thumb.jpg',130, 125,15,'photo_7285905.html');
												thumbnails[7285914] = new thumbnail(7285914,'394339','SPLASH 1','w2_thumb.jpg',130, 101,15,'photo_7285914.html');
												thumbnails[7285924] = new thumbnail(7285924,'394339','SPLASH','w3_thumb.jpg',130, 92,15,'photo_7285924.html');
												thumbnails[7285926] = new thumbnail(7285926,'394339','','w4_thumb.jpg',130, 124,15,'photo_7285926.html');
												thumbnails[7285928] = new thumbnail(7285928,'394339','','w5_thumb.jpg',130, 107,15,'photo_7285928.html');
												thumbnails[7285930] = new thumbnail(7285930,'394339','','w6_thumb.jpg',130, 122,15,'photo_7285930.html');
												thumbnails[7285933] = new thumbnail(7285933,'394339','W 7','w7_thumb.jpg',130, 85,15,'photo_7285933.html');
												thumbnails[7315393] = new thumbnail(7315393,'394339','beard','2721asbeard_thumb.jpg',130, 78,15,'photo_7315393.html');
												thumbnails[7315394] = new thumbnail(7315394,'394339','broach','2739sbroach_thumb.jpg',130, 87,15,'photo_7315394.html');
												thumbnails[7315397] = new thumbnail(7315397,'394339','stoned','2721bsstoned_thumb.jpg',130, 94,15,'photo_7315397.html');
												thumbnails[7315399] = new thumbnail(7315399,'394339','invader','2751sinvader2_thumb.jpg',130, 101,15,'photo_7315399.html');
												thumbnails[7315401] = new thumbnail(7315401,'394339','prey','2767spray_thumb.jpg',130, 130,15,'photo_7315401.html');
												thumbnails[7315451] = new thumbnail(7315451,'394339','','3000s_thumb.jpg',130, 88,15,'photo_7315451.html');
												thumbnails[7315455] = new thumbnail(7315455,'394339','','3038s_thumb.jpg',130, 83,15,'photo_7315455.html');
												thumbnails[7315457] = new thumbnail(7315457,'394339','','3052s_thumb.jpg',130, 103,15,'photo_7315457.html');
												thumbnails[7315458] = new thumbnail(7315458,'394339','','3055s_thumb.jpg',130, 99,15,'photo_7315458.html');
												thumbnails[7315461] = new thumbnail(7315461,'394339','','3067bs_thumb.jpg',130, 110,15,'photo_7315461.html');
												thumbnails[7315462] = new thumbnail(7315462,'394339','','3068as_thumb.jpg',130, 78,15,'photo_7315462.html');
												thumbnails[7315465] = new thumbnail(7315465,'394339','','3079bs_thumb.jpg',130, 128,15,'photo_7315465.html');
												thumbnails[7315469] = new thumbnail(7315469,'394339','','3082s_thumb.jpg',130, 100,15,'photo_7315469.html');
												thumbnails[7315471] = new thumbnail(7315471,'394339','','3088s_thumb.jpg',130, 99,15,'photo_7315471.html');
												thumbnails[7315474] = new thumbnail(7315474,'394339','body','4163sbody_thumb.jpg',130, 221,15,'photo_7315474.html');
												thumbnails[7315476] = new thumbnail(7315476,'394339','horse','4167shorse_thumb.jpg',130, 163,15,'photo_7315476.html');
												thumbnails[7315480] = new thumbnail(7315480,'394339','dance','4170sdance_thumb.jpg',130, 148,15,'photo_7315480.html');
												thumbnails[7315484] = new thumbnail(7315484,'394339','ghost','4171sghost_thumb.jpg',130, 95,15,'photo_7315484.html');
												thumbnails[7315517] = new thumbnail(7315517,'394339','lady','4174bsLady_thumb.jpg',130, 187,15,'photo_7315517.html');
												thumbnails[7315519] = new thumbnail(7315519,'394339','surprise','4177sSurprise_thumb.jpg',130, 93,15,'photo_7315519.html');
												thumbnails[7315523] = new thumbnail(7315523,'394339','invader','4226sInvader_thumb.jpg',130, 107,15,'photo_7315523.html');
												thumbnails[7315533] = new thumbnail(7315533,'394339','racecat','4245sRacecat_thumb.jpg',130, 81,15,'photo_7315533.html');
												thumbnails[7315537] = new thumbnail(7315537,'394339','elephant','4269selephant_thumb.jpg',130, 93,15,'photo_7315537.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[394339] = new gallery(394339,'7429728,7429724,7429722,7429720,7429719,7429709,7315537,7315533,7315523,7315519','abstract','gallery',[7429709,7429719,7429720,7429722,7429724,7429728,6888311,3681994,3682063,3686767,3687500,5534049,7285885,7285892,7285896,7285900,7285905,7285914,7285924,7285926,7285928,7285930,7285933,7315393,7315394,7315397,7315399,7315401,7315451,7315455,7315457,7315458,7315461,7315462,7315465,7315469,7315471,7315474,7315476,7315480,7315484,7315517,7315519,7315523,7315533,7315537],0, 0, '', 'gallery_394339.html',0,0);
				  					galleries[354192] = new gallery(354192,'6411393,6411386,6411381,6411378,6411371,6411284,6411279,6411276,6411273,6411261','cars/ bikes','gallery',[6410204,6410212,6410276,6410280,6410676,6410958,6411017,6411170,6411177,6411180,6411186,6411192,6411196,6411213,6411238,6411244,6411249,6411254,6411261,6411273,6411276,6411279,6411284,6411371,6411378,6411381,6411386,6411393],0, 0, '', 'gallery_354192.html',0,0);
				  					galleries[394341] = new gallery(394341,'6055717,6055711,6055693,5851885,5534030,4119379,4119352,3687502','landscape','gallery',[6055693,6055711,6055717,3687502,4119352,4119379,5534030,5851885],0, 0, '', 'gallery_394341.html',0,0);
				  					galleries[331315] = new gallery(331315,'7285886,6802538,6802498,6802488,6802474,6802199,6802158,6411289,6391086,6391081','pets and portraits','gallery',[6802158,6802474,6802488,6802498,6802538,6802199,6411289,6391074,6391081,6391086,6391052,5915891,5916740,5916768,5916790,3708695,3708697,3708716,4119368,4767312,4767313,4767314,5534072,5534169,5851774,5851777,5861078,5861086,5861089,5861099,5861151,7285886],0, 0, '', 'gallery_331315.html',0,0);
				  					galleries[394529] = new gallery(394529,'4119389,4119383,3769060,3696110,3696105,3696103,3686773','sky/skyline','gallery',[3686773,3696103,3696105,3696110,3769060,4119383,4119389],0, 0, '', 'gallery_394529.html',0,0);
				  					galleries[394340] = new gallery(394340,'6056016,6055970,6055943,6055935,6055757,5851837,5534042','water','gallery',[6055757,6055935,6055943,6055970,6056016,5534042,5851837],0, 0, '', 'gallery_394340.html',0,0);
				  					galleries[224890] = new gallery(224890,'6888492,6888482,6888313,6888198,6802524,6802514,6802370,6802364,6802351,6055738','general images','gallery',[6888198,6888313,6888482,6888492,6802364,6802370,6802514,6802524,6802351,6055738,3682057,3687437,3687442,3687450,3687451,3687478,3687507,3687528,3687531,3687539,3769134,4023283,4023340,4119391,4121683,4121685,4205983,4205992,4306230,4306232,5534021,5534027,5534057,5851793],0, 0, '', 'gallery_224890.html',0,0);
				  					galleries[224891] = new gallery(224891,'6888457,6802315,6802224,6802213,6802207,6802194,6802189,6802182,6802172,5534157','animals and insects','gallery',[6888457,6802172,6802182,6802189,6802194,6802207,6802213,6802224,6802315,4767487,4767492,3682061,3708696,3708714,3769048,3769124,4119349,4205997,4206000,4400510,4400519,4400533,4400536,4400538,4473927,5534157],0, 0, '', 'gallery_224891.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6410204,6055943,6055935,3708695,3696103,3687437,3681994';
imageSets[3] = '7429728,7429724,7429722,7429720,7429719,7429709,7315537,7315533,7315523,7315519,7315517,7315484,7315480,7315476,7315474,7315471,7315469,7315465,7315462,7315461,7315458,7315457,7315455,7315451,7315401,7315399,7315397,7315394,7315393,7285933,7285930,7285928,7285926,7285924,7285914,7285905,7285900,7285896,7285892,7285886,7285885,6888492,6888482,6888457,6888313,6888311,6888198,6802538,6802524,6802514';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/malcolmshaw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/malcolmshaw/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 += '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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Malcolm Shaw Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

