window.thumbnails = new Object();
												thumbnails[7994957] = new thumbnail(7994957,'','Reflections, Fowey','Cornwall-Jan11-GF1_0085_thumb.jpg',130, 130,1,'#');
												thumbnails[7994964] = new thumbnail(7994964,'','Ghosts','Ghosts-2007-19_thumb.jpg',130, 79,1,'#');
												thumbnails[7994971] = new thumbnail(7994971,'','The Miners\' Arms, Grassmoor','Miners-Arms_0622bwscreen_thumb.jpg',130, 74,1,'#');
												thumbnails[7994985] = new thumbnail(7994985,'','Reverie','SheffieldLMHJun11_2367clikpic1_thumb.jpg',130, 87,1,'#');
												thumbnails[790859] = new thumbnail(790859,'','Gib Hill','DSCN3033web_thumb.jpg',130, 97,1,'#');
												thumbnails[4089575] = new thumbnail(4089575,'47450','Coalite offices, Shuttlewood, Derbyshire','Mar_09-2_1201web800_thumb.jpg',130, 87,1,'photo_4089575.html');
												thumbnails[4089577] = new thumbnail(4089577,'47450','Coalite offices, Shuttlewood, Derbyshire','Mar_09-2_1203web800_thumb.jpg',130, 86,1,'photo_4089577.html');
												thumbnails[4089601] = new thumbnail(4089601,'47450','Coalite offices, Shuttlewood, Derbyshire','Ma293009_1653_HDRweb800_thumb.jpg',130, 87,1,'photo_4089601.html');
												thumbnails[4089657] = new thumbnail(4089657,'47450','Sheffield','Architecture_0131web800_thumb.jpg',130, 86,1,'photo_4089657.html');
												thumbnails[4089700] = new thumbnail(4089700,'47450','Bear Valley Junction, Utah','USA079web800_thumb.jpg',130, 104,1,'photo_4089700.html');
												thumbnails[4089703] = new thumbnail(4089703,'47450','Near Solvang, California','USAApr08a_4614web800_thumb.jpg',130, 87,1,'photo_4089703.html');
												thumbnails[7995441] = new thumbnail(7995441,'47450','Clay Cross','Teasles-0131_thumb.jpg',130, 86,1,'photo_7995441.html');
												thumbnails[7995446] = new thumbnail(7995446,'47450','Bridge Street, Clay Cross','Claycross1-240110_7641-as-Smart-Object-1bwprint1_thumb.jpg',130, 88,1,'photo_7995446.html');
												thumbnails[7995448] = new thumbnail(7995448,'47450','Existential graffiti','Ch-Wagon-wks-010411_0822screen_thumb.jpg',130, 86,1,'photo_7995448.html');
												thumbnails[8027925] = new thumbnail(8027925,'47450','Newstead pit - the headstock','Newstead-Headstock_0131_thumb.jpg',130, 195,1,'photo_8027925.html');
												thumbnails[658371] = new thumbnail(658371,'47450','Floating tyre, December.','tyre1_thumb.jpg',130, 86,1,'photo_658371.html');
												thumbnails[3144235] = new thumbnail(3144235,'192794','No. 1 - Castle Street, Worcester','080213Hastings_3571web_thumb.jpg',130, 86,1,'photo_3144235.html');
												thumbnails[4075308] = new thumbnail(4075308,'245030','','DSC_00163LRPSweb_thumb.jpg',130, 195,1,'photo_4075308.html');
												thumbnails[4081021] = new thumbnail(4081021,'245032','','Ma293009_1727web800_thumb.jpg',130, 87,1,'photo_4081021.html');
												thumbnails[7957830] = new thumbnail(7957830,'428381','Isle of Wight, February','RPSApr11-001screen_thumb.jpg',130, 87,1,'photo_7957830.html');
												thumbnails[7995428] = new thumbnail(7995428,'429819','','Street036_thumb.jpg',130, 98,1,'photo_7995428.html');
												thumbnails[3144221] = new thumbnail(3144221,'192794','No. 2 - Mortlake Avenue, Worcester','080213Hastings_3561web_thumb.jpg',130, 105,1,'photo_3144221.html');
												thumbnails[3144745] = new thumbnail(3144745,'192829','The next','Journeytowork040408_3807web_thumb.jpg',130, 86,1,'photo_3144745.html');
												thumbnails[4075310] = new thumbnail(4075310,'245030','','DSC_0051181209LRPSweb_thumb.jpg',130, 87,1,'photo_4075310.html');
												thumbnails[4081012] = new thumbnail(4081012,'245032','','Ma293009_1681bwaweb800_thumb.jpg',130, 87,1,'photo_4081012.html');
												thumbnails[7957832] = new thumbnail(7957832,'428381','Whitby','RPSApr11-002screen_thumb.jpg',130, 87,1,'photo_7957832.html');
												thumbnails[7995429] = new thumbnail(7995429,'429819','','Street039_thumb.jpg',130, 98,1,'photo_7995429.html');
												thumbnails[3145114] = new thumbnail(3145114,'192794','No. 3 - Westwood Green, Cookham','Kingston_3649web_thumb.jpg',130, 86,1,'photo_3145114.html');
												thumbnails[3143584] = new thumbnail(3143584,'53420','San Diego','USAApr08_4344_thumb.jpg',130, 87,1,'photo_3143584.html');
												thumbnails[3144228] = new thumbnail(3144228,'192794','No. 7 - Livingstone Street, Worcester','080213Hastings_3563web_thumb.jpg',130, 87,1,'photo_3144228.html');
												thumbnails[4075312] = new thumbnail(4075312,'245030','','DSC_0084LRPSweb_thumb.jpg',130, 192,1,'photo_4075312.html');
												thumbnails[4081016] = new thumbnail(4081016,'245032','','Ma293009_1698web800_thumb.jpg',130, 87,1,'photo_4081016.html');
												thumbnails[7957834] = new thumbnail(7957834,'428381','Redcar','RPSApr11-003screen_thumb.jpg',130, 88,1,'photo_7957834.html');
												thumbnails[7995431] = new thumbnail(7995431,'429819','','Street052_thumb.jpg',130, 98,1,'photo_7995431.html');
												thumbnails[3143562] = new thumbnail(3143562,'53420','Rattlesnake Ranch','RATTLESNAKE RANCH web_thumb.jpg',130, 63,1,'photo_3143562.html');
												thumbnails[3144234] = new thumbnail(3144234,'192794','No. 8 - Helford Close, Worcester','080213Hastings_3570web_thumb.jpg',130, 86,1,'photo_3144234.html');
												thumbnails[4075313] = new thumbnail(4075313,'245030','','USAApr08_4358LRPSweb_thumb.jpg',130, 87,1,'photo_4075313.html');
												thumbnails[7957835] = new thumbnail(7957835,'428381','Grassmoor pit','RPSApr11-004screen_thumb.jpg',130, 92,1,'photo_7957835.html');
												thumbnails[7995432] = new thumbnail(7995432,'429819','','Street054_thumb.jpg',130, 98,1,'photo_7995432.html');
												thumbnails[3144220] = new thumbnail(3144220,'192794','No. 9 - Dinchall Road, Worcester','080213Hastings_3557web_thumb.jpg',130, 87,1,'photo_3144220.html');
												thumbnails[4075314] = new thumbnail(4075314,'245030','','DSC_0045LRPSweb_thumb.jpg',130, 193,1,'photo_4075314.html');
												thumbnails[4081047] = new thumbnail(4081047,'245032','','Potterylane_2386web800_thumb.jpg',130, 86,1,'photo_4081047.html');
												thumbnails[7957836] = new thumbnail(7957836,'428381','Tenerife','RPSApr11-005screen_thumb.jpg',130, 89,1,'photo_7957836.html');
												thumbnails[7995433] = new thumbnail(7995433,'429819','','Street057_thumb.jpg',130, 98,1,'photo_7995433.html');
												thumbnails[3143576] = new thumbnail(3143576,'53420','Gleeson, Arizona','USAApr08_4279_thumb.jpg',130, 87,1,'photo_3143576.html');
												thumbnails[3144333] = new thumbnail(3144333,'192794','Ghyllside Avenue, Hastings','080213Hastings_3437web_thumb.jpg',130, 87,1,'photo_3144333.html');
												thumbnails[4075317] = new thumbnail(4075317,'245030','','CCPSSummer08_5260LRPSweb_thumb.jpg',130, 195,1,'photo_4075317.html');
												thumbnails[7957838] = new thumbnail(7957838,'428381','Bridlington','RPSApr11-006screen_thumb.jpg',130, 86,1,'photo_7957838.html');
												thumbnails[7995435] = new thumbnail(7995435,'429819','','Street059_thumb.jpg',130, 98,1,'photo_7995435.html');
												thumbnails[3144336] = new thumbnail(3144336,'192794','Perth Road, St Leonards','080213Hastings_3436web_thumb.jpg',130, 195,1,'photo_3144336.html');
												thumbnails[4075318] = new thumbnail(4075318,'245030','','071007_Chesterfield_0362LRPSweb_thumb.jpg',130, 87,1,'photo_4075318.html');
												thumbnails[7957856] = new thumbnail(7957856,'428381','Romney Marsh','RPSApr11-007screen_thumb.jpg',130, 75,1,'photo_7957856.html');
												thumbnails[7995437] = new thumbnail(7995437,'429819','','Street060_thumb.jpg',130, 98,1,'photo_7995437.html');
												thumbnails[3144748] = new thumbnail(3144748,'192829','Passing car No. 1','Journeytowork040408_3811web_thumb.jpg',130, 86,1,'photo_3144748.html');
												thumbnails[4075324] = new thumbnail(4075324,'245030','','DSC_0221LRPSwebreverse_thumb.jpg',130, 87,1,'photo_4075324.html');
												thumbnails[7957859] = new thumbnail(7957859,'428381','Dungeness','RPSApr11-008screen_thumb.jpg',130, 86,1,'photo_7957859.html');
												thumbnails[3143646] = new thumbnail(3143646,'53420','The four corners','USAApr08a_4886_thumb.jpg',130, 87,1,'photo_3143646.html');
												thumbnails[3144756] = new thumbnail(3144756,'192829','Fox, Heath','Journeytowork040408_3827web_thumb.jpg',130, 86,1,'photo_3144756.html');
												thumbnails[4075326] = new thumbnail(4075326,'245030','','USAApr08a_4593LRPSweb_thumb.jpg',130, 87,1,'photo_4075326.html');
												thumbnails[7957861] = new thumbnail(7957861,'428381','Eastbourne','RPSApr11-009screen_thumb.jpg',130, 87,1,'photo_7957861.html');
												thumbnails[7995439] = new thumbnail(7995439,'429819','','Street068_thumb.jpg',130, 98,1,'photo_7995439.html');
												thumbnails[3143648] = new thumbnail(3143648,'53420','Iron County, Utah','USAApr08a_4881_thumb.jpg',130, 86,1,'photo_3143648.html');
												thumbnails[3144759] = new thumbnail(3144759,'192829','Morning traffic, Heath','Journeytowork040408_3833web_thumb.jpg',130, 86,1,'photo_3144759.html');
												thumbnails[4075327] = new thumbnail(4075327,'245030','','Pressmanor311208_0569webLRPS_thumb.jpg',130, 195,1,'photo_4075327.html');
												thumbnails[7957865] = new thumbnail(7957865,'428381','Northumberland','RPSApr11-010screen_thumb.jpg',130, 88,1,'photo_7957865.html');
												thumbnails[7995440] = new thumbnail(7995440,'429819','','Street061_thumb.jpg',130, 98,1,'photo_7995440.html');
												thumbnails[3143598] = new thumbnail(3143598,'53420','Las Vegas','USAApr08a_4785_thumb.jpg',130, 195,1,'photo_3143598.html');
												thumbnails[4081020] = new thumbnail(4081020,'245032','','Ma293009_1709web800_thumb.jpg',130, 87,1,'photo_4081020.html');
												thumbnails[7957875] = new thumbnail(7957875,'428381','The Forth Estuary','RPSApr11-011screen_thumb.jpg',130, 88,1,'photo_7957875.html');
												thumbnails[7957883] = new thumbnail(7957883,'428381','South Yorkshire','RPSApr11-012screen_thumb.jpg',130, 88,1,'photo_7957883.html');
												thumbnails[3143587] = new thumbnail(3143587,'53420','Santa Barbara County','USAApr08a_4570_thumb.jpg',130, 86,1,'photo_3143587.html');
												thumbnails[3144733] = new thumbnail(3144733,'192829','Sovereign Signs','Enter custom name hereJourneytowork050408_3909web_thumb.jpg',130, 86,1,'photo_3144733.html');
												thumbnails[7957889] = new thumbnail(7957889,'428381','Orgreave','RPSApr11-013screen_thumb.jpg',130, 86,1,'photo_7957889.html');
												thumbnails[3144762] = new thumbnail(3144762,'192829','Glapwell, Quadrilateral Division HQ','Journeytowork040408_3868web_thumb.jpg',130, 87,1,'photo_3144762.html');
												thumbnails[7957892] = new thumbnail(7957892,'428381','Filey','RPSApr11-014screen_thumb.jpg',130, 78,1,'photo_7957892.html');
												thumbnails[3143595] = new thumbnail(3143595,'53420','Santa Barbara beach','USAApr08a_4751_thumb.jpg',130, 86,1,'photo_3143595.html');
												thumbnails[3144763] = new thumbnail(3144763,'192829','Pleasley','Journeytowork040408_3888web_thumb.jpg',130, 87,1,'photo_3144763.html');
												thumbnails[7957894] = new thumbnail(7957894,'428381','Dawlish','RPSApr11-015screen_thumb.jpg',130, 88,1,'photo_7957894.html');
												thumbnails[3144764] = new thumbnail(3144764,'192829','Miners\' cottages, Pleasley','Journeytowork040408_3889web_thumb.jpg',130, 87,1,'photo_3144764.html');
												thumbnails[7957896] = new thumbnail(7957896,'428381','Hardwick Hall','RPSApr11-016screen_thumb.jpg',130, 86,1,'photo_7957896.html');
												thumbnails[7957900] = new thumbnail(7957900,'428381','Warwick','RPSApr11-017screen_thumb.jpg',130, 87,1,'photo_7957900.html');
												thumbnails[7957901] = new thumbnail(7957901,'428381','Birmingham','RPSApr11-018screen_thumb.jpg',130, 88,1,'photo_7957901.html');
												thumbnails[7957919] = new thumbnail(7957919,'428381','Gran Canaria','RPSApr11-019screen_thumb.jpg',130, 87,1,'photo_7957919.html');
												thumbnails[3144732] = new thumbnail(3144732,'192829','Factory','Enter custom name hereJourneytowork050408_3904web_thumb.jpg',130, 87,1,'photo_3144732.html');
												thumbnails[7957922] = new thumbnail(7957922,'428381','Clay Cross','RPSApr11-020screen_thumb.jpg',130, 87,1,'photo_7957922.html');
												thumbnails[7957927] = new thumbnail(7957927,'428381','Near Inverness','RPSApr11-021screen_thumb.jpg',130, 86,1,'photo_7957927.html');
												thumbnails[7957935] = new thumbnail(7957935,'428381','Donegal','RPSApr11-022screen_thumb.jpg',130, 194,1,'photo_7957935.html');
												thumbnails[7957938] = new thumbnail(7957938,'428381','Avebury','RPSApr11-023screen_thumb.jpg',130, 86,1,'photo_7957938.html');
												thumbnails[3144736] = new thumbnail(3144736,'192829','Blanket and pipes','Enter custom name hereJourneytowork050408_3910web_thumb.jpg',130, 86,1,'photo_3144736.html');
												thumbnails[7957940] = new thumbnail(7957940,'428381','Near Shuttlewood','RPSApr11-024screen_thumb.jpg',130, 195,1,'photo_7957940.html');
												thumbnails[7957942] = new thumbnail(7957942,'428381','Hardwick Hall','RPSApr11-025screen_thumb.jpg',130, 87,1,'photo_7957942.html');
												thumbnails[3144738] = new thumbnail(3144738,'192829','The butcher\'s shop','Enter custom name hereJourneytowork050408_3911web_thumb.jpg',130, 86,1,'photo_3144738.html');
												thumbnails[7957947] = new thumbnail(7957947,'428381','Ardnamurchan','RPSApr11-026screen_thumb.jpg',130, 87,1,'photo_7957947.html');
												thumbnails[7957948] = new thumbnail(7957948,'428381','Near Mallaig','RPSApr11-027screen_thumb.jpg',130, 87,1,'photo_7957948.html');
												thumbnails[7957950] = new thumbnail(7957950,'428381','Near Mallaig','RPSApr11-028screen_thumb.jpg',130, 87,1,'photo_7957950.html');
												thumbnails[7957951] = new thumbnail(7957951,'428381','Near Chesterfield','RPSApr11-029screen_thumb.jpg',130, 86,1,'photo_7957951.html');
												thumbnails[7957953] = new thumbnail(7957953,'428381','Near Chesterfield','RPSApr11-030screen_thumb.jpg',130, 86,1,'photo_7957953.html');
												thumbnails[7957955] = new thumbnail(7957955,'428381','Barfreston','RPSApr11-031screen_thumb.jpg',130, 86,1,'photo_7957955.html');
												thumbnails[7957957] = new thumbnail(7957957,'428381','Near Bolsover','RPSApr11-032screen_thumb.jpg',130, 89,1,'photo_7957957.html');
												thumbnails[7957968] = new thumbnail(7957968,'428381','Tupton','RPSApr11-033screen_thumb.jpg',130, 88,1,'photo_7957968.html');
												thumbnails[3144741] = new thumbnail(3144741,'192829','Garage','Enter custom name hereJourneytowork050408_3916web_thumb.jpg',130, 87,1,'photo_3144741.html');
												thumbnails[7957975] = new thumbnail(7957975,'428381','South of Mallaig','RPSApr11-034screen_thumb.jpg',130, 86,1,'photo_7957975.html');
												thumbnails[3144739] = new thumbnail(3144739,'192829','Ransom Wood','Enter custom name hereJourneytowork050408_3914bookweb_thumb.jpg',130, 86,1,'photo_3144739.html');
												thumbnails[7957976] = new thumbnail(7957976,'428381','Clay Cross','RPSApr11-035screen_thumb.jpg',130, 87,1,'photo_7957976.html');
												thumbnails[7957979] = new thumbnail(7957979,'428381','Falmouth','RPSApr11-036screen_thumb.jpg',130, 88,1,'photo_7957979.html');
												thumbnails[7958000] = new thumbnail(7958000,'428381','Tenerife','RPSApr11-037screen_thumb.jpg',130, 86,1,'photo_7958000.html');
												thumbnails[7958007] = new thumbnail(7958007,'428381','County Cork','RPSApr11-038screen_thumb.jpg',130, 194,1,'photo_7958007.html');
												thumbnails[7991137] = new thumbnail(7991137,'429636','The band','FOSRP25_thumb.jpg',130, 50,1,'photo_7991137.html');
												thumbnails[7991139] = new thumbnail(7991139,'429636','The band','FOSRP32_thumb.jpg',130, 88,1,'photo_7991139.html');
												thumbnails[7991141] = new thumbnail(7991141,'429636','Football competition','FOSRP36_thumb.jpg',130, 86,1,'photo_7991141.html');
												thumbnails[7991142] = new thumbnail(7991142,'429636','The new cafe','FOSRP42_thumb.jpg',130, 86,1,'photo_7991142.html');
												thumbnails[7991143] = new thumbnail(7991143,'429636','The new cafe - the kitchen','FOSRP44_thumb.jpg',130, 195,1,'photo_7991143.html');
												thumbnails[7988595] = new thumbnail(7988595,'429530','Market Street','Claycross1060210_8052_thumb.jpg',130, 50,1,'photo_7988595.html');
												thumbnails[7991098] = new thumbnail(7991098,'429634','The Painted Hall, Chatsworth, April 2010','Sonara5_thumb.jpg',130, 86,1,'photo_7991098.html');
												thumbnails[7991123] = new thumbnail(7991123,'429635','Beauty and the Beast','Felley10_thumb.jpg',130, 86,1,'photo_7991123.html');
												thumbnails[7988599] = new thumbnail(7988599,'429530','The former Spiritualist church, Bridge Street','Claycross1-240110_7567_thumb.jpg',130, 76,1,'photo_7988599.html');
												thumbnails[7991100] = new thumbnail(7991100,'429634','The Painted Hall, Chatsworth, April 2010','Sonaraprint3_thumb.jpg',130, 107,1,'photo_7991100.html');
												thumbnails[7991125] = new thumbnail(7991125,'429635','Beauty and the Beast','Felley03_thumb.jpg',130, 195,1,'photo_7991125.html');
												thumbnails[7988602] = new thumbnail(7988602,'429530','There is now only one coal merchant in Clay Cross','Claycross1060210_8035_thumb.jpg',130, 86,1,'photo_7988602.html');
												thumbnails[7991101] = new thumbnail(7991101,'429634','Image for the album cover, 2010','Sonara1_thumb.jpg',130, 39,1,'photo_7991101.html');
												thumbnails[7991126] = new thumbnail(7991126,'429635','Beauty and the Beast','Felley43_thumb.jpg',130, 60,1,'photo_7991126.html');
												thumbnails[7988628] = new thumbnail(7988628,'429530','Derby Road - before','Claycross1-240110_7689_thumb.jpg',130, 72,1,'photo_7988628.html');
												thumbnails[7991109] = new thumbnail(7991109,'429634','ALC Christmas party, 2007','071211ALC_1685_thumb.jpg',130, 130,1,'photo_7991109.html');
												thumbnails[7991129] = new thumbnail(7991129,'429635','Beauty and the Beast','Felley25_thumb.jpg',130, 86,1,'photo_7991129.html');
												thumbnails[7988629] = new thumbnail(7988629,'429530','Demolition in progress','CLaycross1100210_8497_thumb.jpg',130, 86,1,'photo_7988629.html');
												thumbnails[7991103] = new thumbnail(7991103,'429634','ALC Christmas party, 2008','DSC_0022_6852_thumb.jpg',130, 130,1,'photo_7991103.html');
												thumbnails[7988632] = new thumbnail(7988632,'429530','The sign has landed','Claycross2280210_8729-as-Smart-Object-1_thumb.jpg',130, 89,1,'photo_7988632.html');
												thumbnails[7991113] = new thumbnail(7991113,'429634','Singing at Chatsworth, November 2009','ALC-Chatsworth-screen-1_thumb.jpg',130, 75,1,'photo_7991113.html');
												thumbnails[7988633] = new thumbnail(7988633,'429530','Earthworks','Claycross1100210_8286_thumb.jpg',130, 86,1,'photo_7988633.html');
												thumbnails[7991118] = new thumbnail(7991118,'429634','Bristol, 2007','DSCN3209_thumb.jpg',130, 71,1,'photo_7991118.html');
												thumbnails[7988638] = new thumbnail(7988638,'429530','The ventilation shaft','GMI-160410_9292_thumb.jpg',130, 84,1,'photo_7988638.html');
												thumbnails[7988639] = new thumbnail(7988639,'429530','Dust','GMI-160410_9275_thumb.jpg',130, 69,1,'photo_7988639.html');
												thumbnails[7988644] = new thumbnail(7988644,'429530','Spectators','Claycross070510_0079_thumb.jpg',130, 86,1,'photo_7988644.html');
												thumbnails[7988647] = new thumbnail(7988647,'429530','Dust and rain','Claycross070510_0138_thumb.jpg',130, 57,1,'photo_7988647.html');
												thumbnails[7988648] = new thumbnail(7988648,'429530','Pipework','15-GMI-150610_12151_thumb.jpg',130, 88,1,'photo_7988648.html');
												thumbnails[7988650] = new thumbnail(7988650,'429530','Steel fixing','15-GMI-150610_1291_thumb.jpg',130, 80,1,'photo_7988650.html');
												thumbnails[7988652] = new thumbnail(7988652,'429530','Safety caps','GMI-150610_0986_thumb.jpg',130, 52,1,'photo_7988652.html');
												thumbnails[7988653] = new thumbnail(7988653,'429530','April showers','GMI-150610_1027_thumb.jpg',130, 88,1,'photo_7988653.html');
												thumbnails[7988664] = new thumbnail(7988664,'429530','Setting out','GMI-120710_1563_thumb.jpg',130, 190,1,'photo_7988664.html');
												thumbnails[7988660] = new thumbnail(7988660,'429530','First steel frame, June','Hady-220610_1749_thumb.jpg',130, 86,1,'photo_7988660.html');
												thumbnails[7988662] = new thumbnail(7988662,'429530','Roof work','GMI-120710_1560_thumb.jpg',130, 86,1,'photo_7988662.html');
												thumbnails[7988667] = new thumbnail(7988667,'429530','The pet food aisle','GMI040810D90_3064_thumb.jpg',130, 89,1,'photo_7988667.html');
												thumbnails[7988669] = new thumbnail(7988669,'429530','The new link road takes shape','GMI040810D90_3184_thumb.jpg',130, 52,1,'photo_7988669.html');
												thumbnails[7988672] = new thumbnail(7988672,'429530','Supersky','GMI040810D90_3132_thumb.jpg',130, 87,1,'photo_7988672.html');
												thumbnails[7988673] = new thumbnail(7988673,'429530','Lunch','GMI-280810_3921_thumb.jpg',130, 130,1,'photo_7988673.html');
												thumbnails[7988675] = new thumbnail(7988675,'429530','Board walk','GMI-280810_3994_thumb.jpg',130, 73,1,'photo_7988675.html');
												thumbnails[7988676] = new thumbnail(7988676,'429530','Derby Road, July','GMI-280810_3973_thumb.jpg',130, 87,1,'photo_7988676.html');
												thumbnails[7988679] = new thumbnail(7988679,'429530','Store interior','GMI-280810_3861_thumb.jpg',130, 87,1,'photo_7988679.html');
												thumbnails[7988681] = new thumbnail(7988681,'429530','The cathedral','GMI-250910D90_4657_thumb.jpg',130, 86,1,'photo_7988681.html');
												thumbnails[7988683] = new thumbnail(7988683,'429530','Afternoon light','GMI-250910D50_4573_thumb.jpg',130, 88,1,'photo_7988683.html');
												thumbnails[7988687] = new thumbnail(7988687,'429530','Fame at last (my photo)','GMI-250910D90_4748_thumb.jpg',130, 86,1,'photo_7988687.html');
												thumbnails[7988690] = new thumbnail(7988690,'429530','Derby Road, September','GMI-250910D90_4750_thumb.jpg',130, 86,1,'photo_7988690.html');
												thumbnails[7988693] = new thumbnail(7988693,'429530','Skyline','GMI-091110_0100_thumb.jpg',130, 96,1,'photo_7988693.html');
												thumbnails[7988698] = new thumbnail(7988698,'429530','The moon over Bridge Street','GMI-091110_0024_thumb.jpg',130, 72,1,'photo_7988698.html');
												thumbnails[7988699] = new thumbnail(7988699,'429530','Dump truck by night','GMI-091110_0264_thumb.jpg',130, 89,1,'photo_7988699.html');
												thumbnails[7988701] = new thumbnail(7988701,'429530','Preparation','GMIClayCross-221110_5857_thumb.jpg',130, 70,1,'photo_7988701.html');
												thumbnails[7988702] = new thumbnail(7988702,'429530','Store opening day No. 1','GMI-051210_6543bw_thumb.jpg',130, 87,1,'photo_7988702.html');
												thumbnails[7988705] = new thumbnail(7988705,'429530','The new age','GMI-240211_0503_thumb.jpg',130, 95,1,'photo_7988705.html');
												thumbnails[7988706] = new thumbnail(7988706,'429530','Bridge street, December','GMI-260211_0589_thumb.jpg',130, 68,1,'photo_7988706.html');
												thumbnails[7988707] = new thumbnail(7988707,'429530','Ready to shop','GMI-260211_0579_thumb.jpg',130, 195,1,'photo_7988707.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[428381] = new gallery(428381,'7958007,7958000,7957979,7957976,7957975,7957968,7957957,7957955,7957953,7957951','A contemporary gallery','gallery',[7957830,7957832,7957834,7957835,7957836,7957838,7957856,7957859,7957861,7957865,7957875,7957883,7957889,7957892,7957894,7957896,7957900,7957901,7957919,7957922,7957927,7957935,7957938,7957940,7957942,7957947,7957948,7957950,7957951,7957953,7957955,7957957,7957968,7957975,7957976,7957979,7958000,7958007],0, 0, '', 'gallery_428381.html',0,0);
				  					galleries[429530] = new gallery(429530,'7988707,7988706,7988705,7988702,7988701,7988699,7988698,7988693,7988690,7988687','Clay Cross regeneration','section515875',[7988595,7988599,7988602,7988628,7988629,7988632,7988633,7988638,7988639,7988644,7988647,7988648,7988650,7988652,7988653,7988664,7988660,7988662,7988667,7988669,7988672,7988673,7988675,7988676,7988679,7988681,7988683,7988687,7988690,7988693,7988698,7988699,7988701,7988702,7988705,7988706,7988707],0, 0, '', 'section515875_429530.html',0,0);
				  					galleries[245030] = new gallery(245030,'4075327,4075326,4075324,4075318,4075317,4075314,4075313,4075312,4075310,4075308','My LRPS panel','gallery',[4075308,4075310,4075312,4075313,4075314,4075317,4075318,4075324,4075326,4075327],0, 0, '', 'gallery_245030.html',0,0);
				  					galleries[429634] = new gallery(429634,'7991118,7991113,7991109,7991103,7991101,7991100,7991098','Sonara (Alfreton Ladies\' Choir)','section515875',[7991098,7991100,7991101,7991109,7991103,7991113,7991118],0, 0, '', 'section515875_429634.html',0,0);
				  					galleries[192794] = new gallery(192794,'3144235','All the places I\'ve ever lived','gallery',[3144235,3144221,3145114,3144228,3144234,3144220,3144333,3144336],0, 0, '', 'gallery_192794.html',0,0);
				  					galleries[429635] = new gallery(429635,'7991129,7991126,7991125,7991123','The Felley Players','section515875',[7991123,7991125,7991126,7991129],0, 0, '', 'section515875_429635.html',0,0);
				  					galleries[429636] = new gallery(429636,'7991143,7991142,7991141,7991139,7991137','Friends of Stand Road Park','section515875',[7991137,7991139,7991141,7991142,7991143],0, 0, '', 'section515875_429636.html',0,0);
				  					galleries[429819] = new gallery(429819,'7995440,7995439,7995437,7995435,7995433,7995432,7995431,7995429,7995428','Street photography','gallery',[7995428,7995429,7995431,7995432,7995433,7995435,7995437,7995439,7995440],0, 0, '', 'gallery_429819.html',0,0);
				  					galleries[47450] = new gallery(47450,'8027925,7995448,7995446,7995441,4089703,4089700,4089657,4089601,4089577,4089575','Abandonment and Dereliction','gallery',[4089575,4089577,4089601,4089657,4089700,4089703,7995441,7995446,7995448,8027925,658371],0, 0, '', 'gallery_47450.html',0,0);
				  					galleries[192829] = new gallery(192829,'3144745','Journey to Work','gallery',[3144745,3144748,3144756,3144759,3144733,3144762,3144763,3144764,3144732,3144736,3144738,3144741,3144739],0, 0, '', 'gallery_192829.html',0,0);
				  					galleries[245032] = new gallery(245032,'4081021','Pottery Lane, Chesterfield','gallery',[4081021,4081012,4081016,4081047,4081020],0, 0, '', 'gallery_245032.html',0,0);
				  					galleries[53420] = new gallery(53420,'3143648,3143646,3143598,3143595,3143587,3143584,3143576,3143562','USA 2008 and 2009','gallery',[3143584,3143562,3143576,3143646,3143648,3143598,3143587,3143595],0, 0, '', 'gallery_53420.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7958000,7957979,7957976,7957975,7957968,7957957,7957955,7957953,7957951,7957950,7957948,7957947,7957942,7957938,7957927,7957922,7957919,7957901,7957900,7957896,7957894,7957892,7957889,7957883,7957875,7957865,7957861,7957859,7957856,7957838,7957836,7957835,7957834,7957832,7957830';
imageSets[2] = '4081021,3144745,3144235';
imageSets[3] = '8027925,7995448,7995446,7995441,7995440,7995439,7995437,7995435,7995433,7995432,7995431,7995429,7995428,7994985,7994971,7994964,7994957,7991143,7991142,7991141,7991139,7991137,7991129,7991126,7991125,7991123,7991118,7991113,7991109,7991103,7991101,7991100,7991098,7988707,7988706,7988705,7988702,7988701,7988699,7988698,7988693,7988690,7988687,7988683,7988681,7988679,7988676,7988675,7988673,7988672';
imageSets[242811] = '7958007,7958000,7957979,7957976,7957975,7957968,7957957,7957955,7957953,7957951,7957950,7957948,7957947,7957942,7957940,7957938,7957935,7957927,7957922,7957919,7957901,7957900,7957896,7957894,7957892,7957889,7957883,7957875,7957865,7957861,7957859,7957856,7957838,7957836,7957835,7957834,7957830';
imageSets[222979] = '4089575';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/geoffhicks/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/geoffhicks/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 = 'geoff hicks photography: ' + 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.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;
	}
}

			

