window.thumbnails = new Object();
												thumbnails[1393009] = new thumbnail(1393009,'355460','Tulip Macro','0101_thumb.jpg',130, 195,15,'photo_1393009.html');
												thumbnails[1393011] = new thumbnail(1393011,'355460','Tulip Shadow','0151_thumb.jpg',130, 87,15,'photo_1393011.html');
												thumbnails[1393013] = new thumbnail(1393013,'355460','Orchids','CRW_41571_thumb.jpg',130, 195,15,'photo_1393013.html');
												thumbnails[1393017] = new thumbnail(1393017,'95293','Waterfall, Frozen in time','CRW_42351_thumb.jpg',130, 195,15,'photo_1393017.html');
												thumbnails[1393019] = new thumbnail(1393019,'95293','Lake Shore B&W - Lake District','CRW_43701_thumb.jpg',130, 195,15,'photo_1393019.html');
												thumbnails[1393024] = new thumbnail(1393024,'95293','Halnaker Windmill - West Sussex','CRW_44881_thumb.jpg',130, 87,15,'photo_1393024.html');
												thumbnails[1393037] = new thumbnail(1393037,'95293','Beach scene - West Wittering','CRW_45021_thumb.jpg',130, 195,15,'photo_1393037.html');
												thumbnails[1393039] = new thumbnail(1393039,'355460','Arum Lily monochrome','CRW_47481_thumb.jpg',130, 87,15,'photo_1393039.html');
												thumbnails[1393041] = new thumbnail(1393041,'355460','Arum Lily Monochrome','CRW_4749_thumb.jpg',130, 87,15,'photo_1393041.html');
												thumbnails[1393092] = new thumbnail(1393092,'355460','Arum Lily Monochrome','CRW_4752_thumb.jpg',130, 87,15,'photo_1393092.html');
												thumbnails[1393132] = new thumbnail(1393132,'355461','Damselfly on Red Cordyline','CRW_5136_thumb.jpg',130, 87,15,'photo_1393132.html');
												thumbnails[1393137] = new thumbnail(1393137,'95293','Scale Force - Lake District','CRW_5299land_thumb.jpg',130, 195,15,'photo_1393137.html');
												thumbnails[1393140] = new thumbnail(1393140,'95293','Old Relic - Lake District','CRW_5311_thumb.jpg',130, 195,15,'photo_1393140.html');
												thumbnails[1393142] = new thumbnail(1393142,'95293','Stone Circle - Lake District','CRW_5326_thumb.jpg',130, 195,15,'photo_1393142.html');
												thumbnails[1393153] = new thumbnail(1393153,'95294','Stone farm building - Lake District','CRW_5340_thumb.jpg',130, 87,15,'photo_1393153.html');
												thumbnails[1393157] = new thumbnail(1393157,'95293','Boats - Lake District','CRW_5362edit_thumb.jpg',130, 195,15,'photo_1393157.html');
												thumbnails[1393161] = new thumbnail(1393161,'95293','After the Rain - Lake District','CRW_5441_thumb.jpg',130, 195,15,'photo_1393161.html');
												thumbnails[1393164] = new thumbnail(1393164,'95293','Sunset - Lake District','CRW_5449_thumb.jpg',130, 85,15,'photo_1393164.html');
												thumbnails[1393165] = new thumbnail(1393165,'95293','Molten Lake - Lake District','CRW_5537art_thumb.jpg',130, 195,15,'photo_1393165.html');
												thumbnails[1393166] = new thumbnail(1393166,'95293','Lake Shore - Lake District','CRW_5540_thumb.jpg',130, 195,15,'photo_1393166.html');
												thumbnails[1393168] = new thumbnail(1393168,'95294','Glass House - Kew ','CRW_5880_thumb.jpg',130, 195,15,'photo_1393168.html');
												thumbnails[1393207] = new thumbnail(1393207,'355460','Daisy','CRW_5897_thumb.jpg',130, 195,15,'photo_1393207.html');
												thumbnails[1393229] = new thumbnail(1393229,'355460','Crocus field - Kew','CRW_5922_thumb.jpg',130, 195,15,'photo_1393229.html');
												thumbnails[1393301] = new thumbnail(1393301,'355461','Moorhen and Cranberries','CRW_5992_thumb.jpg',130, 195,15,'photo_1393301.html');
												thumbnails[1393302] = new thumbnail(1393302,'355460','Tulip','CRW_6757_thumb.jpg',130, 195,15,'photo_1393302.html');
												thumbnails[1393303] = new thumbnail(1393303,'355460','Red Daisy','CRW_7095_thumb.jpg',130, 92,15,'photo_1393303.html');
												thumbnails[1393305] = new thumbnail(1393305,'355460','Red Daisy Macro','CRW_7116_thumb.jpg',130, 87,15,'photo_1393305.html');
												thumbnails[1393306] = new thumbnail(1393306,'355460','Red and Green Daisy','CRW_7125_thumb.jpg',130, 195,15,'photo_1393306.html');
												thumbnails[1393310] = new thumbnail(1393310,'355460','Tulip and leaf','CRW_7128_thumb.jpg',130, 195,15,'photo_1393310.html');
												thumbnails[1393311] = new thumbnail(1393311,'355460','Three Tulips','CRW_7172_thumb.jpg',130, 190,15,'photo_1393311.html');
												thumbnails[1393312] = new thumbnail(1393312,'355460','Tulip and vase','CRW_7174_thumb.jpg',130, 204,15,'photo_1393312.html');
												thumbnails[1393339] = new thumbnail(1393339,'355460','Yellow Tulip','CRW_7186_thumb.jpg',130, 145,15,'photo_1393339.html');
												thumbnails[1393375] = new thumbnail(1393375,'84243','Couple','CRW_8121_thumb.jpg',130, 195,15,'photo_1393375.html');
												thumbnails[1393377] = new thumbnail(1393377,'84243','Blonde Model','CRW_8155_thumb.jpg',130, 195,15,'photo_1393377.html');
												thumbnails[1393378] = new thumbnail(1393378,'84243','Model - low key','CRW_8215b_thumb.jpg',130, 195,15,'photo_1393378.html');
												thumbnails[1393389] = new thumbnail(1393389,'84243','Golden Rays','CRW_8240a_thumb.jpg',130, 100,15,'photo_1393389.html');
												thumbnails[1393407] = new thumbnail(1393407,'84243','Hollywood','CRW_8263HW_thumb.jpg',130, 195,15,'photo_1393407.html');
												thumbnails[1393424] = new thumbnail(1393424,'95294','Blue Door - Finikounda','CRW_8300_thumb.jpg',130, 195,15,'photo_1393424.html');
												thumbnails[1393452] = new thumbnail(1393452,'95293','Olive Grove - Greece','CRW_8587_thumb.jpg',130, 87,15,'photo_1393452.html');
												thumbnails[1393457] = new thumbnail(1393457,'95292','Turtle - Maldives','IMG_0043_thumb.jpg',130, 98,15,'photo_1393457.html');
												thumbnails[1393459] = new thumbnail(1393459,'95292','Deadly Beautiful - Maldives','IMG_0065_thumb.jpg',130, 98,15,'photo_1393459.html');
												thumbnails[1393461] = new thumbnail(1393461,'95292','That\'s Amore - Maldives','IMG_0093_thumb.jpg',130, 98,15,'photo_1393461.html');
												thumbnails[1393464] = new thumbnail(1393464,'95292','Clown Fish - Maldives','IMG_0152_thumb.jpg',130, 98,15,'photo_1393464.html');
												thumbnails[1393467] = new thumbnail(1393467,'355460','Autumnal Leaves - West Sussex','IMG_0484_thumb.jpg',130, 87,15,'photo_1393467.html');
												thumbnails[1393470] = new thumbnail(1393470,'352542','Bottle Silhouette','IMG_1635_thumb.jpg',130, 195,15,'photo_1393470.html');
												thumbnails[1393472] = new thumbnail(1393472,'95294','Wooden door - Prague','IMG_2426_thumb.jpg',130, 87,15,'photo_1393472.html');
												thumbnails[1393475] = new thumbnail(1393475,'95294','Prague Castle buildings - Prague','IMG_2470_thumb.jpg',130, 195,15,'photo_1393475.html');
												thumbnails[1393477] = new thumbnail(1393477,'95294','Lantern Sadow - Prague','IMG_2496_thumb.jpg',130, 118,15,'photo_1393477.html');
												thumbnails[1393479] = new thumbnail(1393479,'95294','Charles Bridge Building - Prague','IMG_2497_thumb.jpg',130, 181,15,'photo_1393479.html');
												thumbnails[1393481] = new thumbnail(1393481,'95294','Little Venice - Prague','IMG_2527_thumb.jpg',130, 195,15,'photo_1393481.html');
												thumbnails[1393485] = new thumbnail(1393485,'352540','Tram - Prague','IMG_2554_thumb.jpg',130, 73,15,'photo_1393485.html');
												thumbnails[1393487] = new thumbnail(1393487,'355461','faithful friend','monty_thumb.jpg',130, 87,15,'photo_1393487.html');
												thumbnails[1393490] = new thumbnail(1393490,'355461','two tone','zebra2tone_thumb.jpg',130, 92,15,'photo_1393490.html');
												thumbnails[1393529] = new thumbnail(1393529,'95292','Coral Nursery - Maldives','IMG_0058_thumb.jpg',130, 173,15,'photo_1393529.html');
												thumbnails[1393700] = new thumbnail(1393700,'355460','Abstract - Kew','CRW_5971_thumb.jpg',130, 210,15,'photo_1393700.html');
												thumbnails[1393820] = new thumbnail(1393820,'95294','Viaduct - Peloponnese','CRW_8507_thumb.jpg',130, 195,15,'photo_1393820.html');
												thumbnails[2502246] = new thumbnail(2502246,'352540',' MG 1602','_MG_1602_thumb.jpg',130, 195,15,'photo_2502246.html');
												thumbnails[2502247] = new thumbnail(2502247,'84243',' MG 1617','_MG_1617_thumb.jpg',130, 195,15,'photo_2502247.html');
												thumbnails[2502248] = new thumbnail(2502248,'84243',' MG 1622','_MG_1622_thumb.jpg',130, 202,15,'photo_2502248.html');
												thumbnails[6365402] = new thumbnail(6365402,'95293','Cornish Beach','_MG_1750-Edit_copy_copy_thumb.jpg',130, 87,15,'photo_6365402.html');
												thumbnails[6365404] = new thumbnail(6365404,'95294','Beach Huts HDR','_MG_1978_79_80_copy_copy_thumb.jpg',130, 87,15,'photo_6365404.html');
												thumbnails[6365405] = new thumbnail(6365405,'355452','Beach Hut HDR','_MG_1978_79_80_copy_copy1_thumb.jpg',130, 87,15,'photo_6365405.html');
												thumbnails[6365406] = new thumbnail(6365406,'352542','Martini','_MG_3997-Edit_copy_copy_thumb.jpg',130, 134,15,'photo_6365406.html');
												thumbnails[6365407] = new thumbnail(6365407,'352542','Martini and cherry','_MG_4007-Edit_copy_copy_thumb.jpg',130, 195,15,'photo_6365407.html');
												thumbnails[6365408] = new thumbnail(6365408,'352540','Steam Train','_MG_4587-Edit_copy_copy_thumb.jpg',130, 195,15,'photo_6365408.html');
												thumbnails[6365411] = new thumbnail(6365411,'95294','Spinnaker Tower','_MG_5340-Edit-Edit-2_thumb.jpg',130, 195,15,'photo_6365411.html');
												thumbnails[6365412] = new thumbnail(6365412,'352542','Flute','_MG_5426-Edit-Edit-2_thumb.jpg',130, 195,15,'photo_6365412.html');
												thumbnails[6365422] = new thumbnail(6365422,'355461','Ant Macro','10-05-03_221029_MB_R8_S4-Edit-Edit_thumb.jpg',130, 111,15,'photo_6365422.html');
												thumbnails[6365425] = new thumbnail(6365425,'352540','Greek Boat','CRW_8346-Edit_thumb.jpg',130, 195,15,'photo_6365425.html');
												thumbnails[6365426] = new thumbnail(6365426,'95295','smoke','CRW_9305-Edit_copy_copy_thumb.jpg',130, 195,15,'photo_6365426.html');
												thumbnails[6365427] = new thumbnail(6365427,'355460','flower macro','CRW_9364-Edit_thumb.jpg',130, 158,15,'photo_6365427.html');
												thumbnails[6365428] = new thumbnail(6365428,'95295','Tiger on the loose','CRW_9484-Edit_thumb.jpg',130, 195,15,'photo_6365428.html');
												thumbnails[6365429] = new thumbnail(6365429,'95294','Red coat in gallery','CRW_9778-Edit_thumb.jpg',130, 195,15,'photo_6365429.html');
												thumbnails[6365430] = new thumbnail(6365430,'95292','Maldivian lobster','IMG_0064-2-Edit_thumb.jpg',130, 98,15,'photo_6365430.html');
												thumbnails[6365431] = new thumbnail(6365431,'95292','Manta Ray','IMG_0070a-Edit_thumb.jpg',130, 94,15,'photo_6365431.html');
												thumbnails[6365432] = new thumbnail(6365432,'95294','stair light','IMG_0191-Edit_thumb.jpg',130, 173,15,'photo_6365432.html');
												thumbnails[6365433] = new thumbnail(6365433,'95294','courtyard','IMG_0200-Edit_thumb.jpg',130, 173,15,'photo_6365433.html');
												thumbnails[6365434] = new thumbnail(6365434,'95294','Cocoon','IMG_0220-Edit_thumb.jpg',130, 173,15,'photo_6365434.html');
												thumbnails[6365435] = new thumbnail(6365435,'95294',' MG 5340-Edit-Edit-2','_MG_5340-Edit-Edit-2_E5D10144-1D09-001F-996ADF13DB093F15_thumb.jpg',130, 195,15,'photo_6365435.html');
												thumbnails[6365437] = new thumbnail(6365437,'355460','Rose','_MG_5519-Edit-Edit_thumb.jpg',130, 195,15,'photo_6365437.html');
												thumbnails[6365493] = new thumbnail(6365493,'95294','Beach Hut','IMG_0878-Edit-2-Edit_thumb.jpg',130, 173,15,'photo_6365493.html');
												thumbnails[6365494] = new thumbnail(6365494,'355461','Leo','leo-Edit_thumb.jpg',130, 181,15,'photo_6365494.html');
												thumbnails[6365495] = new thumbnail(6365495,'84243','pearl earring copy-Edit','pearl_earring_copy-Edit_thumb.jpg',130, 183,15,'photo_6365495.html');
												thumbnails[6365684] = new thumbnail(6365684,'355461',' White Tiger','_MG_4784-Edit_bw_copy_thumb.jpg',130, 195,15,'photo_6365684.html');
												thumbnails[6365693] = new thumbnail(6365693,'352540','Train Driver','_MG_4640-Edit_copy_thumb.jpg',130, 195,15,'photo_6365693.html');
												thumbnails[6376556] = new thumbnail(6376556,'95294','Beach front','beach_front-Edit_thumb.jpg',130, 98,15,'photo_6376556.html');
												thumbnails[6376558] = new thumbnail(6376558,'95294','Shadow','CRW_8303-Edit_EC401F31-1D09-001F-9986AFB136C85B4C_thumb.jpg',130, 174,15,'photo_6376558.html');
												thumbnails[7537190] = new thumbnail(7537190,'408253',' MG 6908','_MG_6908_C0D269DF-24E8-5EC4-4F8EB2D88F767598_thumb.jpg',130, 195,15,'photo_7537190.html');
												thumbnails[7546574] = new thumbnail(7546574,'408253',' MG 7098-Edit','_MG_7098-Edit_thumb.jpg',130, 202,15,'photo_7546574.html');
												thumbnails[7569879] = new thumbnail(7569879,'408253',' MG 7194-Edit','_MG_7194-Edit_thumb.jpg',130, 165,15,'photo_7569879.html');
												thumbnails[7569951] = new thumbnail(7569951,'408253',' MG 7245','_MG_7245_thumb.jpg',130, 195,15,'photo_7569951.html');
												thumbnails[6376559] = new thumbnail(6376559,'95294','Central hall','CRW_9475-Edit_thumb.jpg',130, 195,15,'photo_6376559.html');
												thumbnails[7537191] = new thumbnail(7537191,'408253',' MG 6911-Edita','_MG_6911-Edit_C0D26D3B-24E8-5EC4-4FDD45F2C2198367_thumb.jpg',130, 173,15,'photo_7537191.html');
												thumbnails[7546575] = new thumbnail(7546575,'408253',' MG 7101-Edit','_MG_7101-Edit_thumb.jpg',130, 75,15,'photo_7546575.html');
												thumbnails[7569880] = new thumbnail(7569880,'408253',' MG 7195-Edit','_MG_7195-Edit_thumb.jpg',130, 161,15,'photo_7569880.html');
												thumbnails[7569952] = new thumbnail(7569952,'408253',' MG 7260','_MG_7260_thumb.jpg',130, 195,15,'photo_7569952.html');
												thumbnails[6376560] = new thumbnail(6376560,'95294','Arch','CRW_9817-Edit_thumb.jpg',130, 195,15,'photo_6376560.html');
												thumbnails[7537192] = new thumbnail(7537192,'408253',' MG 6912-Edit-3a','_MG_6912-Edit-3_C0D270E4-24E8-5EC4-4F7B2B82F350D6C5_thumb.jpg',130, 195,15,'photo_7537192.html');
												thumbnails[7546576] = new thumbnail(7546576,'408253',' MG 7102','_MG_7102_thumb.jpg',130, 190,15,'photo_7546576.html');
												thumbnails[7569881] = new thumbnail(7569881,'408253',' MG 7201','_MG_7201_thumb.jpg',130, 195,15,'photo_7569881.html');
												thumbnails[7569954] = new thumbnail(7569954,'408253',' MG 7262','_MG_7262_thumb.jpg',130, 195,15,'photo_7569954.html');
												thumbnails[6376561] = new thumbnail(6376561,'352540','Ferrari','IMG_0292-Edit_thumb.jpg',130, 173,15,'photo_6376561.html');
												thumbnails[7537194] = new thumbnail(7537194,'408253',' MG 6914-Edit-3a','_MG_6914-Edit-3_C0D274DC-24E8-5EC4-4F313E3EE9268111_thumb.jpg',130, 222,15,'photo_7537194.html');
												thumbnails[7546577] = new thumbnail(7546577,'408253',' MG 7103','_MG_7103_thumb.jpg',130, 195,15,'photo_7546577.html');
												thumbnails[7569882] = new thumbnail(7569882,'408253',' MG 7207','_MG_7207_thumb.jpg',130, 195,15,'photo_7569882.html');
												thumbnails[6376562] = new thumbnail(6376562,'95294','Cocoon shadow','IMG_0350-Edit-2_thumb.jpg',130, 173,15,'photo_6376562.html');
												thumbnails[7537195] = new thumbnail(7537195,'408253',' MG 6915-Edita','_MG_6915-Edit_C0D27827-24E8-5EC4-4F3A4C238457FB4B_thumb.jpg',130, 195,15,'photo_7537195.html');
												thumbnails[7546578] = new thumbnail(7546578,'408253',' MG 7104','_MG_7104_thumb.jpg',130, 191,15,'photo_7546578.html');
												thumbnails[7569883] = new thumbnail(7569883,'408253',' MG 7318-Edit','_MG_7318-Edit_thumb.jpg',130, 152,15,'photo_7569883.html');
												thumbnails[6376563] = new thumbnail(6376563,'95294','twilight','IMG_0387-Edit_thumb.jpg',130, 98,15,'photo_6376563.html');
												thumbnails[7537196] = new thumbnail(7537196,'408253',' MG 6924-Edita','_MG_6924-Edit_C0D27BA2-24E8-5EC4-4F4BE89ED224F343_thumb.jpg',130, 206,15,'photo_7537196.html');
												thumbnails[7546579] = new thumbnail(7546579,'408253',' MG 7105','_MG_7105_thumb.jpg',130, 87,15,'photo_7546579.html');
												thumbnails[7569884] = new thumbnail(7569884,'408253',' MG 7342','_MG_7342_thumb.jpg',130, 195,15,'photo_7569884.html');
												thumbnails[6376564] = new thumbnail(6376564,'95295','stadium','IMG_0421-Edit-Edit_thumb.jpg',130, 173,15,'photo_6376564.html');
												thumbnails[7537197] = new thumbnail(7537197,'408253',' MG 6925a','_MG_6925_C0D27EEE-24E8-5EC4-4F26FF5887D032B2_thumb.jpg',130, 195,15,'photo_7537197.html');
												thumbnails[7546580] = new thumbnail(7546580,'408253',' MG 7109','_MG_7109_thumb.jpg',130, 87,15,'photo_7546580.html');
												thumbnails[6376565] = new thumbnail(6376565,'95294','Fun fair','IMG_0662-Edit_thumb.jpg',130, 98,15,'photo_6376565.html');
												thumbnails[7537198] = new thumbnail(7537198,'408253',' MG 6930-Edita','_MG_6930-Edit_C0D28288-24E8-5EC4-4F6E233A99D570FA_thumb.jpg',130, 195,15,'photo_7537198.html');
												thumbnails[7546581] = new thumbnail(7546581,'408253',' MG 7111','_MG_7111_thumb.jpg',130, 87,15,'photo_7546581.html');
												thumbnails[6376566] = new thumbnail(6376566,'95294','Sunrise over London','IMG_0689-Edit_thumb.jpg',130, 173,15,'photo_6376566.html');
												thumbnails[7537200] = new thumbnail(7537200,'408253',' MG 6934-Edita','_MG_6934-Edit_C0D285E3-24E8-5EC4-4FAB4C18CB62E8BA_thumb.jpg',130, 195,15,'photo_7537200.html');
												thumbnails[7546582] = new thumbnail(7546582,'408253',' MG 7114','_MG_7114_thumb.jpg',130, 221,15,'photo_7546582.html');
												thumbnails[6376567] = new thumbnail(6376567,'95294','Beach colour','IMG_0871-Edit_thumb.jpg',130, 98,15,'photo_6376567.html');
												thumbnails[7537201] = new thumbnail(7537201,'408253',' MG 6936-Edita','_MG_6936-Edit_C0D2891F-24E8-5EC4-4FAC05CA205BA6A0_thumb.jpg',130, 111,15,'photo_7537201.html');
												thumbnails[7546583] = new thumbnail(7546583,'408253',' MG 7115-Edit','_MG_7115-Edit_thumb.jpg',130, 103,15,'photo_7546583.html');
												thumbnails[6376568] = new thumbnail(6376568,'95294','Reflection','IMG_0947-Edit-Edit-Edit_thumb.jpg',130, 98,15,'photo_6376568.html');
												thumbnails[7537202] = new thumbnail(7537202,'408253',' MG 6940-Edit-3a','_MG_6940-Edit-3_C0D28C5B-24E8-5EC4-4FCC05EE4397557E_thumb.jpg',130, 195,15,'photo_7537202.html');
												thumbnails[7546584] = new thumbnail(7546584,'408253',' MG 7120','_MG_7120_thumb.jpg',130, 195,15,'photo_7546584.html');
												thumbnails[6376569] = new thumbnail(6376569,'95294','Slate wall','_MG_1666_copy_copy_thumb.jpg',130, 195,15,'photo_6376569.html');
												thumbnails[7537203] = new thumbnail(7537203,'408253',' MG 6942-Edit-Edita','_MG_6942-Edit-Edit_C0D28FB7-24E8-5EC4-4F04EB4E12110F47_thumb.jpg',130, 195,15,'photo_7537203.html');
												thumbnails[7546585] = new thumbnail(7546585,'408253',' MG 7124','_MG_7124_thumb.jpg',130, 195,15,'photo_7546585.html');
												thumbnails[6376570] = new thumbnail(6376570,'355452','Stream HDR','_MG_2039_40_41v2_copy_copy_thumb.jpg',130, 86,15,'photo_6376570.html');
												thumbnails[7537204] = new thumbnail(7537204,'408253',' MG 6946-Edit-Edita','_MG_6946-Edit-Edit_C0D29370-24E8-5EC4-4F82A97D8D949563_thumb.jpg',130, 116,15,'photo_7537204.html');
												thumbnails[7546586] = new thumbnail(7546586,'408253',' MG 7125','_MG_7125_thumb.jpg',130, 183,15,'photo_7546586.html');
												thumbnails[6376571] = new thumbnail(6376571,'95294','Roof close up','_MG_2472-Edit_thumb.jpg',130, 195,15,'photo_6376571.html');
												thumbnails[7537205] = new thumbnail(7537205,'408253',' MG 6948-Edit-3-Edit-Edita','_MG_6948-Edit-3-Edit-Edit_C0D29748-24E8-5EC4-4F527649D63F26B6_thumb.jpg',130, 180,15,'photo_7537205.html');
												thumbnails[7546587] = new thumbnail(7546587,'408253',' MG 7127','_MG_7127_thumb.jpg',130, 183,15,'photo_7546587.html');
												thumbnails[6376572] = new thumbnail(6376572,'352540','Boats on the Avon','_MG_4502-Edit_thumb.jpg',130, 195,15,'photo_6376572.html');
												thumbnails[7537206] = new thumbnail(7537206,'408253',' MG 6950a','_MG_6950_C0D29C59-24E8-5EC4-4FFE374E4CAB1DD4_thumb.jpg',130, 195,15,'photo_7537206.html');
												thumbnails[7546588] = new thumbnail(7546588,'408253',' MG 7134','_MG_7134_thumb.jpg',130, 137,15,'photo_7546588.html');
												thumbnails[6376573] = new thumbnail(6376573,'352540','Oars','_MG_4511-Edit-Edit_thumb.jpg',130, 195,15,'photo_6376573.html');
												thumbnails[7537207] = new thumbnail(7537207,'408253',' MG 6952a','_MG_6952_C0D2A003-24E8-5EC4-4F1307D57B1C0710_thumb.jpg',130, 135,15,'photo_7537207.html');
												thumbnails[7546589] = new thumbnail(7546589,'408253',' MG 7135','_MG_7135_thumb.jpg',130, 213,15,'photo_7546589.html');
												thumbnails[6376574] = new thumbnail(6376574,'352540','Station decoration','_MG_4585-Edit-Edit_thumb.jpg',130, 195,15,'photo_6376574.html');
												thumbnails[7537208] = new thumbnail(7537208,'408253',' MG 6956a','_MG_6956_C0D2A310-24E8-5EC4-4F5E39328C222718_thumb.jpg',130, 181,15,'photo_7537208.html');
												thumbnails[7546590] = new thumbnail(7546590,'408253',' MG 7141','_MG_7141_thumb.jpg',130, 207,15,'photo_7546590.html');
												thumbnails[7537209] = new thumbnail(7537209,'408253',' MG 6961-Edit-3a','_MG_6961-Edit-3_C0D2A67B-24E8-5EC4-4F832437633528A5_thumb.jpg',130, 195,15,'photo_7537209.html');
												thumbnails[7546591] = new thumbnail(7546591,'408253',' MG 7145-Edit','_MG_7145-Edit_thumb.jpg',130, 87,15,'photo_7546591.html');
												thumbnails[6376578] = new thumbnail(6376578,'355461','All knowing eye','_MG_4859-Edit_bw_copy_thumb.jpg',130, 195,15,'photo_6376578.html');
												thumbnails[7537210] = new thumbnail(7537210,'408253',' MG 6965-Edita','_MG_6965-Edit_C0D2A9F6-24E8-5EC4-4F007503A8E6BD6C_thumb.jpg',130, 195,15,'photo_7537210.html');
												thumbnails[7546592] = new thumbnail(7546592,'408253',' MG 7148','_MG_7148_thumb.jpg',130, 201,15,'photo_7546592.html');
												thumbnails[7537211] = new thumbnail(7537211,'408253',' MG 6970-Edit-2-Edita','_MG_6970-Edit-2-Edit_C0D2AD51-24E8-5EC4-4F4801D354DF649B_thumb.jpg',130, 182,15,'photo_7537211.html');
												thumbnails[7546593] = new thumbnail(7546593,'408253',' MG 7152','_MG_7152_thumb.jpg',130, 87,15,'photo_7546593.html');
												thumbnails[7537212] = new thumbnail(7537212,'408253',' MG 6972-Edit-2a','_MG_6972-Edit-2_C0D2B0BC-24E8-5EC4-4F8EFA1E3F1C1529_thumb.jpg',130, 195,15,'photo_7537212.html');
												thumbnails[7546594] = new thumbnail(7546594,'408253',' MG 7159-Edit','_MG_7159-Edit_thumb.jpg',130, 85,15,'photo_7546594.html');
												thumbnails[7537213] = new thumbnail(7537213,'408253',' MG 6976-Edit-3a','_MG_6976-Edit-3_C0D2B446-24E8-5EC4-4F770B5F42302DFE_thumb.jpg',130, 195,15,'photo_7537213.html');
												thumbnails[7546595] = new thumbnail(7546595,'408253',' MG 7188','_MG_7188_thumb.jpg',130, 195,15,'photo_7546595.html');
												thumbnails[7537214] = new thumbnail(7537214,'408253',' MG 6978-Edita','_MG_6978-Edit_C0D2B7A2-24E8-5EC4-4F42F718311C6453_thumb.jpg',130, 195,15,'photo_7537214.html');
												thumbnails[7537215] = new thumbnail(7537215,'408253',' MG 6987-Edita','_MG_6987-Edit_C0D2BB3C-24E8-5EC4-4F906D8F95586AC7_thumb.jpg',130, 181,15,'photo_7537215.html');
												thumbnails[7537216] = new thumbnail(7537216,'408253',' MG 6991-Edita','_MG_6991-Edit_C0D2BE97-24E8-5EC4-4F6E439CF806CB20_thumb.jpg',130, 65,15,'photo_7537216.html');
												thumbnails[7537218] = new thumbnail(7537218,'408253',' MG 6992-Edita','_MG_6992-Edit_C0D2C241-24E8-5EC4-4F15B56CF6B05456_thumb.jpg',130, 195,15,'photo_7537218.html');
												thumbnails[7537219] = new thumbnail(7537219,'408253',' MG 6993a','_MG_6993_C0D2C648-24E8-5EC4-4FAA80A9E13EF376_thumb.jpg',130, 195,15,'photo_7537219.html');
												thumbnails[7537220] = new thumbnail(7537220,'408253',' MG 6994a','_MG_6994_C0D2C984-24E8-5EC4-4F78EED868659CA5_thumb.jpg',130, 87,15,'photo_7537220.html');
												thumbnails[7537221] = new thumbnail(7537221,'408253',' MG 6995-Edita','_MG_6995-Edit_C0D2CCDF-24E8-5EC4-4F16485B81117D9F_thumb.jpg',130, 192,15,'photo_7537221.html');
												thumbnails[7537222] = new thumbnail(7537222,'408253',' MG 6997-Edita','_MG_6997-Edit_C0D2D01C-24E8-5EC4-4F35CF0DE0779303_thumb.jpg',130, 174,15,'photo_7537222.html');
												thumbnails[7537224] = new thumbnail(7537224,'408253',' MG 7002-Edita','_MG_7002-Edit_C0D2D3E4-24E8-5EC4-4FD4D2FEDDF5792C_thumb.jpg',130, 87,15,'photo_7537224.html');
												thumbnails[7537225] = new thumbnail(7537225,'408253',' MG 7010-Edita','_MG_7010-Edit_C0D2D711-24E8-5EC4-4F5531961478BEFE_thumb.jpg',130, 106,15,'photo_7537225.html');
												thumbnails[7537226] = new thumbnail(7537226,'408253',' MG 7018-Edita','_MG_7018-Edit_C0D2DA1E-24E8-5EC4-4F5A2751A767EDBB_thumb.jpg',130, 76,15,'photo_7537226.html');
												thumbnails[7537228] = new thumbnail(7537228,'408253',' MG 7056a','_MG_7056_C0D2DE25-24E8-5EC4-4F3466A377130A5E_thumb.jpg',130, 195,15,'photo_7537228.html');
												thumbnails[7537229] = new thumbnail(7537229,'408253',' MG 7059a','_MG_7059_C0D2E190-24E8-5EC4-4F6C308B7F06942A_thumb.jpg',130, 195,15,'photo_7537229.html');
												thumbnails[7537230] = new thumbnail(7537230,'408253',' MG 7060-Edita','_MG_7060-Edit_C0D2E4EC-24E8-5EC4-4F25503037A5F9F9_thumb.jpg',130, 195,15,'photo_7537230.html');
												thumbnails[7537231] = new thumbnail(7537231,'408253',' MG 7062a','_MG_7062_C0D2E857-24E8-5EC4-4FDC058D32363774_thumb.jpg',130, 152,15,'photo_7537231.html');
												thumbnails[7537232] = new thumbnail(7537232,'408253',' MG 7063-Edita','_MG_7063-Edit_C0D2EBB2-24E8-5EC4-4FEF1DC441911B01_thumb.jpg',130, 175,15,'photo_7537232.html');
												thumbnails[7537233] = new thumbnail(7537233,'408253',' MG 7065a','_MG_7065_C0D2EEEE-24E8-5EC4-4F7254009104114B_thumb.jpg',130, 87,15,'photo_7537233.html');
												thumbnails[7537234] = new thumbnail(7537234,'408253',' MG 7066a','_MG_7066_C0D2F23A-24E8-5EC4-4F6E56D53E43988E_thumb.jpg',130, 157,15,'photo_7537234.html');
												thumbnails[7537235] = new thumbnail(7537235,'408253',' MG 7067a','_MG_7067_C0D2F5E4-24E8-5EC4-4FF50AAB681856B2_thumb.jpg',130, 195,15,'photo_7537235.html');
												thumbnails[7537236] = new thumbnail(7537236,'408253',' MG 7069a','_MG_7069_C0D2F93F-24E8-5EC4-4F3C1A2EFF8E1413_thumb.jpg',130, 195,15,'photo_7537236.html');
												thumbnails[7537237] = new thumbnail(7537237,'408253',' MG 7072a','_MG_7072_C0D2FC7B-24E8-5EC4-4F26B3F40C3D8B40_thumb.jpg',130, 95,15,'photo_7537237.html');
												thumbnails[7537238] = new thumbnail(7537238,'408253',' MG 7075a','_MG_7075_C0D2FFD7-24E8-5EC4-4F681396C2080298_thumb.jpg',130, 195,15,'photo_7537238.html');
												thumbnails[7537239] = new thumbnail(7537239,'408253',' MG 7078-Edita','_MG_7078-Edit_C0D30342-24E8-5EC4-4FCF6F73DFBD6050_thumb.jpg',130, 204,15,'photo_7537239.html');
												thumbnails[7537240] = new thumbnail(7537240,'408253',' MG 7088a','_MG_7088_C0D306CC-24E8-5EC4-4FE4BAC539DE5B19_thumb.jpg',130, 178,15,'photo_7537240.html');
												thumbnails[7537291] = new thumbnail(7537291,'408253',' MG 7052a','_MG_7052_C0E304CF-24E8-5EC4-4FAACEF7EC2E6A7C_thumb.jpg',130, 33,15,'photo_7537291.html');
												thumbnails[1393357] = new thumbnail(1393357,'158871','Bride - Studio shot','CRW_7578_thumb.jpg',130, 195,15,'photo_1393357.html');
												thumbnails[2481279] = new thumbnail(2481279,'158872',' MG 0642','_MG_0642editweb_thumb.jpg',130, 195,15,'photo_2481279.html');
												thumbnails[2481280] = new thumbnail(2481280,'158872',' MG 0643','_MG_0643editweb_thumb.jpg',130, 195,15,'photo_2481280.html');
												thumbnails[2481281] = new thumbnail(2481281,'158872',' MG 0662','_MG_0662editweb_thumb.jpg',130, 195,15,'photo_2481281.html');
												thumbnails[2481282] = new thumbnail(2481282,'158872',' MG 0678','_MG_0678editweb_thumb.jpg',130, 195,15,'photo_2481282.html');
												thumbnails[2481284] = new thumbnail(2481284,'158872',' MG 0695','_MG_0695editweb1_thumb.jpg',130, 184,15,'photo_2481284.html');
												thumbnails[2481285] = new thumbnail(2481285,'158872',' MG 0719','_MG_0719editweb_thumb.jpg',130, 249,15,'photo_2481285.html');
												thumbnails[2481286] = new thumbnail(2481286,'158872',' MG 0722','_MG_0722editweb_thumb.jpg',130, 249,15,'photo_2481286.html');
												thumbnails[2481287] = new thumbnail(2481287,'158872',' MG 0727','_MG_0727editweb_thumb.jpg',130, 195,15,'photo_2481287.html');
												thumbnails[2481288] = new thumbnail(2481288,'158872',' MG 0734','_MG_0734editweb_thumb.jpg',130, 195,15,'photo_2481288.html');
												thumbnails[2489883] = new thumbnail(2489883,'158871','CRW 7583web','CRW_7583web_thumb.jpg',130, 195,15,'photo_2489883.html');
												thumbnails[2489884] = new thumbnail(2489884,'158871','CRW 7592web','CRW_7592web_thumb.jpg',130, 195,15,'photo_2489884.html');
												thumbnails[2498906] = new thumbnail(2498906,'158872',' MG 1366edit','_MG_1366edit_thumb.jpg',130, 195,15,'photo_2498906.html');
												thumbnails[2563352] = new thumbnail(2563352,'158872',' MG 1265edit copy','_MG_1265edit copy_thumb.jpg',130, 87,15,'photo_2563352.html');
												thumbnails[1393368] = new thumbnail(1393368,'158871','Wedding Day','CRW_7643_thumb.jpg',130, 195,15,'photo_1393368.html');
												thumbnails[2482733] = new thumbnail(2482733,'158872',' MG 0925','_MG_0925editweb_thumb.jpg',130, 198,15,'photo_2482733.html');
												thumbnails[2482734] = new thumbnail(2482734,'158872',' MG 0936','_MG_0936editweb_thumb.jpg',130, 87,15,'photo_2482734.html');
												thumbnails[2482735] = new thumbnail(2482735,'158872',' MG 0940','_MG_0940editweb_thumb.jpg',130, 83,15,'photo_2482735.html');
												thumbnails[2483110] = new thumbnail(2483110,'158872',' MG 1330editweb','_MG_1330editweb_thumb.jpg',130, 95,15,'photo_2483110.html');
												thumbnails[2489885] = new thumbnail(2489885,'158871','CRW 7641web','CRW_7641web_thumb.jpg',130, 195,15,'photo_2489885.html');
												thumbnails[2489886] = new thumbnail(2489886,'158871','CRW 7659webweb','CRW_7659webweb_thumb.jpg',130, 102,15,'photo_2489886.html');
												thumbnails[2489887] = new thumbnail(2489887,'158871','CRW 7693web','CRW_7693web_thumb.jpg',130, 87,15,'photo_2489887.html');
												thumbnails[2489890] = new thumbnail(2489890,'158871','CRW 7773web','CRW_7773web_thumb.jpg',130, 87,15,'photo_2489890.html');
												thumbnails[2489891] = new thumbnail(2489891,'158871','CRW 7790web','CRW_7790web_thumb.jpg',130, 195,15,'photo_2489891.html');
												thumbnails[2481568] = new thumbnail(2481568,'158872',' MG 0989editweb','_MG_0989editweb_thumb.jpg',130, 87,15,'photo_2481568.html');
												thumbnails[2482745] = new thumbnail(2482745,'158872',' MG 1035','_MG_1035editweb_thumb.jpg',130, 87,15,'photo_2482745.html');
												thumbnails[2482746] = new thumbnail(2482746,'158872',' MG 1086','_MG_1086editweb_thumb.jpg',130, 87,15,'photo_2482746.html');
												thumbnails[2482747] = new thumbnail(2482747,'158872',' MG 1121editweb','_MG_1121editweb_thumb.jpg',130, 195,15,'photo_2482747.html');
												thumbnails[2482764] = new thumbnail(2482764,'158872',' MG 1218','_MG_1218editweb_thumb.jpg',130, 195,15,'photo_2482764.html');
												thumbnails[2482765] = new thumbnail(2482765,'158872',' MG 1233editweb','_MG_1233editweb_thumb.jpg',130, 89,15,'photo_2482765.html');
												thumbnails[2483102] = new thumbnail(2483102,'158872',' MG 1304','_MG_1304editweb_thumb.jpg',130, 93,15,'photo_2483102.html');
												thumbnails[2483104] = new thumbnail(2483104,'158872',' MG 1316editweb','_MG_1316editweb_thumb.jpg',130, 87,15,'photo_2483104.html');
												thumbnails[2483111] = new thumbnail(2483111,'158872',' MG 1335editweb','_MG_1335editweb_thumb.jpg',130, 195,15,'photo_2483111.html');
												thumbnails[2483287] = new thumbnail(2483287,'158872',' MG 1017','_MG_1017editweb_thumb.jpg',130, 195,15,'photo_2483287.html');
												thumbnails[2483288] = new thumbnail(2483288,'158872',' MG 1178b&wgrain','_MG_1178editeditb&wgrainweb_thumb.jpg',130, 195,15,'photo_2483288.html');
												thumbnails[2483289] = new thumbnail(2483289,'158872',' MG 1181editeditsepiaweb','_MG_1181editeditsepiaweb_thumb.jpg',130, 195,15,'photo_2483289.html');
												thumbnails[2483322] = new thumbnail(2483322,'158872',' MG 1108','_MG_1108editweb2_thumb.jpg',130, 197,15,'photo_2483322.html');
												thumbnails[2483328] = new thumbnail(2483328,'158872',' MG 1178','_MG_1178editweb1_thumb.jpg',130, 195,15,'photo_2483328.html');
												thumbnails[2483689] = new thumbnail(2483689,'158872',' MG 1341editweb','_MG_1341editweb_thumb.jpg',130, 195,15,'photo_2483689.html');
												thumbnails[2483745] = new thumbnail(2483745,'158872',' MG 1211','_MG_1211editweb_thumb.jpg',130, 87,15,'photo_2483745.html');
												thumbnails[2483781] = new thumbnail(2483781,'158872',' MG 1427edit','_MG_1427edit1_thumb.jpg',130, 195,15,'photo_2483781.html');
												thumbnails[2489888] = new thumbnail(2489888,'158871','CRW 7739web','CRW_7739web_thumb.jpg',130, 87,15,'photo_2489888.html');
												thumbnails[2489889] = new thumbnail(2489889,'158871','CRW 7757web','CRW_7757web_thumb.jpg',130, 87,15,'photo_2489889.html');
												thumbnails[2481569] = new thumbnail(2481569,'158872',' MG 0990editweb','_MG_0990editweb_thumb.jpg',130, 87,15,'photo_2481569.html');
												thumbnails[2482736] = new thumbnail(2482736,'158872',' MG 0946editweb','_MG_0946editweb_thumb.jpg',130, 75,15,'photo_2482736.html');
												thumbnails[2482748] = new thumbnail(2482748,'158872',' MG 1152editweb','_MG_1152editweb_thumb.jpg',130, 195,15,'photo_2482748.html');
												thumbnails[2483103] = new thumbnail(2483103,'158872',' MG 1310','_MG_1310editweb_thumb.jpg',130, 95,15,'photo_2483103.html');
												thumbnails[2483105] = new thumbnail(2483105,'158872',' MG 1319editweb','_MG_1319editweb_thumb.jpg',130, 87,15,'photo_2483105.html');
												thumbnails[2483109] = new thumbnail(2483109,'158872',' MG 1326','_MG_1326editweb_thumb.jpg',130, 91,15,'photo_2483109.html');
												thumbnails[2483112] = new thumbnail(2483112,'158872',' MG 1338editweb','_MG_1338editweb_thumb.jpg',130, 195,15,'photo_2483112.html');
												thumbnails[2483329] = new thumbnail(2483329,'158872',' MG 1182editweb','_MG_1182editweb1_thumb.jpg',130, 195,15,'photo_2483329.html');
												thumbnails[2483688] = new thumbnail(2483688,'158872',' MG 1337','_MG_1337editweb_thumb.jpg',130, 87,15,'photo_2483688.html');
												thumbnails[2483690] = new thumbnail(2483690,'158872',' MG 1343editweb','_MG_1343editweb_thumb.jpg',130, 195,15,'photo_2483690.html');
												thumbnails[2483779] = new thumbnail(2483779,'158872',' MG 1424','_MG_1424edit2_thumb.jpg',130, 195,15,'photo_2483779.html');
												thumbnails[2483782] = new thumbnail(2483782,'158872',' MG 1431edit','_MG_1431edit1_thumb.jpg',130, 195,15,'photo_2483782.html');
												thumbnails[2483799] = new thumbnail(2483799,'158872',' MG 1457','_MG_1457edit1_thumb.jpg',130, 195,15,'photo_2483799.html');
												thumbnails[2489892] = new thumbnail(2489892,'158871','CRW 7815web','CRW_7815web_thumb.jpg',130, 87,15,'photo_2489892.html');
												thumbnails[2489893] = new thumbnail(2489893,'158871','CRW 7828web','CRW_7828web_thumb.jpg',130, 195,15,'photo_2489893.html');
												thumbnails[2489894] = new thumbnail(2489894,'158871','CRW 7838web','CRW_7838web_thumb.jpg',130, 195,15,'photo_2489894.html');
												thumbnails[2489895] = new thumbnail(2489895,'158871','CRW 7876web','CRW_7876web_thumb.jpg',130, 195,15,'photo_2489895.html');
												thumbnails[2489992] = new thumbnail(2489992,'158871','IMG 7897web','IMG_7897web_thumb.jpg',130, 195,15,'photo_2489992.html');
												thumbnails[2489910] = new thumbnail(2489910,'158871','CRW 8061web','CRW_8061web_thumb.jpg',130, 81,15,'photo_2489910.html');
												thumbnails[1393374] = new thumbnail(1393374,'158871','Unconventional Toast','CRW_7987_thumb.jpg',130, 195,15,'photo_1393374.html');
												thumbnails[1420555] = new thumbnail(1420555,'158871','Wedding portrait','CRW_79501_thumb.jpg',130, 87,15,'photo_1420555.html');
												thumbnails[2481570] = new thumbnail(2481570,'158872',' MG 0994editweb','_MG_0994editweb_thumb.jpg',130, 87,15,'photo_2481570.html');
												thumbnails[2482737] = new thumbnail(2482737,'158872',' MG 0969editweb','_MG_0969editweb_thumb.jpg',130, 162,15,'photo_2482737.html');
												thumbnails[2482749] = new thumbnail(2482749,'158872',' MG 1159editweb','_MG_1159editweb_thumb.jpg',130, 195,15,'photo_2482749.html');
												thumbnails[2482766] = new thumbnail(2482766,'158872',' MG 1244editweb','_MG_1244editweb_thumb.jpg',130, 87,15,'photo_2482766.html');
												thumbnails[2483106] = new thumbnail(2483106,'158872',' MG 1326editvigweb','_MG_1326editvigweb_thumb.jpg',130, 90,15,'photo_2483106.html');
												thumbnails[2483113] = new thumbnail(2483113,'158872',' MG 1346editweb','_MG_1346editweb_thumb.jpg',130, 87,15,'photo_2483113.html');
												thumbnails[2483330] = new thumbnail(2483330,'158872',' MG 1183editeditsepiaweb','_MG_1183editeditsepiaweb1_thumb.jpg',130, 195,15,'photo_2483330.html');
												thumbnails[2483691] = new thumbnail(2483691,'158872',' MG 1350editweb','_MG_1350editweb_thumb.jpg',130, 87,15,'photo_2483691.html');
												thumbnails[2483780] = new thumbnail(2483780,'158872',' MG 1424sepia','_MG_1424editsepia1_thumb.jpg',130, 195,15,'photo_2483780.html');
												thumbnails[2483783] = new thumbnail(2483783,'158872',' MG 1442edit','_MG_1442edit_thumb.jpg',130, 195,15,'photo_2483783.html');
												thumbnails[2489990] = new thumbnail(2489990,'158871','CRW 7959aweb','CRW_7959aweb1_thumb.jpg',130, 71,15,'photo_2489990.html');
												thumbnails[2489991] = new thumbnail(2489991,'158871','CRW 7981web','CRW_7981web1_thumb.jpg',130, 75,15,'photo_2489991.html');
												thumbnails[2481571] = new thumbnail(2481571,'158872',' MG 1003editweb','_MG_1003editweb_thumb.jpg',130, 195,15,'photo_2481571.html');
												thumbnails[2482750] = new thumbnail(2482750,'158872',' MG 1160editweb','_MG_1160editweb_thumb.jpg',130, 102,15,'photo_2482750.html');
												thumbnails[2482767] = new thumbnail(2482767,'158872',' MG 1247editweb','_MG_1247editweb_thumb.jpg',130, 195,15,'photo_2482767.html');
												thumbnails[2483114] = new thumbnail(2483114,'158872',' MG 1348editweb','_MG_1348editweb_thumb.jpg',130, 195,15,'photo_2483114.html');
												thumbnails[2483692] = new thumbnail(2483692,'158872',' MG 1362editweb','_MG_1362editweb_thumb.jpg',130, 195,15,'photo_2483692.html');
												thumbnails[2483784] = new thumbnail(2483784,'158872',' MG 1445edit','_MG_1445edit_thumb.jpg',130, 195,15,'photo_2483784.html');
												thumbnails[2489898] = new thumbnail(2489898,'158871','CRW 8003web','CRW_8003web_thumb.jpg',130, 87,15,'photo_2489898.html');
												thumbnails[2489899] = new thumbnail(2489899,'158871','CRW 8004web','CRW_8004web_thumb.jpg',130, 87,15,'photo_2489899.html');
												thumbnails[2489900] = new thumbnail(2489900,'158871','CRW 8007web','CRW_8007web_thumb.jpg',130, 87,15,'photo_2489900.html');
												thumbnails[2489901] = new thumbnail(2489901,'158871','CRW 8010web','CRW_8010web_thumb.jpg',130, 93,15,'photo_2489901.html');
												thumbnails[2489902] = new thumbnail(2489902,'158871','CRW 8013web','CRW_8013web_thumb.jpg',130, 87,15,'photo_2489902.html');
												thumbnails[2489903] = new thumbnail(2489903,'158871','CRW 8020web','CRW_8020web_thumb.jpg',130, 87,15,'photo_2489903.html');
												thumbnails[2489904] = new thumbnail(2489904,'158871','CRW 8025web','CRW_8025web_thumb.jpg',130, 87,15,'photo_2489904.html');
												thumbnails[2489905] = new thumbnail(2489905,'158871','CRW 8031web','CRW_8031web_thumb.jpg',130, 87,15,'photo_2489905.html');
												thumbnails[2489906] = new thumbnail(2489906,'158871','CRW 8033web','CRW_8033web_thumb.jpg',130, 87,15,'photo_2489906.html');
												thumbnails[2481572] = new thumbnail(2481572,'158872',' MG 1008editweb','_MG_1008editweb_thumb.jpg',130, 194,15,'photo_2481572.html');
												thumbnails[2482751] = new thumbnail(2482751,'158872',' MG 1162editweb','_MG_1162editweb_thumb.jpg',130, 88,15,'photo_2482751.html');
												thumbnails[2483115] = new thumbnail(2483115,'158872',' MG 1354editweb','_MG_1354editweb_thumb.jpg',130, 204,15,'photo_2483115.html');
												thumbnails[2483693] = new thumbnail(2483693,'158872',' MG 1376editweb','_MG_1376editweb_thumb.jpg',130, 195,15,'photo_2483693.html');
												thumbnails[2483785] = new thumbnail(2483785,'158872',' MG 1448edit','_MG_1448edit1_thumb.jpg',130, 195,15,'photo_2483785.html');
												thumbnails[2489907] = new thumbnail(2489907,'158871','CRW 8036web','CRW_8036web_thumb.jpg',130, 195,15,'photo_2489907.html');
												thumbnails[2481573] = new thumbnail(2481573,'158872',' MG 1011editweb','_MG_1011editweb_thumb.jpg',130, 197,15,'photo_2481573.html');
												thumbnails[2482752] = new thumbnail(2482752,'158872',' MG 1168editweb','_MG_1168editweb_thumb.jpg',130, 195,15,'photo_2482752.html');
												thumbnails[2483116] = new thumbnail(2483116,'158872',' MG 1357editsepiaweb','_MG_1357editsepiaweb_thumb.jpg',130, 195,15,'photo_2483116.html');
												thumbnails[2483694] = new thumbnail(2483694,'158872',' MG 1394editweb','_MG_1394editweb_thumb.jpg',130, 195,15,'photo_2483694.html');
												thumbnails[2483786] = new thumbnail(2483786,'158872',' MG 1453edit','_MG_1453edit1_thumb.jpg',130, 105,15,'photo_2483786.html');
												thumbnails[2482753] = new thumbnail(2482753,'158872',' MG 1170editweb','_MG_1170editweb_thumb.jpg',130, 195,15,'photo_2482753.html');
												thumbnails[2482768] = new thumbnail(2482768,'158872',' MG 1277editweb','_MG_1277editweb_thumb.jpg',130, 88,15,'photo_2482768.html');
												thumbnails[2483117] = new thumbnail(2483117,'158872',' MG 1363editweb','_MG_1363editweb_thumb.jpg',130, 195,15,'photo_2483117.html');
												thumbnails[2483695] = new thumbnail(2483695,'158872',' MG 1402editbwpopweb','_MG_1402editbwpopweb_thumb.jpg',130, 195,15,'photo_2483695.html');
												thumbnails[2481574] = new thumbnail(2481574,'158872',' MG 1030editweb','_MG_1030editweb_thumb.jpg',130, 195,15,'photo_2481574.html');
												thumbnails[2482754] = new thumbnail(2482754,'158872',' MG 1175editweb','_MG_1175editweb_thumb.jpg',130, 195,15,'photo_2482754.html');
												thumbnails[2482769] = new thumbnail(2482769,'158872',' MG 1298editweb','_MG_1298editweb_thumb.jpg',130, 94,15,'photo_2482769.html');
												thumbnails[2483118] = new thumbnail(2483118,'158872',' MG 1369web','_MG_1369web_thumb.jpg',130, 195,15,'photo_2483118.html');
												thumbnails[2483696] = new thumbnail(2483696,'158872',' MG 1402editweb','_MG_1402editweb_thumb.jpg',130, 195,15,'photo_2483696.html');
												thumbnails[2483787] = new thumbnail(2483787,'158872',' MG 1461edit','_MG_1461edit1_thumb.jpg',130, 195,15,'photo_2483787.html');
												thumbnails[2481289] = new thumbnail(2481289,'158872',' MG 0923editBWweb','_MG_0923editBWweb_thumb.jpg',130, 195,15,'photo_2481289.html');
												thumbnails[2483096] = new thumbnail(2483096,'158872',' MG 1228editweb','_MG_1228editweb_thumb.jpg',130, 87,15,'photo_2483096.html');
												thumbnails[2483119] = new thumbnail(2483119,'158872',' MG 1378editweb','_MG_1378editweb_thumb.jpg',130, 195,15,'photo_2483119.html');
												thumbnails[2483697] = new thumbnail(2483697,'158872',' MG 1410editweb','_MG_1410editweb_thumb.jpg',130, 195,15,'photo_2483697.html');
												thumbnails[2483788] = new thumbnail(2483788,'158872',' MG 1470edit','_MG_1470edit1_thumb.jpg',130, 195,15,'photo_2483788.html');
												thumbnails[2481290] = new thumbnail(2481290,'158872',' MG 0923editweb','_MG_0923editweb_thumb.jpg',130, 195,15,'photo_2481290.html');
												thumbnails[2481575] = new thumbnail(2481575,'158872',' MG 1049editweb','_MG_1049editweb_thumb.jpg',130, 195,15,'photo_2481575.html');
												thumbnails[2483120] = new thumbnail(2483120,'158872',' MG 1387editweb','_MG_1387editweb_thumb.jpg',130, 195,15,'photo_2483120.html');
												thumbnails[2483698] = new thumbnail(2483698,'158872',' MG 1413editweb','_MG_1413editweb_thumb.jpg',130, 195,15,'photo_2483698.html');
												thumbnails[2483789] = new thumbnail(2483789,'158872',' MG 1471edit','_MG_1471edit2_thumb.jpg',130, 195,15,'photo_2483789.html');
												thumbnails[2481576] = new thumbnail(2481576,'158872',' MG 1056editweb','_MG_1056editweb_thumb.jpg',130, 195,15,'photo_2481576.html');
												thumbnails[2483121] = new thumbnail(2483121,'158872',' MG 1392editweb','_MG_1392editweb_thumb.jpg',130, 205,15,'photo_2483121.html');
												thumbnails[2483699] = new thumbnail(2483699,'158872',' MG 1424edit copy','_MG_1424edit copy_thumb.jpg',130, 195,15,'photo_2483699.html');
												thumbnails[2483790] = new thumbnail(2483790,'158872',' MG 1472edit','_MG_1472edit1_thumb.jpg',130, 195,15,'photo_2483790.html');
												thumbnails[2481577] = new thumbnail(2481577,'158872',' MG 1063editweb','_MG_1063editweb_thumb.jpg',130, 195,15,'photo_2481577.html');
												thumbnails[2483098] = new thumbnail(2483098,'158872',' MG 1267editweb','_MG_1267editweb_thumb.jpg',130, 93,15,'photo_2483098.html');
												thumbnails[2483122] = new thumbnail(2483122,'158872',' MG 1399editweb','_MG_1399editweb_thumb.jpg',130, 195,15,'photo_2483122.html');
												thumbnails[2483791] = new thumbnail(2483791,'158872',' MG 1474edit','_MG_1474edit1_thumb.jpg',130, 195,15,'photo_2483791.html');
												thumbnails[2481578] = new thumbnail(2481578,'158872',' MG 1072editweb','_MG_1072editweb_thumb.jpg',130, 230,15,'photo_2481578.html');
												thumbnails[2483101] = new thumbnail(2483101,'158872',' MG 1240editweb','_MG_1240editweb_thumb.jpg',130, 87,15,'photo_2483101.html');
												thumbnails[2483123] = new thumbnail(2483123,'158872',' MG 1405editweb','_MG_1405editweb_thumb.jpg',130, 195,15,'photo_2483123.html');
												thumbnails[2483792] = new thumbnail(2483792,'158872',' MG 1475edit','_MG_1475edit1_thumb.jpg',130, 195,15,'photo_2483792.html');
												thumbnails[2481579] = new thumbnail(2481579,'158872',' MG 1078editweb','_MG_1078editweb_thumb.jpg',130, 209,15,'photo_2481579.html');
												thumbnails[2483124] = new thumbnail(2483124,'158872',' MG 1420editweb','_MG_1420editweb_thumb.jpg',130, 195,15,'photo_2483124.html');
												thumbnails[2483793] = new thumbnail(2483793,'158872',' MG 1476edit','_MG_1476edit1_thumb.jpg',130, 179,15,'photo_2483793.html');
												thumbnails[2481580] = new thumbnail(2481580,'158872',' MG 1081editweb','_MG_1081editweb_thumb.jpg',130, 195,15,'photo_2481580.html');
												thumbnails[2483794] = new thumbnail(2483794,'158872',' MG 1480edit','_MG_1480edit1_thumb.jpg',130, 195,15,'photo_2483794.html');
												thumbnails[2483795] = new thumbnail(2483795,'158872',' MG 1488edit','_MG_1488edit1_thumb.jpg',130, 195,15,'photo_2483795.html');
												thumbnails[2481581] = new thumbnail(2481581,'158872',' MG 1102editweb','_MG_1102editweb_thumb.jpg',130, 195,15,'photo_2481581.html');
												thumbnails[2483796] = new thumbnail(2483796,'158872',' MG 1491edit','_MG_1491edit1_thumb.jpg',130, 195,15,'photo_2483796.html');
												thumbnails[2481583] = new thumbnail(2481583,'158872',' MG 1116editweb','_MG_1116editweb_thumb.jpg',130, 195,15,'photo_2481583.html');
												thumbnails[2481584] = new thumbnail(2481584,'158872',' MG 1130editweb','_MG_1130editweb_thumb.jpg',130, 195,15,'photo_2481584.html');
												thumbnails[2489908] = new thumbnail(2489908,'158871','CRW 8044web','CRW_8044web_thumb.jpg',130, 195,15,'photo_2489908.html');
												thumbnails[2489909] = new thumbnail(2489909,'158871','CRW 8048web','CRW_8048web_thumb.jpg',130, 195,15,'photo_2489909.html');
												thumbnails[2489911] = new thumbnail(2489911,'158871','CRW 8076web','CRW_8076web_thumb.jpg',130, 87,15,'photo_2489911.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[95294] = new gallery(95294,'6376571,6376569,6376566,6376563,6376559,6376558,6365434,6365433,6365429,1393481','Architecture','gallery',[1393153,1393168,1393424,1393472,1393475,1393477,1393479,1393481,1393820,6365404,6365411,6365429,6365432,6365433,6365434,6365435,6365493,6376556,6376558,6376559,6376560,6376562,6376563,6376565,6376566,6376567,6376568,6376569,6376571],0, 0, '', 'gallery_95294.html',0,0);
				  					galleries[355452] = new gallery(355452,'6376570,6365405','HDR','gallery',[6365405,6376570],0, 0, '', 'gallery_355452.html',0,0);
				  					galleries[158871] = new gallery(158871,'2489992,2489991,2489990,2489911,2489910,2489909,2489908,2489907,2489906,2489905','Helen & Stuart\'s Wedding','section201229',[1393357,2489883,2489884,1393368,2489885,2489886,2489887,2489890,2489891,2489888,2489889,2489892,2489893,2489894,2489895,2489992,2489910,1393374,1420555,2489990,2489991,2489898,2489899,2489900,2489901,2489902,2489903,2489904,2489905,2489906,2489907,2489908,2489909,2489911],0, 0, '', 'section201229_158871.html',0,0);
				  					galleries[95293] = new gallery(95293,'1393161','Landscapes','gallery',[1393017,1393019,1393024,1393037,1393137,1393140,1393142,1393157,1393161,1393164,1393165,1393166,1393452,6365402],0, 0, '', 'gallery_95293.html',0,0);
				  					galleries[158872] = new gallery(158872,'2563352,2498906,2483799,2483796,2483795,2483794,2483793,2483792,2483791,2483790','Liz & Arthur\'s Wedding','section201229',[2481279,2481280,2481281,2481282,2481284,2481285,2481286,2481287,2481288,2498906,2563352,2482733,2482734,2482735,2483110,2481568,2482745,2482746,2482747,2482764,2482765,2483102,2483104,2483111,2483287,2483288,2483289,2483322,2483328,2483689,2483745,2483781,2481569,2482736,2482748,2483103,2483105,2483109,2483112,2483329,2483688,2483690,2483779,2483782,2483799,2481570,2482737,2482749,2482766,2483106,2483113,2483330,2483691,2483780,2483783,2481571,2482750,2482767,2483114,2483692,2483784,2481572,2482751,2483115,2483693,2483785,2481573,2482752,2483116,2483694,2483786,2482753,2482768,2483117,2483695,2481574,2482754,2482769,2483118,2483696,2483787,2481289,2483096,2483119,2483697,2483788,2481290,2481575,2483120,2483698,2483789,2481576,2483121,2483699,2483790,2481577,2483098,2483122,2483791,2481578,2483101,2483123,2483792,2481579,2483124,2483793,2481580,2483794,2483795,2481581,2483796,2481583,2481584],0, 0, '', 'section201229_158872.html',0,0);
				  					galleries[95295] = new gallery(95295,'6376564','Miscellaneous','gallery',[6365426,6365428,6376564],0, 0, '', 'gallery_95295.html',0,0);
				  					galleries[355460] = new gallery(355460,'6365437,1393310','Plants','gallery',[1393009,1393011,1393013,1393039,1393041,1393092,1393207,1393229,1393302,1393303,1393305,1393306,1393310,1393311,1393312,1393339,1393467,1393700,6365427,6365437],0, 0, '', 'gallery_355460.html',0,0);
				  					galleries[352542] = new gallery(352542,'1393470','Still Life','gallery',[1393470,6365406,6365407,6365412],0, 0, '', 'gallery_352542.html',0,0);
				  					galleries[352540] = new gallery(352540,'6376574,6376573,6376572,6376561,6365693,6365425,6365408,2502246,1393485','Transport','gallery',[1393485,2502246,6365408,6365425,6365693,6376561,6376572,6376573,6376574],0, 0, '', 'gallery_352540.html',0,0);
				  					galleries[95292] = new gallery(95292,'6365431,1393529','Underwater','gallery',[1393457,1393459,1393461,1393464,1393529,6365430,6365431],0, 0, '', 'gallery_95292.html',0,0);
				  					galleries[408253] = new gallery(408253,'7569954,7569952,7569951,7569884,7569883,7569882,7569881,7569880,7569879,7546595','Venice','gallery',[7537190,7546574,7569879,7569951,7537191,7546575,7569880,7569952,7537192,7546576,7569881,7569954,7537194,7546577,7569882,7537195,7546578,7569883,7537196,7546579,7569884,7537197,7546580,7537198,7546581,7537200,7546582,7537201,7546583,7537202,7546584,7537203,7546585,7537204,7546586,7537205,7546587,7537206,7546588,7537207,7546589,7537208,7546590,7537209,7546591,7537210,7546592,7537211,7546593,7537212,7546594,7537213,7546595,7537214,7537215,7537216,7537218,7537219,7537220,7537221,7537222,7537224,7537225,7537226,7537228,7537229,7537230,7537231,7537232,7537233,7537234,7537235,7537236,7537237,7537238,7537239,7537240,7537291],0, 0, '', 'gallery_408253.html',0,0);
				  					galleries[355461] = new gallery(355461,'6376578,6365494,1393487','Wildlife','gallery',[1393132,1393301,1393487,1393490,6365422,6365494,6365684,6376578],0, 0, '', 'gallery_355461.html',0,0);
				  					galleries[84243] = new gallery(84243,'6365495,1393407','Portraits','gallery',[1393375,1393377,1393378,1393389,1393407,2502247,2502248,6365495],0, 0, '', 'gallery_84243.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6376578,6376570,6376569,6376566,6376559,6365495,6365494,6365437,6365434,6365426,6365405,1393479,1393459,1393041';
imageSets[2] = '6376578,6376571,6376570,6376569,6376566,6376564,6376563,6376559,6376558,6365495,6365494,6365437,6365434,6365433,6365431,6365429,6365405,1393529,1393487,1393481,1393470,1393407,1393310,1393161';
imageSets[3] = '7569954,7569952,7569951,7569884,7569883,7569882,7569881,7569880,7569879,7546595,7546594,7546593,7546592,7546591,7546590,7546589,7546588,7546587,7546586,7546585,7546584,7546583,7546582,7546581,7546580,7546579,7546578,7546577,7546576,7546575,7546574,7537291,7537240,7537239,7537238,7537237,7537236,7537235,7537234,7537233,7537232,7537231,7537230,7537229,7537228,7537226,7537225,7537224,7537222,7537221';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Glynnan/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Glynnan/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 = 'Barham-Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="Glynnanbarham@yahoo.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="Glynnanbarham@yahoo.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							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;
	}
}

			

