window.thumbnails = new Object();
												thumbnails[7230092] = new thumbnail(7230092,'','','500x500_eye_thumb.jpg',130, 130,5,'							photo_7230092.html');
												thumbnails[7233875] = new thumbnail(7233875,'360935','Darren Huckerby','IMG_3411aa1_thumb.jpg',130, 104,5,'							photo_7233875.html');
												thumbnails[6718049] = new thumbnail(6718049,'358866','Alby Craft Gardens ','500x500_thumb.jpg',130, 130,5,'							photo_6718049.html');
												thumbnails[6718876] = new thumbnail(6718876,'358863','Gary Lineker OBE','Gary_Linkear_thumb.jpg',130, 134,5,'							photo_6718876.html');
												thumbnails[6725825] = new thumbnail(6725825,'358861','KNG 711 Eastern Counties LL 711 Bristol L5G/ECW B35R','IMG_0883aweb2_thumb.jpg',130, 194,5,'							photo_6725825.html');
												thumbnails[6796516] = new thumbnail(6796516,'359003','Handcrafted Titanium Rings by Barry Mills','Titanium_Rings1_thumb.jpg',130, 134,5,'							photo_6796516.html');
												thumbnails[7233869] = new thumbnail(7233869,'361093','XAH 305 Thames Trader','IMG_7742aweb1_thumb.jpg',130, 121,5,'							photo_7233869.html');
												thumbnails[7233872] = new thumbnail(7233872,'360940','British Touring Cars BTCC','IMG_5917aweb1_thumb.jpg',130, 112,5,'							photo_7233872.html');
												thumbnails[7233873] = new thumbnail(7233873,'360938','Keswick All Saints Church near Norwich','IMG_6105aweb1_thumb.jpg',130, 85,5,'							photo_7233873.html');
												thumbnails[7233876] = new thumbnail(7233876,'360939','Cavendish','P1010021web21_thumb.jpg',130, 97,5,'							photo_7233876.html');
												thumbnails[7233878] = new thumbnail(7233878,'367984','Hingham Town Sign','IMG_0048web21_thumb.jpg',130, 103,5,'							photo_7233878.html');
												thumbnails[7233881] = new thumbnail(7233881,'360936','Beach Pebbles','P10100081_thumb.jpg',130, 130,5,'							photo_7233881.html');
												thumbnails[7236604] = new thumbnail(7236604,'360941','AC Schnitzer Mini','IMG_4954aweba3_thumb.jpg',130, 87,5,'							photo_7236604.html');
												thumbnails[7238860] = new thumbnail(7238860,'367386','1951 Bedford SB/Duple C33F','2a_thumb.jpg',130, 105,5,'							photo_7238860.html');
												thumbnails[6733536] = new thumbnail(6733536,'358861','KNG 711 Eastern Counties LL 711 Bristol L5G/ECW B35R','IMG_7680web_thumb.jpg',130, 156,5,'							photo_6733536.html');
												thumbnails[6753692] = new thumbnail(6753692,'367386','MPW 455 1951 Bedford SB/Duple C33F Interior ','IMG_7708_thumb.JPG',130, 87,5,'							photo_6753692.html');
												thumbnails[6756549] = new thumbnail(6756549,'360940','British Touring Cars BTCC','IMG_5923a4_thumb.jpg',130, 57,5,'							photo_6756549.html');
												thumbnails[6756546] = new thumbnail(6756546,'360940','British Touring Cars BTCC','IMG_5915web_thumb.jpg',130, 73,5,'							photo_6756546.html');
												thumbnails[6756550] = new thumbnail(6756550,'360940','British Touring Cars BTCC','IMG_5929a2_thumb.jpg',130, 77,5,'							photo_6756550.html');
												thumbnails[6716003] = new thumbnail(6716003,'360940','British Touring Cars BTCC','IMG_5892aaweb21_thumb.jpg',130, 65,5,'							photo_6716003.html');
												thumbnails[6756432] = new thumbnail(6756432,'360940','Mini Saloon Car','Miniweb_thumb.jpg',130, 101,5,'							photo_6756432.html');
												thumbnails[6756540] = new thumbnail(6756540,'360940','Ford Focus WRC Rally Car Debut','Focus3web3_thumb.jpg',130, 78,5,'							photo_6756540.html');
												thumbnails[6756579] = new thumbnail(6756579,'360935','Darren Huckerby','IMG_3285aweb2_thumb.jpg',130, 110,5,'							photo_6756579.html');
												thumbnails[6718649] = new thumbnail(6718649,'360941','AC Schnitzer Mini Interior','IMG_4964web_thumb.jpg',130, 90,5,'							photo_6718649.html');
												thumbnails[6725831] = new thumbnail(6725831,'358861','KNG 718 Eastern Counties LL 718 Bristol L5G/ECW B358','KNG-718_thumb.jpg',130, 130,5,'							photo_6725831.html');
												thumbnails[6756594] = new thumbnail(6756594,'367984','East Carleton Village Sign','IMG_7667web_thumb.jpg',130, 150,5,'							photo_6756594.html');
												thumbnails[6756623] = new thumbnail(6756623,'358863','Gary Lineker OBE','IMG_1777aweb_thumb.jpg',130, 151,5,'							photo_6756623.html');
												thumbnails[6763570] = new thumbnail(6763570,'367386','BMS 206 1947 Leyland Tiger PS1/Alexanfra C35F','IMG_7670web_thumb.jpg',130, 116,5,'							photo_6763570.html');
												thumbnails[6763704] = new thumbnail(6763704,'361093','WFF 634 Bedford O Type Dropside Truck','IMG_7739aweb2_thumb.jpg',130, 90,5,'							photo_6763704.html');
												thumbnails[6795869] = new thumbnail(6795869,'360939','Cavendish','P1010007web4_thumb.jpg',130, 97,5,'							photo_6795869.html');
												thumbnails[6796517] = new thumbnail(6796517,'359003','Titanium Rings Barry Mills','home_rings11_thumb.jpg',130, 78,5,'							photo_6796517.html');
												thumbnails[6801346] = new thumbnail(6801346,'358866','Peter Beales Roses','P1010040aweb_thumb.jpg',130, 130,5,'							photo_6801346.html');
												thumbnails[6840511] = new thumbnail(6840511,'360936','Beach Pebbles','P1010011a_thumb.jpg',130, 97,5,'							photo_6840511.html');
												thumbnails[7050185] = new thumbnail(7050185,'360938','Keswick All Saints Church, near Norwich','IMG_6110aweb_thumb.jpg',130, 56,5,'							photo_7050185.html');
												thumbnails[6733545] = new thumbnail(6733545,'358861','KNG 718 Eastern Counties LL 718 Bristol L5G/ECW B35R','KNG_718_thumb.jpg',130, 97,5,'							photo_6733545.html');
												thumbnails[6756580] = new thumbnail(6756580,'360935','Darren Huckerby','IMG_3843aweb2_thumb.jpg',130, 130,5,'							photo_6756580.html');
												thumbnails[6722241] = new thumbnail(6722241,'360938','Weybourne from the North Norfolk Railway - Poppy Line','IMG_7633aweb_thumb.jpg',130, 130,5,'							photo_6722241.html');
												thumbnails[6756626] = new thumbnail(6756626,'358863','Lord Heseltine','IMG_2520_thumb.JPG',130, 141,5,'							photo_6756626.html');
												thumbnails[6763572] = new thumbnail(6763572,'367386','RRM 148M 1973 Leyland National Mark 1 Demonstrator PA44','IMG_7699a_thumb.jpg',130, 107,5,'							photo_6763572.html');
												thumbnails[6763706] = new thumbnail(6763706,'361093','JCL 921 Albion','IMG_7743aweb2_thumb.jpg',130, 113,5,'							photo_6763706.html');
												thumbnails[6795868] = new thumbnail(6795868,'360939','Cavendish','P1010025web_thumb.jpg',130, 96,5,'							photo_6795868.html');
												thumbnails[6796342] = new thumbnail(6796342,'359003','The Owl Tea Rooms','IMG_0401aaweb_thumb.jpg',130, 79,5,'							photo_6796342.html');
												thumbnails[6801347] = new thumbnail(6801347,'358866','Peter Beales Roses','P1010001aweb_thumb.jpg',130, 130,5,'							photo_6801347.html');
												thumbnails[6840513] = new thumbnail(6840513,'360936','Cotswold Countryside','IMG_7100a_thumb.jpg',130, 55,5,'							photo_6840513.html');
												thumbnails[6718555] = new thumbnail(6718555,'358866','Anglesey Abbey','IMG_7504aaaweb_thumb.jpg',130, 130,5,'							photo_6718555.html');
												thumbnails[7239182] = new thumbnail(7239182,'367386','Bedford OB Duple Coach','IMG_6037a_edited-1web_thumb.jpg',130, 126,5,'							photo_7239182.html');
												thumbnails[7239200] = new thumbnail(7239200,'367386','Bedford OB Duple Coach, Sun Stream Services','IMG_6046web_thumb.jpg',130, 129,5,'							photo_7239200.html');
												thumbnails[7239207] = new thumbnail(7239207,'367386','AEC Reliance MV3RV/Roe C41C  Coach Pride O\' the Wolds','IMG_6036web_thumb.jpg',130, 114,5,'							photo_7239207.html');
												thumbnails[7239213] = new thumbnail(7239213,'367386','AEC Reliance MV3RV/Roe C41C  Coach Pride O\' the Wolds','IMG_6045aweb_thumb.jpg',130, 122,5,'							photo_7239213.html');
												thumbnails[7239394] = new thumbnail(7239394,'367386','VNO 859 Bristol KSW5G/ECW L27/28RD','VNO-859web_thumb.jpg',130, 127,5,'							photo_7239394.html');
												thumbnails[7230329] = new thumbnail(7230329,'360935','Malky Mackay ','IMG_3882aweb2f_thumb.jpg',130, 134,5,'							photo_7230329.html');
												thumbnails[6756628] = new thumbnail(6756628,'358863','Duke of York','IMG_2529abweb_thumb.jpg',130, 163,5,'							photo_6756628.html');
												thumbnails[6763707] = new thumbnail(6763707,'361093','7329 AH Bedford CA Dropside Truck','IMG_7746aweb2_thumb.jpg',130, 121,5,'							photo_6763707.html');
												thumbnails[6795870] = new thumbnail(6795870,'360939','Southwold Pier','IMG_0169aweb_thumb.jpg',130, 81,5,'							photo_6795870.html');
												thumbnails[6796343] = new thumbnail(6796343,'359003','The Owl Tea Rooms','IMG_0422aweb_thumb.jpg',130, 151,5,'							photo_6796343.html');
												thumbnails[6798576] = new thumbnail(6798576,'360938','Weybourne North Norfolk Railway Poppy Line','IMG_7626abbbweb_thumb.jpg',130, 53,5,'							photo_6798576.html');
												thumbnails[6876949] = new thumbnail(6876949,'358861','Eastern Counties Bristol L5G/ECW B35R Cab','IMG_7678web_thumb.jpg',130, 97,5,'							photo_6876949.html');
												thumbnails[7239413] = new thumbnail(7239413,'367386','Upper Deck Aisle - VNO 859 Bristol KSW5G/ECW L27/28RD','IMG_7716web_thumb.jpg',130, 87,5,'							photo_7239413.html');
												thumbnails[7239417] = new thumbnail(7239417,'367386','Upper Deck Seating - VNO 859 Bristol KSW5G/ECW L27/28RD','IMG_7717aweb_thumb.jpg',130, 92,5,'							photo_7239417.html');
												thumbnails[6718559] = new thumbnail(6718559,'358866','Eden Project','P1010057bweb2_thumb.jpg',130, 130,5,'							photo_6718559.html');
												thumbnails[7239421] = new thumbnail(7239421,'367386','Upper Deck Passenger Notice - VNO 859 Bristol KSW5G/ECW L27/28RD','IMG_7720web_thumb.jpg',130, 99,5,'							photo_7239421.html');
												thumbnails[7230330] = new thumbnail(7230330,'360935','Ipswich Goal Mouth Scamble','IMG_3903aweb2b_thumb.jpg',130, 108,5,'							photo_7230330.html');
												thumbnails[6733450] = new thumbnail(6733450,'358861','Eastern Counties Bristol L5G/ECW B35R Interior','IMG_7675web2_thumb.jpg',130, 103,5,'							photo_6733450.html');
												thumbnails[6756629] = new thumbnail(6756629,'358863','Paul McKenna','IMG_1094a_thumb.jpg',130, 202,5,'							photo_6756629.html');
												thumbnails[6796348] = new thumbnail(6796348,'359003','The Owl Tea Rooms','IMG_0413aweb_thumb.jpg',130, 83,5,'							photo_6796348.html');
												thumbnails[6798578] = new thumbnail(6798578,'360938','A Norfolk Wherry','PIC00008web_thumb.jpg',130, 163,5,'							photo_6798578.html');
												thumbnails[6801350] = new thumbnail(6801350,'358866','Peter Beales Roses','P1010014aweb_thumb.jpg',130, 130,5,'							photo_6801350.html');
												thumbnails[6756581] = new thumbnail(6756581,'360935','Leon McKenzie','IMG_2489a3_thumb.jpg',130, 122,5,'							photo_6756581.html');
												thumbnails[6733581] = new thumbnail(6733581,'358861','KNG 711 Eastern Counties LL 711 Bristol L5G/ECW B35R Interior','IMG_7679web1_thumb.jpg',130, 92,5,'							photo_6733581.html');
												thumbnails[6756625] = new thumbnail(6756625,'358863','Ladies Football Team','0870bweb_thumb.jpg',130, 69,5,'							photo_6756625.html');
												thumbnails[6796424] = new thumbnail(6796424,'359003','The Royal Norwich','The-Royal-Beforeweb1_thumb.jpg',130, 205,5,'							photo_6796424.html');
												thumbnails[6801353] = new thumbnail(6801353,'358866','Peter Beales Roses','P1010010aweb_thumb.jpg',130, 130,5,'							photo_6801353.html');
												thumbnails[6756582] = new thumbnail(6756582,'360935','Malky Mackay','IMG_3110aweb2_thumb.jpg',130, 100,5,'							photo_6756582.html');
												thumbnails[6725828] = new thumbnail(6725828,'358861','5789 AH Eastern Counties LS 789 Bristol MW5G/ECW C39F & KNG 718 Eastern Counties LL 718 Bristol L5G/ECW B35R','IMG_2890aaaweb_thumb.jpg',130, 110,5,'							photo_6725828.html');
												thumbnails[6796462] = new thumbnail(6796462,'359003','The Royal Norwich','The-Royal--Afterweb1_thumb.jpg',130, 164,5,'							photo_6796462.html');
												thumbnails[6801355] = new thumbnail(6801355,'358866','Peter Beales Roses','P1010033aweb_thumb.jpg',130, 130,5,'							photo_6801355.html');
												thumbnails[6718055] = new thumbnail(6718055,'358866','The Eden Project','500x500c_thumb.jpg',130, 130,5,'							photo_6718055.html');
												thumbnails[6756583] = new thumbnail(6756583,'360935','Gary Holt','IMG_3204aweb2_thumb.jpg',130, 133,5,'							photo_6756583.html');
												thumbnails[6725826] = new thumbnail(6725826,'358861','5789 AH Eastern Counties LS 789 Bristol MW5G/ECW C39F','IMG_2885aweb_thumb.jpg',130, 108,5,'							photo_6725826.html');
												thumbnails[6796501] = new thumbnail(6796501,'359003','Construction of the Chapelfield Shopping Centre','IMG_0948a_thumb.jpg',130, 165,5,'							photo_6796501.html');
												thumbnails[6801503] = new thumbnail(6801503,'358866','Peter Beales Roses ','P1010038aweb_thumb.jpg',130, 139,5,'							photo_6801503.html');
												thumbnails[6718556] = new thumbnail(6718556,'358866','Old Vicarage Gardens, East Ruston, Norfolk','IMG_7868aweb2_thumb.jpg',130, 130,5,'							photo_6718556.html');
												thumbnails[6756586] = new thumbnail(6756586,'360935','Gary Holt','IMG_3666aweb2_thumb.jpg',130, 94,5,'							photo_6756586.html');
												thumbnails[6733646] = new thumbnail(6733646,'358861','5789 AH Eastern Counties LS 789 Bristol MW5G/ECW C39F','IMG_2887abweb_thumb.jpg',130, 159,5,'							photo_6733646.html');
												thumbnails[6796512] = new thumbnail(6796512,'359003','Construction of a Timber Framed House','37web1_thumb.jpg',130, 131,5,'							photo_6796512.html');
												thumbnails[6801505] = new thumbnail(6801505,'358866','Peter Beales Roses ','P1010008aweb_thumb.jpg',130, 130,5,'							photo_6801505.html');
												thumbnails[7236781] = new thumbnail(7236781,'361093','','Thumb_thumb.jpg',130, 130,5,'							photo_7236781.html');
												thumbnails[7236859] = new thumbnail(7236859,'360940','','Thumb1_thumb.jpg',130, 130,5,'							photo_7236859.html');
												thumbnails[7236910] = new thumbnail(7236910,'360936','','Thumb2_thumb.jpg',130, 130,5,'							photo_7236910.html');
												thumbnails[7236923] = new thumbnail(7236923,'360938','','Thumb3_thumb.jpg',130, 130,5,'							photo_7236923.html');
												thumbnails[7236966] = new thumbnail(7236966,'360939','','Thumb5_thumb.jpg',130, 130,5,'							photo_7236966.html');
												thumbnails[7236983] = new thumbnail(7236983,'367984','','Thumb6_thumb.jpg',130, 130,5,'							photo_7236983.html');
												thumbnails[7238870] = new thumbnail(7238870,'367386','','Thumb_37D7CBBB-1EC9-D45B-1CA013877350C0A8_thumb.jpg',130, 130,5,'							photo_7238870.html');
												thumbnails[7244629] = new thumbnail(7244629,'360941','','thumb_429E6FB2-1EC9-D45B-1C4E915236FE62D2_thumb.jpg',130, 130,5,'							photo_7244629.html');
												thumbnails[6718052] = new thumbnail(6718052,'358866','Anglesey Abbey','500x500a_thumb.jpg',130, 130,5,'							photo_6718052.html');
												thumbnails[6718560] = new thumbnail(6718560,'358866','Agapanthus','P1070091aweb_thumb.jpg',130, 130,5,'							photo_6718560.html');
												thumbnails[6718628] = new thumbnail(6718628,'358866','Agapanthus','P1070093aweb_thumb.jpg',130, 117,5,'							photo_6718628.html');
												thumbnails[6756587] = new thumbnail(6756587,'360935','Craig Fleming','IMG_3839aweb2_thumb.jpg',130, 130,5,'							photo_6756587.html');
												thumbnails[6733572] = new thumbnail(6733572,'358861','5789 AH Eastern Counties LS 789 Bristol MW5G/ECW C39F Interior ','IMG_7701web_thumb.jpg',130, 111,5,'							photo_6733572.html');
												thumbnails[6796194] = new thumbnail(6796194,'359003','Original photograph of AC Schnitzer Alloy Road Wheel','IMG_1938aweb_thumb.jpg',130, 87,5,'							photo_6796194.html');
												thumbnails[6801502] = new thumbnail(6801502,'358866','Peter Beales Roses','P1010002aweb_thumb.jpg',130, 130,5,'							photo_6801502.html');
												thumbnails[6718558] = new thumbnail(6718558,'358866','Blue and White Bluebells','P1010026axweb_thumb.jpg',130, 130,5,'							photo_6718558.html');
												thumbnails[6733574] = new thumbnail(6733574,'358861','5789 AH Eastern Counties LS 789 Bristol MW5G/ECW C39F Interior','IMG_7700web_thumb.jpg',130, 95,5,'							photo_6733574.html');
												thumbnails[6796195] = new thumbnail(6796195,'359003','Subsequent AC Schnitzer Advert featuring Alloy Road Wheel','Rossiters_189_x_130_copy_thumb.jpg',130, 89,5,'							photo_6796195.html');
												thumbnails[6796200] = new thumbnail(6796200,'359003','Crate-Mate - Before','IMG_1605aweb2_thumb.jpg',130, 165,5,'							photo_6796200.html');
												thumbnails[6801365] = new thumbnail(6801365,'358866','Bluebell Woods','P1010022aaxweb2_thumb.jpg',130, 111,5,'							photo_6801365.html');
												thumbnails[6877022] = new thumbnail(6877022,'358861','Eastern Counties Single Decker Group','img037web2_thumb.jpg',130, 48,5,'							photo_6877022.html');
												thumbnails[7236959] = new thumbnail(7236959,'360935','','Thumb4_thumb.jpg',130, 130,5,'							photo_7236959.html');
												thumbnails[6796201] = new thumbnail(6796201,'359003','Crate-Mate','IMG_1590aweb2_thumb.jpg',130, 105,5,'							photo_6796201.html');
												thumbnails[6796202] = new thumbnail(6796202,'359003','Demolition of the former Norfolk & Norwich Hospital, Maternity Block','IMG_0912web_thumb.jpg',130, 199,5,'							photo_6796202.html');
												thumbnails[6801381] = new thumbnail(6801381,'358866','Bluebell Woods','P1010019aaxweb3_thumb.jpg',130, 75,5,'							photo_6801381.html');
												thumbnails[6876953] = new thumbnail(6876953,'358861','KVF 658E Eastern Counties RS 658 Bristol RSL6G/ECW B46F','img036weba_thumb.jpg',130, 98,5,'							photo_6876953.html');
												thumbnails[6733443] = new thumbnail(6733443,'358861','FPW 631C Eastern Counties LM 631 Bristol MW5G/ECW B45F','img007web3_thumb.jpg',130, 95,5,'							photo_6733443.html');
												thumbnails[6796204] = new thumbnail(6796204,'359003','OSR Football Sponsorship','07web_thumb.jpg',130, 79,5,'							photo_6796204.html');
												thumbnails[6801360] = new thumbnail(6801360,'358866','Bluebell Woods','P1010007axweb_thumb.jpg',130, 168,5,'							photo_6801360.html');
												thumbnails[6733444] = new thumbnail(6733444,'358861','NAH 661F Eastern Counties SB 661 Bedford BDVAM5/ ECW B41F','img015web2_thumb.jpg',130, 85,5,'							photo_6733444.html');
												thumbnails[6801359] = new thumbnail(6801359,'358866','Bluebell Woods','P1010006axweb_thumb.jpg',130, 179,5,'							photo_6801359.html');
												thumbnails[6733445] = new thumbnail(6733445,'358861','XAH 872H ex Eastern Counties RLE 872 Bristol RELL6G/ECW DP50F','img034web_thumb.jpg',130, 84,5,'							photo_6733445.html');
												thumbnails[6801357] = new thumbnail(6801357,'358866','Bluebell Woods','P1010005axweb_thumb.jpg',130, 210,5,'							photo_6801357.html');
												thumbnails[6728255] = new thumbnail(6728255,'358861','Bristol LM & GNG 92C Eastern Counties RE 880 Bristol RELH6G','img008bweb2_thumb.jpg',130, 99,5,'							photo_6728255.html');
												thumbnails[6801362] = new thumbnail(6801362,'358866','Bluebell Woods','P1010010aaxweb4_thumb.jpg',130, 38,5,'							photo_6801362.html');
												thumbnails[6733449] = new thumbnail(6733449,'358861','3014 AH Eastern Counties LL 452 Bristol MW5G/ECW B45F','img035web2_thumb.jpg',130, 92,5,'							photo_6733449.html');
												thumbnails[6801384] = new thumbnail(6801384,'358866','Old Vicarage Gardens, East Ruston, Norfolk ','IMG_7824ablueweb2_thumb.jpg',130, 87,5,'							photo_6801384.html');
												thumbnails[6733638] = new thumbnail(6733638,'358861','3003 AH Eastern Counties LC 556 Bristol SC4LK/ECW B35F','IMG_6042abweb_thumb.jpg',130, 100,5,'							photo_6733638.html');
												thumbnails[6876951] = new thumbnail(6876951,'358861','PPW 841F Eastern Counties CB 841 Bedford VAM70/Duple Viceroy C45F','img010web2_thumb.jpg',130, 132,5,'							photo_6876951.html');
												thumbnails[6725822] = new thumbnail(6725822,'358861','MAH 301 Eastern Counties LK 301 Bristol KSW6B/ECW L27/28R','img011web2_thumb.jpg',130, 145,5,'							photo_6725822.html');
												thumbnails[6733524] = new thumbnail(6733524,'358861','NAH 330 Eastern Counties Bristol Help needed to Identify','img009web_thumb.jpg',130, 105,5,'							photo_6733524.html');
												thumbnails[6733643] = new thumbnail(6733643,'358861','HPW 133 Eastern Counties LKH 133 Bristol K5G/ECW H30/26R','IMG_6039aweb_thumb.jpg',130, 176,5,'							photo_6733643.html');
												thumbnails[6728256] = new thumbnail(6728256,'358861','557 BNG Eastern Counties LFL 57 Bristol FL6G/ECW H33/27RD','img042web2_thumb.jpg',130, 122,5,'							photo_6728256.html');
												thumbnails[6733526] = new thumbnail(6733526,'358861','KAH 466D Eastern Counties FLF 466 Bristol FLF6G/ECW H38/32F','img017web_thumb.jpg',130, 108,5,'							photo_6733526.html');
												thumbnails[6733528] = new thumbnail(6733528,'358861','PCL 257W Eastern Counties VR 257 Bristol VRT/SL3/ECW H43/31F','img033web_thumb.jpg',130, 86,5,'							photo_6733528.html');
												thumbnails[6725829] = new thumbnail(6725829,'358861','OCK 988K Eastern Counties VR 378 Bristol VRTSL6LX/ECW H39/31F','IMG_7688web2_thumb.jpg',130, 114,5,'							photo_6725829.html');
												thumbnails[6733641] = new thumbnail(6733641,'358861','VPW 85S Eastern Counties VR 190 Bristol VRT/SL3/ECW H43/31F & OCK 995K Eastern Counties OT 351 Bristol VRT/SL2/ECW O39/31F','IMG_6041aweb_thumb.jpg',130, 95,5,'							photo_6733641.html');
												thumbnails[6733542] = new thumbnail(6733542,'358861','RAH 268W Eastern Counties VR 268 Bristol VRT/SL3/ECW CH41/25F','IMG_7683aweb_thumb.jpg',130, 114,5,'							photo_6733542.html');
												thumbnails[6725830] = new thumbnail(6725830,'358861','Eastern Counties Omnibus Co Ltd WT Skinner General Manager Thorpe Road Norwich','IMG_7706web3_thumb.jpg',130, 52,5,'							photo_6725830.html');
												thumbnails[6733569] = new thumbnail(6733569,'358861','Eastern Coach Works Logo','IMG_7719web3_thumb.jpg',130, 73,5,'							photo_6733569.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[360941] = new gallery(360941,'7244629','Cars','gallery',[7236604,6718649,7244629],0, 0, '', '																																																																																																							gallery_360941.html',0,0);
				  					galleries[367386] = new gallery(367386,'7238870','Classic PSV\'s','gallery',[7238860,6753692,6763570,6763572,7239182,7239200,7239207,7239213,7239394,7239413,7239417,7239421,7238870],0, 0, '', '																																																																																																							gallery_367386.html',0,0);
				  					galleries[361093] = new gallery(361093,'7236781','Classic Vehicles','gallery',[7233869,6763704,6763706,6763707,7236781],0, 0, '', '																																																																																																							gallery_361093.html',0,0);
				  					galleries[358861] = new gallery(358861,'6725831','Eastern Counties Buses','gallery',[6725825,6733536,6725831,6733545,6876949,6733450,6733581,6725828,6725826,6733646,6733572,6733574,6877022,6876953,6733443,6733444,6733445,6728255,6733449,6733638,6876951,6725822,6733524,6733643,6728256,6733526,6733528,6725829,6733641,6733542,6725830,6733569],0, 0, '', '																																																																																																							gallery_358861.html',0,0);
				  					galleries[358866] = new gallery(358866,'6718049','Flowers','gallery',[6718049,6801346,6801347,6718555,6718559,6801350,6801353,6801355,6718055,6801503,6718556,6801505,6718052,6718560,6718628,6801502,6718558,6801365,6801381,6801360,6801359,6801357,6801362,6801384],0, 0, '', '																																																																																																							gallery_358866.html',0,0);
				  					galleries[360940] = new gallery(360940,'7236859','Motor Sport','gallery',[7233872,6756549,6756546,6756550,6716003,6756432,6756540,7236859],0, 0, '', '																																																																																																							gallery_360940.html',0,0);
				  					galleries[360936] = new gallery(360936,'7236910','Nature','gallery',[7233881,6840511,6840513,7236910],0, 0, '', '																																																																																																							gallery_360936.html',0,0);
				  					galleries[360938] = new gallery(360938,'7236923','Norfolk & Norwich','gallery',[7233873,7050185,6722241,6798576,6798578,7236923],0, 0, '', '																																																																																																							gallery_360938.html',0,0);
				  					galleries[360935] = new gallery(360935,'7236959','Norwich City FC','gallery',[7233875,6756579,6756580,7230329,7230330,6756581,6756582,6756583,6756586,6756587,7236959],0, 0, '', '																																																																																																							gallery_360935.html',0,0);
				  					galleries[358863] = new gallery(358863,'6718876','People','gallery',[6718876,6756623,6756626,6756628,6756629,6756625],0, 0, '', '																																																																																																							gallery_358863.html',0,0);
				  					galleries[359003] = new gallery(359003,'6796516','PR & Commercial','gallery',[6796516,6796517,6796342,6796343,6796348,6796424,6796462,6796501,6796512,6796194,6796195,6796200,6796201,6796202,6796204],0, 0, '', '																																																																																																							gallery_359003.html',0,0);
				  					galleries[360939] = new gallery(360939,'7236966','Suffolk','gallery',[7233876,6795869,6795868,6795870,7236966],0, 0, '', '																																																																																																							gallery_360939.html',0,0);
				  					galleries[367984] = new gallery(367984,'7236983','Village Signs','gallery',[7233878,6756594,7236983],0, 0, '', '																																																																																																							gallery_367984.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7230092';
imageSets[2] = '7244629,7238870,7236983,7236966,7236959,7236923,7236910,7236859,7236781,6796516,6725831,6718876,6718049';
imageSets[3] = '7244629,7239421,7239417,7239413,7239394,7239213,7239207,7239200,7239182,7238870,7238860,7236983,7236966,7236959,7236923,7236910,7236859,7236781,7236604,7233881,7233878,7233876,7233875,7233873,7233872,7233869,7230330,7230329,7230092,7050185,6877022,6876953,6876951,6876949,6840513,6840511,6801505,6801503,6801502,6801384,6801381,6801365,6801362,6801360,6801359,6801357,6801355,6801353,6801350,6801347';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Kellyseyeno1/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Kellyseyeno1/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));		}, 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 = 'kellyseyeNo1 digital 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));    }        
    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;
	}
}

			

