window.thumbnails = new Object();
												thumbnails[736323] = new thumbnail(736323,'56095','The Chrysler Building','DSC_0086pw_thumb.jpg',130, 195,18,'photo_736323.html');
												thumbnails[2767774] = new thumbnail(2767774,'56094','The Bridgewater Hall','DSC_0013pw_thumb.jpg',130, 203,18,'photo_2767774.html');
												thumbnails[4281494] = new thumbnail(4281494,'56089','','DSC_0019_thumb.jpg',130, 182,18,'photo_4281494.html');
												thumbnails[4138412] = new thumbnail(4138412,'56094','The Iron Bridge','Untitled-10_edited-1-copy_thumb.jpg',130, 87,18,'photo_4138412.html');
												thumbnails[4149193] = new thumbnail(4149193,'56095','The Empire State Bldg','Empire-3a1_thumb.jpg',130, 184,18,'photo_4149193.html');
												thumbnails[4281490] = new thumbnail(4281490,'56089','','DSC_0014_thumb.jpg',130, 87,18,'photo_4281490.html');
												thumbnails[2767776] = new thumbnail(2767776,'56094','New City Hall','DSC_0030pw_thumb.jpg',130, 162,18,'photo_2767776.html');
												thumbnails[4150804] = new thumbnail(4150804,'56095','Trinity Church, Wall Street','DSC_0075_thumb.jpg',130, 187,18,'photo_4150804.html');
												thumbnails[4281492] = new thumbnail(4281492,'56089','Joanna & Mark','DSC_0021_thumb.jpg',130, 182,18,'photo_4281492.html');
												thumbnails[736321] = new thumbnail(736321,'56095','The \"Flatiron\" or Fullers Building','DSC_0077pw_thumb.jpg',130, 184,18,'photo_736321.html');
												thumbnails[2768244] = new thumbnail(2768244,'56094','Cornholme','DSC_0036a_thumb.jpg',130, 89,18,'photo_2768244.html');
												thumbnails[4281500] = new thumbnail(4281500,'56089','','DSC_0106a_1_thumb.jpg',130, 91,18,'photo_4281500.html');
												thumbnails[2768226] = new thumbnail(2768226,'56094','St Stephen\'s Tower','DSC_0037_thumb.jpg',130, 189,18,'photo_2768226.html');
												thumbnails[4150810] = new thumbnail(4150810,'56095','The Seagram Bldg','DSC_0081ww_thumb.jpg',130, 187,18,'photo_4150810.html');
												thumbnails[4281488] = new thumbnail(4281488,'56089','','DSC_0001_thumb.jpg',130, 182,18,'photo_4281488.html');
												thumbnails[738233] = new thumbnail(738233,'56094','Victoria House','DSC_0054pw1_thumb.jpg',130, 87,18,'photo_738233.html');
												thumbnails[732940] = new thumbnail(732940,'56094','Kirk Patrick','DSC_0019pw_thumb.jpg',130, 87,18,'photo_732940.html');
												thumbnails[738234] = new thumbnail(738234,'56094','Crystal Tower','DSC_0055pw_thumb.jpg',130, 87,18,'photo_738234.html');
												thumbnails[736328] = new thumbnail(736328,'56094','The Gherkin or the Swiss Re Bldg','DSC_0038pw_thumb.jpg',130, 87,18,'photo_736328.html');
												thumbnails[738258] = new thumbnail(738258,'252824','Giacomo Puccini','DSC_0040pw1_thumb.jpg',130, 98,18,'photo_738258.html');
												thumbnails[740737] = new thumbnail(740737,'56094','Chesterton Mill.<br>\r\n<br>\r\n','DSC_0014pw1_thumb.jpg',130, 87,18,'photo_740737.html');
												thumbnails[4138704] = new thumbnail(4138704,'56093','Cley Mill','DSC_0035_thumb.jpg',130, 189,18,'photo_4138704.html');
												thumbnails[4173979] = new thumbnail(4173979,'252826','Sunrise over the Sahara','DSC_0087113_thumb.jpg',130, 62,18,'photo_4173979.html');
												thumbnails[4276521] = new thumbnail(4276521,'56100','Pampas Frond','DSC_0026b_thumb.jpg',130, 104,18,'photo_4276521.html');
												thumbnails[4276583] = new thumbnail(4276583,'56086','Paula','DSC_0005_thumb.jpg',130, 189,18,'photo_4276583.html');
												thumbnails[4280566] = new thumbnail(4280566,'56089','','DSC_0033_1_thumb.jpg',130, 163,18,'photo_4280566.html');
												thumbnails[4281484] = new thumbnail(4281484,'56099','Totem Pole','DSC_0225_thumb.jpg',130, 220,18,'photo_4281484.html');
												thumbnails[4283025] = new thumbnail(4283025,'56092','Man & Mist on the Pordoi','DSC_0072_thumb.jpg',130, 187,18,'photo_4283025.html');
												thumbnails[736058] = new thumbnail(736058,'56093','Skidby Mill','DSC_0056pw_thumb.jpg',130, 87,18,'photo_736058.html');
												thumbnails[4173997] = new thumbnail(4173997,'252826','Mirage','DSC_0011018_thumb.jpg',130, 64,18,'photo_4173997.html');
												thumbnails[4273932] = new thumbnail(4273932,'56100','Breaching Humpback Whale','DSC_0374lastb_thumb.jpg',130, 89,18,'photo_4273932.html');
												thumbnails[4276604] = new thumbnail(4276604,'56086','Self Portrait','DSC_0188_thumb.jpg',130, 189,18,'photo_4276604.html');
												thumbnails[4280572] = new thumbnail(4280572,'56089','','DSC_0034a_thumb.jpg',130, 163,18,'photo_4280572.html');
												thumbnails[4281786] = new thumbnail(4281786,'56092','Trickshaw','DSC_0052pw_thumb.jpg',130, 87,18,'photo_4281786.html');
												thumbnails[8153507] = new thumbnail(8153507,'56099','The Faceless Banker ','DSC_0009_edited-2_thumb.jpg',130, 193,18,'photo_8153507.html');
												thumbnails[8153556] = new thumbnail(8153556,'252824','Little Moreton Hall','DSC_0066a1_thumb.jpg',130, 87,18,'photo_8153556.html');
												thumbnails[740584] = new thumbnail(740584,'252824','The Trevi Fountain','DSC_0017pw_thumb.jpg',130, 98,18,'photo_740584.html');
												thumbnails[2761023] = new thumbnail(2761023,'56089','Becca & Phil','DSC_0043x_thumb.jpg',130, 104,18,'photo_2761023.html');
												thumbnails[4138699] = new thumbnail(4138699,'56093','Five Lock Staircase','DSC_0077_edited-2_thumb.jpg',130, 184,18,'photo_4138699.html');
												thumbnails[4155899] = new thumbnail(4155899,'56092','Abseil Sculpture','Manchester-men_thumb.jpg',130, 189,18,'photo_4155899.html');
												thumbnails[4174039] = new thumbnail(4174039,'252826','Dawn Take Off','DSC_0086zz112_thumb.jpg',130, 166,18,'photo_4174039.html');
												thumbnails[4273926] = new thumbnail(4273926,'56100','Cinnamon Coloured Black Bear','DSC_0020-1a_thumb.jpg',130, 90,18,'photo_4273926.html');
												thumbnails[4276579] = new thumbnail(4276579,'56086','Ice Maiden','blue-3_thumb.jpg',130, 170,18,'photo_4276579.html');
												thumbnails[4281486] = new thumbnail(4281486,'56099','The Clan House','DSC_0234-y_thumb.jpg',130, 189,18,'photo_4281486.html');
												thumbnails[8153509] = new thumbnail(8153509,'56099','London Pride','DSC_0015var1234_thumb.jpg',130, 176,18,'photo_8153509.html');
												thumbnails[728342] = new thumbnail(728342,'56093','Pitstone Mill.<br>\r\n','DSC_0003_thumb.jpg',130, 86,18,'photo_728342.html');
												thumbnails[738231] = new thumbnail(738231,'252824','Celebrating Women\'s Suffrage','DSC_0041pw1_thumb.jpg',130, 87,18,'photo_738231.html');
												thumbnails[738250] = new thumbnail(738250,'56092','A Quiet Backwater','DSC_0067pw_thumb.jpg',130, 87,18,'photo_738250.html');
												thumbnails[2767778] = new thumbnail(2767778,'252826','Ballooning at Dawn','DSC_0106_thumb.jpg',130, 65,18,'photo_2767778.html');
												thumbnails[4273246] = new thumbnail(4273246,'56100','Bluebells','DSC_0001zz_thumb.jpg',130, 87,18,'photo_4273246.html');
												thumbnails[4276590] = new thumbnail(4276590,'56086','Rachael','DSC_0006_thumb.jpg',130, 189,18,'photo_4276590.html');
												thumbnails[4280563] = new thumbnail(4280563,'56089','','DSC_0081a_1_thumb.jpg',130, 163,18,'photo_4280563.html');
												thumbnails[2778873] = new thumbnail(2778873,'252826','The Alhambra','DSC_0106a_thumb.jpg',130, 62,18,'photo_2778873.html');
												thumbnails[4273273] = new thumbnail(4273273,'56100','Common Crow','DSC_0050can2_thumb.jpg',130, 92,18,'photo_4273273.html');
												thumbnails[4276603] = new thumbnail(4276603,'56086','Watching me Watching you','DSC_0254a_thumb.jpg',130, 187,18,'photo_4276603.html');
												thumbnails[4280570] = new thumbnail(4280570,'56089','','DSC_0052_thumb.jpg',130, 163,18,'photo_4280570.html');
												thumbnails[4281461] = new thumbnail(4281461,'252824','Totem Pole Detail','DSC_0041cana_thumb.jpg',130, 89,18,'photo_4281461.html');
												thumbnails[4281481] = new thumbnail(4281481,'56099','Totem Pole','DSC_0222_thumb.jpg',130, 220,18,'photo_4281481.html');
												thumbnails[4281848] = new thumbnail(4281848,'56092','Morant Point Lighthouse','DSC_0050pw_thumb.jpg',130, 179,18,'photo_4281848.html');
												thumbnails[4283019] = new thumbnail(4283019,'56093','Berney Arms Mill','DSC_0022_thumb.jpg',130, 187,18,'photo_4283019.html');
												thumbnails[2761272] = new thumbnail(2761272,'56089','','DSC_0093y_thumb.jpg',130, 163,18,'photo_2761272.html');
												thumbnails[4280584] = new thumbnail(4280584,'56089','','DSC_0074a_thumb.jpg',130, 93,18,'photo_4280584.html');
												thumbnails[2421025] = new thumbnail(2421025,'56089','','DSC_0038a_thumb.jpg',130, 98,18,'photo_2421025.html');
												thumbnails[2761367] = new thumbnail(2761367,'56089','','DSC_0095_thumb.jpg',130, 104,18,'photo_2761367.html');
												thumbnails[4280589] = new thumbnail(4280589,'56089','','DSC_0154_1_thumb.jpg',130, 163,18,'photo_4280589.html');
												thumbnails[2761309] = new thumbnail(2761309,'56089','','DSC_0133x_thumb.jpg',130, 163,18,'photo_2761309.html');
												thumbnails[2768141] = new thumbnail(2768141,'56093','Abbey Ruins','DSC_0027_thumb.jpg',130, 89,18,'photo_2768141.html');
												thumbnails[4137823] = new thumbnail(4137823,'252824','Beside the Sea','DSC_0109_edited-1_thumb.jpg',130, 184,18,'photo_4137823.html');
												thumbnails[4273293] = new thumbnail(4273293,'56100','Red Squirrel','DSC_0107canad_thumb.jpg',130, 89,18,'photo_4273293.html');
												thumbnails[4276671] = new thumbnail(4276671,'56086','The Feather','DSC_0031pw_thumb.jpg',130, 104,18,'photo_4276671.html');
												thumbnails[4281416] = new thumbnail(4281416,'56092','One Ton Ford','DSC_0026bwa_thumb.jpg',130, 89,18,'photo_4281416.html');
												thumbnails[4281472] = new thumbnail(4281472,'252826','The Alhambra','DSC_0111_thumb.jpg',130, 189,18,'photo_4281472.html');
												thumbnails[4283028] = new thumbnail(4283028,'56095','Golden Gatepost','DSC_0119a_thumb.jpg',130, 189,18,'photo_4283028.html');
												thumbnails[4286349] = new thumbnail(4286349,'56099','Greyhound on Tracks','DSC_0084sky_thumb.jpg',130, 87,18,'photo_4286349.html');
												thumbnails[736335] = new thumbnail(736335,'56092','The Grand Canal','DSC_0029pw1_thumb.jpg',130, 74,18,'photo_736335.html');
												thumbnails[2417008] = new thumbnail(2417008,'56089','','DSC_0102_thumb.jpg',130, 104,18,'photo_2417008.html');
												thumbnails[4138702] = new thumbnail(4138702,'252826','Feluccas on the Nile','DSC_0093_thumb.jpg',130, 89,18,'photo_4138702.html');
												thumbnails[4147655] = new thumbnail(4147655,'56093','Pladda & Ailsa Craig from Arran','DSC_0018pw_thumb.jpg',130, 74,18,'photo_4147655.html');
												thumbnails[4148776] = new thumbnail(4148776,'56095','The Transamerica Pyramid','DSC_0041z_thumb.jpg',130, 189,18,'photo_4148776.html');
												thumbnails[4155894] = new thumbnail(4155894,'252824','Modern Sculpture','DSC_0107_edited-3_thumb.jpg',130, 187,18,'photo_4155894.html');
												thumbnails[4173948] = new thumbnail(4173948,'56099','One Ton Ford','DSC_0026c045_thumb.jpg',130, 89,18,'photo_4173948.html');
												thumbnails[4273299] = new thumbnail(4273299,'56100','Bracket Fungus','DSC_0086_thumb.jpg',130, 87,18,'photo_4273299.html');
												thumbnails[734162] = new thumbnail(734162,'56093','Wastwater and Great Gable','DSC_0025pw_thumb.jpg',130, 74,18,'photo_734162.html');
												thumbnails[2767800] = new thumbnail(2767800,'252824','Scrap Iron Sculpture','DSC_0044pwsp_thumb.jpg',130, 195,18,'photo_2767800.html');
												thumbnails[4273946] = new thumbnail(4273946,'56100','Baldheaded Eagle','DSC_0241a_thumb.jpg',130, 89,18,'photo_4273946.html');
												thumbnails[4276582] = new thumbnail(4276582,'56086','Pretty in Pink','DSC_0004_thumb.jpg',130, 130,18,'photo_4276582.html');
												thumbnails[4281465] = new thumbnail(4281465,'56099','Ice Exploration Vehicle','DSC_0082can_thumb.jpg',130, 93,18,'photo_4281465.html');
												thumbnails[4281844] = new thumbnail(4281844,'56092','Ministry of Culture','DSC_0091pwq_thumb.jpg',130, 98,18,'photo_4281844.html');
												thumbnails[4283036] = new thumbnail(4283036,'252826','Alcatraz Island','zz_thumb.jpg',130, 91,18,'photo_4283036.html');
												thumbnails[4301987] = new thumbnail(4301987,'56089','','DSC_0049_edited-1_thumb.jpg',130, 104,18,'photo_4301987.html');
												thumbnails[8153514] = new thumbnail(8153514,'56095','Liberty at Dusk','DSC_0065_edited-4_thumb.jpg',130, 88,18,'photo_8153514.html');
												thumbnails[738264] = new thumbnail(738264,'252826','St George\'s Island','DSC_0068pw_thumb.jpg',130, 87,18,'photo_738264.html');
												thumbnails[738571] = new thumbnail(738571,'56093','Linton Parish Church','DSC_0023pw1_thumb.jpg',130, 74,18,'photo_738571.html');
												thumbnails[2416985] = new thumbnail(2416985,'56089','','DSC_0138_thumb.jpg',130, 104,18,'photo_2416985.html');
												thumbnails[4137821] = new thumbnail(4137821,'56092','Greyhound on Tracks','DSC_0084bwa_edited_thumb.jpg',130, 87,18,'photo_4137821.html');
												thumbnails[4150806] = new thumbnail(4150806,'56095','The Sentinel Bldg. or Columbus Tower','DSC_0051b_edited-2_thumb.jpg',130, 184,18,'photo_4150806.html');
												thumbnails[4173970] = new thumbnail(4173970,'56099','Dan Dare attempts a \"Full Pull\"','DSC_0047ppp082_thumb.jpg',130, 91,18,'photo_4173970.html');
												thumbnails[4273321] = new thumbnail(4273321,'56100','Hibuscus Rosa Sinensis','DSC_0035pw_thumb.jpg',130, 104,18,'photo_4273321.html');
												thumbnails[4277787] = new thumbnail(4277787,'56086','Sisters','DSC_0105LN_thumb.jpg',130, 90,18,'photo_4277787.html');
												thumbnails[4281809] = new thumbnail(4281809,'252824','Ramses II','DSC_0113_thumb.jpg',130, 184,18,'photo_4281809.html');
												thumbnails[736052] = new thumbnail(736052,'56093','Aberystwyth in April','DSC_0060pw_thumb.jpg',130, 87,18,'photo_736052.html');
												thumbnails[4155886] = new thumbnail(4155886,'56092','','DSC_0020_thumb.jpg',130, 91,18,'photo_4155886.html');
												thumbnails[4174034] = new thumbnail(4174034,'56099','Ice Exploration Vehicle','DSC_0073can1031_thumb.jpg',130, 93,18,'photo_4174034.html');
												thumbnails[4273252] = new thumbnail(4273252,'56100','Golden Manteled Ground Squirrel','DSC_0014can_thumb.jpg',130, 93,18,'photo_4273252.html');
												thumbnails[4276598] = new thumbnail(4276598,'56086','Jonty','DSC_0036zzz_thumb.jpg',130, 111,18,'photo_4276598.html');
												thumbnails[4281470] = new thumbnail(4281470,'252826','The Alhambra','DSC_0091_thumb.jpg',130, 189,18,'photo_4281470.html');
												thumbnails[4283021] = new thumbnail(4283021,'252824','David','DSC_0030a_thumb.jpg',130, 187,18,'photo_4283021.html');
												thumbnails[4283033] = new thumbnail(4283033,'56095','Entering the Harbour','DSC_0319x_thumb.jpg',130, 189,18,'photo_4283033.html');
												thumbnails[2762261] = new thumbnail(2762261,'56089','','DSC_0154x_thumb.jpg',130, 163,18,'photo_2762261.html');
												thumbnails[736334] = new thumbnail(736334,'56092','Devon House','DSC_0046pw_thumb.jpg',130, 87,18,'photo_736334.html');
												thumbnails[738267] = new thumbnail(738267,'56095','The Twin Towers of the Manhattan Skyline, 1999','DSC_0079pw_thumb.jpg',130, 87,18,'photo_738267.html');
												thumbnails[2762271] = new thumbnail(2762271,'56089','','IMG_0017H&Ax_thumb.jpg',130, 105,18,'photo_2762271.html');
												thumbnails[2767783] = new thumbnail(2767783,'252826','Peyto Lake','DSC_0056can_thumb.jpg',130, 89,18,'photo_2767783.html');
												thumbnails[4155898] = new thumbnail(4155898,'56093','Long Meg and her Daughters','Long-Mega_thumb.jpg',130, 74,18,'photo_4155898.html');
												thumbnails[4173951] = new thumbnail(4173951,'56099','Silhouettes in the Woods','DSC_0029ax049_thumb.jpg',130, 89,18,'photo_4173951.html');
												thumbnails[4276526] = new thumbnail(4276526,'56100','Fluking Humpback Whale','DSC_0354lastbw_thumb.jpg',130, 93,18,'photo_4276526.html');
												thumbnails[4276592] = new thumbnail(4276592,'56086','Primroses','DSC_0008_thumb.jpg',130, 89,18,'photo_4276592.html');
												thumbnails[4276602] = new thumbnail(4276602,'56086','Ready for the Ball','DSC_0061_thumb.jpg',130, 181,18,'photo_4276602.html');
												thumbnails[4281710] = new thumbnail(4281710,'252824','The Collosii of Memnon','DSC_0007a_thumb.jpg',130, 93,18,'photo_4281710.html');
												thumbnails[738586] = new thumbnail(738586,'56095','The Brooklyn Bridge and Twin Towers','DSC_0095pwq_thumb.jpg',130, 87,18,'photo_738586.html');
												thumbnails[2765873] = new thumbnail(2765873,'56089','','IMG_0021x_thumb.jpg',130, 104,18,'photo_2765873.html');
												thumbnails[2767901] = new thumbnail(2767901,'252826','The Crowfoot Glacier','DSC_0043cand_thumb.jpg',130, 89,18,'photo_2767901.html');
												thumbnails[4137969] = new thumbnail(4137969,'56092','Tourists','DSC_0014bwlast_thumb.jpg',130, 93,18,'photo_4137969.html');
												thumbnails[4155888] = new thumbnail(4155888,'56093','Fisherman\'s Shed','DSC_0087pw_thumb.jpg',130, 87,18,'photo_4155888.html');
												thumbnails[4174005] = new thumbnail(4174005,'252824','Street Graffiti','DSC_0050a088_thumb.jpg',130, 87,18,'photo_4174005.html');
												thumbnails[4174024] = new thumbnail(4174024,'56099','Stunt Rider','DSC_0042073_thumb.jpg',130, 92,18,'photo_4174024.html');
												thumbnails[4273260] = new thumbnail(4273260,'56100','Lily','DSC_0092can_thumb.jpg',130, 89,18,'photo_4273260.html');
												thumbnails[4276681] = new thumbnail(4276681,'56086','Devon','DSC_0047pw_thumb.jpg',130, 162,18,'photo_4276681.html');
												thumbnails[732044] = new thumbnail(732044,'56089','Hilary & Andrew','IMG_0021bw_thumb.jpg',130, 104,18,'photo_732044.html');
												thumbnails[738566] = new thumbnail(738566,'56092','The Duomo and Campanile','DSC_0088pw1_thumb.jpg',130, 87,18,'photo_738566.html');
												thumbnails[2767772] = new thumbnail(2767772,'56095','The Waterfront, Seattle','DSC_0111can_thumb.jpg',130, 89,18,'photo_2767772.html');
												thumbnails[4174011] = new thumbnail(4174011,'56099','China Town','DSC_0136138_thumb.jpg',130, 189,18,'photo_4174011.html');
												thumbnails[4174043] = new thumbnail(4174043,'252824','Street Graffiti','DSC_0054094_thumb.jpg',130, 152,18,'photo_4174043.html');
												thumbnails[4273279] = new thumbnail(4273279,'56100','Busy Bees','DSC_0094a_thumb.jpg',130, 99,18,'photo_4273279.html');
												thumbnails[4276656] = new thumbnail(4276656,'56086','Auctioning Wyman Artworks','DSC_0215_thumb.jpg',130, 89,18,'photo_4276656.html');
												thumbnails[4281410] = new thumbnail(4281410,'56093','Lands End, Cornwall','DSC_0007_thumb.jpg',130, 89,18,'photo_4281410.html');
												thumbnails[4281478] = new thumbnail(4281478,'252826','Floating Ice','DSC_0142_thumb.jpg',130, 89,18,'photo_4281478.html');
												thumbnails[736060] = new thumbnail(736060,'56093','Over the Rickety Bridge','DSC_0058pw_thumb.jpg',130, 87,18,'photo_736060.html');
												thumbnails[736332] = new thumbnail(736332,'56092','Staithes','DSC_0043pw_thumb.jpg',130, 100,18,'photo_736332.html');
												thumbnails[4149132] = new thumbnail(4149132,'56095','The Hancock Tower from the Sears Tower','Lake_thumb.jpg',130, 92,18,'photo_4149132.html');
												thumbnails[4174118] = new thumbnail(4174118,'252824','The Sun Temple of Ramses II','DSC_0004009_thumb.jpg',130, 97,18,'photo_4174118.html');
												thumbnails[4174120] = new thumbnail(4174120,'56099','The Rockie Mountaineer in Black Canyon','DSC_0026042_thumb.jpg',130, 79,18,'photo_4174120.html');
												thumbnails[4276596] = new thumbnail(4276596,'56086','Yum Yum','DSC_0023_thumb.jpg',130, 163,18,'photo_4276596.html');
												thumbnails[4276676] = new thumbnail(4276676,'56100','Finches','DSC_0090pw_1_thumb.jpg',130, 87,18,'photo_4276676.html');
												thumbnails[4281414] = new thumbnail(4281414,'252826','Emerald Lake','DSC_0037a_thumb.jpg',130, 89,18,'photo_4281414.html');
												thumbnails[736055] = new thumbnail(736055,'56093','Standing Stones','DSC_0059pw_thumb.jpg',130, 87,18,'photo_736055.html');
												thumbnails[736331] = new thumbnail(736331,'56092','Abandoned Escort','DSC_0042pw_thumb.jpg',130, 87,18,'photo_736331.html');
												thumbnails[738270] = new thumbnail(738270,'56095','The Royal York Hotel and New Toronto','DSC_0074pw_thumb.jpg',130, 87,18,'photo_738270.html');
												thumbnails[2421285] = new thumbnail(2421285,'56089','','CIMG0627H&A_thumb.jpg',130, 105,18,'photo_2421285.html');
												thumbnails[2768234] = new thumbnail(2768234,'56100','Common Gull','DSC_0016_thumb.jpg',130, 89,18,'photo_2768234.html');
												thumbnails[4147733] = new thumbnail(4147733,'252826','Along the White Trail','DSC_0081_thumb.jpg',130, 84,18,'photo_4147733.html');
												thumbnails[4173975] = new thumbnail(4173975,'56099','Ludwig Fessler','DSC_0062pw097_thumb.jpg',130, 80,18,'photo_4173975.html');
												thumbnails[4277646] = new thumbnail(4277646,'56086','John & Julie','DSC_0001c_thumb.jpg',130, 185,18,'photo_4277646.html');
												thumbnails[4281796] = new thumbnail(4281796,'252824','Ram Sphinx','DSC_0080_thumb.jpg',130, 88,18,'photo_4281796.html');
												thumbnails[2765874] = new thumbnail(2765874,'56089','','IMG_0038x_thumb.jpg',130, 104,18,'photo_2765874.html');
												thumbnails[2421348] = new thumbnail(2421348,'56089','','DSC_0032-(2)_thumb.jpg',130, 163,18,'photo_2421348.html');
												thumbnails[4280377] = new thumbnail(4280377,'56089','','DSC_0018a_thumb.jpg',130, 104,18,'photo_4280377.html');
												thumbnails[728378] = new thumbnail(728378,'56089','Nicola & Paul','DSC_0050PN1_thumb.jpg',130, 88,18,'photo_728378.html');
												thumbnails[4280409] = new thumbnail(4280409,'56089','','DSC_0069a_thumb.jpg',130, 86,18,'photo_4280409.html');
												thumbnails[4148770] = new thumbnail(4148770,'56095','The CN Tower','CN-Tower-2_thumb.jpg',130, 189,18,'photo_4148770.html');
												thumbnails[4280531] = new thumbnail(4280531,'56089','','DSC_0096a_thumb.jpg',130, 195,18,'photo_4280531.html');
												thumbnails[2421301] = new thumbnail(2421301,'56089','','DSC_0003z_thumb.jpg',130, 182,18,'photo_2421301.html');
												thumbnails[4149142] = new thumbnail(4149142,'56095','The Chicago Tribune & Wrigley Bldg','tribune-5_thumb.jpg',130, 184,18,'photo_4149142.html');
												thumbnails[8153575] = new thumbnail(8153575,'56095','Reconstruction at Ground Zero','DSC_0017d1_thumb.jpg',130, 194,18,'photo_8153575.html');
												thumbnails[730631] = new thumbnail(730631,'56089','','DSC_0026RED_thumb.jpg',130, 87,18,'photo_730631.html');
												thumbnails[4174114] = new thumbnail(4174114,'56095','The Steam Driven Clock','DSC_0063can099_thumb.jpg',130, 189,18,'photo_4174114.html');
												thumbnails[730628] = new thumbnail(730628,'56089','Laura & Nigel','DSC_0018LNBW_thumb.jpg',130, 162,18,'photo_730628.html');
												thumbnails[732048] = new thumbnail(732048,'56089','','DSC_0138guests1_thumb.jpg',130, 104,18,'photo_732048.html');
												thumbnails[738291] = new thumbnail(738291,'56095','The Reliance Building','DSC_0083pw_thumb.jpg',130, 191,18,'photo_738291.html');
												thumbnails[738559] = new thumbnail(738559,'56089','','DSC_0037LNBW1_thumb.jpg',130, 184,18,'photo_738559.html');
												thumbnails[4278544] = new thumbnail(4278544,'56089','','DSC_0010c_thumb.jpg',130, 198,18,'photo_4278544.html');
												thumbnails[4278497] = new thumbnail(4278497,'56089','','DSC_0005_edited-1_thumb.jpg',130, 87,18,'photo_4278497.html');
												thumbnails[4278502] = new thumbnail(4278502,'56089','Lynn & Matt','DSC_0096_thumb.jpg',130, 194,18,'photo_4278502.html');
												thumbnails[4278292] = new thumbnail(4278292,'56089','','DSC_0031_edited-1_thumb.jpg',130, 87,18,'photo_4278292.html');
												thumbnails[4278438] = new thumbnail(4278438,'56089','','DSC_0001a_thumb.jpg',130, 194,18,'photo_4278438.html');
												thumbnails[4278293] = new thumbnail(4278293,'56089','','DSC_0082_thumb.jpg',130, 194,18,'photo_4278293.html');
												thumbnails[4278294] = new thumbnail(4278294,'56089','','DSC_0106_1_thumb.jpg',130, 92,18,'photo_4278294.html');
												thumbnails[4278291] = new thumbnail(4278291,'56089','','DSC-0089a_edited-1_thumb.jpg',130, 194,18,'photo_4278291.html');
												thumbnails[4278288] = new thumbnail(4278288,'56089','','DSC_0175_thumb.jpg',130, 87,18,'photo_4278288.html');
												thumbnails[4278407] = new thumbnail(4278407,'56089','','DSC_0109_thumb.jpg',130, 194,18,'photo_4278407.html');
												thumbnails[8147931] = new thumbnail(8147931,'56089','','DSC_0055D_thumb.jpg',130, 194,18,'photo_8147931.html');
												thumbnails[8148524] = new thumbnail(8148524,'56089','','DSC_0084_thumb.jpg',130, 194,18,'photo_8148524.html');
												thumbnails[8148359] = new thumbnail(8148359,'56089','Lorraine & Paul','DSC_0120_edited-1_thumb.jpg',130, 87,18,'photo_8148359.html');
												thumbnails[8148371] = new thumbnail(8148371,'56089','','DSC_0127_edited-1_thumb.jpg',130, 194,18,'photo_8148371.html');
												thumbnails[8148654] = new thumbnail(8148654,'56089','','DSC_0048_thumb.jpg',130, 194,18,'photo_8148654.html');
												thumbnails[8148938] = new thumbnail(8148938,'56089','','DSC_0026_thumb.jpg',130, 194,18,'photo_8148938.html');
												thumbnails[8148925] = new thumbnail(8148925,'56089','','DSC_0057_thumb.jpg',130, 87,18,'photo_8148925.html');
												thumbnails[8148930] = new thumbnail(8148930,'56089','Salina & Leeroy','DSC_0076_thumb.jpg',130, 87,18,'photo_8148930.html');
												thumbnails[8148946] = new thumbnail(8148946,'56089','','DSC_0120ed_thumb.jpg',130, 87,18,'photo_8148946.html');
												thumbnails[8148978] = new thumbnail(8148978,'56089','','DSC_0111ed_thumb.jpg',130, 194,18,'photo_8148978.html');
												thumbnails[8149024] = new thumbnail(8149024,'56089','','DSC_0045_thumb.jpg',130, 194,18,'photo_8149024.html');
												thumbnails[8149027] = new thumbnail(8149027,'56089','','DSC_0038_thumb.jpg',130, 90,18,'photo_8149027.html');
												thumbnails[8149034] = new thumbnail(8149034,'56089','Debbie & Ian','DSC_0224_edited-1_thumb.jpg',130, 182,18,'photo_8149034.html');
												thumbnails[8149039] = new thumbnail(8149039,'56089','','DSC_0057_BW_thumb.jpg',130, 90,18,'photo_8149039.html');
												thumbnails[8149081] = new thumbnail(8149081,'56089','','DSC_0184_edited-11_thumb.jpg',130, 194,18,'photo_8149081.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[56086] = new gallery(56086,'4276592','Portraits','gallery',[4276583,4276604,4276579,4276590,4276603,4276671,4276582,4277787,4276598,4276592,4276602,4276681,4276656,4276596,4277646],0, 0, '', 'gallery_56086.html',0,0);
				  					galleries[56089] = new gallery(56089,'4280584','Weddings','gallery',[4281494,4281490,4281492,4281500,4281488,4280566,4280572,2761023,4280563,4280570,2761272,4280584,2421025,2761367,4280589,2761309,2417008,4301987,2416985,2762261,2762271,2765873,732044,2421285,2765874,2421348,4280377,728378,4280409,4280531,2421301,730631,730628,732048,738559,4278544,4278497,4278502,4278292,4278438,4278293,4278294,4278291,4278288,4278407,8147931,8148524,8148359,8148371,8148654,8148938,8148925,8148930,8148946,8148978,8149024,8149027,8149034,8149039,8149081],0, 0, '', 'gallery_56089.html',0,0);
				  					galleries[56100] = new gallery(56100,'4273932','Natural History','gallery',[4276521,4273932,4273926,4273246,4273273,4273293,4273299,4273946,4273321,4273252,4276526,4273260,4273279,4276676,2768234],0, 0, '', 'gallery_56100.html',0,0);
				  					galleries[56093] = new gallery(56093,'736058','UK Landscapes','gallery',[4138704,736058,4138699,728342,4283019,2768141,4147655,734162,738571,736052,4155898,4155888,4281410,736060,736055],0, 0, '', 'gallery_56093.html',0,0);
				  					galleries[56094] = new gallery(56094,'738233','Architecture UK','gallery',[2767774,4138412,2767776,2768244,2768226,738233,732940,738234,736328,740737],0, 0, '', 'gallery_56094.html',0,0);
				  					galleries[56095] = new gallery(56095,'738267','Architecture USA','gallery',[736323,4149193,4150804,736321,4150810,4283028,4148776,8153514,4150806,4283033,738267,738586,2767772,4149132,738270,4148770,4149142,8153575,4174114,738291],0, 0, '', 'gallery_56095.html',0,0);
				  					galleries[252824] = new gallery(252824,'4281796,4281461','Record','gallery',[738258,8153556,740584,738231,4281461,4137823,4155894,2767800,4281809,4283021,4281710,4174005,4174043,4174118,4281796],0, 0, '', 'gallery_252824.html',0,0);
				  					galleries[56099] = new gallery(56099,'4173970','General','gallery',[4281484,8153507,4281486,8153509,4281481,4286349,4173948,4281465,4173970,4174034,4173951,4174024,4174011,4174120,4173975],0, 0, '', 'gallery_56099.html',0,0);
				  					galleries[252826] = new gallery(252826,'4138702','Other Landscapes','gallery',[4173979,4173997,4174039,2767778,2778873,4281472,4138702,4283036,738264,4281470,2767783,2767901,4281478,4281414,4147733],0, 0, '', 'gallery_252826.html',0,0);
				  					galleries[56092] = new gallery(56092,'736331','More Monochrome','gallery',[4283025,4281786,4155899,738250,4281848,4281416,736335,4281844,4137821,4155886,736334,4137969,738566,736332,736331],0, 0, '', 'gallery_56092.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '2761023';
imageSets[2] = '4281796,4281461,4280584,4276592,4273932,4173970,4138702,738267,738233,736331,736058';
imageSets[3] = '8153575,8153556,8153514,8153509,8153507,8149081,8149039,8149034,8149027,8149024,8148978,8148946,8148938,8148930,8148925,8148654,8148524,8148371,8148359,8147931,4301987,4286349,4283036,4283033,4283028,4283025,4283021,4283019,4281848,4281844,4281809,4281796,4281786,4281710,4281500,4281494,4281492,4281490,4281488,4281486,4281484,4281481,4281478,4281472,4281470,4281465,4281461,4281416,4281414,4281410';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/paulinfocus/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/paulinfocus/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 = 'Alfsson Imaging: ' + 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 == undefined) {
    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;
	}
}

			

