window.thumbnails = new Object();
												thumbnails[571760] = new thumbnail(571760,'43042','Robin Hoods Bay','robin hood 3 for web_thumb.jpg',130, 38,15,'							photo_571760.html');
												thumbnails[549441] = new thumbnail(549441,'44976','Staithes North Yorkshire','staithes warm up copy_thumb.jpg',130, 89,15,'							photo_549441.html');
												thumbnails[549467] = new thumbnail(549467,'42474','Billy Idol at Nottingham Rock city','IMG_8944 copy copy_thumb.jpg',130, 99,15,'							photo_549467.html');
												thumbnails[555146] = new thumbnail(555146,'44976','Staithes North Yorkshire','stai1_thumb.jpg',130, 176,15,'							photo_555146.html');
												thumbnails[555155] = new thumbnail(555155,'43015','Swan Landing on the Lake','00192 copy_thumb.jpg',130, 81,15,'							photo_555155.html');
												thumbnails[555159] = new thumbnail(555159,'44976','Holiday Cottage','00197 copy_thumb.jpg',130, 107,15,'							photo_555159.html');
												thumbnails[555161] = new thumbnail(555161,'44976','Whitby Pier','CRW_5815 copy_thumb.jpg',130, 176,15,'							photo_555161.html');
												thumbnails[555165] = new thumbnail(555165,'43015','Deer','00204 copy_thumb.jpg',130, 111,15,'							photo_555165.html');
												thumbnails[555168] = new thumbnail(555168,'43015','Owl Eyes','Dscf0343_thumb.jpg',130, 107,15,'							photo_555168.html');
												thumbnails[555179] = new thumbnail(555179,'44975','Chatsworth House at Night','CRW_1769 copy_thumb.jpg',130, 68,15,'							photo_555179.html');
												thumbnails[555541] = new thumbnail(555541,'44976','Whitby Sands','CRW_1425 copy_thumb.jpg',130, 188,15,'							photo_555541.html');
												thumbnails[555547] = new thumbnail(555547,'42468','Chesterfield','CRW_5233 copy_thumb.jpg',130, 187,15,'							photo_555547.html');
												thumbnails[555572] = new thumbnail(555572,'43014','Red Arrows','IMG_1066 copy_thumb.jpg',130, 178,15,'							photo_555572.html');
												thumbnails[555580] = new thumbnail(555580,'44976','Whitby Abbey','00187_RJ copy_thumb.jpg',130, 88,15,'							photo_555580.html');
												thumbnails[555595] = new thumbnail(555595,'43015','Monkeys','IMG_1305 copy_thumb.jpg',130, 102,15,'							photo_555595.html');
												thumbnails[555605] = new thumbnail(555605,'42468','Richmond','IMG_3015 copy_thumb.jpg',130, 190,15,'							photo_555605.html');
												thumbnails[555614] = new thumbnail(555614,'42468','Cleethorpes in winter','IMG_4461 copy_thumb.jpg',130, 190,15,'							photo_555614.html');
												thumbnails[556948] = new thumbnail(556948,'43015','Seal Pup','IMG_4268 copy_thumb.jpg',130, 112,15,'							photo_556948.html');
												thumbnails[556950] = new thumbnail(556950,'42468','Richmond Castle','00218 copy_thumb.jpg',130, 82,15,'							photo_556950.html');
												thumbnails[556957] = new thumbnail(556957,'42474','Orson at the Leadmill Sheffield ','IMG_1092 copy copy_thumb.jpg',130, 100,15,'							photo_556957.html');
												thumbnails[557802] = new thumbnail(557802,'43042','Barcelona FC','barcelona finnished copy_thumb.jpg',130, 49,15,'							photo_557802.html');
												thumbnails[557882] = new thumbnail(557882,'43015','Monkey','00227 copy_thumb.jpg',130, 139,15,'							photo_557882.html');
												thumbnails[583651] = new thumbnail(583651,'44976','The Boat','IMG_5418 copy copy_thumb.jpg',130, 93,15,'							photo_583651.html');
												thumbnails[583652] = new thumbnail(583652,'44976','Robin Hoods Bay','IMG_5422 copy copy_thumb.jpg',130, 91,15,'							photo_583652.html');
												thumbnails[583653] = new thumbnail(583653,'44976','Robin Hoods bay','IMG_5607 copy copy_thumb.jpg',130, 98,15,'							photo_583653.html');
												thumbnails[583670] = new thumbnail(583670,'44976','The Old Post Office','IMG_5623 copy copy_thumb.jpg',130, 166,15,'							photo_583670.html');
												thumbnails[583674] = new thumbnail(583674,'44975','Old Barn  in the Country','00225 copy_thumb.jpg',130, 89,15,'							photo_583674.html');
												thumbnails[583676] = new thumbnail(583676,'44975','Chatsworth House','CRW_1731 copy_thumb.jpg',130, 81,15,'							photo_583676.html');
												thumbnails[583678] = new thumbnail(583678,'44976','Beach Huts at Whitby','00234_RJ copy_thumb.jpg',130, 92,15,'							photo_583678.html');
												thumbnails[583681] = new thumbnail(583681,'44976','Whitby Pier','whit pier1_thumb.jpg',130, 95,15,'							photo_583681.html');
												thumbnails[583686] = new thumbnail(583686,'42468','Barcelona','IMG_7334 copy_thumb.jpg',130, 86,15,'							photo_583686.html');
												thumbnails[584208] = new thumbnail(584208,'42468','Renishaw Hall Gardens','00244_RJ copy_thumb.jpg',130, 92,15,'							photo_584208.html');
												thumbnails[585733] = new thumbnail(585733,'42822','Crooked Spire at chesterfield','00147_RJ copy_thumb.jpg',130, 177,15,'							photo_585733.html');
												thumbnails[585742] = new thumbnail(585742,'44976','Staithes North Yorkshire','00198 copy_thumb.jpg',130, 98,15,'							photo_585742.html');
												thumbnails[586846] = new thumbnail(586846,'42822','Flying Scotsman','112_1228_RT8 copy_thumb.jpg',130, 95,15,'							photo_586846.html');
												thumbnails[586848] = new thumbnail(586848,'44976','Sandsend North Yorkshire','138_3846 copy_thumb.jpg',130, 85,15,'							photo_586848.html');
												thumbnails[586851] = new thumbnail(586851,'42468','Renishaw Hall Gardens','00243_RJ copy_thumb.jpg',130, 89,15,'							photo_586851.html');
												thumbnails[586858] = new thumbnail(586858,'42822','Wards Brewery on Ecclesall Road sheffield','wards copy_thumb.jpg',130, 158,15,'							photo_586858.html');
												thumbnails[648034] = new thumbnail(648034,'43015','Red Panda','CRW_5338 copy_thumb.jpg',130, 99,15,'							photo_648034.html');
												thumbnails[648038] = new thumbnail(648038,'42468','Cromford Mill Pond','IMG_1164 copy_thumb.jpg',130, 188,15,'							photo_648038.html');
												thumbnails[648042] = new thumbnail(648042,'44975','Castleton','IMG_4098 copy copy_thumb.jpg',130, 94,15,'							photo_648042.html');
												thumbnails[659636] = new thumbnail(659636,'43042','The Winter Gardens in sheffield','sheffield copy_thumb.jpg',130, 57,15,'							photo_659636.html');
												thumbnails[659637] = new thumbnail(659637,'43042','Bramall Lane ','blades3 copy_thumb.jpg',130, 70,15,'							photo_659637.html');
												thumbnails[659639] = new thumbnail(659639,'43042','La Scala Milan','la scarla copy_thumb.jpg',130, 57,15,'							photo_659639.html');
												thumbnails[659641] = new thumbnail(659641,'42822','Real Madrid','IMG_8391 copy_thumb.jpg',130, 99,15,'							photo_659641.html');
												thumbnails[659648] = new thumbnail(659648,'44975','Hathersage','Dscf1778_thumb.jpg',130, 170,15,'							photo_659648.html');
												thumbnails[659650] = new thumbnail(659650,'42822','Madrid','IMG_8259 copy_thumb.jpg',130, 95,15,'							photo_659650.html');
												thumbnails[701681] = new thumbnail(701681,'53907','Harris Hawk','IMG_4998 copy copy_thumb.jpg',130, 106,15,'							photo_701681.html');
												thumbnails[701691] = new thumbnail(701691,'53907','Harris Hawk Taken At Maltby','IMG_4996 copy copy_thumb.jpg',130, 106,15,'							photo_701691.html');
												thumbnails[701701] = new thumbnail(701701,'53907','Harris Hawk','IMG_4887 copy copy_thumb.jpg',130, 106,15,'							photo_701701.html');
												thumbnails[701709] = new thumbnail(701709,'53907','Harris Hawk','IMG_4874 copy copy_thumb.jpg',130, 106,15,'							photo_701709.html');
												thumbnails[701718] = new thumbnail(701718,'53907','Harris Hawk in Flight','IMG_4625 copy copy_thumb.jpg',130, 93,15,'							photo_701718.html');
												thumbnails[701725] = new thumbnail(701725,'53907','Harris Hawk in Flight','IMG_4622 copy copy_thumb.jpg',130, 68,15,'							photo_701725.html');
												thumbnails[701727] = new thumbnail(701727,'53907','Harris Hawk in Flight','IMG_4595 copy copy_thumb.jpg',130, 106,15,'							photo_701727.html');
												thumbnails[701733] = new thumbnail(701733,'53907','Harris Hawk','IMG_4594 copy copy_thumb.jpg',130, 106,15,'							photo_701733.html');
												thumbnails[701740] = new thumbnail(701740,'53907','Harris Hawk','IMG_4572 copy copy_thumb.jpg',130, 106,15,'							photo_701740.html');
												thumbnails[701742] = new thumbnail(701742,'53907','Harris Hawk in Flight','IMG_4463 copy copy_thumb.jpg',130, 106,15,'							photo_701742.html');
												thumbnails[6979854] = new thumbnail(6979854,'382142','Arctic Monkeys at Sheffield Arena 2009','finnished_11_of_29_copy_thumb.jpg',130, 59,15,'							photo_6979854.html');
												thumbnails[6980098] = new thumbnail(6980098,'382142','Lilly Allen at the o2 Academy Sheffield 2009','finnished_12_of_17_2_copy_thumb.jpg',130, 211,15,'							photo_6980098.html');
												thumbnails[6980578] = new thumbnail(6980578,'382143','Ricky Warwick at Download Festival 2010','set_10_of_51_copy_thumb.jpg',130, 173,15,'							photo_6980578.html');
												thumbnails[6980609] = new thumbnail(6980609,'382143','Patti Smith at the millenium Galleries Sheffield 2010','set_2_of_9_copy_thumb.jpg',130, 210,15,'							photo_6980609.html');
												thumbnails[6987218] = new thumbnail(6987218,'382143','Twisted Wheel at the Leadmill Sheffield 2010','IMG_5250_copy_thumb.jpg',130, 173,15,'							photo_6987218.html');
												thumbnails[6993536] = new thumbnail(6993536,'378970','Paradise Square Sheffield','finnished_10_of_19_copy_thumb.jpg',130, 170,15,'							photo_6993536.html');
												thumbnails[7054389] = new thumbnail(7054389,'382143','Haley Williams from Paramore','set-0059_copy_thumb.jpg',130, 189,15,'							photo_7054389.html');
												thumbnails[7095593] = new thumbnail(7095593,'382143','Laura Marling at the Leadmill Sheffield 2010','set-2_copy_thumb.jpg',130, 177,15,'							photo_7095593.html');
												thumbnails[6979855] = new thumbnail(6979855,'382142','Muse at Sheffield Arena 2009','finnished_3_of_17_copy_thumb.jpg',130, 107,15,'							photo_6979855.html');
												thumbnails[6980099] = new thumbnail(6980099,'382142','Spandau ballet at the sheffield Arena 2009','finnished_12_of_30_copy_thumb.jpg',130, 77,15,'							photo_6980099.html');
												thumbnails[6980579] = new thumbnail(6980579,'382143','Kiss at Sheffield arena 2010','set_16_of_35_copy_thumb.jpg',130, 181,15,'							photo_6980579.html');
												thumbnails[6980610] = new thumbnail(6980610,'382143','Lady GaGa at Sheffield Arena 2010','set_20_of_37_copy_thumb.jpg',130, 98,15,'							photo_6980610.html');
												thumbnails[6987219] = new thumbnail(6987219,'382142','Metallica at Sheffield Arena 2009','IMG_5538_copy_copy_thumb.jpg',130, 163,15,'							photo_6987219.html');
												thumbnails[6993538] = new thumbnail(6993538,'378970','Paradise Square Sheffield','finnished_14_of_19_copy_thumb.jpg',130, 94,15,'							photo_6993538.html');
												thumbnails[7054390] = new thumbnail(7054390,'382143','Run Toto Run ','set-4201_copy_thumb.jpg',130, 195,15,'							photo_7054390.html');
												thumbnails[7095594] = new thumbnail(7095594,'382143','The Levellers at the Leadmill 2010','set-4605_copy_thumb.jpg',130, 181,15,'							photo_7095594.html');
												thumbnails[6979856] = new thumbnail(6979856,'382142','Pink at Sheffield arena 2009','finnished_4_of_9_copy_thumb.jpg',130, 172,15,'							photo_6979856.html');
												thumbnails[6980100] = new thumbnail(6980100,'382142','Gun at the Corporation Sheffield 2009','finnished_13_of_21_copy_thumb.jpg',130, 169,15,'							photo_6980100.html');
												thumbnails[6980581] = new thumbnail(6980581,'382143','Lady GaGa at Sheffield Arena 2010','set_17_of_37_copy_thumb.jpg',130, 210,15,'							photo_6980581.html');
												thumbnails[6980611] = new thumbnail(6980611,'382143','Kiss at Sheffield Arena 2010','set_21_of_35_copy_thumb.jpg',130, 177,15,'							photo_6980611.html');
												thumbnails[6987220] = new thumbnail(6987220,'382142','Snow patrol at Sheffield Arena 2009','IMG_6360_copy_copy_thumb.jpg',130, 182,15,'							photo_6987220.html');
												thumbnails[6993539] = new thumbnail(6993539,'378970','The Butcher Works Arundel Street Sheffield ','set_38_of_47_copy_thumb.jpg',130, 169,15,'							photo_6993539.html');
												thumbnails[7054391] = new thumbnail(7054391,'382143','Glenn Gregory from Heaven 17','set-4224_copy_thumb.jpg',130, 177,15,'							photo_7054391.html');
												thumbnails[7095596] = new thumbnail(7095596,'382143','The Levellers at the Leadmill Sheffield 2010','set-4614_copy_thumb.jpg',130, 198,15,'							photo_7095596.html');
												thumbnails[6979857] = new thumbnail(6979857,'382142','Alice Cooper at the Sheffield City Hall 2009','finnished_5_of_32_copy_thumb.jpg',130, 153,15,'							photo_6979857.html');
												thumbnails[6980101] = new thumbnail(6980101,'382143','Delphic at the Leadmill Sheffield 2010','finnished_19_of_49_copy_thumb.jpg',130, 134,15,'							photo_6980101.html');
												thumbnails[6980582] = new thumbnail(6980582,'382143','Bad Company at Sheffield City Hall 2010','set_21_of_23_copy_thumb.jpg',130, 89,15,'							photo_6980582.html');
												thumbnails[6980612] = new thumbnail(6980612,'382143','Ac/Dc at Download festival 2010','set_7_of_19_copy_thumb.jpg',130, 91,15,'							photo_6980612.html');
												thumbnails[6987221] = new thumbnail(6987221,'382142','U2 at don Valley stadium sheffield 2009','IMG_6477_copy_thumb.jpg',130, 187,15,'							photo_6987221.html');
												thumbnails[6993540] = new thumbnail(6993540,'378970','Thomas Street and Milton Lane Sheffield','set_48_of_90_copy_thumb.jpg',130, 98,15,'							photo_6993540.html');
												thumbnails[7054392] = new thumbnail(7054392,'382143','Glenn Gregory from Heaven 17','set-4255_copy_thumb.jpg',130, 106,15,'							photo_7054392.html');
												thumbnails[7095597] = new thumbnail(7095597,'382143','Laura Marling at the Leadmill Sheffield 2010','set-4924_thumb.jpg',130, 176,15,'							photo_7095597.html');
												thumbnails[6979858] = new thumbnail(6979858,'382142','Pink at Sheffield Arena 2009','finnished_5_of_9_copy_thumb.jpg',130, 175,15,'							photo_6979858.html');
												thumbnails[6980102] = new thumbnail(6980102,'382142','Bloc Party at the o2 Academy 2009','finnished_25_of_25_copy_thumb.jpg',130, 180,15,'							photo_6980102.html');
												thumbnails[6980583] = new thumbnail(6980583,'382143','Lady GaGa at Sheffield Arena 2010 ','set_21_of_37_copy_thumb.jpg',130, 155,15,'							photo_6980583.html');
												thumbnails[6980613] = new thumbnail(6980613,'382143','Ray Davis at Sheffield City Hall 2010','set_8_of_15_2_copy_thumb.jpg',130, 188,15,'							photo_6980613.html');
												thumbnails[6987222] = new thumbnail(6987222,'42474','Narina Pallot at the Leadmill Sheffield  2007','IMG_6550_copy_copy_thumb.jpg',130, 104,15,'							photo_6987222.html');
												thumbnails[6993541] = new thumbnail(6993541,'378970','Hendo\'s The taste of Sheffield','set_61_of_90_copy_thumb.jpg',130, 125,15,'							photo_6993541.html');
												thumbnails[7054393] = new thumbnail(7054393,'382143','Glenn Gregory from Heaven 17','set-4283_copy_thumb.jpg',130, 115,15,'							photo_7054393.html');
												thumbnails[7095598] = new thumbnail(7095598,'382143','Laura Marling at The Leadmill Sheffield 2010','set-4992_copy_thumb.jpg',130, 95,15,'							photo_7095598.html');
												thumbnails[6980103] = new thumbnail(6980103,'382142','The Specials at Nottingham Rock City 2009','finnished_3_of_24_copy_thumb.jpg',130, 171,15,'							photo_6980103.html');
												thumbnails[6980584] = new thumbnail(6980584,'382143','We Are Scientists at Sheffield Leadmill 2010','set_22_of_26_copy_thumb.jpg',130, 114,15,'							photo_6980584.html');
												thumbnails[6980614] = new thumbnail(6980614,'382143','The Damned at Holmfirth Picturedrome 2010','set-1704_copy_thumb.jpg',130, 186,15,'							photo_6980614.html');
												thumbnails[6987223] = new thumbnail(6987223,'382142','U2 at Don Valley Stadium Sheffield 2009','IMG_6585_copy_thumb.jpg',130, 180,15,'							photo_6987223.html');
												thumbnails[6993542] = new thumbnail(6993542,'378970','Regents Terrace Sheffield','set_66_of_90_copy_thumb.jpg',130, 140,15,'							photo_6993542.html');
												thumbnails[7054394] = new thumbnail(7054394,'382143','Martyn Ware from Heaven 17','set-4388_copy_thumb.jpg',130, 110,15,'							photo_7054394.html');
												thumbnails[6980104] = new thumbnail(6980104,'382142','Lily Allen at the o2 Academy Sheffield 2009','finnished_6_of_17_2_copy_thumb.jpg',130, 166,15,'							photo_6980104.html');
												thumbnails[6980585] = new thumbnail(6980585,'382143','Marina and the Diamonds at Sheffield Leadmill 2010','set_27_of_46_copy_thumb.jpg',130, 178,15,'							photo_6980585.html');
												thumbnails[6980615] = new thumbnail(6980615,'382143','Ed Drewett at the Leadmill Sheffield 2010','set-3902_copy_thumb.jpg',130, 177,15,'							photo_6980615.html');
												thumbnails[6987224] = new thumbnail(6987224,'42474','Prodigy at the o2 Academy Sheffield 2008','IMG_6922_copy_copy_thumb.jpg',130, 163,15,'							photo_6987224.html');
												thumbnails[6993543] = new thumbnail(6993543,'378970','The Fat Cat Alma Street Sheffield','set_69_of_90_copy_thumb.jpg',130, 88,15,'							photo_6993543.html');
												thumbnails[6980586] = new thumbnail(6980586,'382143','Diana Vickers at Sheffield Leadmill 2010','set_31_of_32_copy_thumb.jpg',130, 172,15,'							photo_6980586.html');
												thumbnails[6980616] = new thumbnail(6980616,'382143','Professor Green at the Leadmill Sheffield 2010','set-4066_copy_thumb.jpg',130, 97,15,'							photo_6980616.html');
												thumbnails[6987225] = new thumbnail(6987225,'42474','Heaven and Hell at Sheffield Arena 2007 ','set_1_of_5_copy_thumb.jpg',130, 150,15,'							photo_6987225.html');
												thumbnails[6993544] = new thumbnail(6993544,'378970','Cornish Place Ball Street Sheffield','set_78_of_90_copy_thumb.jpg',130, 173,15,'							photo_6993544.html');
												thumbnails[6980106] = new thumbnail(6980106,'42474','Duffy at the Leadmill Sheffield 2008','IMG_0050_copy_copy_thumb.jpg',130, 92,15,'							photo_6980106.html');
												thumbnails[6980587] = new thumbnail(6980587,'382143','PIL at o2 Academy Leeds 2010','set_44_of_104_copy_thumb.jpg',130, 108,15,'							photo_6980587.html');
												thumbnails[6980617] = new thumbnail(6980617,'382143','Magic Numbers at the Leadmill Sheffield','set-7086_copy_thumb.jpg',130, 163,15,'							photo_6980617.html');
												thumbnails[6987226] = new thumbnail(6987226,'382143','John Cooper Clark at the Leadmill Sheffield 2010','set_11_of_20_copy_thumb.jpg',130, 196,15,'							photo_6987226.html');
												thumbnails[6993545] = new thumbnail(6993545,'378970','West Street Sheffield','set-2453_copy_thumb.jpg',130, 118,15,'							photo_6993545.html');
												thumbnails[6980588] = new thumbnail(6980588,'382143','Frank Sidebottom at sheffield Leadmill 2010','set_6_of_20_copy_thumb.jpg',130, 166,15,'							photo_6980588.html');
												thumbnails[6987227] = new thumbnail(6987227,'382143','Lady GaGa at Sheffield arena 2010','set_2_of_37_copy_thumb.jpg',130, 92,15,'							photo_6987227.html');
												thumbnails[6993546] = new thumbnail(6993546,'378970','Kelham Island tavern Green Lane Sheffield','set-6301_copy_thumb.jpg',130, 173,15,'							photo_6993546.html');
												thumbnails[6980107] = new thumbnail(6980107,'382142','Keane at Sheffield Arena 2009 ','IMG_0168_copy_copy_thumb.jpg',130, 163,15,'							photo_6980107.html');
												thumbnails[6987228] = new thumbnail(6987228,'382143','La Roux at the o2 Academy Sheffield 2010','set_3_of_8_copy_thumb.jpg',130, 184,15,'							photo_6987228.html');
												thumbnails[6980108] = new thumbnail(6980108,'382142','Gundogs at the Boardwalk Sheffield 2009','IMG_1106_copy_thumb.jpg',130, 195,15,'							photo_6980108.html');
												thumbnails[6987229] = new thumbnail(6987229,'382143','Heaven 17 at the magna Rotherham 2010','set_33_of_41_copy_thumb.jpg',130, 176,15,'							photo_6987229.html');
												thumbnails[6987230] = new thumbnail(6987230,'382143','We are Scientists at the Leadmill Sheffield 2010','set_7_of_26_copy_thumb.jpg',130, 186,15,'							photo_6987230.html');
												thumbnails[6987231] = new thumbnail(6987231,'382143','Toyah at Clumber park Worksop 2010','set-2778_copy_thumb.jpg',130, 126,15,'							photo_6987231.html');
												thumbnails[6987232] = new thumbnail(6987232,'382143','The Chords at the Leadmill Sheffield 2010 ','set-5358_copy_thumb.jpg',130, 115,15,'							photo_6987232.html');
												thumbnails[6987233] = new thumbnail(6987233,'382143','Fun Lovin\' Criminals at the Plug Sheffield 2010 ','set-5825_copy_thumb.jpg',130, 124,15,'							photo_6987233.html');
												thumbnails[6987234] = new thumbnail(6987234,'382143','Fun Lovin\' Criminals at the Plug Sheffield 2010 ','set-5909_copy_thumb.jpg',130, 150,15,'							photo_6987234.html');
												thumbnails[6987235] = new thumbnail(6987235,'382143','Guns \'n\' Roses at the LG Arena Birmingham 2010','set-8464_copy_thumb.jpg',130, 173,15,'							photo_6987235.html');
												thumbnails[6987236] = new thumbnail(6987236,'382143','Guns \'n\' Roses at the LG Arena Birmingham 2010','set-8608_copy_thumb.jpg',130, 204,15,'							photo_6987236.html');
												thumbnails[549374] = new thumbnail(549374,'42339','Bee on a Flower','CRW_6786_RT8 copy copy_thumb.jpg',130, 165,15,'							photo_549374.html');
												thumbnails[555174] = new thumbnail(555174,'42339','Flower','Dscf0071_thumb.jpg',130, 174,15,'							photo_555174.html');
												thumbnails[555552] = new thumbnail(555552,'42339','Flower','DSCF2273 copy_thumb.jpg',130, 100,15,'							photo_555552.html');
												thumbnails[555561] = new thumbnail(555561,'42339','Tulips','flow_thumb.jpg',130, 195,15,'							photo_555561.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[382145] = new gallery(382145,'549467','Concert / Music Photography','gallery',[],0, 0, '', '																																																																																																							gallery_382145.html',0,0);
				  					galleries[53907] = new gallery(53907,'701742,701740,701733,701727,701725,701718,701709,701701,701691,701681','Harris Hawk','gallery',[701681,701691,701701,701709,701718,701725,701727,701733,701740,701742],0, 0, '', '																																																																																																							gallery_53907.html',0,0);
				  					galleries[42468] = new gallery(42468,'648038,586851,584208,583686,556950,555614,555605,555547','Landscape Photography','gallery',[555547,555605,555614,556950,583686,584208,586851,648038],0, 0, '', '																																																																																																							gallery_42468.html',0,0);
				  					galleries[42474] = new gallery(42474,'549467','Music Photography (pre 2009)','gallery',[549467,556957,6987222,6987224,6987225,6980106],0, 0, '382145', '																																																																																																							gallery_42474.html',0,0);
				  					galleries[382142] = new gallery(382142,'6987223,6987221,6987220,6987219,6980108,6980107,6980104,6980103,6980102,6980100','Music photography 2009','gallery',[6979854,6980098,6979855,6980099,6987219,6979856,6980100,6987220,6979857,6987221,6979858,6980102,6980103,6987223,6980104,6980107,6980108],0, 0, '382145', '																																																																																																							gallery_382142.html',0,0);
				  					galleries[382143] = new gallery(382143,'7095598,7095597,7095596,7095594,7095593,7054394,7054393,7054392,7054391,7054390','Music Photography 2010','gallery',[6980578,6980609,6987218,7054389,7095593,6980579,6980610,7054390,7095594,6980581,6980611,7054391,7095596,6980101,6980582,6980612,7054392,7095597,6980583,6980613,7054393,7095598,6980584,6980614,7054394,6980585,6980615,6980586,6980616,6980587,6980617,6987226,6980588,6987227,6987228,6987229,6987230,6987231,6987232,6987233,6987234,6987235,6987236],0, 0, '382145', '																																																																																																							gallery_382143.html',0,0);
				  					galleries[42822] = new gallery(42822,'659650,659641,586858,586846,585733','Odds and Sods','gallery',[585733,586846,586858,659641,659650],0, 0, '', '																																																																																																							gallery_42822.html',0,0);
				  					galleries[43042] = new gallery(43042,'659639,659637,659636,571760,557802','Panoramics','gallery',[571760,557802,659636,659637,659639],0, 0, '', '																																																																																																							gallery_43042.html',0,0);
				  					galleries[43014] = new gallery(43014,'555572','Red Arrows','gallery',[555572],0, 0, '', '																																																																																																							gallery_43014.html',0,0);
				  					galleries[378970] = new gallery(378970,'6993546,6993545,6993544,6993543,6993542,6993541,6993540,6993539,6993538,6993536','Sheffield','gallery',[6993536,6993538,6993539,6993540,6993541,6993542,6993543,6993544,6993545,6993546],0, 0, '', '																																																																																																							gallery_378970.html',0,0);
				  					galleries[44975] = new gallery(44975,'659648,648042,583676,583674,555179','The Peak District','gallery',[555179,583674,583676,648042,659648],0, 0, '', '																																																																																																							gallery_44975.html',0,0);
				  					galleries[44976] = new gallery(44976,'549441','The Yorkshire Coast','gallery',[549441,555146,555159,555161,555541,555580,583651,583652,583653,583670,583678,583681,585742,586848],0, 0, '', '																																																																																																							gallery_44976.html',0,0);
				  					galleries[43015] = new gallery(43015,'648034,557882,556948,555595,555168,555165,555155','Wildlife','gallery',[555155,555165,555168,555595,556948,557882,648034],0, 0, '', '																																																																																																							gallery_43015.html',0,0);
				  					galleries[42339] = new gallery(42339,'555561,555552,555174,549374','Natural History','gallery',[549374,555174,555552,555561],0, 0, '', '																																																																																																							gallery_42339.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7095598,7095597,7095594,7095593,7054394,7054392,7054389,6993540,6993536,6987235,6987234,6987231,6987223,6987221,6987219,6980612,6980610,6980585,6980583,6980579,6980108,6980106,6980101,6980100,6980098,6979858,6979856,6979854,701701,648038,586858,583681,583678,583676,583670,583653,583652,583651,571760,557882,557802,556957,556950,556948,555614,555605,555580,555572,555561,555552,555547,555541,555161,549374';
imageSets[2] = '549467,549441';
imageSets[3] = '7054393,7054392,7054391,7054390,6993546,6993545,6993544,6993543,6993542,6993541,6993539,6987233,6987232,6987230,6987229,6987228,6987227,6987226,6987225,6987224,6987222,6987220,6987219,6980617,6980616,6980615,6980614,6980613,6980611,6980610,6980588,6980587,6980586,6980584,6980582,6980581,6980579,6980107,6980104,6980103,6980102,6980101,6980099,6980098,6979857,6979855,6979854,701742,701740,701733,701727,701725,701718,701709,701701,701691,701681,659650,659648,659641,659639,659637,659636,648042,648038,648034,586858,586851,586848,586846,585742,584208,583686,583674';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bigwhopper/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bigwhopper/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'LIFE IS BETTER STILL...KEVIN WELLS LRPS : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

