window.thumbnails = new Object();
												thumbnails[5412421] = new thumbnail(5412421,'','Gareth and Blue','Gareth_thumb.jpg',130, 92,5,'#');
												thumbnails[5465249] = new thumbnail(5465249,'','RPS Invite','invite1_thumb.jpg',130, 94,5,'#');
												thumbnails[5465250] = new thumbnail(5465250,'','RPS Invite Photo Credit','invite2_thumb.jpg',130, 94,5,'#');
												thumbnails[5531855] = new thumbnail(5531855,'','Frost 1','frost1_thumb.jpg',130, 87,5,'#');
												thumbnails[6005184] = new thumbnail(6005184,'',' DSC5608-2','_DSC5608-2_thumb.jpg',130, 66,5,'#');
												thumbnails[5465247] = new thumbnail(5465247,'','Opening Night','exhibition1_thumb.jpg',130, 98,5,'#');
												thumbnails[6005185] = new thumbnail(6005185,'',' DSC5644-2','_DSC5644-2_thumb.jpg',130, 66,5,'#');
												thumbnails[6005186] = new thumbnail(6005186,'',' DSC5662','_DSC5662_thumb.jpg',130, 62,5,'#');
												thumbnails[5568243] = new thumbnail(5568243,'','Frost 3','frost5_thumb.jpg',130, 188,5,'#');
												thumbnails[5440007] = new thumbnail(5440007,'','Birthday Hack','BirthdayHack_thumb.jpg',130, 121,5,'#');
												thumbnails[5604612] = new thumbnail(5604612,'',' DSC39121','_DSC39121_thumb.jpg',130, 129,5,'#');
												thumbnails[5440009] = new thumbnail(5440009,'','Snow stories and snaps','EARiderFeb2010_thumb.jpg',130, 144,5,'#');
												thumbnails[5440008] = new thumbnail(5440008,'','Chase','Chase_thumb.jpg',130, 126,5,'#');
												thumbnails[5604625] = new thumbnail(5604625,'',' DSC4250','_DSC4250_thumb.jpg',130, 93,5,'#');
												thumbnails[6143757] = new thumbnail(6143757,'344016',' DSC5859','_DSC5859_thumb.jpg',130, 207,5,'photo_6143757.html');
												thumbnails[5412403] = new thumbnail(5412403,'307640','Fall','fall_thumb.jpg',130, 193,5,'photo_5412403.html');
												thumbnails[6143756] = new thumbnail(6143756,'344016',' DSC5850','_DSC5850_thumb.jpg',130, 144,5,'photo_6143756.html');
												thumbnails[5412534] = new thumbnail(5412534,'307626','Leder Tracht','leder_tracht_thumb.jpg',130, 174,5,'photo_5412534.html');
												thumbnails[5473219] = new thumbnail(5473219,'307626','Schnapps','schnapps_thumb.jpg',130, 198,5,'photo_5473219.html');
												thumbnails[6143750] = new thumbnail(6143750,'344016',' DSC5816','_DSC5816_thumb.jpg',130, 77,5,'photo_6143750.html');
												thumbnails[5439970] = new thumbnail(5439970,'307626','Brian','brian_thumb.jpg',130, 199,5,'photo_5439970.html');
												thumbnails[5470985] = new thumbnail(5470985,'309578','Palm House 1','DSC_2622-1-3_thumb.jpg',130, 127,5,'photo_5470985.html');
												thumbnails[6143751] = new thumbnail(6143751,'344016',' DSC5822','_DSC5822_thumb.jpg',130, 99,5,'photo_6143751.html');
												thumbnails[5439971] = new thumbnail(5439971,'307628','Poppies 1','poppies1_thumb.jpg',130, 82,5,'photo_5439971.html');
												thumbnails[5470986] = new thumbnail(5470986,'309578','Palm House 2','DSC_2672-1-2_thumb.jpg',130, 101,5,'photo_5470986.html');
												thumbnails[6143752] = new thumbnail(6143752,'344016',' DSC5823','_DSC5823_thumb.jpg',130, 106,5,'photo_6143752.html');
												thumbnails[5439972] = new thumbnail(5439972,'307628','Poppies 2','Poppies2_thumb.jpg',130, 87,5,'photo_5439972.html');
												thumbnails[5470987] = new thumbnail(5470987,'309578','Palm House 3','DSC_2685_thumb.jpg',130, 95,5,'photo_5470987.html');
												thumbnails[5473193] = new thumbnail(5473193,'307626','Pouring Schnapps','brian_schnaps-1_thumb.jpg',130, 199,5,'photo_5473193.html');
												thumbnails[5531847] = new thumbnail(5531847,'313399','Frost 3','frost3_thumb.jpg',130, 188,5,'photo_5531847.html');
												thumbnails[6143753] = new thumbnail(6143753,'344016',' DSC5830','_DSC5830_thumb.jpg',130, 87,5,'photo_6143753.html');
												thumbnails[5439973] = new thumbnail(5439973,'307628','Poppies 3','poppies3_thumb.jpg',130, 72,5,'photo_5439973.html');
												thumbnails[5470988] = new thumbnail(5470988,'309578','Palm House 4','DSC_2696_thumb.jpg',130, 126,5,'photo_5470988.html');
												thumbnails[5531846] = new thumbnail(5531846,'313399','Frost 2','frost2_thumb.jpg',130, 195,5,'photo_5531846.html');
												thumbnails[6143754] = new thumbnail(6143754,'344016',' DSC5837','_DSC5837_thumb.jpg',130, 137,5,'photo_6143754.html');
												thumbnails[5439974] = new thumbnail(5439974,'307628','Poppies 4','Poppies4_thumb.jpg',130, 80,5,'photo_5439974.html');
												thumbnails[5468097] = new thumbnail(5468097,'305727','Susan Tedeschi','SusanTedeschi_thumb.jpg',130, 142,5,'photo_5468097.html');
												thumbnails[5470989] = new thumbnail(5470989,'309578','Palm House 5','DSC_2697-1_thumb.jpg',130, 116,5,'photo_5470989.html');
												thumbnails[5568242] = new thumbnail(5568242,'313399','Frost 4','frost4_thumb.jpg',130, 195,5,'photo_5568242.html');
												thumbnails[6143760] = new thumbnail(6143760,'344016',' DSC6115','_DSC6115_thumb.jpg',130, 85,5,'photo_6143760.html');
												thumbnails[6143755] = new thumbnail(6143755,'344016',' DSC5842','_DSC5842_thumb.jpg',130, 75,5,'photo_6143755.html');
												thumbnails[5412550] = new thumbnail(5412550,'307640','Roadie Plays Lucinda Williams Guitar','RoadiePlaysLucindaWilliamsGuitar_thumb.jpg',130, 148,5,'photo_5412550.html');
												thumbnails[5439976] = new thumbnail(5439976,'307628','Poppies 5','Poppies6_thumb.jpg',130, 66,5,'photo_5439976.html');
												thumbnails[5473208] = new thumbnail(5473208,'307626','Braces','DSC_6210_thumb.jpg',130, 187,5,'photo_5473208.html');
												thumbnails[5439978] = new thumbnail(5439978,'307628','Poppies 6','Poppies8_thumb.jpg',130, 85,5,'photo_5439978.html');
												thumbnails[6143758] = new thumbnail(6143758,'344016',' DSC5870','_DSC5870_thumb.jpg',130, 96,5,'photo_6143758.html');
												thumbnails[5412567] = new thumbnail(5412567,'307640','Mermaid','mermaid_thumb.jpg',130, 98,5,'photo_5412567.html');
												thumbnails[6143759] = new thumbnail(6143759,'344016',' DSC5949','_DSC5949_thumb.jpg',130, 53,5,'photo_6143759.html');
												thumbnails[5465248] = new thumbnail(5465248,'307626','Fest Beer','FestBeer_thumb.jpg',130, 199,5,'photo_5465248.html');
												thumbnails[6143761] = new thumbnail(6143761,'344016',' DSC6194','_DSC6194_thumb.jpg',130, 117,5,'photo_6143761.html');
												thumbnails[6143762] = new thumbnail(6143762,'344016',' DSC6200','_DSC6200_thumb.jpg',130, 79,5,'photo_6143762.html');
												thumbnails[5440010] = new thumbnail(5440010,'307640','Good Morning Southwold','goodmorningsouthwold_thumb.jpg',130, 212,5,'photo_5440010.html');
												thumbnails[6143763] = new thumbnail(6143763,'344016',' DSC6223','_DSC6223_thumb.jpg',130, 78,5,'photo_6143763.html');
												thumbnails[6143764] = new thumbnail(6143764,'344016',' DSC6248','_DSC6248_thumb.jpg',130, 92,5,'photo_6143764.html');
												thumbnails[5440012] = new thumbnail(5440012,'307640','Here Come The Girls','herecomethegirls_thumb.jpg',130, 85,5,'photo_5440012.html');
												thumbnails[6143765] = new thumbnail(6143765,'344016',' DSC6315','_DSC6315_thumb.jpg',130, 68,5,'photo_6143765.html');
												thumbnails[5440013] = new thumbnail(5440013,'305727','John Boden 1','JohnBoden1_thumb.jpg',130, 128,5,'photo_5440013.html');
												thumbnails[5470990] = new thumbnail(5470990,'307640','You\'re Looking the Wrong Way Dear','YourLookingTheWrongWayDear_thumb.jpg',130, 76,5,'photo_5470990.html');
												thumbnails[6143766] = new thumbnail(6143766,'344016',' DSC6320-2','_DSC6320-2_thumb.jpg',130, 83,5,'photo_6143766.html');
												thumbnails[5440014] = new thumbnail(5440014,'305727','John Boden 2','JohnBoden2_thumb.jpg',130, 108,5,'photo_5440014.html');
												thumbnails[5440015] = new thumbnail(5440015,'305727','Rachael McShane','RachaelMcShane_thumb.jpg',130, 204,5,'photo_5440015.html');
												thumbnails[5440016] = new thumbnail(5440016,'307640','Ralph','Ralph_thumb.jpg',130, 78,5,'photo_5440016.html');
												thumbnails[5505039] = new thumbnail(5505039,'309578','Palm House 6','keweagle1_thumb.jpg',130, 103,5,'photo_5505039.html');
												thumbnails[5473222] = new thumbnail(5473222,'307640','Eye','_DSC3256_thumb.jpg',130, 144,5,'photo_5473222.html');
												thumbnails[5473194] = new thumbnail(5473194,'309769','A Bad Hair Day','DSC_0514-1-2-1_thumb.jpg',130, 194,5,'photo_5473194.html');
												thumbnails[8033283] = new thumbnail(8033283,'307653','Lauren Diggle Riding Tribal Suspect','waterjump-2_thumb.jpg',130, 183,5,'photo_8033283.html');
												thumbnails[5473197] = new thumbnail(5473197,'309769','Stabled','DSC_0637_thumb.jpg',130, 98,5,'photo_5473197.html');
												thumbnails[5568241] = new thumbnail(5568241,'307653','Alexander Peternell riding Tigers Eye II','82_thumb.jpg',130, 220,5,'photo_5568241.html');
												thumbnails[5965213] = new thumbnail(5965213,'336582',' DSC5039','_DSC5039_thumb.jpg',130, 96,5,'photo_5965213.html');
												thumbnails[5468302] = new thumbnail(5468302,'309460','DSC 7982','DSC_7982-1_thumb.jpg',130, 100,5,'photo_5468302.html');
												thumbnails[5473198] = new thumbnail(5473198,'309769','Paddock','DSC_0842-1_A9DEF7F7-1D09-001F-9993EC00A6F449BC_thumb.jpg',130, 167,5,'photo_5473198.html');
												thumbnails[5473204] = new thumbnail(5473204,'309769','Hot Shoeing 1','DSC_3427-1_A9DF02F4-1D09-001F-9907A96A61802F08_thumb.jpg',130, 96,5,'photo_5473204.html');
												thumbnails[5965214] = new thumbnail(5965214,'336582',' DSC5045','_DSC5045_thumb.jpg',130, 121,5,'photo_5965214.html');
												thumbnails[5468303] = new thumbnail(5468303,'309460','DSC 8012','DSC_8012-1_thumb.jpg',130, 105,5,'photo_5468303.html');
												thumbnails[5473199] = new thumbnail(5473199,'309769','Tacking Up','DSC_1140_A9DEF9CC-1D09-001F-99CE9206D865C5B3_thumb.jpg',130, 101,5,'photo_5473199.html');
												thumbnails[5470492] = new thumbnail(5470492,'309460','DSC 8199','DSC_8199_thumb.jpg',130, 87,5,'photo_5470492.html');
												thumbnails[7709754] = new thumbnail(7709754,'417247','Georgie Spence with Birthday Night','_DSC01402_thumb.jpg',130, 70,5,'photo_7709754.html');
												thumbnails[5965215] = new thumbnail(5965215,'336582',' DSC5050','_DSC5050_thumb.jpg',130, 143,5,'photo_5965215.html');
												thumbnails[5468304] = new thumbnail(5468304,'309460','DSC 8052','DSC_8052-1_thumb.jpg',130, 133,5,'photo_5468304.html');
												thumbnails[5473200] = new thumbnail(5473200,'309769','Waiting','DSC_1144-1_A9DEFB81-1D09-001F-99E526CF45222F57_thumb.jpg',130, 94,5,'photo_5473200.html');
												thumbnails[5470493] = new thumbnail(5470493,'309460','DSC 8407','DSC_8407_thumb.jpg',130, 95,5,'photo_5470493.html');
												thumbnails[7709755] = new thumbnail(7709755,'417247','Georgie Spence with Birthday Night at First Inspection','_DSC0144_thumb.jpg',130, 233,5,'photo_7709755.html');
												thumbnails[5965216] = new thumbnail(5965216,'336582',' DSC5054','_DSC5054_thumb.jpg',130, 85,5,'photo_5965216.html');
												thumbnails[5468305] = new thumbnail(5468305,'309460','DSC 8106','DSC_8106_thumb.jpg',130, 110,5,'photo_5468305.html');
												thumbnails[5470449] = new thumbnail(5470449,'309460','DSC 8424','DSC_8424_thumb.jpg',130, 74,5,'photo_5470449.html');
												thumbnails[5473216] = new thumbnail(5473216,'309769','Lunge','lunge2_thumb.jpg',130, 93,5,'photo_5473216.html');
												thumbnails[5965217] = new thumbnail(5965217,'336582',' DSC5069','_DSC5069_thumb.jpg',130, 95,5,'photo_5965217.html');
												thumbnails[5468306] = new thumbnail(5468306,'309460','DSC 8137','DSC_8137-1_thumb.jpg',130, 95,5,'photo_5468306.html');
												thumbnails[5473214] = new thumbnail(5473214,'309769','Early Morning Hack 1','hack_A9DF138E-1D09-001F-99F0356BF0527C20_thumb.jpg',130, 80,5,'photo_5473214.html');
												thumbnails[5473209] = new thumbnail(5473209,'309769','Early Morning Hack 2','DSC_7165-1_thumb.jpg',130, 87,5,'photo_5473209.html');
												thumbnails[7709757] = new thumbnail(7709757,'417247','Mark King and Imperial Cavalier at First Inspection','_DSC0282_thumb.jpg',130, 149,5,'photo_7709757.html');
												thumbnails[5965218] = new thumbnail(5965218,'336582',' DSC5070','_DSC5070_thumb.jpg',130, 92,5,'photo_5965218.html');
												thumbnails[5473195] = new thumbnail(5473195,'309769','Partnership','DSC_0618-1_thumb.jpg',130, 87,5,'photo_5473195.html');
												thumbnails[7710189] = new thumbnail(7710189,'417247','Mark Todd with NZB Land Vision at First Inspection','_DSC0235_thumb.jpg',130, 154,5,'photo_7710189.html');
												thumbnails[5965219] = new thumbnail(5965219,'336582',' DSC5083','_DSC5083_thumb.jpg',130, 121,5,'photo_5965219.html');
												thumbnails[5468307] = new thumbnail(5468307,'309460','DSC 8239','DSC_8239-1_thumb.jpg',130, 109,5,'photo_5468307.html');
												thumbnails[5473205] = new thumbnail(5473205,'309769','Hot Shoeing 2','DSC_3458-1_A9DF0507-1D09-001F-9937B0A90CD4C0AC_thumb.jpg',130, 121,5,'photo_5473205.html');
												thumbnails[7723094] = new thumbnail(7723094,'417247','Laura Collett with Rayef at First Inspection','_DSC0176_thumb.jpg',130, 197,5,'photo_7723094.html');
												thumbnails[5965221] = new thumbnail(5965221,'336582',' DSC5092-2','_DSC5092-2_thumb.jpg',130, 111,5,'photo_5965221.html');
												thumbnails[7709759] = new thumbnail(7709759,'417247','William Fox-Pitt with Navigator at First Inspection','_DSC0333_thumb.jpg',130, 212,5,'photo_7709759.html');
												thumbnails[5965220] = new thumbnail(5965220,'336582',' DSC5088','_DSC5088_thumb.jpg',130, 120,5,'photo_5965220.html');
												thumbnails[5412559] = new thumbnail(5412559,'307653','Paul Tapner riding Kilfinnie II','tapner_thumb.jpg',130, 182,5,'photo_5412559.html');
												thumbnails[5468308] = new thumbnail(5468308,'309460','DSC 8301','DSC_8301_thumb.jpg',130, 131,5,'photo_5468308.html');
												thumbnails[5473191] = new thumbnail(5473191,'309769','Snow 1','blue_looking-30-2-30-30_A9DEEBC2-1D09-001F-999EF639B2817A07_thumb.jpg',130, 79,5,'photo_5473191.html');
												thumbnails[5473192] = new thumbnail(5473192,'309769','Snow 2','blue_snow_areana_thumb.jpg',130, 83,5,'photo_5473192.html');
												thumbnails[5412575] = new thumbnail(5412575,'307653','Mary King riding Kings Temptress','MaryKing_thumb.jpg',130, 233,5,'photo_5412575.html');
												thumbnails[5468309] = new thumbnail(5468309,'309460','DSC 8309','DSC_8309_thumb.jpg',130, 127,5,'photo_5468309.html');
												thumbnails[5473196] = new thumbnail(5473196,'309769','Touch','DSC_0623_A9DEF44E-1D09-001F-99A06AB93B5A0F5C_thumb.jpg',130, 87,5,'photo_5473196.html');
												thumbnails[7709761] = new thumbnail(7709761,'417247','Didier Dhennin First Inspection with Ismene Du Temple','_DSC0466_thumb.jpg',130, 202,5,'photo_7709761.html');
												thumbnails[5965222] = new thumbnail(5965222,'336582',' DSC5095','_DSC5095_thumb.jpg',130, 119,5,'photo_5965222.html');
												thumbnails[5468310] = new thumbnail(5468310,'309460','DSC 8321','DSC_8321_thumb.jpg',130, 149,5,'photo_5468310.html');
												thumbnails[5473203] = new thumbnail(5473203,'309769','Treat','DSC_3268_A9DF00C1-1D09-001F-991920CAC9DABCE8_thumb.jpg',130, 108,5,'photo_5473203.html');
												thumbnails[7710190] = new thumbnail(7710190,'417247','Elizabeth Power with Kilpatrick River','_DSC0586_thumb.jpg',130, 170,5,'photo_7710190.html');
												thumbnails[5965223] = new thumbnail(5965223,'336582',' DSC5111','_DSC5111_thumb.jpg',130, 188,5,'photo_5965223.html');
												thumbnails[5468311] = new thumbnail(5468311,'309460','DSC 8344','DSC_8344_thumb.jpg',130, 174,5,'photo_5468311.html');
												thumbnails[5473221] = new thumbnail(5473221,'309769','Woods','woods-30_A9DF1CE4-1D09-001F-9949FFF3A94F777A_thumb.jpg',130, 103,5,'photo_5473221.html');
												thumbnails[7710191] = new thumbnail(7710191,'417247','Ruth Edge with Two Thyme','_DSC0793_thumb.jpg',130, 162,5,'photo_7710191.html');
												thumbnails[7709763] = new thumbnail(7709763,'417247','Nick Gauntlett with Elektron at First Inspection','_DSC0819_thumb.jpg',130, 179,5,'photo_7709763.html');
												thumbnails[5965224] = new thumbnail(5965224,'336582',' DSC5113','_DSC5113_thumb.jpg',130, 127,5,'photo_5965224.html');
												thumbnails[5468312] = new thumbnail(5468312,'309460','DSC 8349','DSC_8349_thumb.jpg',130, 113,5,'photo_5468312.html');
												thumbnails[5473206] = new thumbnail(5473206,'309769','Nailing the Shoe','DSC_3514-1-1_A9DF06CC-1D09-001F-99B94B2536A4EC77_thumb.jpg',130, 107,5,'photo_5473206.html');
												thumbnails[7717280] = new thumbnail(7717280,'417247','Kristina Cook with Miner\'s Frolic','_DSC0761_thumb.jpg',130, 184,5,'photo_7717280.html');
												thumbnails[7709764] = new thumbnail(7709764,'417247','Piggy French with Jakata at First Inspection','_DSC0844_thumb.jpg',130, 195,5,'photo_7709764.html');
												thumbnails[5965225] = new thumbnail(5965225,'336582',' DSC5116','_DSC5116_thumb.jpg',130, 130,5,'photo_5965225.html');
												thumbnails[5468313] = new thumbnail(5468313,'309460','DSC 8359','DSC_8359_thumb.jpg',130, 83,5,'photo_5468313.html');
												thumbnails[5473210] = new thumbnail(5473210,'309769','Fenced In','DSC_7828-1-2-30_A9DF0DF0-1D09-001F-99A625444DB9FB21_thumb.jpg',130, 93,5,'photo_5473210.html');
												thumbnails[7709765] = new thumbnail(7709765,'417247','Karim Laghouag Flying Change on Havenir D\'Azac','_DSC1082-Edit_thumb.jpg',130, 153,5,'photo_7709765.html');
												thumbnails[5468314] = new thumbnail(5468314,'309460','DSC 8394','DSC_8394_thumb.jpg',130, 150,5,'photo_5468314.html');
												thumbnails[5473212] = new thumbnail(5473212,'309769','Lunge','DSC_9481-30-30_A9DF1013-1D09-001F-9964E0063A9960C2_thumb.jpg',130, 89,5,'photo_5473212.html');
												thumbnails[7709766] = new thumbnail(7709766,'417247','Karim Laghouag on Havenir D\'Azac','_DSC1096-Edit-Edit_thumb.jpg',130, 210,5,'photo_7709766.html');
												thumbnails[5965227] = new thumbnail(5965227,'336582',' DSC5127','_DSC5127_thumb.jpg',130, 198,5,'photo_5965227.html');
												thumbnails[5473213] = new thumbnail(5473213,'309769','Canter','DSC_9523-30_A9DF11A9-1D09-001F-99BB30F87053D1D9_thumb.jpg',130, 135,5,'photo_5473213.html');
												thumbnails[7709768] = new thumbnail(7709768,'417247','Lauren Shannon on Quixotic','_DSC1861-Edit_thumb.jpg',130, 94,5,'photo_7709768.html');
												thumbnails[5965228] = new thumbnail(5965228,'336582',' DSC5137','_DSC5137_thumb.jpg',130, 98,5,'photo_5965228.html');
												thumbnails[7709769] = new thumbnail(7709769,'417247','Lauren Shannon on Quixotic','_DSC1908_thumb.jpg',130, 192,5,'photo_7709769.html');
												thumbnails[5965229] = new thumbnail(5965229,'336582',' DSC5143','_DSC5143_thumb.jpg',130, 88,5,'photo_5965229.html');
												thumbnails[5965230] = new thumbnail(5965230,'336582',' DSC5167','_DSC5167_thumb.jpg',130, 99,5,'photo_5965230.html');
												thumbnails[5965226] = new thumbnail(5965226,'336582',' DSC5122','_DSC5122_thumb.jpg',130, 129,5,'photo_5965226.html');
												thumbnails[7709772] = new thumbnail(7709772,'417247','Piggy French Perfect 10','_DSC2007-Edit_thumb.jpg',130, 128,5,'photo_7709772.html');
												thumbnails[5965231] = new thumbnail(5965231,'336582',' DSC5169','_DSC5169_thumb.jpg',130, 100,5,'photo_5965231.html');
												thumbnails[5473217] = new thumbnail(5473217,'309769','Cross-country','partnership2_A9DF1870-1D09-001F-99A7241EDF3CA3C3_thumb.jpg',130, 87,5,'photo_5473217.html');
												thumbnails[7709773] = new thumbnail(7709773,'417247','Piggy French Perfect Ten','_DSC2010-Edit_thumb.jpg',130, 155,5,'photo_7709773.html');
												thumbnails[5965232] = new thumbnail(5965232,'336582',' DSC5174','_DSC5174_thumb.jpg',130, 157,5,'photo_5965232.html');
												thumbnails[5473201] = new thumbnail(5473201,'309769','Trec','DSC_1174-1_thumb.jpg',130, 194,5,'photo_5473201.html');
												thumbnails[7709774] = new thumbnail(7709774,'417247','Mary King Flying Change on Imperial Cavalier','_DSC2116-Edit_thumb.jpg',130, 191,5,'photo_7709774.html');
												thumbnails[5965233] = new thumbnail(5965233,'336582',' DSC5177','_DSC5177_thumb.jpg',130, 137,5,'photo_5965233.html');
												thumbnails[7710301] = new thumbnail(7710301,'417247','Mary King on Imperial Cavalier','_DSC2140-Edit-Edit_9802C6B3-1EC9-D45B-1C4D3DBB0591BFFA_thumb.jpg',130, 170,5,'photo_7710301.html');
												thumbnails[5965234] = new thumbnail(5965234,'336582',' DSC5179','_DSC5179_thumb.jpg',130, 87,5,'photo_5965234.html');
												thumbnails[7709776] = new thumbnail(7709776,'417247','Andrew Nicholson on Nereo','_DSC2205-Edit_thumb.jpg',130, 168,5,'photo_7709776.html');
												thumbnails[5965235] = new thumbnail(5965235,'336582',' DSC5189','_DSC5189_thumb.jpg',130, 96,5,'photo_5965235.html');
												thumbnails[7709777] = new thumbnail(7709777,'417247','Andrew Nicholson on Nereo','_DSC2214_thumb.jpg',130, 127,5,'photo_7709777.html');
												thumbnails[5965236] = new thumbnail(5965236,'336582',' DSC5199','_DSC5199_thumb.jpg',130, 76,5,'photo_5965236.html');
												thumbnails[7709778] = new thumbnail(7709778,'417247','Mark Todd on NZB Land Vision','_DSC2236-Edit_thumb.jpg',130, 115,5,'photo_7709778.html');
												thumbnails[5965237] = new thumbnail(5965237,'336582',' DSC5210','_DSC5210_thumb.jpg',130, 90,5,'photo_5965237.html');
												thumbnails[7709779] = new thumbnail(7709779,'417247','Mark Todd on NZB Land Vision','_DSC2252-Edit_thumb.jpg',130, 178,5,'photo_7709779.html');
												thumbnails[7717236] = new thumbnail(7717236,'417247','Mark Todd Flying Change on NZB Land Vision','_DSC2254-Edit-3_A1AA5C2A-1EC9-D45B-1CAC52DB34D2212C_thumb.jpg',130, 194,5,'photo_7717236.html');
												thumbnails[7710238] = new thumbnail(7710238,'417247','Mark Todd on NZB Land Vision','_DSC2283_thumb.jpg',130, 196,5,'photo_7710238.html');
												thumbnails[7723095] = new thumbnail(7723095,'417247','Laura Collet on Rayef','_DSC2345-Edit-2_thumb.jpg',130, 187,5,'photo_7723095.html');
												thumbnails[7710303] = new thumbnail(7710303,'417247','Gemma Tattersall on Kings Gem','_DSC2536-Edit-2_thumb.jpg',130, 203,5,'photo_7710303.html');
												thumbnails[5965238] = new thumbnail(5965238,'336582',' DSC5223','_DSC5223_thumb.jpg',130, 105,5,'photo_5965238.html');
												thumbnails[7719912] = new thumbnail(7719912,'417247','Michael Owen on The Highland Prince','_DSC2618-Edit-2_thumb.jpg',130, 168,5,'photo_7719912.html');
												thumbnails[7710304] = new thumbnail(7710304,'417247','Kai Ruder on Le Prince Des Bois','_DSC2564-Edit_thumb.jpg',130, 180,5,'photo_7710304.html');
												thumbnails[7716078] = new thumbnail(7716078,'417247','Ben Hobday on Uptons Who','_DSC2635-Edit-Edit_thumb.jpg',130, 184,5,'photo_7716078.html');
												thumbnails[5965239] = new thumbnail(5965239,'336582',' DSC5230','_DSC5230_thumb.jpg',130, 103,5,'photo_5965239.html');
												thumbnails[7710305] = new thumbnail(7710305,'417247','Marina Kohncke on Calma Schelly','_DSC2594-Edit_thumb.jpg',130, 195,5,'photo_7710305.html');
												thumbnails[7716079] = new thumbnail(7716079,'417247','Elizabeth Power on Kilpatrick River','_DSC2685_thumb.jpg',130, 171,5,'photo_7716079.html');
												thumbnails[5965240] = new thumbnail(5965240,'336582',' DSC5232','_DSC5232_thumb.jpg',130, 91,5,'photo_5965240.html');
												thumbnails[7716080] = new thumbnail(7716080,'417247','Jump Judges','_DSC2897_thumb.jpg',130, 87,5,'photo_7716080.html');
												thumbnails[5965241] = new thumbnail(5965241,'336582',' DSC5236','_DSC5236_thumb.jpg',130, 151,5,'photo_5965241.html');
												thumbnails[7719913] = new thumbnail(7719913,'417247','Ruth Edge on Two Thyme','_DSC2925-Edit-2_thumb.jpg',130, 133,5,'photo_7719913.html');
												thumbnails[7716131] = new thumbnail(7716131,'417247','Mark Todd on Major Milestone','_DSC2363-Edit-2_thumb.jpg',130, 55,5,'photo_7716131.html');
												thumbnails[5965242] = new thumbnail(5965242,'336582',' DSC5254','_DSC5254_thumb.jpg',130, 95,5,'photo_5965242.html');
												thumbnails[7719911] = new thumbnail(7719911,'417247','Sarah Stretton on Lazy Acres Skip On','_DSC2467_thumb.jpg',130, 198,5,'photo_7719911.html');
												thumbnails[7716082] = new thumbnail(7716082,'417247','Oliver Townend on Ashdale Cruise Master','_DSC2991_thumb.jpg',130, 193,5,'photo_7716082.html');
												thumbnails[5965243] = new thumbnail(5965243,'336582',' DSC5261','_DSC5261_thumb.jpg',130, 121,5,'photo_5965243.html');
												thumbnails[5965244] = new thumbnail(5965244,'336582',' DSC5285','_DSC5285_thumb.jpg',130, 148,5,'photo_5965244.html');
												thumbnails[5965245] = new thumbnail(5965245,'336582',' DSC5290','_DSC5290_thumb.jpg',130, 103,5,'photo_5965245.html');
												thumbnails[5965246] = new thumbnail(5965246,'336582',' DSC5294','_DSC5294_thumb.jpg',130, 114,5,'photo_5965246.html');
												thumbnails[7716124] = new thumbnail(7716124,'417247','Mary King on Apache Sauce, Parade Before Show Jumping','_DSC3077-Edit_thumb.jpg',130, 163,5,'photo_7716124.html');
												thumbnails[5965247] = new thumbnail(5965247,'336582',' DSC5300','_DSC5300_thumb.jpg',130, 94,5,'photo_5965247.html');
												thumbnails[7716123] = new thumbnail(7716123,'417247','Piggy French on Jakata, Parade Before Show Jumping','_DSC3072-Edit_thumb.jpg',130, 136,5,'photo_7716123.html');
												thumbnails[5965248] = new thumbnail(5965248,'336582',' DSC5328','_DSC5328_thumb.jpg',130, 125,5,'photo_5965248.html');
												thumbnails[5965249] = new thumbnail(5965249,'336582',' DSC5338','_DSC5338_thumb.jpg',130, 119,5,'photo_5965249.html');
												thumbnails[7719976] = new thumbnail(7719976,'417247','Marina Kohncke on Calma Shelly, Parade Before Show Jumping','_DSC3031-2_thumb.jpg',130, 212,5,'photo_7719976.html');
												thumbnails[7716125] = new thumbnail(7716125,'417247','Mark Todd on NZB Land Vision, Parade Before Show Jumping ','_DSC3080-Edit-Edit_thumb.jpg',130, 155,5,'photo_7716125.html');
												thumbnails[5965250] = new thumbnail(5965250,'336582',' DSC5344','_DSC5344_thumb.jpg',130, 168,5,'photo_5965250.html');
												thumbnails[7719940] = new thumbnail(7719940,'417247','William Fox-Pitt on Navigator','_DSC3269-Edit-Edit-Edit_thumb.jpg',130, 141,5,'photo_7719940.html');
												thumbnails[7719941] = new thumbnail(7719941,'417247','Piggy French Clear Round on Jakata','_DSC3395-Edit_thumb.jpg',130, 177,5,'photo_7719941.html');
												thumbnails[5965253] = new thumbnail(5965253,'336582',' DSC5387','_DSC5387_thumb.jpg',130, 117,5,'photo_5965253.html');
												thumbnails[7719942] = new thumbnail(7719942,'417247','Marina Kohncke on Calma Schelly','_DSC3470-Edit_thumb.jpg',130, 182,5,'photo_7719942.html');
												thumbnails[5965251] = new thumbnail(5965251,'336582',' DSC5348','_DSC5348_thumb.jpg',130, 108,5,'photo_5965251.html');
												thumbnails[7716120] = new thumbnail(7716120,'417247','Mark Todd on NZB Land Vision','triptich_thumb.jpg',130, 66,5,'photo_7716120.html');
												thumbnails[5965252] = new thumbnail(5965252,'336582',' DSC5356','_DSC5356_thumb.jpg',130, 123,5,'photo_5965252.html');
												thumbnails[7717126] = new thumbnail(7717126,'417247','Laura Collett Wins 8th Place','_DSC3718-Edit-2_thumb.jpg',130, 155,5,'photo_7717126.html');
												thumbnails[7717125] = new thumbnail(7717125,'417247','Mary King Wins Third Place','_DSC3695-Edit-2_thumb.jpg',130, 96,5,'photo_7717125.html');
												thumbnails[5965254] = new thumbnail(5965254,'336582',' DSC5406','_DSC5406_thumb.jpg',130, 162,5,'photo_5965254.html');
												thumbnails[7717123] = new thumbnail(7717123,'417247','Piggy French Wins Second Place','_DSC3671-Edit-2_thumb.jpg',130, 99,5,'photo_7717123.html');
												thumbnails[5965255] = new thumbnail(5965255,'336582',' DSC5417','_DSC5417_thumb.jpg',130, 119,5,'photo_5965255.html');
												thumbnails[7717124] = new thumbnail(7717124,'417247','Piggy French Wins Second Place','_DSC3684-Edit-2_thumb.jpg',130, 135,5,'photo_7717124.html');
												thumbnails[5965256] = new thumbnail(5965256,'336582',' DSC5418','_DSC5418_thumb.jpg',130, 133,5,'photo_5965256.html');
												thumbnails[5965257] = new thumbnail(5965257,'336582',' DSC5427','_DSC5427_thumb.jpg',130, 81,5,'photo_5965257.html');
												thumbnails[5965258] = new thumbnail(5965258,'336582',' DSC5434','_DSC5434_thumb.jpg',130, 111,5,'photo_5965258.html');
												thumbnails[5965259] = new thumbnail(5965259,'336582',' DSC5451','_DSC5451_thumb.jpg',130, 121,5,'photo_5965259.html');
												thumbnails[5965260] = new thumbnail(5965260,'336582',' DSC5478','_DSC5478_thumb.jpg',130, 141,5,'photo_5965260.html');
												thumbnails[5965261] = new thumbnail(5965261,'336582',' DSC5479','_DSC5479_thumb.jpg',130, 88,5,'photo_5965261.html');
												thumbnails[5965263] = new thumbnail(5965263,'336582',' DSC5503','_DSC5503_thumb.jpg',130, 130,5,'photo_5965263.html');
												thumbnails[5965264] = new thumbnail(5965264,'336582',' DSC5508','_DSC5508_thumb.jpg',130, 90,5,'photo_5965264.html');
												thumbnails[5965262] = new thumbnail(5965262,'336582',' DSC5483','_DSC5483_thumb.jpg',130, 96,5,'photo_5965262.html');
												thumbnails[7716083] = new thumbnail(7716083,'417247','Mark Todd Winner of Badminton 2011','_DSC3841-Edit_thumb.jpg',130, 121,5,'photo_7716083.html');
												thumbnails[5604603] = new thumbnail(5604603,'317850',' DSC3838','_DSC3838_thumb.jpg',130, 179,5,'photo_5604603.html');
												thumbnails[5468570] = new thumbnail(5468570,'309479','P1000227','P1000227_thumb.jpg',130, 79,5,'photo_5468570.html');
												thumbnails[5604604] = new thumbnail(5604604,'317850',' DSC3845','_DSC3845_thumb.jpg',130, 97,5,'photo_5604604.html');
												thumbnails[5468569] = new thumbnail(5468569,'309479','P1000184','P1000184_thumb.jpg',130, 88,5,'photo_5468569.html');
												thumbnails[5604605] = new thumbnail(5604605,'317850',' DSC3856','_DSC3856_thumb.jpg',130, 105,5,'photo_5604605.html');
												thumbnails[5468573] = new thumbnail(5468573,'309479','P1000347','P1000347_thumb.jpg',130, 96,5,'photo_5468573.html');
												thumbnails[5468572] = new thumbnail(5468572,'309479','P1000339','P1000339_thumb.jpg',130, 126,5,'photo_5468572.html');
												thumbnails[5604606] = new thumbnail(5604606,'317850',' DSC3873','_DSC3873_thumb.jpg',130, 115,5,'photo_5604606.html');
												thumbnails[5604607] = new thumbnail(5604607,'317850',' DSC3887','_DSC3887_thumb.jpg',130, 173,5,'photo_5604607.html');
												thumbnails[5468574] = new thumbnail(5468574,'309479','P1000353','P1000353_thumb.jpg',130, 116,5,'photo_5468574.html');
												thumbnails[5604608] = new thumbnail(5604608,'317850',' DSC3895','_DSC3895_thumb.jpg',130, 194,5,'photo_5604608.html');
												thumbnails[5468575] = new thumbnail(5468575,'309479','P1000815','P1000815_thumb.jpg',130, 98,5,'photo_5468575.html');
												thumbnails[5604609] = new thumbnail(5604609,'317850',' DSC3899','_DSC3899_thumb.jpg',130, 118,5,'photo_5604609.html');
												thumbnails[5468576] = new thumbnail(5468576,'309479','P1000845','P1000845_thumb.jpg',130, 156,5,'photo_5468576.html');
												thumbnails[5604610] = new thumbnail(5604610,'317850',' DSC3908','_DSC3908_thumb.jpg',130, 98,5,'photo_5604610.html');
												thumbnails[5604611] = new thumbnail(5604611,'317850',' DSC3912','_DSC3912_thumb.jpg',130, 129,5,'photo_5604611.html');
												thumbnails[5468577] = new thumbnail(5468577,'309479','P1000973','P1000973_thumb.jpg',130, 173,5,'photo_5468577.html');
												thumbnails[5468578] = new thumbnail(5468578,'309479','P1010077','P1010077_thumb.jpg',130, 80,5,'photo_5468578.html');
												thumbnails[5604613] = new thumbnail(5604613,'317850',' DSC3938','_DSC3938_thumb.jpg',130, 141,5,'photo_5604613.html');
												thumbnails[5468579] = new thumbnail(5468579,'309479','P1010110','P1010110_thumb.jpg',130, 89,5,'photo_5468579.html');
												thumbnails[5604614] = new thumbnail(5604614,'317850',' DSC3954','_DSC3954_thumb.jpg',130, 97,5,'photo_5604614.html');
												thumbnails[5468580] = new thumbnail(5468580,'309479','P1010126','P1010126_thumb.jpg',130, 131,5,'photo_5468580.html');
												thumbnails[5604615] = new thumbnail(5604615,'317850',' DSC3961','_DSC3961_thumb.jpg',130, 195,5,'photo_5604615.html');
												thumbnails[5468581] = new thumbnail(5468581,'309479','P1010156','P1010156_thumb.jpg',130, 130,5,'photo_5468581.html');
												thumbnails[5604616] = new thumbnail(5604616,'317850',' DSC3962','_DSC3962_thumb.jpg',130, 190,5,'photo_5604616.html');
												thumbnails[5468582] = new thumbnail(5468582,'309479','P1010172','P1010172_thumb.jpg',130, 75,5,'photo_5468582.html');
												thumbnails[5604617] = new thumbnail(5604617,'317850',' DSC3980','_DSC3980_thumb.jpg',130, 120,5,'photo_5604617.html');
												thumbnails[5604618] = new thumbnail(5604618,'317850',' DSC3990','_DSC3990_thumb.jpg',130, 99,5,'photo_5604618.html');
												thumbnails[5604619] = new thumbnail(5604619,'317850',' DSC3991','_DSC3991_thumb.jpg',130, 91,5,'photo_5604619.html');
												thumbnails[5604620] = new thumbnail(5604620,'317850',' DSC3996','_DSC3996_thumb.jpg',130, 110,5,'photo_5604620.html');
												thumbnails[5604649] = new thumbnail(5604649,'317850',' DSC4022','_DSC4022_thumb.jpg',130, 99,5,'photo_5604649.html');
												thumbnails[5604621] = new thumbnail(5604621,'317850',' DSC4049','_DSC4049_thumb.jpg',130, 151,5,'photo_5604621.html');
												thumbnails[5604622] = new thumbnail(5604622,'317850',' DSC4078','_DSC4078_thumb.jpg',130, 113,5,'photo_5604622.html');
												thumbnails[5604623] = new thumbnail(5604623,'317850',' DSC4234','_DSC4234_thumb.jpg',130, 87,5,'photo_5604623.html');
												thumbnails[5604624] = new thumbnail(5604624,'317850',' DSC4240','_DSC4240_thumb.jpg',130, 92,5,'photo_5604624.html');
												thumbnails[5604626] = new thumbnail(5604626,'317850',' DSC4256','_DSC4256_thumb.jpg',130, 139,5,'photo_5604626.html');
												thumbnails[5604627] = new thumbnail(5604627,'317850',' DSC4262','_DSC4262_thumb.jpg',130, 87,5,'photo_5604627.html');
												thumbnails[5604628] = new thumbnail(5604628,'317850',' DSC4268','_DSC4268_thumb.jpg',130, 183,5,'photo_5604628.html');
												thumbnails[5604629] = new thumbnail(5604629,'317850',' DSC4276','_DSC4276_thumb.jpg',130, 154,5,'photo_5604629.html');
												thumbnails[5604630] = new thumbnail(5604630,'317850',' DSC4286','_DSC4286_thumb.jpg',130, 94,5,'photo_5604630.html');
												thumbnails[5604631] = new thumbnail(5604631,'317850',' DSC4290','_DSC4290_thumb.jpg',130, 107,5,'photo_5604631.html');
												thumbnails[5604632] = new thumbnail(5604632,'317850',' DSC4297','_DSC4297_thumb.jpg',130, 115,5,'photo_5604632.html');
												thumbnails[5604633] = new thumbnail(5604633,'317850',' DSC4298','_DSC4298_thumb.jpg',130, 117,5,'photo_5604633.html');
												thumbnails[5604634] = new thumbnail(5604634,'317850',' DSC4323','_DSC4323_thumb.jpg',130, 96,5,'photo_5604634.html');
												thumbnails[5604635] = new thumbnail(5604635,'317850',' DSC4324','_DSC4324_thumb.jpg',130, 148,5,'photo_5604635.html');
												thumbnails[5604636] = new thumbnail(5604636,'317850',' DSC4339','_DSC4339_thumb.jpg',130, 110,5,'photo_5604636.html');
												thumbnails[5604637] = new thumbnail(5604637,'317850',' DSC4350','_DSC4350_thumb.jpg',130, 95,5,'photo_5604637.html');
												thumbnails[5604638] = new thumbnail(5604638,'317850',' DSC4363','_DSC4363_thumb.jpg',130, 92,5,'photo_5604638.html');
												thumbnails[5604639] = new thumbnail(5604639,'317850',' DSC4386','_DSC4386_thumb.jpg',130, 116,5,'photo_5604639.html');
												thumbnails[5604640] = new thumbnail(5604640,'317850',' DSC4392','_DSC4392_thumb.jpg',130, 98,5,'photo_5604640.html');
												thumbnails[5604641] = new thumbnail(5604641,'317850',' DSC4394','_DSC4394_thumb.jpg',130, 110,5,'photo_5604641.html');
												thumbnails[5604642] = new thumbnail(5604642,'317850',' DSC4399','_DSC4399_thumb.jpg',130, 141,5,'photo_5604642.html');
												thumbnails[5604643] = new thumbnail(5604643,'317850',' DSC4422','_DSC4422_thumb.jpg',130, 88,5,'photo_5604643.html');
												thumbnails[5604644] = new thumbnail(5604644,'317850',' DSC4424','_DSC4424_thumb.jpg',130, 126,5,'photo_5604644.html');
												thumbnails[5604645] = new thumbnail(5604645,'317850',' DSC4430','_DSC4430_thumb.jpg',130, 165,5,'photo_5604645.html');
												thumbnails[5604646] = new thumbnail(5604646,'317850',' DSC4434','_DSC4434_thumb.jpg',130, 85,5,'photo_5604646.html');
												thumbnails[5604647] = new thumbnail(5604647,'317850',' DSC4443','_DSC4443_thumb.jpg',130, 107,5,'photo_5604647.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[309479] = new gallery(309479,'5468582,5468581,5468580,5468579,5468578,5468577,5468576,5468575,5468574,5468573','Snaps','section370816',[5468570,5468569,5468573,5468572,5468574,5468575,5468576,5468577,5468578,5468579,5468580,5468581,5468582],0, 0, '', 'section370816_309479.html',0,0);
				  					galleries[417247] = new gallery(417247,'7723095,7723094,7719976,7719942,7719941,7719940,7719913,7719912,7719911,7717280','Badminton 2011','section370792',[7709754,7709755,7709757,7710189,7723094,7709759,7709761,7710190,7710191,7709763,7717280,7709764,7709765,7709766,7709768,7709769,7709772,7709773,7709774,7710301,7709776,7709777,7709778,7709779,7717236,7710238,7723095,7710303,7719912,7710304,7716078,7710305,7716079,7716080,7719913,7716131,7719911,7716082,7716124,7716123,7719976,7716125,7719940,7719941,7719942,7716120,7717126,7717125,7717123,7717124,7716083],0, 0, '', 'section370792_417247.html',0,0);
				  					galleries[309769] = new gallery(309769,'5473221,5473217,5473216,5473214,5473213,5473212,5473210,5473209,5473206,5473205,5473204,5473203,5473201,5473200,5473199,5473198,5473197,5473196,5473195,5473194,5473192,5473191','Blue','section370792',[5473194,5473197,5473198,5473204,5473199,5473200,5473216,5473214,5473209,5473195,5473205,5473191,5473192,5473196,5473203,5473221,5473206,5473210,5473212,5473213,5473217,5473201],0, 0, '', 'section370792_309769.html',0,0);
				  					galleries[336582] = new gallery(336582,'5965264,5965263,5965262,5965261,5965260,5965259,5965258,5965257,5965256,5965255','East Anglian Fells and Dales Show 2010','section370792',[5965213,5965214,5965215,5965216,5965217,5965218,5965219,5965221,5965220,5965222,5965223,5965224,5965225,5965227,5965228,5965229,5965230,5965226,5965231,5965232,5965233,5965234,5965235,5965236,5965237,5965238,5965239,5965240,5965241,5965242,5965243,5965244,5965245,5965246,5965247,5965248,5965249,5965250,5965253,5965251,5965252,5965254,5965255,5965256,5965257,5965258,5965259,5965260,5965261,5965263,5965264,5965262],0, 0, '', 'section370792_336582.html',0,0);
				  					galleries[307640] = new gallery(307640,'5473222,5440012,5412567,5412550,5412403','Random','gallery',[5412403,5412550,5412567,5440010,5440012,5470990,5440016,5473222],0, 0, '', 'gallery_307640.html',0,0);
				  					galleries[307653] = new gallery(307653,'5412575,5412559','Eventing','section370792',[8033283,5568241,5412559,5412575],0, 0, '', 'section370792_307653.html',0,0);
				  					galleries[309460] = new gallery(309460,'5470493,5470492,5470449,5468314,5468313,5468312,5468311,5468310,5468309,5468308,5468307,5468306,5468305,5468304,5468303,5468302','East Anglian Dales Pony Show 2009','section370792',[5468302,5468303,5470492,5468304,5470493,5468305,5470449,5468306,5468307,5468308,5468309,5468310,5468311,5468312,5468313,5468314],0, 0, '', 'section370792_309460.html',0,0);
				  					galleries[307626] = new gallery(307626,'5439970,5412534','Frhulingsfest','gallery',[5412534,5473219,5439970,5473193,5473208,5465248],0, 0, '', 'gallery_307626.html',0,0);
				  					galleries[305727] = new gallery(305727,'5468097','Gigs','gallery',[5468097,5440013,5440014,5440015],0, 0, '', 'gallery_305727.html',0,0);
				  					galleries[307628] = new gallery(307628,'5439978','Poppies','gallery',[5439971,5439972,5439973,5439974,5439976,5439978],0, 0, '', 'gallery_307628.html',0,0);
				  					galleries[344016] = new gallery(344016,'6143766,6143765,6143764,6143763,6143762,6143761,6143760,6143759,6143758,6143757','Formula Jedi Brands Hatch','gallery',[6143757,6143756,6143750,6143751,6143752,6143753,6143754,6143760,6143755,6143758,6143759,6143761,6143762,6143763,6143764,6143765,6143766],0, 0, '', 'gallery_344016.html',0,0);
				  					galleries[309578] = new gallery(309578,'5505039,5470989,5470988,5470987,5470986,5470985','Palm House','gallery',[5470985,5470986,5470987,5470988,5470989,5505039],0, 0, '', 'gallery_309578.html',0,0);
				  					galleries[317850] = new gallery(317850,'5604649,5604647,5604646,5604645,5604644,5604643,5604642,5604641,5604640,5604639,5604638,5604637,5604636,5604635,5604634,5604633,5604632,5604631,5604630,5604629,5604628,5604627,5604626,5604624,5604623,5604622,5604621,5604620,5604619,5604618,5604617,5604616,5604615,5604614,5604613,5604611,5604610,5604609,5604608,5604607,5604606,5604605,5604604,5604603','Hilary Vernon Bitting Clinic','section370816',[5604603,5604604,5604605,5604606,5604607,5604608,5604609,5604610,5604611,5604613,5604614,5604615,5604616,5604617,5604618,5604619,5604620,5604649,5604621,5604622,5604623,5604624,5604626,5604627,5604628,5604629,5604630,5604631,5604632,5604633,5604634,5604635,5604636,5604637,5604638,5604639,5604640,5604641,5604642,5604643,5604644,5604645,5604646,5604647],0, 0, '', 'section370816_317850.html',0,0);
				  					galleries[313399] = new gallery(313399,'5568242,5531847,5531846','Frost','gallery',[5531847,5531846,5568242],0, 0, '', 'gallery_313399.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[234450] = '5439978,5439976,5439974,5439973,5439972,5439971';
imageSets[234451] = '5473219,5473208,5473193,5465248,5439970,5412534';
imageSets[234452] = '6005186,6005185,6005184,5473221,5473217,5473216,5473214,5473213,5473212,5473210,5473209,5473206,5473205,5473204,5473203,5473201,5473200,5473199,5473198,5473197,5473196,5473195,5473192,5473191,5465250,5465249,5440007,5412421';
imageSets[234453] = '5473222,5470990,5440016,5440014,5440013,5440012,5440010,5440007,5439978';
imageSets[2] = '5604649,5604647,5604646,5604645,5604644,5604643,5604642,5604641,5604640,5604639,5604638,5604637,5604636,5604635,5604634,5604633,5604632,5604631,5604630,5604629,5604628,5604627,5604626,5604625,5604624,5604623,5604622,5604621,5604620,5604619,5604618,5604617,5604616,5604615,5604614,5604613,5604612,5604611,5604610,5604609,5604608,5604607,5604606,5604605,5604604,5604603,5568243,5568242,5531855,5531847,5531846,5505039,5473222,5473221,5473217,5473216,5473214,5473213,5473212,5473210,5473209,5473206,5473205,5473204,5473203,5473201,5473200,5473199,5473198,5473197,5473196,5473195,5473194,5473192,5473191,5470989,5470988,5470987,5470986,5470985,5470493,5470492,5470449,5468314,5468313,5468312,5468311,5468310,5468309,5468308,5468307,5468306,5468305,5468304,5468303,5468302,5468097,5465250,5465249,5465247,5440012,5439978,5439970,5412575,5412567,5412559,5412550,5412534,5412403';
imageSets[234455] = '8033283,5568241';
imageSets[234456] = '5465250,5465249,5440012';
imageSets[1] = '8033283,6143766,6143765,6143764,6005186,5965250,5440010,5412421,5412403';
imageSets[3] = '5439973';
imageSets[241610] = '7723095,7723094,7719976,7719942,7719941,7719913,7719911,7717280,7717236,7717126,7717125,7717124,7717123,7716131,7716125,7716124,7716123,7716120,7716083,7716082,7716080,7716079,7716078,7710305,7710304,7710303,7710301,7710238,7710191,7710190,7710189,7709779,7709778,7709777,7709776,7709774,7709773,7709772,7709769,7709768,7709766,7709765,7709764,7709763,7709761,7709759,7709757,7709755';
imageSets[234454] = '5468582,5468581,5468580,5468579,5468578,5468577,5468576,5468575,5468574,5468573,5468572,5468570,5468569,5440007,5439974';
imageSets[234547] = '5468582,5468581,5468580,5468579,5468578,5468577';
imageSets[235833] = '5965264,5965263,5965262,5965261,5965260,5965259,5965258,5965257,5965256,5965255,5965254,5965253,5965252,5965251,5965250,5965249,5965248,5965247,5965246,5965245,5965244,5965243,5965242,5965241,5965240,5965239,5965238,5965237,5965236,5965235,5965234,5965233,5965232,5965231,5965230,5965229,5965228,5965227,5965226,5965225,5965224,5965223,5965222,5965221,5965220,5965219,5965218,5965217,5965215,5965214,5965213';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gcrocker/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gcrocker/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 = 'eifrag: ' + 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>Order this print:</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="GCROCKER">';
		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;
	}
}

			

