window.thumbnails = new Object();
												thumbnails[3907219] = new thumbnail(3907219,'','Gill & Paul','Gill--Me-0831_thumb.jpg',130, 172,15,'#');
												thumbnails[5171979] = new thumbnail(5171979,'236339','Kingfisher - Female','Kingfisher-2-0288_thumb.jpg',130, 147,15,'photo_5171979.html');
												thumbnails[5171982] = new thumbnail(5171982,'236339','Kingfisher - Female','Kingfisher---Female-0319_thumb.jpg',130, 104,15,'photo_5171982.html');
												thumbnails[4568160] = new thumbnail(4568160,'264892','Naqvi Family','3Sara_with_Mum__Dad-9827_thumb.jpg',130, 152,15,'photo_4568160.html');
												thumbnails[4568175] = new thumbnail(4568175,'264892','Sara','14Sara_-99181_thumb.jpg',130, 203,15,'photo_4568175.html');
												thumbnails[4568202] = new thumbnail(4568202,'264892','Nadeem & Naseema','19Naseema--Nadeem-on-Golf-Course-9934_thumb.jpg',130, 134,15,'photo_4568202.html');
												thumbnails[4568227] = new thumbnail(4568227,'264892','Sara & Hanna','26Sara--Hanna-9942_thumb.jpg',130, 104,15,'photo_4568227.html');
												thumbnails[4568247] = new thumbnail(4568247,'264892','Nadeem & Naseema','29Naseema--Nadeem_thumb.jpg',130, 182,15,'photo_4568247.html');
												thumbnails[4568916] = new thumbnail(4568916,'264892','A secret shared','12Sara-whispers-to-Dad-9916_thumb.jpg',130, 119,15,'photo_4568916.html');
												thumbnails[3898141] = new thumbnail(3898141,'236328','Star','Star-2_thumb.jpg',130, 115,15,'photo_3898141.html');
												thumbnails[3914994] = new thumbnail(3914994,'236328','Star','Star-11_thumb.jpg',130, 89,15,'photo_3914994.html');
												thumbnails[3908312] = new thumbnail(3908312,'236339','Goldfinch','Gold-Finch-7688_thumb.jpg',130, 107,15,'photo_3908312.html');
												thumbnails[3908894] = new thumbnail(3908894,'236339','Blue Tit on branch','Blue-Tit-on-branch-0052_thumb.jpg',130, 95,15,'photo_3908894.html');
												thumbnails[3915449] = new thumbnail(3915449,'236339','Chiffchaff on Lookout','Chichaff-on-Lookout-7775_thumb.jpg',130, 127,15,'photo_3915449.html');
												thumbnails[3908277] = new thumbnail(3908277,'236339','Male Great Spotted Woodpecker','Great-Spotted-Woodpecker-7202_thumb.jpg',130, 222,15,'photo_3908277.html');
												thumbnails[3908291] = new thumbnail(3908291,'236339','Blue Tit','Blue-Tit-7387_thumb.jpg',130, 172,15,'photo_3908291.html');
												thumbnails[3896829] = new thumbnail(3896829,'236336','A4 Bittern','A4-Bittern1-6704_thumb.jpg',130, 67,15,'photo_3896829.html');
												thumbnails[3914874] = new thumbnail(3914874,'236336','Tangmere','Tangmere-6406_thumb.jpg',130, 187,15,'photo_3914874.html');
												thumbnails[3903821] = new thumbnail(3903821,'236335','Tree Nymph Butterfly','Tree-Nymph-Butterfly-6375_thumb.jpg',130, 96,15,'photo_3903821.html');
												thumbnails[3908244] = new thumbnail(3908244,'236335','Blue Morph Butterfly','Blue-Morph-Butterfly-6383_thumb.jpg',130, 83,15,'photo_3908244.html');
												thumbnails[3909352] = new thumbnail(3909352,'236335','Butterfly on pink flower','Butterfly-on-pink-flower-0010_thumb.jpg',130, 97,15,'photo_3909352.html');
												thumbnails[3908922] = new thumbnail(3908922,'236318','Winter Lock','Snowy-Lock-6229_thumb.jpg',130, 86,15,'photo_3908922.html');
												thumbnails[3914495] = new thumbnail(3914495,'236318','Frozen Canal','Frozen-Canal-6222_thumb.jpg',130, 84,15,'photo_3914495.html');
												thumbnails[3914504] = new thumbnail(3914504,'236336','Winter Rail','Winter-Rail-6218_thumb.jpg',130, 196,15,'photo_3914504.html');
												thumbnails[3906319] = new thumbnail(3906319,'264532','Gemma','Gemma--6071_thumb.jpg',130, 236,15,'photo_3906319.html');
												thumbnails[3906322] = new thumbnail(3906322,'264532','Gemma','Gemma-1-6109_thumb.jpg',130, 100,15,'photo_3906322.html');
												thumbnails[3906329] = new thumbnail(3906329,'264532','Gemma','Gemma-2-6119_thumb.jpg',130, 197,15,'photo_3906329.html');
												thumbnails[3906344] = new thumbnail(3906344,'264532','Gemma','Gemma-3-6126_thumb.jpg',130, 206,15,'photo_3906344.html');
												thumbnails[3906357] = new thumbnail(3906357,'264532','Gemma','Gemma-4-6082_thumb.jpg',130, 253,15,'photo_3906357.html');
												thumbnails[3906369] = new thumbnail(3906369,'264533','Lauren','Lauren1-6029_thumb.jpg',130, 160,15,'photo_3906369.html');
												thumbnails[3906384] = new thumbnail(3906384,'264533','Lauren','Lauren2-6031_thumb.jpg',130, 111,15,'photo_3906384.html');
												thumbnails[3901697] = new thumbnail(3901697,'236339','Robin on Ice','Robin-on-Ice-0017_thumb.jpg',130, 132,15,'photo_3901697.html');
												thumbnails[3904261] = new thumbnail(3904261,'236339','Coscoroba Swan','Coscoroba_Swan-5657_thumb.jpg',130, 86,15,'photo_3904261.html');
												thumbnails[4562088] = new thumbnail(4562088,'264533','Lauren','Lauren_thumb.jpg',130, 234,15,'photo_4562088.html');
												thumbnails[4562111] = new thumbnail(4562111,'264532','Gemma Reclining','Gemma_reclining_thumb.jpg',130, 93,15,'photo_4562111.html');
												thumbnails[3914437] = new thumbnail(3914437,'238181','London Street Performer','London-Street-Performer-5609_thumb.jpg',130, 195,15,'photo_3914437.html');
												thumbnails[3914448] = new thumbnail(3914448,'238181','London Eye','London-Eye-5588_thumb.jpg',130, 195,15,'photo_3914448.html');
												thumbnails[3914474] = new thumbnail(3914474,'238181','Big Ben','Big-Ben-5628_thumb.jpg',130, 190,15,'photo_3914474.html');
												thumbnails[3898420] = new thumbnail(3898420,'236327','Vicky & Daniel','VickyDaniel-5572_thumb.jpg',130, 95,15,'photo_3898420.html');
												thumbnails[3892829] = new thumbnail(3892829,'236332','Early Morning Mist','EarlyMorningMist0008_thumb.jpg',130, 90,15,'photo_3892829.html');
												thumbnails[3896757] = new thumbnail(3896757,'236336','A4 Bittern','A4-Bittern-5313_thumb.jpg',130, 90,15,'photo_3896757.html');
												thumbnails[3908388] = new thumbnail(3908388,'236336','LNER Doncaster','Doncaster-LNER-5324_thumb.jpg',130, 76,15,'photo_3908388.html');
												thumbnails[3904256] = new thumbnail(3904256,'236332','Wild eyed Stare','Wild-eyed-stare-5161_thumb.jpg',130, 115,15,'photo_3904256.html');
												thumbnails[3901546] = new thumbnail(3901546,'236334','Puff Ball Fungi','Puff-Ball-Fungi-4663_thumb.jpg',130, 94,15,'photo_3901546.html');
												thumbnails[3896154] = new thumbnail(3896154,'236330','Branden','Branden-01962_thumb.jpg',130, 136,15,'photo_3896154.html');
												thumbnails[3904292] = new thumbnail(3904292,'236330','Jordan','Jordan-0112_thumb.jpg',130, 165,15,'photo_3904292.html');
												thumbnails[3903689] = new thumbnail(3903689,'236334','Fuschia','Fuschia-4281_thumb.jpg',130, 194,15,'photo_3903689.html');
												thumbnails[3909694] = new thumbnail(3909694,'238181','Overflow','Overflow-0078_thumb.jpg',130, 63,15,'photo_3909694.html');
												thumbnails[3909716] = new thumbnail(3909716,'236334','Purple Explosion','Purple-explosion-0079_thumb.jpg',130, 112,15,'photo_3909716.html');
												thumbnails[3901876] = new thumbnail(3901876,'236339','Eagle Hawk','Eagle-Hawk-4232_thumb.jpg',130, 76,15,'photo_3901876.html');
												thumbnails[3896998] = new thumbnail(3896998,'236337','Red Arrows','Red_Arrows-2654_thumb.jpg',130, 79,15,'photo_3896998.html');
												thumbnails[3897036] = new thumbnail(3897036,'236337','Red Arrows','Red_Arrows_1-2665_thumb.jpg',130, 50,15,'photo_3897036.html');
												thumbnails[3897082] = new thumbnail(3897082,'236337','Trio of Hunters','Trio_of_-Hunters-3344_thumb.jpg',130, 112,15,'photo_3897082.html');
												thumbnails[3906309] = new thumbnail(3906309,'264532','Bellydancer Gemma','Gemma-Bellydancing-3784_thumb.jpg',130, 196,15,'photo_3906309.html');
												thumbnails[3906450] = new thumbnail(3906450,'264533','Lauren & Mike','Mike--Lauren-3745_thumb.jpg',130, 86,15,'photo_3906450.html');
												thumbnails[3906477] = new thumbnail(3906477,'264533','Mike, Lauren\'s boyfriend.','Mike1-3704_thumb.jpg',130, 196,15,'photo_3906477.html');
												thumbnails[4561941] = new thumbnail(4561941,'264533','A humerous interlude!','Lauren--Mike-smacking_thumb.jpg',130, 100,15,'photo_4561941.html');
												thumbnails[4561996] = new thumbnail(4561996,'264533','Lauren & Mike','Lauren__Mike_thumb.jpg',130, 196,15,'photo_4561996.html');
												thumbnails[4562064] = new thumbnail(4562064,'264532','Gemma ','Gemma_Bellydancing_thumb.jpg',130, 186,15,'photo_4562064.html');
												thumbnails[3896865] = new thumbnail(3896865,'236337','Vulcan XH558','Vulcan_XH558-3174_thumb.jpg',130, 104,15,'photo_3896865.html');
												thumbnails[3896939] = new thumbnail(3896939,'236337','Consolidated PBY Catalina','Consolidated_PBY_Catalina-2454_thumb.jpg',130, 90,15,'photo_3896939.html');
												thumbnails[3896949] = new thumbnail(3896949,'236337','Consolidated PBY Catalina','Consolidated_PBY_Catalina-2427_thumb.jpg',130, 91,15,'photo_3896949.html');
												thumbnails[3898284] = new thumbnail(3898284,'236328','Tara','Tara-1-1889_thumb.jpg',130, 250,15,'photo_3898284.html');
												thumbnails[3904269] = new thumbnail(3904269,'236330','Kurtis','Kurtis-0021_thumb.jpg',130, 215,15,'photo_3904269.html');
												thumbnails[3901707] = new thumbnail(3901707,'236335','4 Spotted Chaser','4-Spotted-Chaser-_thumb.jpg',130, 77,15,'photo_3901707.html');
												thumbnails[3896715] = new thumbnail(3896715,'236336','Branch Line','train1-0802_thumb.jpg',130, 202,15,'photo_3896715.html');
												thumbnails[3904428] = new thumbnail(3904428,'236318','Loch Rannoch','Loch-Rannoch-0023_thumb.jpg',130, 72,15,'photo_3904428.html');
												thumbnails[3904442] = new thumbnail(3904442,'236318','Waterfall nr Loch Rannoch','Loch-Rannoch-Waterfall-0026_thumb.jpg',130, 194,15,'photo_3904442.html');
												thumbnails[3906193] = new thumbnail(3906193,'236318','Scottish Landscape 2','Scotish-Landscape2-0284_thumb.jpg',130, 86,15,'photo_3906193.html');
												thumbnails[3904389] = new thumbnail(3904389,'236318','Scottish Landscape','Scottish-Landscape-0256_thumb.jpg',130, 195,15,'photo_3904389.html');
												thumbnails[3904474] = new thumbnail(3904474,'236318','Loch Tay','Loch-Earn-0020_thumb.jpg',130, 68,15,'photo_3904474.html');
												thumbnails[3904494] = new thumbnail(3904494,'236318','Nr Newton Bridge','Nr-Newton-Bridge-0017_thumb.jpg',130, 87,15,'photo_3904494.html');
												thumbnails[3904527] = new thumbnail(3904527,'236318','The Naked Tree','The-Naked-Tree-0257_thumb.jpg',130, 133,15,'photo_3904527.html');
												thumbnails[3909655] = new thumbnail(3909655,'236318','Autumn Glory','Autumn-Glory-_thumb.jpg',130, 194,15,'photo_3909655.html');
												thumbnails[3914652] = new thumbnail(3914652,'236338','Green Curves','Green-Curves-0021_thumb.jpg',130, 87,15,'photo_3914652.html');
												thumbnails[3914745] = new thumbnail(3914745,'236338','EType Jaguar','EType-00501_thumb.jpg',130, 72,15,'photo_3914745.html');
												thumbnails[3904236] = new thumbnail(3904236,'236339','Chiffchaff on branch','Chiffcahff-_thumb.jpg',130, 109,15,'photo_3904236.html');
												thumbnails[3897460] = new thumbnail(3897460,'236337','BBMF','BBMF-_thumb.jpg',130, 87,15,'photo_3897460.html');
												thumbnails[3897565] = new thumbnail(3897565,'236337','Spitfire PR XIX','Spitfire_PR-_thumb.jpg',130, 90,15,'photo_3897565.html');
												thumbnails[3897598] = new thumbnail(3897598,'236337','Hawker Hurricane','Hawker-Hurricane-_thumb.jpg',130, 76,15,'photo_3897598.html');
												thumbnails[3897657] = new thumbnail(3897657,'236337','B25 Mitchell','B25-Mitchell-1_thumb.jpg',130, 84,15,'photo_3897657.html');
												thumbnails[3896404] = new thumbnail(3896404,'264529','Natalie & Darren','NatalieDarren1-0171_thumb.jpg',130, 87,15,'photo_3896404.html');
												thumbnails[3896464] = new thumbnail(3896464,'264529','Natalie & Garter','Natalie1-055_thumb.jpg',130, 298,15,'photo_3896464.html');
												thumbnails[3896477] = new thumbnail(3896477,'264529','Natalie with a glass of champagne','Natalie-030_thumb.jpg',130, 224,15,'photo_3896477.html');
												thumbnails[3896546] = new thumbnail(3896546,'264529','Natalie & Darren with register','NatalieDarren2-021_thumb.jpg',130, 177,15,'photo_3896546.html');
												thumbnails[3896558] = new thumbnail(3896558,'264529','Happy couple with parents','NatalieDarren3-027_thumb.jpg',130, 87,15,'photo_3896558.html');
												thumbnails[3896576] = new thumbnail(3896576,'264529','That look','NatalieDarren-0121_thumb.jpg',130, 87,15,'photo_3896576.html');
												thumbnails[3896626] = new thumbnail(3896626,'264529','Natalie & grooms step Father','NatalieFather-007_thumb.jpg',130, 190,15,'photo_3896626.html');
												thumbnails[3907140] = new thumbnail(3907140,'236318','Dominican Sunrise','Dominican-Sunrise-_thumb.jpg',130, 81,15,'photo_3907140.html');
												thumbnails[3908213] = new thumbnail(3908213,'236333','Common Frog on Lily pad','Common-Frog-0014_thumb.jpg',130, 84,15,'photo_3908213.html');
												thumbnails[3915594] = new thumbnail(3915594,'236332','Grey Squirrel','Grey-Squirrel_thumb.jpg',130, 98,15,'photo_3915594.html');
												thumbnails[4059343] = new thumbnail(4059343,'236330','Emily & Katie','EmilyKaty_thumb.jpg',130, 157,15,'photo_4059343.html');
												thumbnails[4059600] = new thumbnail(4059600,'236330','Emily & Katie','EmilyKatie_thumb.jpg',130, 182,15,'photo_4059600.html');
												thumbnails[4059627] = new thumbnail(4059627,'236330','Emily & Katie','Emily--Katie-Lion_thumb.jpg',130, 203,15,'photo_4059627.html');
												thumbnails[3892696] = new thumbnail(3892696,'236334','Narcissus','Narcissus_thumb.jpg',130, 144,15,'photo_3892696.html');
												thumbnails[3893238] = new thumbnail(3893238,'236332','Hungry Rabbit','Hungry_Rabbit_thumb.jpg',130, 129,15,'photo_3893238.html');
												thumbnails[3893255] = new thumbnail(3893255,'236339','Puna Teal','Puna_Teal_thumb.jpg',130, 139,15,'photo_3893255.html');
												thumbnails[3893259] = new thumbnail(3893259,'236332','Red Stag Roar','Red_Stag_Roar_thumb.jpg',130, 108,15,'photo_3893259.html');
												thumbnails[3893266] = new thumbnail(3893266,'236318','Scotney Boat House','Scotney_Boat_House_thumb.jpg',130, 97,15,'photo_3893266.html');
												thumbnails[3898303] = new thumbnail(3898303,'236328','Oscar','Oscar_thumb.jpg',130, 144,15,'photo_3898303.html');
												thumbnails[3902348] = new thumbnail(3902348,'236327','The Photographers','GillPaul_thumb.jpg',130, 98,15,'photo_3902348.html');
												thumbnails[5271703] = new thumbnail(5271703,'296723','','Foacl-Point-0417_thumb.jpg',130, 141,15,'photo_5271703.html');
												thumbnails[5271734] = new thumbnail(5271734,'296723','','Focal-Point-0379_thumb.jpg',130, 167,15,'photo_5271734.html');
												thumbnails[5271759] = new thumbnail(5271759,'296723','','Focal-Point-0388_thumb.jpg',130, 218,15,'photo_5271759.html');
												thumbnails[5271765] = new thumbnail(5271765,'296723','','Focal-Point-0396_thumb.jpg',130, 162,15,'photo_5271765.html');
												thumbnails[5271775] = new thumbnail(5271775,'296723','','Focal-Point-0399_thumb.jpg',130, 153,15,'photo_5271775.html');
												thumbnails[5271850] = new thumbnail(5271850,'296723','','Focal-Point-0404_thumb.jpg',130, 148,15,'photo_5271850.html');
												thumbnails[5271867] = new thumbnail(5271867,'296723','','Focal-Point-0411_thumb.jpg',130, 135,15,'photo_5271867.html');
												thumbnails[5271869] = new thumbnail(5271869,'296723','','Focal-Point-0413_thumb.jpg',130, 159,15,'photo_5271869.html');
												thumbnails[5271874] = new thumbnail(5271874,'296723','','Focal-Point-0418_thumb.jpg',130, 143,15,'photo_5271874.html');
												thumbnails[5271985] = new thumbnail(5271985,'296723','','Focal-Point-0423-1_thumb.jpg',130, 193,15,'photo_5271985.html');
												thumbnails[5271993] = new thumbnail(5271993,'296723','','Focal-Point-0427_thumb.jpg',130, 144,15,'photo_5271993.html');
												thumbnails[5272002] = new thumbnail(5272002,'296723','','Focal-Point-0433_thumb.jpg',130, 161,15,'photo_5272002.html');
												thumbnails[5272016] = new thumbnail(5272016,'296723','','Focal-Point-0436_thumb.jpg',130, 202,15,'photo_5272016.html');
												thumbnails[5272055] = new thumbnail(5272055,'296723','','Focal-Point-0381-1_thumb.jpg',130, 133,15,'photo_5272055.html');
												thumbnails[4581697] = new thumbnail(4581697,'264528','Anuj; the bridegroom','1Anuj-9834_thumb.jpg',130, 182,15,'photo_4581697.html');
												thumbnails[3898134] = new thumbnail(3898134,'237250','Birthday girls arriving','Girls-exiting-the-car-0005_thumb.jpg',130, 202,15,'photo_3898134.html');
												thumbnails[4581701] = new thumbnail(4581701,'264528','Anuj','2Anuj-9812_thumb.jpg',130, 228,15,'photo_4581701.html');
												thumbnails[3898084] = new thumbnail(3898084,'237250','Lauren arriving','Lauren-exiting-the-car-0004_thumb.jpg',130, 234,15,'photo_3898084.html');
												thumbnails[4581702] = new thumbnail(4581702,'264528','Anuj & the Girls','3Anuj-Girls--Rolls-9837_thumb.jpg',130, 104,15,'photo_4581702.html');
												thumbnails[3898094] = new thumbnail(3898094,'237250','Gemma arriving','Gemma-exiting-the-car-0003_thumb.jpg',130, 212,15,'photo_3898094.html');
												thumbnails[4581706] = new thumbnail(4581706,'264528','The Procession','4The-March-9842_thumb.jpg',130, 73,15,'photo_4581706.html');
												thumbnails[3898031] = new thumbnail(3898031,'237250','Proud Parents','Knight-Family-0144_thumb.jpg',130, 152,15,'photo_3898031.html');
												thumbnails[4581720] = new thumbnail(4581720,'264528','Anuj\'s Mum ','5The-Mum--Girls-9852_thumb.jpg',130, 85,15,'photo_4581720.html');
												thumbnails[3897968] = new thumbnail(3897968,'237250','Denise','Denise_thumb.jpg',130, 177,15,'photo_3897968.html');
												thumbnails[3914513] = new thumbnail(3914513,'237250','Poster Girls','Poster-Girls-7014_thumb.jpg',130, 86,15,'photo_3914513.html');
												thumbnails[4581796] = new thumbnail(4581796,'264528','Anuj arrives.','6Anuj-exits-the-rolls-9858_thumb.jpg',130, 85,15,'photo_4581796.html');
												thumbnails[3897911] = new thumbnail(3897911,'237250','Cousins','Cousins-0180_thumb.jpg',130, 102,15,'photo_3897911.html');
												thumbnails[4581798] = new thumbnail(4581798,'264528','Anuj and his sister','7Anuj--Sister-9861_thumb.jpg',130, 159,15,'photo_4581798.html');
												thumbnails[3898007] = new thumbnail(3898007,'237250','Heidi & Ben','Heidi--Chap-0113_thumb.jpg',130, 173,15,'photo_3898007.html');
												thumbnails[4581837] = new thumbnail(4581837,'264528','Hetal','8Hetal-arrives-9877_thumb.jpg',130, 202,15,'photo_4581837.html');
												thumbnails[3897688] = new thumbnail(3897688,'237250','Alex & Michelle','Alex-0075_thumb.jpg',130, 182,15,'photo_3897688.html');
												thumbnails[4581839] = new thumbnail(4581839,'264528','Hetal Prays','9Hetal-Prays-9883_thumb.jpg',130, 182,15,'photo_4581839.html');
												thumbnails[3897859] = new thumbnail(3897859,'237250','Charlotte & Stuart','Charlotte--Stuart2-0161_thumb.jpg',130, 188,15,'photo_3897859.html');
												thumbnails[4581843] = new thumbnail(4581843,'264528','Anuj & Hetal','10The-Newlyweds-9889_thumb.jpg',130, 155,15,'photo_4581843.html');
												thumbnails[3898021] = new thumbnail(3898021,'237250','Lauren & Friends','Lauren--Girls-00981_thumb.jpg',130, 70,15,'photo_3898021.html');
												thumbnails[4581854] = new thumbnail(4581854,'264528','Anuj & Hetal','11The-Newlyweds-9896_thumb.jpg',130, 136,15,'photo_4581854.html');
												thumbnails[3898038] = new thumbnail(3898038,'237250','Gemma & Lewis','Gemma--Lewis1-0128_thumb.jpg',130, 172,15,'photo_3898038.html');
												thumbnails[4581855] = new thumbnail(4581855,'264528','Anuj & Hetal','12The-Newlyweds-9899_thumb.jpg',130, 266,15,'photo_4581855.html');
												thumbnails[4004928] = new thumbnail(4004928,'237250','Julie & Darrel','Julie--Darrel-0129_thumb.jpg',130, 103,15,'photo_4004928.html');
												thumbnails[4581861] = new thumbnail(4581861,'264528','Anuj & Hetal','13The-Newlyweds-9901_thumb.jpg',130, 101,15,'photo_4581861.html');
												thumbnails[4581870] = new thumbnail(4581870,'264528','The ceremony','14The-Newlyweds-Mendip-9903_thumb.jpg',130, 94,15,'photo_4581870.html');
												thumbnails[4581872] = new thumbnail(4581872,'264528','Anul & Hetal','15The-Newlyweds-Mendip-9906_thumb.jpg',130, 177,15,'photo_4581872.html');
												thumbnails[4581881] = new thumbnail(4581881,'264528','Anuj & Hetal','16The-Newlyweds--Brother-9912_thumb.jpg',130, 108,15,'photo_4581881.html');
												thumbnails[4581890] = new thumbnail(4581890,'264528','Anuj & Hetal','17The-Newlyweds-9919_thumb.jpg',130, 140,15,'photo_4581890.html');
												thumbnails[4581901] = new thumbnail(4581901,'264528','Anuj & Hetal','18The-Newlyweds-Dotting-9930_thumb.jpg',130, 132,15,'photo_4581901.html');
												thumbnails[4581910] = new thumbnail(4581910,'264528','Hetal','19-Hetal-in-the-Garden-0022_thumb.jpg',130, 212,15,'photo_4581910.html');
												thumbnails[4581923] = new thumbnail(4581923,'264528','Anuj & Hetal','20Newlyweds-on-the-bridge-0024_thumb.jpg',130, 203,15,'photo_4581923.html');
												thumbnails[4581935] = new thumbnail(4581935,'264528','The reception.','21The-Dinner-table-0028_thumb.jpg',130, 91,15,'photo_4581935.html');
												thumbnails[4581942] = new thumbnail(4581942,'264528','The Cake','22The-Cake-0033_thumb.jpg',130, 122,15,'photo_4581942.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[237250] = new gallery(237250,'3898134','18/21 Event','gallery',[3898134,3898084,3898094,3898031,3897968,3914513,3897911,3898007,3897688,3897859,3898021,3898038,4004928],0, 0, '237264', 'gallery_237250.html',0,0);
				  					galleries[236333] = new gallery(236333,'3908213','Amphibians/Reptiles','gallery',[3908213],0, 0, '236290', 'gallery_236333.html',0,0);
				  					galleries[236332] = new gallery(236332,'3915594,3904256,3893259,3893238,3892829','Animals','gallery',[3892829,3904256,3915594,3893238,3893259],0, 0, '236290', 'gallery_236332.html',0,0);
				  					galleries[264528] = new gallery(264528,'4581942,4581935,4581923,4581910,4581901,4581890,4581881,4581872,4581870,4581861','Anuj & Hetal','gallery',[4581697,4581701,4581702,4581706,4581720,4581796,4581798,4581837,4581839,4581843,4581854,4581855,4581861,4581870,4581872,4581881,4581890,4581901,4581910,4581923,4581935,4581942],0, 0, '236331', 'gallery_264528.html',0,0);
				  					galleries[236339] = new gallery(236339,'3901876','Birds','gallery',[5171979,5171982,3908312,3908894,3915449,3908277,3908291,3901697,3904261,3901876,3904236,3893255],0, 0, '236290', 'gallery_236339.html',0,0);
				  					galleries[236335] = new gallery(236335,'3909352,3908244,3903821,3901707','Butterflies/Dragonflies','gallery',[3903821,3908244,3909352,3901707],0, 0, '236290', 'gallery_236335.html',0,0);
				  					galleries[236330] = new gallery(236330,'4059627,4059600,4059343,3904292,3904269,3896154','Children','gallery',[3896154,3904292,3904269,4059343,4059600,4059627],0, 0, '236289', 'gallery_236330.html',0,0);
				  					galleries[264529] = new gallery(264529,'3896546','Darren & Natalie','gallery',[3896404,3896464,3896477,3896546,3896558,3896576,3896626],0, 0, '236331', 'gallery_264529.html',0,0);
				  					galleries[264892] = new gallery(264892,'4568916,4568247,4568227,4568202,4568175,4568160','Family Naqvi','gallery',[4568160,4568175,4568202,4568227,4568247,4568916],0, 0, '237264', 'gallery_264892.html',0,0);
				  					galleries[236334] = new gallery(236334,'3909716,3903689,3901546,3892696','Flora/Fauna','gallery',[3901546,3903689,3909716,3892696],0, 0, '236290', 'gallery_236334.html',0,0);
				  					galleries[296723] = new gallery(296723,'5272055,5272016,5272002,5271993,5271985,5271874,5271869,5271867,5271850,5271775','Focal Point Christmas Event 2009','gallery',[5271703,5271734,5271759,5271765,5271775,5271850,5271867,5271869,5271874,5271985,5271993,5272002,5272016,5272055],0, 0, '237264', 'gallery_296723.html',0,0);
				  					galleries[264532] = new gallery(264532,'4562111,4562064,3906357,3906344,3906329,3906322,3906319,3906309','Gemma','gallery',[3906319,3906322,3906329,3906344,3906357,4562111,3906309,4562064],0, 0, '237264', 'gallery_264532.html',0,0);
				  					galleries[236318] = new gallery(236318,'3914495,3909655,3908922,3907140,3906193,3904527,3904494,3904474,3904442,3904428','Landscapes','gallery',[3908922,3914495,3904428,3904442,3906193,3904389,3904474,3904494,3904527,3909655,3907140,3893266],0, 0, '', 'gallery_236318.html',0,0);
				  					galleries[264533] = new gallery(264533,'4562088,4561996,4561941,3906477,3906450,3906384,3906369','Lauren','gallery',[3906369,3906384,4562088,3906450,3906477,4561941,4561996],0, 0, '237264', 'gallery_264533.html',0,0);
				  					galleries[238181] = new gallery(238181,'3914474,3914448,3914437,3909694','Misc','gallery',[3914437,3914448,3914474,3909694],0, 0, '', 'gallery_238181.html',0,0);
				  					galleries[236328] = new gallery(236328,'3898284','Pet Portraits','gallery',[3898141,3914994,3898284,3898303],0, 0, '236289', 'gallery_236328.html',0,0);
				  					galleries[237264] = new gallery(237264,'3898134','Photo Shoots','gallery',[],0, 0, '', 'gallery_237264.html',0,0);
				  					galleries[236327] = new gallery(236327,'3898420','Portraits','gallery',[3898420,3902348],0, 0, '236289', 'gallery_236327.html',0,0);
				  					galleries[236319] = new gallery(236319,'3908388,3896865,3896757','Transport','gallery',[],0, 0, '', 'gallery_236319.html',0,0);
				  					galleries[236331] = new gallery(236331,'3896546','Weddings','gallery',[],0, 0, '', 'gallery_236331.html',0,0);
				  					galleries[236289] = new gallery(236289,'3898420,3898284','Portraiture','gallery',[],0, 0, '', 'gallery_236289.html',0,0);
				  					galleries[236336] = new gallery(236336,'3908388,3896757','Trains','gallery',[3896829,3914874,3914504,3896757,3908388,3896715],0, 0, '236319', 'gallery_236336.html',0,0);
				  					galleries[236290] = new gallery(236290,'3901876','Nature/wildlife','gallery',[],0, 0, '', 'gallery_236290.html',0,0);
				  					galleries[236337] = new gallery(236337,'3896865','Planes','gallery',[3896998,3897036,3897082,3896865,3896939,3896949,3897460,3897565,3897598,3897657],0, 0, '236319', 'gallery_236337.html',0,0);
				  					galleries[236338] = new gallery(236338,'3914745,3914652','Automobiles','gallery',[3914652,3914745],0, 0, '236319', 'gallery_236338.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3907219';
imageSets[2] = '3908388,3901876,3898420,3898284,3898134,3896865,3896757,3896546';
imageSets[3] = '5272055,5272016,5272002,5271993,5271985,5271874,5271869,5271867,5271850,5271775,5271765,5271759,5271734,5271703,5171982,5171979,4581942,4581935,4581923,4581910,4581901,4581890,4581881,4581872,4581870,4581861,4581855,4581854,4581843,4581839,4581837,4581798,4581796,4581720,4581706,4581702,4581701,4581697,4568916,4568247,4568227,4568202,4568175,4568160,4562111,4562088,4562064,4561996,4561941,4059627';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pharratt/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pharratt/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pharratt/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pharratt/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pharratt/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pharratt/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 = 'Harratt Photographic: ' + 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));      $('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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="PHARRATT">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = temp + '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
	temp = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

		

