window.thumbnails = {};
															thumbnails[5500117] = clik.newPhoto({"id":5500117,"src":"copyright_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":37});
															thumbnails[5521004] = clik.newPhoto({"id":5521004,"src":"mags2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":36});
															thumbnails[8172774] = clik.newPhoto({"id":8172774,"src":"profile_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":36});
															thumbnails[8184266] = clik.newPhoto({"id":8184266,"src":"mags_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":36});
															thumbnails[7121442] = clik.newPhoto({"id":7121442,"src":"47TT_start_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7867752] = clik.newPhoto({"id":7867752,"src":"BOAC-1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8268396] = clik.newPhoto({"id":8268396,"src":"Luther4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":75});
															thumbnails[7867664] = clik.newPhoto({"id":7867664,"src":"Targa063_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8325536] = clik.newPhoto({"id":8325536,"src":"Zand77-1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":75});
															thumbnails[7867750] = clik.newPhoto({"id":7867750,"src":"548B7915_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7867762] = clik.newPhoto({"id":7867762,"src":"Hulme_McLaren_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8104754] = clik.newPhoto({"id":8104754,"src":"SpainGP73_0A6C3C46-1E4F-37DC-71D215FE94F63496_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":74});
															thumbnails[9017710] = clik.newPhoto({"id":9017710,"src":"E-Type_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8104755] = clik.newPhoto({"id":8104755,"src":"jag3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":74});
															thumbnails[8147717] = clik.newPhoto({"id":8147717,"src":"Jims_P3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":75});
															thumbnails[7867753] = clik.newPhoto({"id":7867753,"src":"BritGP710004_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7867759] = clik.newPhoto({"id":7867759,"src":"Dixon_Best-o-095_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7867767] = clik.newPhoto({"id":7867767,"src":"Revival-0013_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7867765] = clik.newPhoto({"id":7867765,"src":"LeMans66_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[7917750] = clik.newPhoto({"id":7917750,"src":"test3_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_7917750.html","width":130,"caption":"Revival","height":78});
															thumbnails[8055280] = clik.newPhoto({"id":8055280,"src":"Abarth_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055280.html","width":130,"caption":"Abarth Team","height":78});
															thumbnails[8055283] = clik.newPhoto({"id":8055283,"src":"BOAC69_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055283.html","width":130,"caption":"Jo Siffert","height":78});
															thumbnails[8055290] = clik.newPhoto({"id":8055290,"src":"BritGP67_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055290.html","width":130,"caption":"BRM Team","height":78});
															thumbnails[8055297] = clik.newPhoto({"id":8055297,"src":"Ferrari_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055297.html","width":130,"caption":"Ferrari Camp","height":78});
															thumbnails[8055357] = clik.newPhoto({"id":8055357,"src":"Ferrari2_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055357.html","width":130,"caption":"Spaghetti","height":78});
															thumbnails[8055362] = clik.newPhoto({"id":8055362,"src":"Gurney_A19BE22C-1EC9-DFB6-09CF80836F04454F_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8055362.html","width":130,"caption":"Eagle Gurney-Weslake F1","height":78});
															thumbnails[8062397] = clik.newPhoto({"id":8062397,"src":"Hill68_E247830E-1EC9-D45B-1CB3DEA4CC9F0EBA_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8062397.html","width":130,"caption":"Hill at Monaco","height":78});
															thumbnails[8062402] = clik.newPhoto({"id":8062402,"src":"McLaren_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8062402.html","width":130,"caption":"Bruce McLaren","height":78});
															thumbnails[8062407] = clik.newPhoto({"id":8062407,"src":"Rhodes_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8062407.html","width":130,"caption":"John Rhodes","height":78});
															thumbnails[8062413] = clik.newPhoto({"id":8062413,"src":"Siffert_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8062413.html","width":130,"caption":"Jo Siffert","height":78});
															thumbnails[8065763] = clik.newPhoto({"id":8065763,"src":"BelgGP72_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8065763.html","width":130,"caption":"Belgium 1972","height":180});
															thumbnails[8065831] = clik.newPhoto({"id":8065831,"src":"Rindt_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8065831.html","width":130,"caption":"Brands Hatch 1970","height":78});
															thumbnails[8065836] = clik.newPhoto({"id":8065836,"src":"BOAC72_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8065836.html","width":130,"caption":"BOAC 1000","height":78});
															thumbnails[8065846] = clik.newPhoto({"id":8065846,"src":"Cervert_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8065846.html","width":130,"caption":"Tyrrell 006","height":78});
															thumbnails[8065861] = clik.newPhoto({"id":8065861,"src":"AustGP73-2_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8065861.html","width":130,"caption":"Austria 1973","height":180});
															thumbnails[8101225] = clik.newPhoto({"id":8101225,"src":"SpainGP73_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8101225.html","width":130,"caption":"Montjuich Park","height":78});
															thumbnails[8101230] = clik.newPhoto({"id":8101230,"src":"Monaco732_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8101230.html","width":130,"caption":"Monaco","height":180});
															thumbnails[8101234] = clik.newPhoto({"id":8101234,"src":"Ganley_056F51E5-1D09-001F-9926761F0E2F747A_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8101234.html","width":130,"caption":"Howden Ganley","height":78});
															thumbnails[8101243] = clik.newPhoto({"id":8101243,"src":"Beltoise_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8101243.html","width":130,"caption":"Jean-Pierre Beltoise","height":78});
															thumbnails[8103710] = clik.newPhoto({"id":8103710,"src":"BritGP72_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8103710.html","width":130,"caption":"Brands Hatch 1972","height":78});
															thumbnails[8103714] = clik.newPhoto({"id":8103714,"src":"GerGP71_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8103714.html","width":130,"caption":"Nurburgring 1971","height":180});
															thumbnails[8103729] = clik.newPhoto({"id":8103729,"src":"Wisell_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8103729.html","width":130,"caption":"Lotus 56B","height":78});
															thumbnails[8103756] = clik.newPhoto({"id":8103756,"src":"HillBrabUNFIN_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8103756.html","width":130,"caption":"Brabham BT34","height":78});
															thumbnails[8103759] = clik.newPhoto({"id":8103759,"src":"Monaco73_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8103759.html","width":130,"caption":"JPS Lotus 72","height":78});
															thumbnails[8106168] = clik.newPhoto({"id":8106168,"src":"Rindt_oversteer_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106168.html","width":130,"caption":"Jochen Rindt","height":78});
															thumbnails[8106173] = clik.newPhoto({"id":8106173,"src":"BOAC68_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106173.html","width":130,"caption":"Ford 3L GT","height":78});
															thumbnails[8106183] = clik.newPhoto({"id":8106183,"src":"BOAC69-0004_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106183.html","width":130,"caption":"Chris Amon 1969","height":78});
															thumbnails[8106184] = clik.newPhoto({"id":8106184,"src":"Howmet2_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106184.html","width":130,"caption":"Howmet","height":78});
															thumbnails[8106188] = clik.newPhoto({"id":8106188,"src":"RoC67_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106188.html","width":130,"caption":"John Surtees","height":78});
															thumbnails[8106198] = clik.newPhoto({"id":8106198,"src":"RoChamp67_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106198.html","width":130,"caption":"Lorenzo Bandini","height":78});
															thumbnails[8106210] = clik.newPhoto({"id":8106210,"src":"Snett66_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8106210.html","width":130,"caption":"Saloons 1966","height":180});
															thumbnails[8125011] = clik.newPhoto({"id":8125011,"src":"3Champs_0F7F1ADB-1EC9-DFB6-09D9A13568B46E7E_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125011.html","width":130,"caption":"3 World Champions-Plus","height":78});
															thumbnails[8125012] = clik.newPhoto({"id":8125012,"src":"Herbert_0F905AF8-1EC9-DFB6-09E67EB52E62E854_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125012.html","width":130,"caption":"Johnny & Friends","height":180});
															thumbnails[8125014] = clik.newPhoto({"id":8125014,"src":"Brooks_0F9F61C3-1EC9-DFB6-0991E427E8BE5A62_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125014.html","width":130,"caption":"Tony Brooks","height":78});
															thumbnails[8125016] = clik.newPhoto({"id":8125016,"src":"Hulme_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125016.html","width":130,"caption":"Denny Hulme","height":78});
															thumbnails[8125019] = clik.newPhoto({"id":8125019,"src":"Lotus_Heads_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125019.html","width":130,"caption":"Lotus Heads","height":78});
															thumbnails[8125022] = clik.newPhoto({"id":8125022,"src":"MurrayB_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125022.html","width":130,"caption":"Biker smiles","height":180});
															thumbnails[8125025] = clik.newPhoto({"id":8125025,"src":"Rindt_0FDED3F0-1EC9-DFB6-098688A7FE5FFE55_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8125025.html","width":130,"caption":"Jochen Rindt","height":78});
															thumbnails[8144735] = clik.newPhoto({"id":8144735,"src":"Brookss_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144735.html","width":130,"caption":"Brooks and Salvadori","height":78});
															thumbnails[8144741] = clik.newPhoto({"id":8144741,"src":"Jackie_Stewart_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144741.html","width":130,"caption":"Jackie Stewart","height":180});
															thumbnails[8144745] = clik.newPhoto({"id":8144745,"src":"Jo_Siffert_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144745.html","width":130,"caption":"Jo Siffert","height":180});
															thumbnails[8144747] = clik.newPhoto({"id":8144747,"src":"McLaren1_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144747.html","width":130,"caption":"Bruce McLaren","height":180});
															thumbnails[8144752] = clik.newPhoto({"id":8144752,"src":"Merzario_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144752.html","width":130,"caption":"Arturo Merzario","height":180});
															thumbnails[8144757] = clik.newPhoto({"id":8144757,"src":"Montoya_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144757.html","width":130,"caption":"Juan Pablo Montoya","height":78});
															thumbnails[8144762] = clik.newPhoto({"id":8144762,"src":"MossSalv_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144762.html","width":130,"caption":"Stirling Moss & Roy Salvadori","height":78});
															thumbnails[8144768] = clik.newPhoto({"id":8144768,"src":"Regga_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144768.html","width":130,"caption":"Clay Regazzoni","height":180});
															thumbnails[8144770] = clik.newPhoto({"id":8144770,"src":"Newey_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144770.html","width":130,"caption":"Adrian Newey","height":180});
															thumbnails[8144772] = clik.newPhoto({"id":8144772,"src":"Peterson_2E6817C0-1EC9-D45B-1CBBB8FBAF4920CC_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144772.html","width":130,"caption":"Ronnie Peterson","height":180});
															thumbnails[8144774] = clik.newPhoto({"id":8144774,"src":"Revson_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144774.html","width":130,"caption":"Peter Revson","height":180});
															thumbnails[8144776] = clik.newPhoto({"id":8144776,"src":"Shelby_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144776.html","width":130,"caption":"Carol Shelby","height":78});
															thumbnails[8144778] = clik.newPhoto({"id":8144778,"src":"Stommelen_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_8144778.html","width":130,"caption":"Rolf Stommelen","height":180});
															thumbnails[8145731] = clik.newPhoto({"id":8145731,"src":"Zand77-2_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8145731.html","width":130,"caption":"Niki Lauda","height":78});
															thumbnails[8145756] = clik.newPhoto({"id":8145756,"src":"FoS_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8145756.html","width":130,"caption":"1914 Mercedes","height":78});
															thumbnails[8151316] = clik.newPhoto({"id":8151316,"src":"AustGP73_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8151316.html","width":130,"caption":"World Champion","height":78});
															thumbnails[8152445] = clik.newPhoto({"id":8152445,"src":"Pau_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8152445.html","width":130,"caption":"Pau","height":78});
															thumbnails[8152451] = clik.newPhoto({"id":8152451,"src":"Moss_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8152451.html","width":130,"caption":"Stirling Moss","height":78});
															thumbnails[8152458] = clik.newPhoto({"id":8152458,"src":"Pau3_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8152458.html","width":130,"caption":"Pau Paddock","height":78});
															thumbnails[8152467] = clik.newPhoto({"id":8152467,"src":"Aston_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8152467.html","width":130,"caption":"Aston DBR1","height":78});
															thumbnails[8152483] = clik.newPhoto({"id":8152483,"src":"Porto1_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8152483.html","width":130,"caption":"Bugatti","height":78});
															thumbnails[8152587] = clik.newPhoto({"id":8152587,"src":"BrttGP70_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8152587.html","width":130,"caption":"","height":78});
															thumbnails[8155330] = clik.newPhoto({"id":8155330,"src":"FoS2_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155330.html","width":130,"caption":"Ferrari F2006","height":78});
															thumbnails[8155352] = clik.newPhoto({"id":8155352,"src":"21StewartBRM_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155352.html","width":130,"caption":"BRM P261","height":78});
															thumbnails[8155367] = clik.newPhoto({"id":8155367,"src":"Brian_Redman_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155367.html","width":130,"caption":"Ferrari 250 SWB","height":78});
															thumbnails[8155390] = clik.newPhoto({"id":8155390,"src":"Monaco_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155390.html","width":130,"caption":"Alfa 12c","height":78});
															thumbnails[8155421] = clik.newPhoto({"id":8155421,"src":"Monaco02_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155421.html","width":130,"caption":"Bugatti fire","height":78});
															thumbnails[8155610] = clik.newPhoto({"id":8155610,"src":"Monaco3_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155610.html","width":130,"caption":"Ferrari F2004","height":78});
															thumbnails[8155710] = clik.newPhoto({"id":8155710,"src":"Monaco4_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155710.html","width":130,"caption":"Monaco","height":180});
															thumbnails[8155889] = clik.newPhoto({"id":8155889,"src":"P4-5_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155889.html","width":130,"caption":"Ferrari P4\/5","height":180});
															thumbnails[8155911] = clik.newPhoto({"id":8155911,"src":"Revival10_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155911.html","width":130,"caption":"Seven's a crowd","height":57});
															thumbnails[8155930] = clik.newPhoto({"id":8155930,"src":"Revival5_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155930.html","width":130,"caption":"Saloon start","height":78});
															thumbnails[8155996] = clik.newPhoto({"id":8155996,"src":"Pau2_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8155996.html","width":130,"caption":"Off road","height":78});
															thumbnails[8156028] = clik.newPhoto({"id":8156028,"src":"Pau4_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8156028.html","width":130,"caption":"Street racing","height":180});
															thumbnails[8158937] = clik.newPhoto({"id":8158937,"src":"Revival8_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8158937.html","width":130,"caption":"Project 214 Aston Martin","height":78});
															thumbnails[8158978] = clik.newPhoto({"id":8158978,"src":"Revival1_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8158978.html","width":130,"caption":"Revival","height":78});
															thumbnails[8161938] = clik.newPhoto({"id":8161938,"src":"Revival6_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8161938.html","width":130,"caption":"Ferrari 246S","height":78});
															thumbnails[8162013] = clik.newPhoto({"id":8162013,"src":"Porto2_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8162013.html","width":130,"caption":"Porto Streets","height":78});
															thumbnails[8164796] = clik.newPhoto({"id":8164796,"src":"Silv_Classic_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8164796.html","width":130,"caption":"Heat Haze","height":33});
															thumbnails[8168352] = clik.newPhoto({"id":8168352,"src":"GermGP72-0003_thumb.jpg","galleries_id":14178,"server_id":15,"link":"photo_8168352.html","width":130,"caption":"Nurburgring","height":78});
															thumbnails[8168463] = clik.newPhoto({"id":8168463,"src":"2F2_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8168463.html","width":130,"caption":"Chaparral 2F","height":78});
															thumbnails[8168884] = clik.newPhoto({"id":8168884,"src":"LeMans66_43DDB9B7-1EC9-D45B-1CC5317C17C552D8_thumb.jpg","galleries_id":14022,"server_id":15,"link":"photo_8168884.html","width":130,"caption":"Le Mans 1966","height":78});
															thumbnails[8291179] = clik.newPhoto({"id":8291179,"src":"Merc21_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_8291179.html","width":130,"caption":"Panamericana","height":78});
															thumbnails[9016736] = clik.newPhoto({"id":9016736,"src":"breadvanPos21_thumb_04C69229-1EC9-D45B-1C0403709BA1AECA.jpg","galleries_id":14030,"server_id":15,"link":"photo_9016736.html","width":130,"caption":"Water Slide","height":65});
															thumbnails[9016756] = clik.newPhoto({"id":9016756,"src":"DaytonaSi2_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_9016756.html","width":130,"caption":"Daytona in the Rain","height":78});
															thumbnails[9017817] = clik.newPhoto({"id":9017817,"src":"Williams_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_9017817.html","width":130,"caption":"Whizzo's snooze","height":180});
															thumbnails[9017825] = clik.newPhoto({"id":9017825,"src":"45Gethin_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_9017825.html","width":130,"caption":"Peter Gethin 2010","height":180});
															thumbnails[9019141] = clik.newPhoto({"id":9019141,"src":"Surtees2_thumb.jpg","galleries_id":14031,"server_id":15,"link":"photo_9019141.html","width":130,"caption":"John Surtees","height":78});
															thumbnails[9071845] = clik.newPhoto({"id":9071845,"src":"Audi_R10_thumb.jpg","galleries_id":14030,"server_id":15,"link":"photo_9071845.html","width":130,"caption":"Audi R10 TDI","height":78});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[14022] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<b>1960's<\/b>","link":"gallery_14022.html","maxRecords":0.0,"photoIDs":[8055280.0,8055283.0,8055290.0,8055297.0,8055357.0,8055362.0,8062397.0,8062402.0,8062407.0,8062413.0,8106168.0,8106173.0,8106183.0,8106184.0,8106188.0,8106198.0,8106210.0,8168463.0,8168884.0],"skipIndex":0,"section_code":"gallery","featured_images":"8168884,8168463,8106210,8106198,8106188,8106184,8106183,8106173,8106168,8062413","id":14022,"singleSection":false});				  						galleries[14178] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<b>1970's<\/b>","link":"gallery_14178.html","maxRecords":0.0,"photoIDs":[8065763.0,8065831.0,8065836.0,8065846.0,8065861.0,8101225.0,8101230.0,8101234.0,8101243.0,8103710.0,8103714.0,8103729.0,8103756.0,8103759.0,8145731.0,8151316.0,8152587.0,8168352.0],"skipIndex":0,"section_code":"gallery","featured_images":"8168352,8152587,8151316,8145731,8103759,8103756,8103729,8103714,8103710,8101243","id":14178,"singleSection":false});				  						galleries[14031] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<b>Portraits & Personalities<\/b>","link":"gallery_14031.html","maxRecords":0.0,"photoIDs":[8125011.0,8125012.0,8125014.0,8125016.0,8125019.0,8125022.0,8125025.0,8144735.0,8144741.0,8144745.0,8144747.0,8144752.0,8144757.0,8144762.0,8144768.0,8144770.0,8144772.0,8144774.0,8144776.0,8144778.0,9017817.0,9017825.0,9019141.0],"skipIndex":0,"section_code":"gallery","featured_images":"9019141,9017825,9017817,8144778,8144776,8144774,8144772,8144770,8144768,8144762","id":14031,"singleSection":false});				  						galleries[14030] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<b>Today's Historic Racing<\/b>","link":"gallery_14030.html","maxRecords":0.0,"photoIDs":[7917750.0,8145756.0,8152445.0,8152451.0,8152458.0,8152467.0,8152483.0,8155330.0,8155352.0,8155367.0,8155390.0,8155421.0,8155610.0,8155710.0,8155889.0,8155911.0,8155930.0,8155996.0,8156028.0,8158937.0,8158978.0,8161938.0,8162013.0,8164796.0,8291179.0,9016736.0,9016756.0,9071845.0],"skipIndex":0,"section_code":"gallery","featured_images":"9071845,9016756,9016736,8291179,8164796,8162013,8161938,8158978,8158937,8156028","id":14030,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7121442,7867752,8268396,7867664,8325536,7867750,7867762,8104754,9017710,8104755,8147717,7867753,7867759,7867767,7867765';
imageSets[3] = '9071845,9019141,9017825,9017817,9017710,9016756,9016736,8325536,8291179,8268396,8184266,8172774,8168884,8168463,8168352,8164796,8162013,8161938,8158978,8158937,8156028,8155996,8155930,8155911,8155889,8155710,8155610,8155421,8155390,8155367,8155352,8155330,8152587,8152483,8152467,8152458,8152451,8152445,8151316,8147717,8145756,8145731,8144778,8144776,8144774,8144772,8144770,8144768,8144762,8144757';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rogerdixon/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rogerdixon/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Roger Dixon   Historic-Motorsport Photojournalist.: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			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 += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="roger@thedixons.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="roger@thedixons.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

