window.thumbnails = new Object();
												thumbnails[7335807] = new thumbnail(7335807,'','Torrevieja','10-011-60_thumb.jpg',130, 167,15,'#');
												thumbnails[7335821] = new thumbnail(7335821,'','Playa Flamenca','10-021-4_thumb.jpg',130, 96,15,'#');
												thumbnails[1931007] = new thumbnail(1931007,'273331','Josselin','C07-058-03m copy2_thumb.jpg',130, 195,15,'photo_1931007.html');
												thumbnails[1975774] = new thumbnail(1975774,'273331','Granville','C07-030-12m copy_thumb.jpg',130, 94,15,'photo_1975774.html');
												thumbnails[2010025] = new thumbnail(2010025,'273332','Barcelona ','C06-037-491_thumb.jpg',130, 100,15,'photo_2010025.html');
												thumbnails[2010090] = new thumbnail(2010090,'273332','Alicante','C06-051-41_thumb.jpg',130, 91,15,'photo_2010090.html');
												thumbnails[4551705] = new thumbnail(4551705,'273318','','09-063-30_thumb.jpg',130, 95,15,'photo_4551705.html');
												thumbnails[4789314] = new thumbnail(4789314,'273331','Trouville','C07-034-74m_thumb.jpg',130, 154,15,'photo_4789314.html');
												thumbnails[4789331] = new thumbnail(4789331,'273331','Trouville','C07-034-82m1_thumb.jpg',130, 175,15,'photo_4789331.html');
												thumbnails[4789342] = new thumbnail(4789342,'273331','Trouville','C07-034-51m_thumb.jpg',130, 198,15,'photo_4789342.html');
												thumbnails[4819439] = new thumbnail(4819439,'273331','Saumur','09-060-371_thumb.jpg',130, 196,15,'photo_4819439.html');
												thumbnails[4819445] = new thumbnail(4819445,'273331','Granville','C07-046-721_thumb.jpg',130, 200,15,'photo_4819445.html');
												thumbnails[4985531] = new thumbnail(4985531,'273318','','09-087-162_copy_thumb.jpg',130, 105,15,'photo_4985531.html');
												thumbnails[4985549] = new thumbnail(4985549,'273318','','09-087-172_copy_thumb.jpg',130, 86,15,'photo_4985549.html');
												thumbnails[4985556] = new thumbnail(4985556,'273318','','09-087-169_copy_thumb.jpg',130, 87,15,'photo_4985556.html');
												thumbnails[4985607] = new thumbnail(4985607,'273318','','09-087-31_copy_thumb.jpg',130, 87,15,'photo_4985607.html');
												thumbnails[4985619] = new thumbnail(4985619,'273318','','09-087-40_copy_thumb.jpg',130, 130,15,'photo_4985619.html');
												thumbnails[4985665] = new thumbnail(4985665,'273318','','09-087-55_copy_thumb.jpg',130, 92,15,'photo_4985665.html');
												thumbnails[4988210] = new thumbnail(4988210,'273318','','09-087-56_copy_thumb.jpg',130, 87,15,'photo_4988210.html');
												thumbnails[4988211] = new thumbnail(4988211,'273318','','09-087-74_copy_thumb.jpg',130, 109,15,'photo_4988211.html');
												thumbnails[4996974] = new thumbnail(4996974,'273318','','09-054-007_copy_thumb.jpg',130, 157,15,'photo_4996974.html');
												thumbnails[5024449] = new thumbnail(5024449,'273318','','09-087-110_copy_thumb.jpg',130, 89,15,'photo_5024449.html');
												thumbnails[5024827] = new thumbnail(5024827,'273318','','09-087-114_copy_thumb.jpg',130, 85,15,'photo_5024827.html');
												thumbnails[5024831] = new thumbnail(5024831,'273318','','09-087-127_copy_thumb.jpg',130, 89,15,'photo_5024831.html');
												thumbnails[5565869] = new thumbnail(5565869,'273332','Torrevieja ','10-013-116_thumb.jpg',130, 132,15,'photo_5565869.html');
												thumbnails[6437526] = new thumbnail(6437526,'355277','','09-001-701_thumb.jpg',130, 195,15,'photo_6437526.html');
												thumbnails[6437530] = new thumbnail(6437530,'355277','','09-025-14_thumb.jpg',130, 87,15,'photo_6437530.html');
												thumbnails[6437533] = new thumbnail(6437533,'355277','','09-029-72_thumb.jpg',130, 156,15,'photo_6437533.html');
												thumbnails[6437555] = new thumbnail(6437555,'355277','','09-046-008_thumb.jpg',130, 175,15,'photo_6437555.html');
												thumbnails[6437560] = new thumbnail(6437560,'355277','','09-046-040_thumb.jpg',130, 135,15,'photo_6437560.html');
												thumbnails[6437561] = new thumbnail(6437561,'355277','','09-046-053_thumb.jpg',130, 172,15,'photo_6437561.html');
												thumbnails[6437722] = new thumbnail(6437722,'355277','','09-069-10_thumb.jpg',130, 94,15,'photo_6437722.html');
												thumbnails[6437740] = new thumbnail(6437740,'355277','','10-036-35_thumb.jpg',130, 130,15,'photo_6437740.html');
												thumbnails[6437750] = new thumbnail(6437750,'355277','','10-045-11_thumb.jpg',130, 118,15,'photo_6437750.html');
												thumbnails[6437756] = new thumbnail(6437756,'355277','','10-045-44_thumb.jpg',130, 175,15,'photo_6437756.html');
												thumbnails[6437902] = new thumbnail(6437902,'355277','','09-047-015_thumb.jpg',130, 58,15,'photo_6437902.html');
												thumbnails[6437919] = new thumbnail(6437919,'355277','','09-047-068_thumb.jpg',130, 129,15,'photo_6437919.html');
												thumbnails[6437924] = new thumbnail(6437924,'355277','','09-069-02_thumb.jpg',130, 120,15,'photo_6437924.html');
												thumbnails[6437936] = new thumbnail(6437936,'355277','','09-069-31_thumb.jpg',130, 91,15,'photo_6437936.html');
												thumbnails[6437937] = new thumbnail(6437937,'355277','','09-069-39_thumb.jpg',130, 118,15,'photo_6437937.html');
												thumbnails[6437945] = new thumbnail(6437945,'355277','','09-070-17_1F98E4DA-1D09-001F-995FC58D0422A153_thumb.jpg',130, 87,15,'photo_6437945.html');
												thumbnails[6437961] = new thumbnail(6437961,'355277','','09-074-79_thumb.jpg',130, 98,15,'photo_6437961.html');
												thumbnails[6437969] = new thumbnail(6437969,'355277','','09-089-13_thumb.jpg',130, 95,15,'photo_6437969.html');
												thumbnails[6437973] = new thumbnail(6437973,'355277','','09-102-39_thumb.jpg',130, 171,15,'photo_6437973.html');
												thumbnails[6437974] = new thumbnail(6437974,'355277','','09-102-54_thumb.jpg',130, 108,15,'photo_6437974.html');
												thumbnails[6437977] = new thumbnail(6437977,'355277','','09-110-07_thumb.jpg',130, 118,15,'photo_6437977.html');
												thumbnails[6437979] = new thumbnail(6437979,'355277','','10-030-72_thumb.jpg',130, 125,15,'photo_6437979.html');
												thumbnails[6437987] = new thumbnail(6437987,'355277','','10-030-78_thumb.jpg',130, 162,15,'photo_6437987.html');
												thumbnails[6438003] = new thumbnail(6438003,'355277','','10-030-98_thumb.jpg',130, 97,15,'photo_6438003.html');
												thumbnails[6438011] = new thumbnail(6438011,'355277','','10-036-65_thumb.jpg',130, 87,15,'photo_6438011.html');
												thumbnails[6438014] = new thumbnail(6438014,'355277','','10-036-76_thumb.jpg',130, 87,15,'photo_6438014.html');
												thumbnails[6438017] = new thumbnail(6438017,'355277','','10-037-104_thumb.jpg',130, 139,15,'photo_6438017.html');
												thumbnails[6438024] = new thumbnail(6438024,'355277','','10-037-115_thumb.jpg',130, 150,15,'photo_6438024.html');
												thumbnails[6438029] = new thumbnail(6438029,'355277','','10-044-72_thumb.jpg',130, 132,15,'photo_6438029.html');
												thumbnails[6438032] = new thumbnail(6438032,'355277','','10-045-07_thumb.jpg',130, 114,15,'photo_6438032.html');
												thumbnails[6438043] = new thumbnail(6438043,'355277','','10-045-56_thumb.jpg',130, 142,15,'photo_6438043.html');
												thumbnails[6438048] = new thumbnail(6438048,'355277','','10-045-64_thumb.jpg',130, 132,15,'photo_6438048.html');
												thumbnails[7322423] = new thumbnail(7322423,'355277','','10-049-49_thumb.jpg',130, 98,15,'photo_7322423.html');
												thumbnails[7322424] = new thumbnail(7322424,'355277','','10-053-31_thumb.jpg',130, 125,15,'photo_7322424.html');
												thumbnails[7322426] = new thumbnail(7322426,'355277','','10-053-34_thumb.jpg',130, 85,15,'photo_7322426.html');
												thumbnails[7322433] = new thumbnail(7322433,'355277','','10-078-132_thumb.jpg',130, 98,15,'photo_7322433.html');
												thumbnails[7322444] = new thumbnail(7322444,'273318','','10-073-170_thumb.jpg',130, 119,15,'photo_7322444.html');
												thumbnails[7322447] = new thumbnail(7322447,'273318','','10-071-06_thumb.jpg',130, 120,15,'photo_7322447.html');
												thumbnails[7323590] = new thumbnail(7323590,'355277','','10-059-17_thumb.jpg',130, 91,15,'photo_7323590.html');
												thumbnails[7323617] = new thumbnail(7323617,'355277','','10-056-86_thumb.jpg',130, 98,15,'photo_7323617.html');
												thumbnails[7335795] = new thumbnail(7335795,'273332','Torrevieja','10-002-01_thumb.jpg',130, 89,15,'photo_7335795.html');
												thumbnails[7335796] = new thumbnail(7335796,'273332','Torrevieja','10-003-11_thumb.jpg',130, 201,15,'photo_7335796.html');
												thumbnails[7335798] = new thumbnail(7335798,'273332','Alicante','10-004-24_thumb.jpg',130, 88,15,'photo_7335798.html');
												thumbnails[7335799] = new thumbnail(7335799,'273332','Valencia','10-006-57_thumb.jpg',130, 102,15,'photo_7335799.html');
												thumbnails[7335800] = new thumbnail(7335800,'273332','Alicante','10-009-0048_thumb.jpg',130, 165,15,'photo_7335800.html');
												thumbnails[7335801] = new thumbnail(7335801,'273332','Alicante','10-009-0175-2_thumb.jpg',130, 72,15,'photo_7335801.html');
												thumbnails[7335803] = new thumbnail(7335803,'273332','Torrevieja','10-010-89_thumb.jpg',130, 146,15,'photo_7335803.html');
												thumbnails[7335804] = new thumbnail(7335804,'273332','Torrevieja','10-010-135_thumb.jpg',130, 87,15,'photo_7335804.html');
												thumbnails[7335806] = new thumbnail(7335806,'273332','Torrevieja','10-011-11_thumb.jpg',130, 186,15,'photo_7335806.html');
												thumbnails[7335808] = new thumbnail(7335808,'273332','Torrevieja','10-011-601_thumb.jpg',130, 167,15,'photo_7335808.html');
												thumbnails[7335809] = new thumbnail(7335809,'273332','Torrevieja','10-011-93_thumb.jpg',130, 117,15,'photo_7335809.html');
												thumbnails[7335811] = new thumbnail(7335811,'273332','Torrevieja','10-015-128_thumb.jpg',130, 83,15,'photo_7335811.html');
												thumbnails[7335813] = new thumbnail(7335813,'273332','Torrevieja','10-016-41_thumb.jpg',130, 105,15,'photo_7335813.html');
												thumbnails[7335816] = new thumbnail(7335816,'273332','Alicante','10-018-179_thumb.jpg',130, 145,15,'photo_7335816.html');
												thumbnails[7335818] = new thumbnail(7335818,'273332','Torrevieja','10-019-02_thumb.jpg',130, 125,15,'photo_7335818.html');
												thumbnails[7335820] = new thumbnail(7335820,'273332','Torrevieja','10-019-64_thumb.jpg',130, 99,15,'photo_7335820.html');
												thumbnails[7335822] = new thumbnail(7335822,'273332','Playa Flamenca','10-021-41_thumb.jpg',130, 96,15,'photo_7335822.html');
												thumbnails[7335828] = new thumbnail(7335828,'273332','Torrevieja','10-021-12-2_thumb.jpg',130, 105,15,'photo_7335828.html');
												thumbnails[7335829] = new thumbnail(7335829,'273332','Torrevieja','10-021-28_thumb.jpg',130, 78,15,'photo_7335829.html');
												thumbnails[7335832] = new thumbnail(7335832,'273332','Torrevieja','10-022-1_thumb.jpg',130, 86,15,'photo_7335832.html');
												thumbnails[7335839] = new thumbnail(7335839,'273318','','10-069-80_thumb.jpg',130, 87,15,'photo_7335839.html');
												thumbnails[7335840] = new thumbnail(7335840,'273318','','10-069-161_thumb.jpg',130, 195,15,'photo_7335840.html');
												thumbnails[7335841] = new thumbnail(7335841,'273318','','10-073-150_thumb.jpg',130, 98,15,'photo_7335841.html');
												thumbnails[7338853] = new thumbnail(7338853,'355277','','09-009-19_thumb.jpg',130, 179,15,'photo_7338853.html');
												thumbnails[7349549] = new thumbnail(7349549,'273331','Villedieu','C06-055-28_thumb.jpg',130, 100,15,'photo_7349549.html');
												thumbnails[7349572] = new thumbnail(7349572,'273331','Deauville','C07-015-98bwG_thumb.jpg',130, 86,15,'photo_7349572.html');
												thumbnails[7349577] = new thumbnail(7349577,'273331','Deauville','C07-034-05m_thumb.jpg',130, 85,15,'photo_7349577.html');
												thumbnails[7349594] = new thumbnail(7349594,'273331','Villedeau','C07-030-31_thumb.jpg',130, 195,15,'photo_7349594.html');
												thumbnails[7349916] = new thumbnail(7349916,'273331','Granville','C07-061-58m_thumb.jpg',130, 87,15,'photo_7349916.html');
												thumbnails[7349934] = new thumbnail(7349934,'273331','Granville','C07-051-17_thumb.jpg',130, 95,15,'photo_7349934.html');
												thumbnails[7349956] = new thumbnail(7349956,'273331','Villedeau','C07-050-32_thumb.jpg',130, 195,15,'photo_7349956.html');
												thumbnails[7349961] = new thumbnail(7349961,'273331','Granville','C07-031-70m_thumb.jpg',130, 178,15,'photo_7349961.html');
												thumbnails[7349968] = new thumbnail(7349968,'273331','Granville','C07-063-55m_thumb.jpg',130, 99,15,'photo_7349968.html');
												thumbnails[7349974] = new thumbnail(7349974,'273331','Villedeau','C07-050-23m_thumb.jpg',130, 87,15,'photo_7349974.html');
												thumbnails[7349980] = new thumbnail(7349980,'273331','Rennes','C07-056-28_thumb.jpg',130, 105,15,'photo_7349980.html');
												thumbnails[7349985] = new thumbnail(7349985,'273331','Donneville','C07-063-69m_thumb.jpg',130, 195,15,'photo_7349985.html');
												thumbnails[7349988] = new thumbnail(7349988,'273331','Rennes','C07-059-90m_thumb.jpg',130, 69,15,'photo_7349988.html');
												thumbnails[7350000] = new thumbnail(7350000,'273331','Donneville','C07-063-67_thumb.jpg',130, 195,15,'photo_7350000.html');
												thumbnails[7350069] = new thumbnail(7350069,'273331','Rennes','C07-059-59m_thumb.jpg',130, 195,15,'photo_7350069.html');
												thumbnails[7350128] = new thumbnail(7350128,'273331','Rennes','C07-059-75m2_thumb.jpg',130, 133,15,'photo_7350128.html');
												thumbnails[7358619] = new thumbnail(7358619,'273332','Valencia','C06-056-71_thumb.jpg',130, 221,15,'photo_7358619.html');
												thumbnails[7358650] = new thumbnail(7358650,'273331','Le Mont St. Michel','C07-028-73m_thumb.jpg',130, 168,15,'photo_7358650.html');
												thumbnails[7358654] = new thumbnail(7358654,'273331','Granville','C07-030-45m_thumb.jpg',130, 98,15,'photo_7358654.html');
												thumbnails[7366083] = new thumbnail(7366083,'355277','','10-024-113_thumb.jpg',130, 103,15,'photo_7366083.html');
												thumbnails[7366086] = new thumbnail(7366086,'355277','','10-032-168b_thumb.jpg',130, 121,15,'photo_7366086.html');
												thumbnails[7366089] = new thumbnail(7366089,'355277','','10-045-27_thumb.jpg',130, 122,15,'photo_7366089.html');
												thumbnails[7366091] = new thumbnail(7366091,'355277','','10-049-45_thumb.jpg',130, 98,15,'photo_7366091.html');
												thumbnails[7366094] = new thumbnail(7366094,'355277','','10-078-238_thumb.jpg',130, 132,15,'photo_7366094.html');
												thumbnails[7366098] = new thumbnail(7366098,'355277','','10-049-53_thumb.jpg',130, 118,15,'photo_7366098.html');
												thumbnails[7370374] = new thumbnail(7370374,'355277','','09-025-77_thumb.jpg',130, 290,15,'photo_7370374.html');
												thumbnails[7370375] = new thumbnail(7370375,'355277','','09-069-33_thumb.jpg',130, 87,15,'photo_7370375.html');
												thumbnails[7370619] = new thumbnail(7370619,'355277','','09-039-152-2_thumb.jpg',130, 98,15,'photo_7370619.html');
												thumbnails[7453973] = new thumbnail(7453973,'273318','','09-065-45_thumb.jpg',130, 87,15,'photo_7453973.html');
												thumbnails[7453975] = new thumbnail(7453975,'273318','','09-054-050_thumb.jpg',130, 143,15,'photo_7453975.html');
												thumbnails[7453977] = new thumbnail(7453977,'273318','','09-059-43_thumb.jpg',130, 79,15,'photo_7453977.html');
												thumbnails[7456420] = new thumbnail(7456420,'273257','Chelsea','09-050-137_thumb.jpg',130, 200,15,'photo_7456420.html');
												thumbnails[7456427] = new thumbnail(7456427,'273257','Trafalgar Square','09-073-53-3_thumb.jpg',130, 87,15,'photo_7456427.html');
												thumbnails[7456434] = new thumbnail(7456434,'273257','Bloomsbury','09-100-95_thumb.jpg',130, 102,15,'photo_7456434.html');
												thumbnails[7456436] = new thumbnail(7456436,'273257','Trafalgar Square','09-073-54-2_thumb.jpg',130, 155,15,'photo_7456436.html');
												thumbnails[7456441] = new thumbnail(7456441,'273257','Bloomsbury','09-100-135_thumb.jpg',130, 115,15,'photo_7456441.html');
												thumbnails[7391480] = new thumbnail(7391480,'273257','Notting Hill','98-06-13_copy_thumb.jpg',130, 112,15,'photo_7391480.html');
												thumbnails[7391271] = new thumbnail(7391271,'273257','Notting Hill','98-02-02_thumb.jpg',130, 201,15,'photo_7391271.html');
												thumbnails[7391308] = new thumbnail(7391308,'273257','Notting Hill','98-06-11_thumb.jpg',130, 90,15,'photo_7391308.html');
												thumbnails[7391279] = new thumbnail(7391279,'273257','Notting Hill','98-05-361_thumb.jpg',130, 218,15,'photo_7391279.html');
												thumbnails[7391270] = new thumbnail(7391270,'273257','Notting Hill','98-02-16_thumb.jpg',130, 84,15,'photo_7391270.html');
												thumbnails[7335845] = new thumbnail(7335845,'273257','Victoria','10-080-77_thumb.jpg',130, 128,15,'photo_7335845.html');
												thumbnails[7335843] = new thumbnail(7335843,'273257','Victoria','10-080-09_thumb.jpg',130, 195,15,'photo_7335843.html');
												thumbnails[7335851] = new thumbnail(7335851,'273257','Victoria','10-080-236_thumb.jpg',130, 100,15,'photo_7335851.html');
												thumbnails[7335847] = new thumbnail(7335847,'273257','Victoria','10-080-95_thumb.jpg',130, 87,15,'photo_7335847.html');
												thumbnails[7335853] = new thumbnail(7335853,'273257','Trafalgar Square','10-080-360_thumb.jpg',130, 95,15,'photo_7335853.html');
												thumbnails[7323587] = new thumbnail(7323587,'273257','Haymarket','10-060-43_thumb.jpg',130, 173,15,'photo_7323587.html');
												thumbnails[1918424] = new thumbnail(1918424,'273257','Piccadilly','01-113-091_thumb.jpg',130, 111,15,'photo_1918424.html');
												thumbnails[6553285] = new thumbnail(6553285,'273257','New Bond Street','10-060-641_thumb.jpg',130, 98,15,'photo_6553285.html');
												thumbnails[4775086] = new thumbnail(4775086,'273257','Bloomsbury.','09-030-09_thumb.jpg',130, 135,15,'photo_4775086.html');
												thumbnails[7358637] = new thumbnail(7358637,'273257','Oxford Street','C07-006-10_thumb.jpg',130, 155,15,'photo_7358637.html');
												thumbnails[7335836] = new thumbnail(7335836,'273257','Kensington','10-033-275_thumb.jpg',130, 90,15,'photo_7335836.html');
												thumbnails[7323603] = new thumbnail(7323603,'273257','Downing Street','10-056-140_thumb.jpg',130, 98,15,'photo_7323603.html');
												thumbnails[7323601] = new thumbnail(7323601,'273257','Whitehall','10-057-09_thumb.jpg',130, 98,15,'photo_7323601.html');
												thumbnails[7323594] = new thumbnail(7323594,'273257','Covent Garden','10-057-49_thumb.jpg',130, 97,15,'photo_7323594.html');
												thumbnails[7323571] = new thumbnail(7323571,'273257','Covent Garden','10-076-42_thumb.jpg',130, 98,15,'photo_7323571.html');
												thumbnails[7322458] = new thumbnail(7322458,'273257','Carnaby Street','10-061-116_thumb.jpg',130, 173,15,'photo_7322458.html');
												thumbnails[7322431] = new thumbnail(7322431,'273257','Trafalgar Square','10-056-110_thumb.jpg',130, 98,15,'photo_7322431.html');
												thumbnails[7322408] = new thumbnail(7322408,'273257','Knightsbridge','10-041-145_thumb.jpg',130, 182,15,'photo_7322408.html');
												thumbnails[7322403] = new thumbnail(7322403,'273257','Knightsbridge','10-041-136_thumb.jpg',130, 98,15,'photo_7322403.html');
												thumbnails[7322400] = new thumbnail(7322400,'273257','Kensington','10-041-133_thumb.jpg',130, 109,15,'photo_7322400.html');
												thumbnails[7322397] = new thumbnail(7322397,'273257','Portobello Road','10-041-20_thumb.jpg',130, 103,15,'photo_7322397.html');
												thumbnails[7322390] = new thumbnail(7322390,'273257','Portobello Road','10-040-156_thumb.jpg',130, 98,15,'photo_7322390.html');
												thumbnails[7322387] = new thumbnail(7322387,'273257','Portobello Road','10-040-134_thumb.jpg',130, 112,15,'photo_7322387.html');
												thumbnails[7322384] = new thumbnail(7322384,'273257','Portobello Road','10-040-119_thumb.jpg',130, 98,15,'photo_7322384.html');
												thumbnails[7322375] = new thumbnail(7322375,'273257','Portobello Road','10-040-84_thumb.jpg',130, 119,15,'photo_7322375.html');
												thumbnails[7321910] = new thumbnail(7321910,'273257','Knightsbridge','10-040-58_thumb.jpg',130, 107,15,'photo_7321910.html');
												thumbnails[7321898] = new thumbnail(7321898,'273257','Knightsbridge','10-040-57_thumb.jpg',130, 170,15,'photo_7321898.html');
												thumbnails[7321892] = new thumbnail(7321892,'273257','Saatchi Gallery','10-040-52_thumb.jpg',130, 110,15,'photo_7321892.html');
												thumbnails[7321706] = new thumbnail(7321706,'273257','Saatchi Gallery','10-040-39_thumb.jpg',130, 89,15,'photo_7321706.html');
												thumbnails[7321697] = new thumbnail(7321697,'273257','Saatchi Gallery','10-040-13_thumb.jpg',130, 105,15,'photo_7321697.html');
												thumbnails[7321700] = new thumbnail(7321700,'273257','Saatchi Gallery','10-040-16_thumb.jpg',130, 185,15,'photo_7321700.html');
												thumbnails[7322439] = new thumbnail(7322439,'273257','St. Martins','10-076-85_thumb.jpg',130, 94,15,'photo_7322439.html');
												thumbnails[7335856] = new thumbnail(7335856,'273257','Tate Modern','10-087-01_thumb.jpg',130, 84,15,'photo_7335856.html');
												thumbnails[7335857] = new thumbnail(7335857,'273257','Tate Modern','10-087-20_thumb.jpg',130, 89,15,'photo_7335857.html');
												thumbnails[7358640] = new thumbnail(7358640,'273257','Westminster','C07-011-61_thumb.jpg',130, 99,15,'photo_7358640.html');
												thumbnails[7358646] = new thumbnail(7358646,'273257','Westminster','C07-011-66_thumb.jpg',130, 195,15,'photo_7358646.html');
												thumbnails[7358648] = new thumbnail(7358648,'273257','Bloomsbury','C07-025-80Bsat4_thumb.jpg',130, 107,15,'photo_7358648.html');
												thumbnails[7358719] = new thumbnail(7358719,'273257','Bloomsbury','C07-025-94sat4_thumb.jpg',130, 123,15,'photo_7358719.html');
												thumbnails[7321690] = new thumbnail(7321690,'273257','Piccadilly','10-038-131_thumb.jpg',130, 98,15,'photo_7321690.html');
												thumbnails[7321652] = new thumbnail(7321652,'273257','Jermyn Street','10-038-120_thumb.jpg',130, 100,15,'photo_7321652.html');
												thumbnails[7316143] = new thumbnail(7316143,'273257','Jermyn Street','10-038-102_thumb.jpg',130, 156,15,'photo_7316143.html');
												thumbnails[7316138] = new thumbnail(7316138,'273257','Trafalgar Square','10-038-70_thumb.jpg',130, 134,15,'photo_7316138.html');
												thumbnails[7316124] = new thumbnail(7316124,'273257','Trafalgar Square','10-038-26_thumb.jpg',130, 132,15,'photo_7316124.html');
												thumbnails[7316103] = new thumbnail(7316103,'273257','Trafalgar Square','10-038-23_thumb.jpg',130, 127,15,'photo_7316103.html');
												thumbnails[4775149] = new thumbnail(4775149,'273257','Bloomsbury ','09-040-250_thumb.jpg',130, 178,15,'photo_4775149.html');
												thumbnails[4772339] = new thumbnail(4772339,'273257','The City ','C06-037-58m_copy_thumb.jpg',130, 195,15,'photo_4772339.html');
												thumbnails[4114359] = new thumbnail(4114359,'273257','Brick Lane','09-050-098copy_thumb.jpg',130, 166,15,'photo_4114359.html');
												thumbnails[4113777] = new thumbnail(4113777,'273257','Brick Lane','09-050-056_copy_thumb.jpg',130, 130,15,'photo_4113777.html');
												thumbnails[4113839] = new thumbnail(4113839,'273257','Brick Lane ','09-050-094_copy_thumb.jpg',130, 195,15,'photo_4113839.html');
												thumbnails[1934642] = new thumbnail(1934642,'273257','The City','C07-026-151_thumb.jpg',130, 195,15,'photo_1934642.html');
												thumbnails[1970945] = new thumbnail(1970945,'273331','Rennes ','C07-059-17m_thumb.jpg',130, 87,15,'photo_1970945.html');
												thumbnails[4551728] = new thumbnail(4551728,'273318','','09-064-03_thumb.jpg',130, 97,15,'photo_4551728.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[273257] = new gallery(273257,'7391271,7321652','London','gallery',[7456420,7456427,7456434,7456436,7456441,7391480,7391271,7391308,7391279,7391270,7335845,7335843,7335851,7335847,7335853,7323587,1918424,6553285,4775086,7358637,7335836,7323603,7323601,7323594,7323571,7322458,7322431,7322408,7322403,7322400,7322397,7322390,7322387,7322384,7322375,7321910,7321898,7321892,7321706,7321697,7321700,7322439,7335856,7335857,7358640,7358646,7358648,7358719,7321690,7321652,7316143,7316138,7316124,7316103,4775149,4772339,4114359,4113777,4113839,1934642],0, 0, '', 'gallery_273257.html',0,0);
				  					galleries[355277] = new gallery(355277,'6437756','Brighton ','gallery',[6437526,6437530,6437533,6437555,6437560,6437561,6437722,6437740,6437750,6437756,6437902,6437919,6437924,6437936,6437937,6437945,6437961,6437969,6437973,6437974,6437977,6437979,6437987,6438003,6438011,6438014,6438017,6438024,6438029,6438032,6438043,6438048,7322423,7322424,7322426,7322433,7323590,7323617,7338853,7366083,7366086,7366089,7366091,7366094,7366098,7370374,7370375,7370619],0, 0, '', 'gallery_355277.html',0,0);
				  					galleries[273318] = new gallery(273318,'7335839','Eastbourne','gallery',[4551705,4985531,4985549,4985556,4985607,4985619,4985665,4988210,4988211,4996974,5024449,5024827,5024831,7322444,7322447,7335839,7335840,7335841,7453973,7453975,7453977,4551728],0, 0, '', 'gallery_273318.html',0,0);
				  					galleries[273331] = new gallery(273331,'7349594','France','gallery',[1931007,1975774,4789314,4789331,4789342,4819439,4819445,7349549,7349572,7349577,7349594,7349916,7349934,7349956,7349961,7349968,7349974,7349980,7349985,7349988,7350000,7350069,7350128,7358650,7358654,1970945],0, 0, '', 'gallery_273331.html',0,0);
				  					galleries[273332] = new gallery(273332,'7335803,7335800,2010025','Spain','gallery',[2010025,2010090,5565869,7335795,7335796,7335798,7335799,7335800,7335801,7335803,7335804,7335806,7335808,7335809,7335811,7335813,7335816,7335818,7335820,7335822,7335828,7335829,7335832,7358619],0, 0, '', 'gallery_273332.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7391480,7335845';
imageSets[2] = '7391271,7349594,7335839,7335803,7335800,7321652,6437756,2010025';
imageSets[3] = '7350128,7350069,7350000,7349988,7349985,7349980,7349974,7349968,7349961,7349956,7349934,7349916,7349577,7349572,7349549';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/MalcolmScottFreeman/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Malcolm Freeman-Photographic Images.: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

