window.thumbnails = new Object();
												thumbnails[312692] = new thumbnail(312692,'','Vanity Fair magazine<br>\r\n','VF1_thumb.jpg',130, 181,15,'															#');
												thumbnails[312693] = new thumbnail(312693,'','Vanity Fair magazine<br>\r\n','VF2_thumb.jpg',130, 179,15,'															#');
												thumbnails[312705] = new thumbnail(312705,'','Vanity Fair magazine','VF3_thumb.jpg',130, 180,15,'															#');
												thumbnails[312750] = new thumbnail(312750,'','Vanity Fair magazine','VF4_thumb.jpg',130, 181,15,'															#');
												thumbnails[312763] = new thumbnail(312763,'','Vanity Fair magazine','VF5_thumb.jpg',130, 181,15,'															#');
												thumbnails[312771] = new thumbnail(312771,'','Vanity Fair magazine','VF6_thumb.jpg',130, 183,15,'															#');
												thumbnails[583020] = new thumbnail(583020,'','Matthew Modine','modine-tear_thumb.jpg',130, 182,15,'															#');
												thumbnails[308503] = new thumbnail(308503,'17615','Ireland','L1_thumb.jpg',130, 268,15,'																			photo_308503.html');
												thumbnails[308537] = new thumbnail(308537,'17615','Ireland','L2_thumb.jpg',130, 268,15,'																			photo_308537.html');
												thumbnails[308558] = new thumbnail(308558,'17615','Cambridgeshire','L3_thumb.jpg',130, 270,15,'																			photo_308558.html');
												thumbnails[308559] = new thumbnail(308559,'17615','Southbank','L4_thumb.jpg',130, 268,15,'																			photo_308559.html');
												thumbnails[308572] = new thumbnail(308572,'17615','Santa Monica','L5_thumb.jpg',130, 270,15,'																			photo_308572.html');
												thumbnails[308582] = new thumbnail(308582,'17615','Big Sur','L6_thumb.jpg',130, 268,15,'																			photo_308582.html');
												thumbnails[308628] = new thumbnail(308628,'17615','Alcatraz','L7_thumb.jpg',130, 270,15,'																			photo_308628.html');
												thumbnails[308645] = new thumbnail(308645,'17615','Weston-Super-Mare','L8_thumb.jpg',130, 271,15,'																			photo_308645.html');
												thumbnails[308711] = new thumbnail(308711,'17615','Brighton','L9_thumb.jpg',130, 273,15,'																			photo_308711.html');
												thumbnails[308740] = new thumbnail(308740,'17615','North Devon B&B','L10_thumb.jpg',130, 271,15,'																			photo_308740.html');
												thumbnails[308773] = new thumbnail(308773,'17615','Cornwall','L11_thumb.jpg',130, 272,15,'																			photo_308773.html');
												thumbnails[308792] = new thumbnail(308792,'17615','Cornwall','L12_thumb.jpg',130, 271,15,'																			photo_308792.html');
												thumbnails[308809] = new thumbnail(308809,'17615','Paris','L13_thumb.jpg',130, 269,15,'																			photo_308809.html');
												thumbnails[309456] = new thumbnail(309456,'17615','Brighton','L145_thumb.jpg',130, 271,15,'																			photo_309456.html');
												thumbnails[310948] = new thumbnail(310948,'17615','North London','L16_thumb.jpg',130, 270,15,'																			photo_310948.html');
												thumbnails[7288942] = new thumbnail(7288942,'222503','Mami Sayo','pic21_7FD31321-24E8-5EC4-4F122B272CAE3F43_thumb.jpg',130, 87,15,'																			photo_7288942.html');
												thumbnails[7288952] = new thumbnail(7288952,'222503','Mami Sayo','pic11_thumb.jpg',130, 87,15,'																			photo_7288952.html');
												thumbnails[7318566] = new thumbnail(7318566,'222503','Luca de Montezemolo','lucaA_thumb.jpg',130, 87,15,'																			photo_7318566.html');
												thumbnails[7318567] = new thumbnail(7318567,'222503','Luca de Montezemolo','LucaB_thumb.jpg',130, 195,15,'																			photo_7318567.html');
												thumbnails[3641232] = new thumbnail(3641232,'222548','Musto Autumn/Winter','test3_thumb.jpg',130, 105,15,'																			photo_3641232.html');
												thumbnails[3657940] = new thumbnail(3657940,'223480','Musto Landscape','Land1_thumb.jpg',130, 101,15,'																			photo_3657940.html');
												thumbnails[3663388] = new thumbnail(3663388,'222503','Prince Ernst August of Hanover','portrait1_thumb.jpg',130, 162,15,'																			photo_3663388.html');
												thumbnails[3795054] = new thumbnail(3795054,'230403','Keith & Steve. FABRIC','pic53_thumb.jpg',130, 159,15,'																			photo_3795054.html');
												thumbnails[7288898] = new thumbnail(7288898,'394253','Yamaha Landscape','pic1_thumb.jpg',130, 98,15,'																			photo_7288898.html');
												thumbnails[3663841] = new thumbnail(3663841,'222503','Prince Ernst August of Hanover','portrait6_thumb.jpg',130, 162,15,'																			photo_3663841.html');
												thumbnails[3641279] = new thumbnail(3641279,'222548','Musto Autumn/Winter','Fashion31_thumb.jpg',130, 105,15,'																			photo_3641279.html');
												thumbnails[3657960] = new thumbnail(3657960,'223480','Musto Landscape','land2_thumb.jpg',130, 101,15,'																			photo_3657960.html');
												thumbnails[3663551] = new thumbnail(3663551,'222503','Marc Quinn','portrait3_thumb.jpg',130, 162,15,'																			photo_3663551.html');
												thumbnails[7288900] = new thumbnail(7288900,'394253','Yamaha Landscape','pic2_thumb.jpg',130, 98,15,'																			photo_7288900.html');
												thumbnails[3641395] = new thumbnail(3641395,'222548','Musto Autumn/Winter','Fashion41_thumb.jpg',130, 161,15,'																			photo_3641395.html');
												thumbnails[3657967] = new thumbnail(3657967,'223480','Musto Landscape','land3_thumb.jpg',130, 101,15,'																			photo_3657967.html');
												thumbnails[3663532] = new thumbnail(3663532,'222503','Tomasz Donocik','portrait2_thumb.jpg',130, 162,15,'																			photo_3663532.html');
												thumbnails[7288901] = new thumbnail(7288901,'394253','Yamaha Landscape','pic3_7FBAD59F-24E8-5EC4-4F2F2101C2D0FEBF_thumb.jpg',130, 98,15,'																			photo_7288901.html');
												thumbnails[3769384] = new thumbnail(3769384,'230403','Matthew Modine','pic42_thumb.jpg',130, 171,15,'																			photo_3769384.html');
												thumbnails[549194] = new thumbnail(549194,'230403','Danny Lane','DannyLane_thumb.jpg',130, 104,15,'																			photo_549194.html');
												thumbnails[343394] = new thumbnail(343394,'230403','Alex Hartley','pic54_thumb.jpg',130, 109,15,'																			photo_343394.html');
												thumbnails[3769497] = new thumbnail(3769497,'17614','Stephen Webster, Theo Fennell & Shaun Leane','pic443_thumb.jpg',130, 172,15,'																			photo_3769497.html');
												thumbnails[343343] = new thumbnail(343343,'230403','Edouard Francois','pic55_thumb.jpg',130, 106,15,'																			photo_343343.html');
												thumbnails[3769606] = new thumbnail(3769606,'17614','Jeremy & Erin Morris','pic46_thumb.jpg',130, 159,15,'																			photo_3769606.html');
												thumbnails[3769579] = new thumbnail(3769579,'230403','Solange Azagury-Partridge','pic45_thumb.jpg',130, 170,15,'																			photo_3769579.html');
												thumbnails[3769430] = new thumbnail(3769430,'230403','Laurence Graff','pic43_thumb.jpg',130, 160,15,'																			photo_3769430.html');
												thumbnails[3641433] = new thumbnail(3641433,'222548','Musto Autumn/Winter','Fashion51_thumb.jpg',130, 161,15,'																			photo_3641433.html');
												thumbnails[3657969] = new thumbnail(3657969,'223480','Musto Landscape','land4_thumb.jpg',130, 101,15,'																			photo_3657969.html');
												thumbnails[3663760] = new thumbnail(3663760,'222503','Gavin Turk','portrait4_thumb.jpg',130, 162,15,'																			photo_3663760.html');
												thumbnails[7288902] = new thumbnail(7288902,'394253','Yamaha Landscape','pic4_7FBB577B-24E8-5EC4-4FA333E53C2B8A77_thumb.jpg',130, 98,15,'																			photo_7288902.html');
												thumbnails[3640438] = new thumbnail(3640438,'222503','Owain Jones','portrait5_thumb.jpg',130, 162,15,'																			photo_3640438.html');
												thumbnails[3641578] = new thumbnail(3641578,'222548','Musto Autumn/Winter','fashion61_thumb.jpg',130, 105,15,'																			photo_3641578.html');
												thumbnails[3657977] = new thumbnail(3657977,'223480','Musto Landscape','Land5_thumb.jpg',130, 101,15,'																			photo_3657977.html');
												thumbnails[7288903] = new thumbnail(7288903,'394253','Yamaha Landscape','pic5_7FBBDA51-24E8-5EC4-4FBF6A860A8DFE61_thumb.jpg',130, 98,15,'																			photo_7288903.html');
												thumbnails[332893] = new thumbnail(332893,'230403','Shaka Hislop','Hislop_thumb.jpg',130, 161,15,'																			photo_332893.html');
												thumbnails[3641623] = new thumbnail(3641623,'222548','Musto Autumn/Winter','Fashion71_thumb.jpg',130, 105,15,'																			photo_3641623.html');
												thumbnails[3657980] = new thumbnail(3657980,'223480','Musto Landscape','land6_thumb.jpg',130, 101,15,'																			photo_3657980.html');
												thumbnails[7288904] = new thumbnail(7288904,'394253','Yamaha Landscape','pic6_7FBC5A0B-24E8-5EC4-4FC9BA17C23CDA71_thumb.jpg',130, 173,15,'																			photo_7288904.html');
												thumbnails[3757412] = new thumbnail(3757412,'17614','Jonzi D','pic12_thumb.jpg',130, 164,15,'																			photo_3757412.html');
												thumbnails[3640139] = new thumbnail(3640139,'222503','David Quay','portrait7_thumb.jpg',130, 162,15,'																			photo_3640139.html');
												thumbnails[3641764] = new thumbnail(3641764,'222548','Musto Autumn/Winter','Fashion81_thumb.jpg',130, 161,15,'																			photo_3641764.html');
												thumbnails[3657986] = new thumbnail(3657986,'223480','Musto Landscape','land7_thumb.jpg',130, 105,15,'																			photo_3657986.html');
												thumbnails[3663868] = new thumbnail(3663868,'222503','David Quay','portrait8_thumb.jpg',130, 162,15,'																			photo_3663868.html');
												thumbnails[3761807] = new thumbnail(3761807,'230403','Jamie Bamber','pic22_thumb.jpg',130, 175,15,'																			photo_3761807.html');
												thumbnails[3761398] = new thumbnail(3761398,'230403','John Henshaw','pic16_thumb.jpg',130, 103,15,'																			photo_3761398.html');
												thumbnails[3641787] = new thumbnail(3641787,'222548','Musto Autumn/Winter','Fashion91_thumb.jpg',130, 105,15,'																			photo_3641787.html');
												thumbnails[3657991] = new thumbnail(3657991,'223480','Musto Landscape','land8_thumb.jpg',130, 105,15,'																			photo_3657991.html');
												thumbnails[3761502] = new thumbnail(3761502,'230403','Stephen Mangan','pic18_thumb.jpg',130, 103,15,'																			photo_3761502.html');
												thumbnails[3641917] = new thumbnail(3641917,'222548','Musto Autumn/Winter','Fashion10_thumb.jpg',130, 105,15,'																			photo_3641917.html');
												thumbnails[3657993] = new thumbnail(3657993,'223480','Musto Landscape','land9_thumb.jpg',130, 105,15,'																			photo_3657993.html');
												thumbnails[3663933] = new thumbnail(3663933,'222503','Renny Ramakers','portrait9_thumb.jpg',130, 104,15,'																			photo_3663933.html');
												thumbnails[3762347] = new thumbnail(3762347,'230403','Lara Belmont','pic30_thumb.jpg',130, 164,15,'																			photo_3762347.html');
												thumbnails[3642023] = new thumbnail(3642023,'222548','Musto Autumn/Winter','fashion111_thumb.jpg',130, 105,15,'																			photo_3642023.html');
												thumbnails[3663964] = new thumbnail(3663964,'222503','Zaha Hadid & Helene Binet','portrait10_thumb.jpg',130, 104,15,'																			photo_3663964.html');
												thumbnails[3761324] = new thumbnail(3761324,'230403','Timothy Rennie','pic13_thumb.jpg',130, 177,15,'																			photo_3761324.html');
												thumbnails[3642052] = new thumbnail(3642052,'222548','Musto Autumn/Winter','Fashion22_thumb.jpg',130, 105,15,'																			photo_3642052.html');
												thumbnails[3657995] = new thumbnail(3657995,'223480','Musto Landscape','land10_thumb.jpg',130, 105,15,'																			photo_3657995.html');
												thumbnails[3664007] = new thumbnail(3664007,'222503','Arne Quinze','portrait11_thumb.jpg',130, 104,15,'																			photo_3664007.html');
												thumbnails[3793828] = new thumbnail(3793828,'230403','Ron Arad & Dai Fujiwara','pic52_thumb.jpg',130, 111,15,'																			photo_3793828.html');
												thumbnails[3655989] = new thumbnail(3655989,'222548','Musto Autumn/Winter','fashion122_thumb.jpg',130, 105,15,'																			photo_3655989.html');
												thumbnails[3658152] = new thumbnail(3658152,'223480','Musto Landscape','land111_thumb.jpg',130, 101,15,'																			photo_3658152.html');
												thumbnails[3664016] = new thumbnail(3664016,'222503','Robert Wessman','portrait12_thumb.jpg',130, 104,15,'																			photo_3664016.html');
												thumbnails[3800209] = new thumbnail(3800209,'17614','Phil Davies','pic56_thumb.jpg',130, 164,15,'																			photo_3800209.html');
												thumbnails[3761154] = new thumbnail(3761154,'17614','Phil Davies','pic8_thumb.jpg',130, 177,15,'																			photo_3761154.html');
												thumbnails[3642204] = new thumbnail(3642204,'222548','Musto Autumn/Winter','Fashion13_thumb.jpg',130, 105,15,'																			photo_3642204.html');
												thumbnails[3658166] = new thumbnail(3658166,'223480','Musto Landscape','land12_thumb.jpg',130, 101,15,'																			photo_3658166.html');
												thumbnails[3664071] = new thumbnail(3664071,'222503','Fernando & Humberto Campana','portrait13_thumb.jpg',130, 104,15,'																			photo_3664071.html');
												thumbnails[318222] = new thumbnail(318222,'17614','Gavin & Gavin','Gavin_thumb.jpg',130, 159,15,'																			photo_318222.html');
												thumbnails[3642214] = new thumbnail(3642214,'222548','Musto Autumn/Winter','Fashion14_thumb.jpg',130, 105,15,'																			photo_3642214.html');
												thumbnails[3658178] = new thumbnail(3658178,'223480','Musto Seascape','land13_thumb.jpg',130, 101,15,'																			photo_3658178.html');
												thumbnails[3664093] = new thumbnail(3664093,'222503','Russell Sage','portrait14_thumb.jpg',130, 104,15,'																			photo_3664093.html');
												thumbnails[3664108] = new thumbnail(3664108,'222503','Russell Sage','portrait15_thumb.jpg',130, 104,15,'																			photo_3664108.html');
												thumbnails[3642271] = new thumbnail(3642271,'222548','Musto Autumn/Winter','Fashion15_thumb.jpg',130, 105,15,'																			photo_3642271.html');
												thumbnails[3658322] = new thumbnail(3658322,'223480','Musto Seascape','land14_thumb.jpg',130, 101,15,'																			photo_3658322.html');
												thumbnails[3658330] = new thumbnail(3658330,'223480','Musto Seascape','land15_thumb.jpg',130, 101,15,'																			photo_3658330.html');
												thumbnails[3664125] = new thumbnail(3664125,'222503','Patrick Fredrikson & Ian Stallard','portrait16_thumb.jpg',130, 105,15,'																			photo_3664125.html');
												thumbnails[3761917] = new thumbnail(3761917,'230403','Antonio Carluccio','pic24_thumb.jpg',130, 175,15,'																			photo_3761917.html');
												thumbnails[3658348] = new thumbnail(3658348,'223480','Musto Seascape','land16_thumb.jpg',130, 101,15,'																			photo_3658348.html');
												thumbnails[3664190] = new thumbnail(3664190,'223809','Vivienne Westwood Partygoer','portrait17_thumb.jpg',130, 195,15,'																			photo_3664190.html');
												thumbnails[3664373] = new thumbnail(3664373,'222503','Keith Musto','portrait24_thumb.jpg',130, 105,15,'																			photo_3664373.html');
												thumbnails[3761858] = new thumbnail(3761858,'17614','Jimi','pic23_thumb.jpg',130, 103,15,'																			photo_3761858.html');
												thumbnails[3658414] = new thumbnail(3658414,'223480','Musto Seascape','land17_thumb.jpg',130, 104,15,'																			photo_3658414.html');
												thumbnails[3664199] = new thumbnail(3664199,'223809','Vivienne Westwood Partygoer','portrait18_thumb.jpg',130, 195,15,'																			photo_3664199.html');
												thumbnails[3761272] = new thumbnail(3761272,'230403','Raymond Hoghe','pic111_thumb.jpg',130, 176,15,'																			photo_3761272.html');
												thumbnails[3658420] = new thumbnail(3658420,'223480','Musto Seascape','land18_thumb.jpg',130, 101,15,'																			photo_3658420.html');
												thumbnails[3664201] = new thumbnail(3664201,'223809','Vivienne Westwood Partygoer','portrait19_thumb.jpg',130, 195,15,'																			photo_3664201.html');
												thumbnails[3761762] = new thumbnail(3761762,'230403','Martin Crimp & Luc Bondy','pic211_thumb.jpg',130, 103,15,'																			photo_3761762.html');
												thumbnails[3658529] = new thumbnail(3658529,'223480','Musto Seascape','land19_thumb.jpg',130, 101,15,'																			photo_3658529.html');
												thumbnails[3664204] = new thumbnail(3664204,'223809','Vivienne Westwood Partygoer','portrait20_thumb.jpg',130, 195,15,'																			photo_3664204.html');
												thumbnails[3777869] = new thumbnail(3777869,'17614','Mark Strong','pic49_thumb.jpg',130, 179,15,'																			photo_3777869.html');
												thumbnails[3761969] = new thumbnail(3761969,'17614','Mark Strong','pic25_thumb.jpg',130, 163,15,'																			photo_3761969.html');
												thumbnails[3658534] = new thumbnail(3658534,'223480','Musto Seascape','land20_thumb.jpg',130, 105,15,'																			photo_3658534.html');
												thumbnails[3664215] = new thumbnail(3664215,'223809','Vivienne Westwood Partygoer','portrait21_thumb.jpg',130, 87,15,'																			photo_3664215.html');
												thumbnails[3760761] = new thumbnail(3760761,'17614','Cathy Burke','pic3_thumb.jpg',130, 164,15,'																			photo_3760761.html');
												thumbnails[3664219] = new thumbnail(3664219,'223809','Vivienne Westwood Partygoer','portrait22_thumb.jpg',130, 195,15,'																			photo_3664219.html');
												thumbnails[3761173] = new thumbnail(3761173,'17614','Daniel Libeskind','pic9_thumb.jpg',130, 179,15,'																			photo_3761173.html');
												thumbnails[3664223] = new thumbnail(3664223,'223809','Vivienne Westwood Partygoer','portrait23_thumb.jpg',130, 195,15,'																			photo_3664223.html');
												thumbnails[306945] = new thumbnail(306945,'17614','Polyphonic Spree','Spree_thumb.jpg',130, 102,15,'																			photo_306945.html');
												thumbnails[3761330] = new thumbnail(3761330,'17614','James Lance','pic14_thumb.jpg',130, 164,15,'																			photo_3761330.html');
												thumbnails[3762294] = new thumbnail(3762294,'17614','Andy Irritant','pic29_thumb.jpg',130, 164,15,'																			photo_3762294.html');
												thumbnails[3664528] = new thumbnail(3664528,'222503','Keith Musto','portrait25_thumb.jpg',130, 105,15,'																			photo_3664528.html');
												thumbnails[3761519] = new thumbnail(3761519,'17614','Michael Danone','pic19_thumb.jpg',130, 164,15,'																			photo_3761519.html');
												thumbnails[3777953] = new thumbnail(3777953,'17614','Michael Danone','pic51_thumb.jpg',130, 179,15,'																			photo_3777953.html');
												thumbnails[3761360] = new thumbnail(3761360,'17614','Alan Whicker','pic15_thumb.jpg',130, 104,15,'																			photo_3761360.html');
												thumbnails[3664538] = new thumbnail(3664538,'222503','Deborah Moggach','portrait26_thumb.jpg',130, 87,15,'																			photo_3664538.html');
												thumbnails[3761316] = new thumbnail(3761316,'17614','Broadcast','pic121_thumb.jpg',130, 164,15,'																			photo_3761316.html');
												thumbnails[3664555] = new thumbnail(3664555,'223837','Ron Atkinson','portrait27_thumb.jpg',130, 162,15,'																			photo_3664555.html');
												thumbnails[3760748] = new thumbnail(3760748,'230403','Benedict Cumberbatch','pic21_thumb.jpg',130, 184,15,'																			photo_3760748.html');
												thumbnails[3743137] = new thumbnail(3743137,'223837','Ron Atkinson','portrait281_thumb.jpg',130, 162,15,'																			photo_3743137.html');
												thumbnails[3762002] = new thumbnail(3762002,'17614','Joe Pantoliano','pic27_thumb.jpg',130, 163,15,'																			photo_3762002.html');
												thumbnails[3664628] = new thumbnail(3664628,'223837','Henrik Larsson','portrait29_thumb.jpg',130, 104,15,'																			photo_3664628.html');
												thumbnails[3762699] = new thumbnail(3762699,'17614','Raymond Blanc','pic35_thumb.jpg',130, 104,15,'																			photo_3762699.html');
												thumbnails[3664640] = new thumbnail(3664640,'223837','Henrik Larsson','portrait30_thumb.jpg',130, 104,15,'																			photo_3664640.html');
												thumbnails[3766229] = new thumbnail(3766229,'17614','Future Systems','pic38_thumb.jpg',130, 164,15,'																			photo_3766229.html');
												thumbnails[3664660] = new thumbnail(3664660,'223837','Michael Thomas','portrait31_thumb.jpg',130, 104,15,'																			photo_3664660.html');
												thumbnails[311012] = new thumbnail(311012,'17614','Jun Takada','pic50_thumb.jpg',130, 163,15,'																			photo_311012.html');
												thumbnails[3664690] = new thumbnail(3664690,'223837','Michael Thomas','portrait32_thumb.jpg',130, 162,15,'																			photo_3664690.html');
												thumbnails[3761458] = new thumbnail(3761458,'230403','Stacey Kent','pic17_thumb.jpg',130, 164,15,'																			photo_3761458.html');
												thumbnails[3664711] = new thumbnail(3664711,'223837','Steve Perryman','portrait33_thumb.jpg',130, 104,15,'																			photo_3664711.html');
												thumbnails[3760805] = new thumbnail(3760805,'230403','Mark Watson','pic5_thumb.jpg',130, 164,15,'																			photo_3760805.html');
												thumbnails[3664739] = new thumbnail(3664739,'223837','Steve Perryman','portrait34_thumb.jpg',130, 104,15,'																			photo_3664739.html');
												thumbnails[3762632] = new thumbnail(3762632,'17614','Ian Poulter','pic34_thumb.jpg',130, 103,15,'																			photo_3762632.html');
												thumbnails[306915] = new thumbnail(306915,'230403','Kosheen','Kosheen_thumb.jpg',130, 103,15,'																			photo_306915.html');
												thumbnails[3667898] = new thumbnail(3667898,'223837','David O\'Leary','portrait35_thumb.jpg',130, 104,15,'																			photo_3667898.html');
												thumbnails[3761600] = new thumbnail(3761600,'230403','Christophe','pic20_thumb.jpg',130, 164,15,'																			photo_3761600.html');
												thumbnails[3668009] = new thumbnail(3668009,'223837','David O\'Leary','portrait36_thumb.jpg',130, 162,15,'																			photo_3668009.html');
												thumbnails[3777829] = new thumbnail(3777829,'17614','Lee Evans','pic48_thumb.jpg',130, 164,15,'																			photo_3777829.html');
												thumbnails[3735920] = new thumbnail(3735920,'223837','\'The\' Arsenal Back 4','portrait63_thumb.jpg',130, 106,15,'																			photo_3735920.html');
												thumbnails[3761111] = new thumbnail(3761111,'17614','Lee Evans','pic7_thumb.jpg',130, 165,15,'																			photo_3761111.html');
												thumbnails[3668012] = new thumbnail(3668012,'223837','Tony Adams','portrait37_thumb.jpg',130, 104,15,'																			photo_3668012.html');
												thumbnails[3766236] = new thumbnail(3766236,'17614','Maya Even','pic40_thumb.jpg',130, 164,15,'																			photo_3766236.html');
												thumbnails[3668089] = new thumbnail(3668089,'223837','Tony Adams','portrait38_thumb.jpg',130, 104,15,'																			photo_3668089.html');
												thumbnails[3760769] = new thumbnail(3760769,'17614','Jimmy Carr','pic4_thumb.jpg',130, 165,15,'																			photo_3760769.html');
												thumbnails[3668135] = new thumbnail(3668135,'223837','Cliff Jones & Bobby Smith','portrait39_thumb.jpg',130, 104,15,'																			photo_3668135.html');
												thumbnails[3761095] = new thumbnail(3761095,'230403','June Sarpong','pic6_thumb.jpg',130, 164,15,'																			photo_3761095.html');
												thumbnails[3668179] = new thumbnail(3668179,'223837','Cliff Jones & Bobby Smith','portrait40_thumb.jpg',130, 104,15,'																			photo_3668179.html');
												thumbnails[310959] = new thumbnail(310959,'17614','Janet Cardiff & George Bures Miller','Cardiff_thumb.jpg',130, 101,15,'																			photo_310959.html');
												thumbnails[3668461] = new thumbnail(3668461,'223837','Dermot Desmond','portrait41_thumb.jpg',130, 162,15,'																			photo_3668461.html');
												thumbnails[3762622] = new thumbnail(3762622,'230403','Doves','pic33_thumb.jpg',130, 164,15,'																			photo_3762622.html');
												thumbnails[3668463] = new thumbnail(3668463,'223837','Dermond Desmond','portrait42_thumb.jpg',130, 162,15,'																			photo_3668463.html');
												thumbnails[3766216] = new thumbnail(3766216,'17614','Alison Goldfrapp','pic37_thumb.jpg',130, 166,15,'																			photo_3766216.html');
												thumbnails[3742905] = new thumbnail(3742905,'223837','David Gill','portrait65_thumb.jpg',130, 157,15,'																			photo_3742905.html');
												thumbnails[3668691] = new thumbnail(3668691,'223837','Joe Jordan','portrait443_thumb.jpg',130, 162,15,'																			photo_3668691.html');
												thumbnails[3777743] = new thumbnail(3777743,'17614','Miss Dynamite','pic47_thumb.jpg',130, 164,15,'																			photo_3777743.html');
												thumbnails[3735517] = new thumbnail(3735517,'223837','Glen Hoddle','portrait60_thumb.jpg',130, 103,15,'																			photo_3735517.html');
												thumbnails[3761246] = new thumbnail(3761246,'17614','Miss Dynamite','pic10_thumb.jpg',130, 164,15,'																			photo_3761246.html');
												thumbnails[3668701] = new thumbnail(3668701,'223837','Glen Hoddle','portrait45_thumb.jpg',130, 162,15,'																			photo_3668701.html');
												thumbnails[3735449] = new thumbnail(3735449,'223837','Aaron Lennon','portrait59_thumb.jpg',130, 160,15,'																			photo_3735449.html');
												thumbnails[3762376] = new thumbnail(3762376,'230403','Craig David','pic31_thumb.jpg',130, 165,15,'																			photo_3762376.html');
												thumbnails[3668708] = new thumbnail(3668708,'223837','Aaron Lennon','portrait46_thumb.jpg',130, 104,15,'																			photo_3668708.html');
												thumbnails[3766244] = new thumbnail(3766244,'230403','Badly Drawn Boy','pic41_thumb.jpg',130, 165,15,'																			photo_3766244.html');
												thumbnails[3668992] = new thumbnail(3668992,'222503','Anne Lambton','portrait47_thumb.jpg',130, 195,15,'																			photo_3668992.html');
												thumbnails[3766234] = new thumbnail(3766234,'230403','Paul Oakenfold','pic39_thumb.jpg',130, 164,15,'																			photo_3766234.html');
												thumbnails[3729888] = new thumbnail(3729888,'222503','Saloni Lodha','portrait48_thumb.jpg',130, 87,15,'																			photo_3729888.html');
												thumbnails[3762926] = new thumbnail(3762926,'230403','Beth Orton','pic36_thumb.jpg',130, 102,15,'																			photo_3762926.html');
												thumbnails[3729949] = new thumbnail(3729949,'222503','Ashish Gupta','portrait49_thumb.jpg',130, 87,15,'																			photo_3729949.html');
												thumbnails[3762412] = new thumbnail(3762412,'17614','So Solid Crew','pic32_thumb.jpg',130, 103,15,'																			photo_3762412.html');
												thumbnails[3729960] = new thumbnail(3729960,'222503','Aseef Vaza','portrait50_thumb.jpg',130, 195,15,'																			photo_3729960.html');
												thumbnails[3730030] = new thumbnail(3730030,'222503','Sharan Apparao','portrait511_thumb.jpg',130, 87,15,'																			photo_3730030.html');
												thumbnails[3735066] = new thumbnail(3735066,'222503','Ranjani Shettar','portrait52_thumb.jpg',130, 195,15,'																			photo_3735066.html');
												thumbnails[3735078] = new thumbnail(3735078,'222503','Mekhala Bahl','portrait53_thumb.jpg',130, 195,15,'																			photo_3735078.html');
												thumbnails[3735082] = new thumbnail(3735082,'222503','Prajakta Potnis','portrait54_thumb.jpg',130, 195,15,'																			photo_3735082.html');
												thumbnails[3735108] = new thumbnail(3735108,'222503','Tejal Shah','portrait55_thumb.jpg',130, 195,15,'																			photo_3735108.html');
												thumbnails[3735120] = new thumbnail(3735120,'222503','Prajakta Palav Aher','portrait56_thumb.jpg',130, 87,15,'																			photo_3735120.html');
												thumbnails[3735212] = new thumbnail(3735212,'222503','Shilpa Gupta','portrait57_thumb.jpg',130, 195,15,'																			photo_3735212.html');
												thumbnails[3735322] = new thumbnail(3735322,'222503','Suhasini Kejriwal','portrait58_thumb.jpg',130, 195,15,'																			photo_3735322.html');
												thumbnails[3735699] = new thumbnail(3735699,'223837','White Hart Lane','portrait61_thumb.jpg',130, 102,15,'																			photo_3735699.html');
												thumbnails[3735763] = new thumbnail(3735763,'223837','White Hart Lane','portrait62_thumb.jpg',130, 162,15,'																			photo_3735763.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[222503] = new gallery(222503,'7318566','Portraits','gallery',[7288942,7288952,7318566,7318567,3663388,3663841,3663551,3663532,3663760,3640438,3640139,3663868,3663933,3663964,3664007,3664016,3664071,3664093,3664108,3664125,3664373,3664528,3664538,3668992,3729888,3729949,3729960,3730030,3735066,3735078,3735082,3735108,3735120,3735212,3735322],0, 0, '', '																																																																																																							gallery_222503.html',0,0);
				  					galleries[223837] = new gallery(223837,'3743137,3742905,3735920,3735763,3735699,3735517,3735449,3668708,3668701,3668691','Opus Books','gallery',[3664555,3743137,3664628,3664640,3664660,3664690,3664711,3664739,3667898,3668009,3735920,3668012,3668089,3668135,3668179,3668461,3668463,3742905,3668691,3735517,3668701,3735449,3668708,3735699,3735763],0, 0, '', '																																																																																																							gallery_223837.html',0,0);
				  					galleries[223809] = new gallery(223809,'3664223,3664219,3664215,3664204,3664201,3664199,3664190','Westwood','gallery',[3664190,3664199,3664201,3664204,3664215,3664219,3664223],0, 0, '', '																																																																																																							gallery_223809.html',0,0);
				  					galleries[222548] = new gallery(222548,'3655989,3642271,3642214,3642204,3642052,3642023,3641917,3641787,3641764,3641623','Fashion','gallery',[3641232,3641279,3641395,3641433,3641578,3641623,3641764,3641787,3641917,3642023,3642052,3655989,3642204,3642214,3642271],0, 0, '', '																																																																																																							gallery_222548.html',0,0);
				  					galleries[223480] = new gallery(223480,'3658534,3658529,3658420,3658414,3658348,3658330,3658322,3658178,3658166,3658152','Land/Seascapes','gallery',[3657940,3657960,3657967,3657969,3657977,3657980,3657986,3657991,3657993,3657995,3658152,3658166,3658178,3658322,3658330,3658348,3658414,3658420,3658529,3658534],0, 0, '', '																																																																																																							gallery_223480.html',0,0);
				  					galleries[17614] = new gallery(17614,'3800209,3777953,3777869,3777829,3777743,3769606,3769497,3766236,3766229,3766216','Archive 1','gallery',[3769497,3769606,3757412,3800209,3761154,318222,3761858,3777869,3761969,3760761,3761173,306945,3761330,3762294,3761519,3777953,3761360,3761316,3762002,3762699,3766229,311012,3762632,3777829,3761111,3766236,3760769,310959,3766216,3777743,3761246,3762412],0, 0, '', '																																																																																																							gallery_17614.html',0,0);
				  					galleries[230403] = new gallery(230403,'3795054,3793828,3769579,3769430,3769384,3766244,3766234,3762926,3762622,3762376','Archive 2','gallery',[3795054,3769384,549194,343394,343343,3769579,3769430,332893,3761807,3761398,3761502,3762347,3761324,3793828,3761917,3761272,3761762,3760748,3761458,3760805,306915,3761600,3761095,3762622,3762376,3766244,3766234,3762926],0, 0, '', '																																																																																																							gallery_230403.html',0,0);
				  					galleries[17615] = new gallery(17615,'310948,309456,308809,308792,308773,308740,308711,308645,308628,308582','Scrapbook','gallery',[308503,308537,308558,308559,308572,308582,308628,308645,308711,308740,308773,308792,308809,309456,310948],0, 0, '', '																																																																																																							gallery_17615.html',0,0);
				  					galleries[394253] = new gallery(394253,'7288904,7288903,7288902,7288901,7288900,7288898','Yamaha Design Project','gallery',[7288898,7288900,7288901,7288902,7288903,7288904],0, 0, '', '																																																																																																							gallery_394253.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7318566,7288942,3735517,3668708,3668463,3664640,3664071,3663841';
imageSets[2] = '7318566';
imageSets[3] = '7318567,7318566,7288952,7288942,7288904,7288903,7288902,7288901,7288900,7288898,3800209,3795054,3793828,3777953,3777869,3777829,3777743,3769606,3769579,3769497,3769430,3769384,3766244,3766236,3766234,3766229,3766216,3762926,3762699,3762632,3762622,3762412,3762376,3762347,3762294,3762002,3761969,3761917,3761858,3761807,3761762,3761600,3761519,3761502,3761458,3761398,3761360,3761330,3761324,3761316';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/RichardLegge/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/RichardLegge/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 = 'Richard Legge 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;
	}
}

			

