window.thumbnails = new Object();
												thumbnails[505678] = new thumbnail(505678,'31444','Watch it!','WatchIt_thumb.jpg',130, 87,15,'photo_505678.html');
												thumbnails[509176] = new thumbnail(509176,'31444','Olly','Olly1_thumb.jpg',130, 176,15,'photo_509176.html');
												thumbnails[950565] = new thumbnail(950565,'434011','Chiltern Bluebells','Chiltern_Bluebells1_thumb.jpg',130, 195,15,'photo_950565.html');
												thumbnails[950569] = new thumbnail(950569,'31444','Fly Fishermen, Caledonian Canal, Scotland','Caledonian_Canal_Fishermen_thumb.jpg',130, 73,15,'photo_950569.html');
												thumbnails[795810] = new thumbnail(795810,'434014','Manapouri Holiday Camp','Manapouri_Holiday_Camp_thumb.JPG',130, 87,15,'photo_795810.html');
												thumbnails[1692113] = new thumbnail(1692113,'434011','Hallgrimskirkja, Rekjavik, Iceland','Hallgrimskirkja_thumb.jpg',130, 195,15,'photo_1692113.html');
												thumbnails[388346] = new thumbnail(388346,'434011','Chocolate Colorado, Grand Canyon','Chocolate_Colorado3_thumb.jpg',130, 165,15,'photo_388346.html');
												thumbnails[388353] = new thumbnail(388353,'434011','Cesky Krumlov, Czech Republic','CeskyKumlov2_thumb.jpg',130, 68,15,'photo_388353.html');
												thumbnails[388370] = new thumbnail(388370,'434014','Manapouri Beetle, Lake Manapouri','Manapouri_Beetle2_thumb.jpg',130, 87,15,'photo_388370.html');
												thumbnails[389728] = new thumbnail(389728,'31442','Poppies & Daises','Poppies_and_Dasies5_thumb.jpg',130, 195,15,'photo_389728.html');
												thumbnails[389751] = new thumbnail(389751,'434011','Hot Air Balloon, Tablelands, Australia','Balloon_TableLands_thumb.jpg',130, 173,15,'photo_389751.html');
												thumbnails[389925] = new thumbnail(389925,'434014','70th Anniversary of Spitfire Maiden Flight, Southampton Water','Fly_Away12_thumb.jpg',130, 75,15,'photo_389925.html');
												thumbnails[390341] = new thumbnail(390341,'31444','Park Life, Southampton Common','OliverSmith_3_2006_thumb.JPG',130, 132,15,'photo_390341.html');
												thumbnails[388222] = new thumbnail(388222,'31442','Poppy Field','Poppies2_thumb.jpg',130, 87,15,'photo_388222.html');
												thumbnails[388347] = new thumbnail(388347,'434011','Grand Canyon, half way down','HalfWayDown4_thumb.jpg',130, 195,15,'photo_388347.html');
												thumbnails[388358] = new thumbnail(388358,'434011','Mont Blanc & Chamonix Valley Glacier','Mont_Blanc_Chamonix_Glacier_thumb.jpg',130, 92,15,'photo_388358.html');
												thumbnails[388371] = new thumbnail(388371,'434014','Morris Minor Graveyard, Lake Manapouri','Morris_Minor_Graveyard2_thumb.jpg',130, 87,15,'photo_388371.html');
												thumbnails[389758] = new thumbnail(389758,'434011','Sydney Harbour, Sydney, Australia','Sydney_Harbour_thumb.jpg',130, 98,15,'photo_389758.html');
												thumbnails[389926] = new thumbnail(389926,'434011','Crinkle Crag from Langdale Valley, Lake District','Crinkle_Crag_From_Langdale1_thumb.jpg',130, 196,15,'photo_389926.html');
												thumbnails[390111] = new thumbnail(390111,'31443','Seal & Penguin, Doubtful Sound, New Zealand','Seal_n_Penguin_thumb.jpg',130, 195,15,'photo_390111.html');
												thumbnails[1692110] = new thumbnail(1692110,'434011','Northern Lights, Iceland','Northern_Lights1_thumb.jpg',130, 87,15,'photo_1692110.html');
												thumbnails[388225] = new thumbnail(388225,'31442','Poppies in focus','Poppies1_thumb.jpg',130, 144,15,'photo_388225.html');
												thumbnails[388350] = new thumbnail(388350,'434011','Half Dome & Yosemite Valley','Yosemite_Valley3_thumb.jpg',130, 195,15,'photo_388350.html');
												thumbnails[388373] = new thumbnail(388373,'434011','Dolomite Cows, Italy','Dolomite_Cows_thumb.jpg',130, 159,15,'photo_388373.html');
												thumbnails[389763] = new thumbnail(389763,'434011','Cape Tribulation, Australia','Cape_Tribulation_thumb.jpg',130, 173,15,'photo_389763.html');
												thumbnails[389942] = new thumbnail(389942,'434011','Langdale Valley from 1/2 way up Crinkle Crags','Langdale_From_Crinkle_thumb.jpg',130, 196,15,'photo_389942.html');
												thumbnails[390118] = new thumbnail(390118,'31443','Cormorant, Kaikoura, New Zealand','Cormorant_thumb.jpg',130, 87,15,'photo_390118.html');
												thumbnails[390354] = new thumbnail(390354,'31444','William','WilliamReid_B&W2_thumb.jpg',130, 195,15,'photo_390354.html');
												thumbnails[1692111] = new thumbnail(1692111,'434011','Spinnaker Tower, Portsmouth, England','Spinnaker_Tower_thumb.jpg',130, 195,15,'photo_1692111.html');
												thumbnails[388271] = new thumbnail(388271,'31442','Daffodil up close','Daffodil_thumb.jpg',130, 87,15,'photo_388271.html');
												thumbnails[388351] = new thumbnail(388351,'434011','Sunset over Keys View, Joshua Tree National Park, California','Sunset_JTree3_thumb.jpg',130, 194,15,'photo_388351.html');
												thumbnails[388383] = new thumbnail(388383,'434011','Kaikoura Mountains, South Island','Kaikoura_Mountains_thumb.jpg',130, 87,15,'photo_388383.html');
												thumbnails[389769] = new thumbnail(389769,'434011','Sunset over the Olgas, Australia','Sunset_Olgas_thumb.jpg',130, 98,15,'photo_389769.html');
												thumbnails[389945] = new thumbnail(389945,'434011','Langdale Valley from the top of Crinkle Crags','Langdale_Valley_from_CrinkleCrag_thumb.jpg',130, 163,15,'photo_389945.html');
												thumbnails[390124] = new thumbnail(390124,'31443','Wandering Albatross on water, Kaikoura, New Zealand','Wandering_Albatross_thumb.jpg',130, 87,15,'photo_390124.html');
												thumbnails[1324246] = new thumbnail(1324246,'31444','Hard-Fi on Front Cover of SceneSouth - Southern Daily Echo 31 August 2007','Hard-FI_FrontCover1_thumb.jpg',130, 167,15,'photo_1324246.html');
												thumbnails[388279] = new thumbnail(388279,'31442','George the cactus','George the cactus_thumb.jpg',130, 87,15,'photo_388279.html');
												thumbnails[388352] = new thumbnail(388352,'434011','Sunset, Death Valley, California','DeathValley_Sunset2_thumb.jpg',130, 39,15,'photo_388352.html');
												thumbnails[388384] = new thumbnail(388384,'434011','The Road to Queenstown, South Island','Road_To_Queenstown_thumb.jpg',130, 87,15,'photo_388384.html');
												thumbnails[389948] = new thumbnail(389948,'434011','Walking the Langdale Valley','Walking_Langdale_Valley_thumb.jpg',130, 196,15,'photo_389948.html');
												thumbnails[390135] = new thumbnail(390135,'31443','Wandering Albatross in flight, Kaikoura, New Zealand','Albatross_TakeOff_thumb.jpg',130, 67,15,'photo_390135.html');
												thumbnails[1063817] = new thumbnail(1063817,'31444','Bride & Bridesmaid','Debbie_Wedding1_thumb.jpg',130, 195,15,'photo_1063817.html');
												thumbnails[388282] = new thumbnail(388282,'31442','White Flower','White_Flower_thumb.jpg',130, 195,15,'photo_388282.html');
												thumbnails[388355] = new thumbnail(388355,'434011','Sierra Nevada, California','Sierra_Nevada_Lake_thumb.jpg',130, 59,15,'photo_388355.html');
												thumbnails[388387] = new thumbnail(388387,'434011','Tongoriro Crossing, North Island','Tongoriro_Crossing_Cloud_thumb.jpg',130, 87,15,'photo_388387.html');
												thumbnails[390142] = new thumbnail(390142,'31443','Southen Cow, New Zealand','Southern_Cow_thumb.jpg',130, 58,15,'photo_390142.html');
												thumbnails[1063824] = new thumbnail(1063824,'31444','Looking Moody','William_thumb.jpg',130, 87,15,'photo_1063824.html');
												thumbnails[793701] = new thumbnail(793701,'434011','Arc Rock, Joshua Tree National Park, California','JTree_ArcRock_thumb.JPG',130, 87,15,'photo_793701.html');
												thumbnails[388363] = new thumbnail(388363,'31442','New Zealand Beach Flowers','Yellow_Flowers_thumb.jpg',130, 87,15,'photo_388363.html');
												thumbnails[388400] = new thumbnail(388400,'434011','Nugget Point, South Island','Nugget_Point Rocks_thumb.jpg',130, 195,15,'photo_388400.html');
												thumbnails[390149] = new thumbnail(390149,'31443','Flying Mallards, Martin Mere, Southport, England','IMG_0651_MM_thumb.JPG',130, 163,15,'photo_390149.html');
												thumbnails[1063832] = new thumbnail(1063832,'31444','Josh','Josh_thumb.jpg',130, 91,15,'photo_1063832.html');
												thumbnails[793702] = new thumbnail(793702,'434011','Keys View overlooking the Salton Sea, California ','JTree_StarArc_thumb.JPG',130, 195,15,'photo_793702.html');
												thumbnails[388412] = new thumbnail(388412,'434011','Above Queenstown, South Island','Above_Queenstown_thumb.jpg',130, 195,15,'photo_388412.html');
												thumbnails[390154] = new thumbnail(390154,'31443','Ice Skating Ducks, Martin Mere, Southport, England','Ice_Skating_thumb.jpg',130, 128,15,'photo_390154.html');
												thumbnails[390391] = new thumbnail(390391,'31444','Moroccan Travelling, High Atlas Mountains','Moroccan_Car_thumb.jpg',130, 87,15,'photo_390391.html');
												thumbnails[950553] = new thumbnail(950553,'31442','Leaf Litter, Exbury Gardens, Hampshire','LeafLitterExbury_thumb.jpg',130, 87,15,'photo_950553.html');
												thumbnails[1063836] = new thumbnail(1063836,'31444','Time to restock the Tuck Shop Mark','Tuck_Shop_Needs_Restocking_thumb.jpg',130, 71,15,'photo_1063836.html');
												thumbnails[793703] = new thumbnail(793703,'434011','Sun Halo, Joshua Tree National Park, California','JTree_SunHalo_thumb.JPG',130, 87,15,'photo_793703.html');
												thumbnails[388417] = new thumbnail(388417,'434011','Remarkable Mountains, South Island','Remarkables_thumb.jpg',130, 195,15,'photo_388417.html');
												thumbnails[390160] = new thumbnail(390160,'31443','Lizard, Yosemite National Park, California, USA','Yoesmite_Lizard_thumb.jpg',130, 121,15,'photo_390160.html');
												thumbnails[390376] = new thumbnail(390376,'31444','Bon Jovi Drummer, Saint Mary\'s Stadium, Southampton','BonJovi_thumb.jpg',130, 173,15,'photo_390376.html');
												thumbnails[1063843] = new thumbnail(1063843,'31444','Gotta Roll With It Noel','OasisConcert_thumb.jpg',130, 72,15,'photo_1063843.html');
												thumbnails[388419] = new thumbnail(388419,'431238','Franz Josef Glacier, South Island','Franz_Josef_Glacier_Ice_thumb.jpg',130, 195,15,'photo_388419.html');
												thumbnails[390163] = new thumbnail(390163,'31443','Dragon Fly, Southampton, England','RedDragonFly_thumb.jpg',130, 91,15,'photo_390163.html');
												thumbnails[390379] = new thumbnail(390379,'31444','Hard-Fi, The Joiners, Southampton','HardFi2_thumb.jpg',130, 87,15,'photo_390379.html');
												thumbnails[1063846] = new thumbnail(1063846,'434014','Fairground Action','IoW_FairgroundRide_thumb.jpg',130, 195,15,'photo_1063846.html');
												thumbnails[390382] = new thumbnail(390382,'31444','Hard-Fi, The Joiners, Southampton','HardFi1_thumb.jpg',130, 87,15,'photo_390382.html');
												thumbnails[795814] = new thumbnail(795814,'434011','Moraki Boulder','026_Eroding_Moraki_Boulder_thumb.JPG',130, 202,15,'photo_795814.html');
												thumbnails[1063849] = new thumbnail(1063849,'31442','Charity Sunflower, Isle of Wight Hospice','IoW_Hospice_thumb.jpg',130, 87,15,'photo_1063849.html');
												thumbnails[390381] = new thumbnail(390381,'31444','Hard-Fi, The Joiners, Southampton','HArdfi3_thumb.jpg',130, 87,15,'photo_390381.html');
												thumbnails[1063850] = new thumbnail(1063850,'31444','Marlboro Girl','Marlboro_Lights_thumb.jpg',130, 168,15,'photo_1063850.html');
												thumbnails[793716] = new thumbnail(793716,'434011','The Head Stone, Joshua Tree National Park, California','Headstone_thumb.JPG',130, 87,15,'photo_793716.html');
												thumbnails[390394] = new thumbnail(390394,'434011','Moroccan Village, High Atlas Mountains, Morocco','MoroccanVillage_HighAtlasMountains_thumb.jpg',130, 87,15,'photo_390394.html');
												thumbnails[793712] = new thumbnail(793712,'31444','Preparing to Climb - Aguille de Joshua Tree, California','JP_AguilleDeJoshuaTree_thumb.JPG',130, 195,15,'photo_793712.html');
												thumbnails[793731] = new thumbnail(793731,'434011','On the Headstone, Joshua Tree National Park, California','Climbing Headstone_thumb.JPG',130, 195,15,'photo_793731.html');
												thumbnails[793710] = new thumbnail(793710,'431238','Star Arcs Over Joshua Tree National Park from Ryan Campground #14','Jtree_StarArcs_thumb.JPG',130, 87,15,'photo_793710.html');
												thumbnails[793713] = new thumbnail(793713,'434014','Truckers, Las Vegas Truck Park, Nevada','Truckers_thumb.JPG',130, 78,15,'photo_793713.html');
												thumbnails[793706] = new thumbnail(793706,'434011','Zion National Park, Utah','ZionRock_thumb.JPG',130, 169,15,'photo_793706.html');
												thumbnails[793705] = new thumbnail(793705,'434011','Red Rock Canyon, Nevada','RedRockCanyon_thumb.JPG',130, 87,15,'photo_793705.html');
												thumbnails[1070535] = new thumbnail(1070535,'434014','Red Arrows, Isle of Wight Festival 2007','RedArrows10_thumb.jpg',130, 75,15,'photo_1070535.html');
												thumbnails[1070536] = new thumbnail(1070536,'434014','Red Arrows Diamond Formation, Isle of Wight Festival 2007','RedArrows7_thumb.jpg',130, 433,15,'photo_1070536.html');
												thumbnails[1070537] = new thumbnail(1070537,'434014','Red Arrows Freefall, Isle of Wight Festival 2007','RedArrows2_thumb.jpg',130, 163,15,'photo_1070537.html');
												thumbnails[1092162] = new thumbnail(1092162,'31444','Bobbie GC','Bobby_0992_B&W_thumb.jpg',130, 87,15,'photo_1092162.html');
												thumbnails[1092163] = new thumbnail(1092163,'31444','Bobbie GC','Bobby_7270_B&W_thumb.jpg',130, 113,15,'photo_1092163.html');
												thumbnails[1092164] = new thumbnail(1092164,'31444','Bobbie GC & Dad','Bobby_7277_B&W_thumb.jpg',130, 169,15,'photo_1092164.html');
												thumbnails[1092166] = new thumbnail(1092166,'31444','Bobbie GC & Mum','Bobby_7284_B&W_thumb.jpg',130, 122,15,'photo_1092166.html');
												thumbnails[1092167] = new thumbnail(1092167,'31444','Bobbie GC - whats back here!?','Bobby_7472_B&W_thumb.jpg',130, 87,15,'photo_1092167.html');
												thumbnails[1092169] = new thumbnail(1092169,'31444','Bobbie GC - Cuddles from Mum','Bobby_7448_B&W_thumb.jpg',130, 87,15,'photo_1092169.html');
												thumbnails[1100533] = new thumbnail(1100533,'31444','Tilly Confetti','Tilly_Lavender_Confetti_thumb.jpg',130, 87,15,'photo_1100533.html');
												thumbnails[1100563] = new thumbnail(1100563,'31444','Sailor Reid','WilliamReed_Tilly_Sailor_thumb.jpg',130, 195,15,'photo_1100563.html');
												thumbnails[1299536] = new thumbnail(1299536,'431238','Brownsea Lanterns','Brownsea_Lanterns_thumb.jpg',130, 195,15,'photo_1299536.html');
												thumbnails[1299539] = new thumbnail(1299539,'31443','Brownsea Peacock','Brownsea_Peacock_thumb.jpg',130, 87,15,'photo_1299539.html');
												thumbnails[1299542] = new thumbnail(1299542,'31444','Boomwhacker Centenary Celebrations','Brownsea_Boonwhackers_thumb.jpg',130, 87,15,'photo_1299542.html');
												thumbnails[1309656] = new thumbnail(1309656,'31444','George wished the duck came with Pancakes and Hoi Sin Sauce','GeorgeBeverley_1348_thumb.jpg',130, 195,15,'photo_1309656.html');
												thumbnails[1309659] = new thumbnail(1309659,'31444','George - So I\'ve found the recipie for Duck Pancakes. Who\'s going to make them?','GeorgeBeverley_1362_thumb.jpg',130, 195,15,'photo_1309659.html');
												thumbnails[1410328] = new thumbnail(1410328,'31442','Pink Flower, Hilliers Gardens, Hampshire','Hilliers0907_2359_thumb.jpg',130, 195,15,'photo_1410328.html');
												thumbnails[1410331] = new thumbnail(1410331,'31442','Paper Flower','Hilliers0907_2362_thumb.jpg',130, 195,15,'photo_1410331.html');
												thumbnails[1412878] = new thumbnail(1412878,'31442','Red Hot Poker','Hilliers0907_2345_thumb.jpg',130, 195,15,'photo_1412878.html');
												thumbnails[5279778] = new thumbnail(5279778,'431238','Another World (2)','Anotherworld12_SharpeshooterUK_thumb.JPG',130, 179,15,'photo_5279778.html');
												thumbnails[5279655] = new thumbnail(5279655,'431238','Another World (1)','Anotherworld10_SharpeshooterUK_thumb.JPG',130, 121,15,'photo_5279655.html');
												thumbnails[5279793] = new thumbnail(5279793,'431238','Another World (3)','Anotherworld15_SharpeshooterUK_thumb.JPG',130, 171,15,'photo_5279793.html');
												thumbnails[5279819] = new thumbnail(5279819,'431238','Award Winning Cherry Cup Cakes','Cake_0001_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279819.html');
												thumbnails[5279822] = new thumbnail(5279822,'434011','Keep Dogs on a lead','IMG_3668_ClikPic1_SharpeshooterUK_thumb.JPG',130, 77,15,'photo_5279822.html');
												thumbnails[5279841] = new thumbnail(5279841,'434011','Blenheim Palace Geese in the Snow (1)','IMG_3673Blenheim_Snow_55022009_SharpeshooterUK_thumb.JPG',130, 56,15,'photo_5279841.html');
												thumbnails[5279848] = new thumbnail(5279848,'31443','Blenheim Palace Geese in the Snow (2)','IMG_3674Blenheim_Snow_55022009_ClikPic1_SharpeshooterUK_thumb.JPG',130, 81,15,'photo_5279848.html');
												thumbnails[5279851] = new thumbnail(5279851,'31443','Snowy Goose - Blenheim Palace','IMG_3691_ClikPic_SharpeshooterUK_thumb.JPG',130, 140,15,'photo_5279851.html');
												thumbnails[5279852] = new thumbnail(5279852,'31443','Blenheim Palace headless goose','IMG_3695_ClikPic1_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279852.html');
												thumbnails[5279854] = new thumbnail(5279854,'434011','Blenheim Palace Grand Bridge','IMG_3678Blenheim_Snow_55022009_SharpeshooterUK_thumb.JPG',130, 36,15,'photo_5279854.html');
												thumbnails[5279857] = new thumbnail(5279857,'431238','Black Metal Fence in the snow, Blenheim Palace','IMG_3699_ClikPic1_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279857.html');
												thumbnails[5279859] = new thumbnail(5279859,'434011','Sunset in Joshua Tree','IMG_3960_ClikPic1_SharpeshooterUK_thumb.JPG',130, 117,15,'photo_5279859.html');
												thumbnails[5279862] = new thumbnail(5279862,'431238','Star Arcs over Joshua Tree - Beelzebul or the Planet Venus','IMG_4063_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279862.html');
												thumbnails[5279864] = new thumbnail(5279864,'434011','Road to Nowhere in a campervan','IMG_4009_ClikPic_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279864.html');
												thumbnails[5279865] = new thumbnail(5279865,'434011','Reflecting on Ullswater (1)','IMG_4049_ClikPic_SharpeshooterUK_thumb.JPG',130, 171,15,'photo_5279865.html');
												thumbnails[5279867] = new thumbnail(5279867,'434011','Reflections on Ullswater (2)','IMG_4051_ClikPic_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279867.html');
												thumbnails[5279871] = new thumbnail(5279871,'31442','Lily - First image with Canon 5d MkII - time for fun!','IMG_4135_ClikPic_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279871.html');
												thumbnails[5279889] = new thumbnail(5279889,'431238','Climbing Helmet on the Gower','IMG_4194_ClikPic_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279889.html');
												thumbnails[5279900] = new thumbnail(5279900,'434011','View from The Roaches','IMG_5553_ClikPic1_SharpeshooterUK_thumb.JPG',130, 75,15,'photo_5279900.html');
												thumbnails[5279908] = new thumbnail(5279908,'434014','Spitfire Over Blenheim, Battle of the Proms','IMG_5244_SharpeshooterUK_thumb.JPG',130, 58,15,'photo_5279908.html');
												thumbnails[5279915] = new thumbnail(5279915,'434014','Lantern over Blenheim, Battle of the Proms','IMG_5360_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279915.html');
												thumbnails[5279926] = new thumbnail(5279926,'434011','Fireworks at the Proms, Blenheim Palace','IMG_5380_ClikPic_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279926.html');
												thumbnails[5279930] = new thumbnail(5279930,'431238','Taxing Times!','IMG_6814_ClikPic1_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279930.html');
												thumbnails[5279933] = new thumbnail(5279933,'431238','Italian Road Tunnel','IMG_5595_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279933.html');
												thumbnails[5279954] = new thumbnail(5279954,'31443','French Swallow in Flight (2)','IMG_6218_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279954.html');
												thumbnails[5279938] = new thumbnail(5279938,'434011','Italian Road','IMG_5928_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279938.html');
												thumbnails[5279963] = new thumbnail(5279963,'31443','French Swallow in Flight (3)','IMG_6219_SharpeshooterUK_thumb.JPG',130, 86,15,'photo_5279963.html');
												thumbnails[5279939] = new thumbnail(5279939,'434011','The Dolomites','IMG_5791_SharpeshooterUK_thumb.JPG',130, 49,15,'photo_5279939.html');
												thumbnails[5279942] = new thumbnail(5279942,'434011','Mountain Man, The Dolomites, Marmolada Glacier','IMG_5851_SharpeshooterUK_thumb.JPG',130, 70,15,'photo_5279942.html');
												thumbnails[5279974] = new thumbnail(5279974,'434011','Dog, Loches Castle, France','IMG_6278_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279974.html');
												thumbnails[5279982] = new thumbnail(5279982,'31442','French Meadow by the Roadside','IMG_6298_SharpeshooterUK_thumb.JPG',130, 53,15,'photo_5279982.html');
												thumbnails[5279984] = new thumbnail(5279984,'434014','Car Wreck, Bernwood, Oxfordshire','IMG_6842_ClikPic1_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279984.html');
												thumbnails[5279985] = new thumbnail(5279985,'31444','Bobbie exploring in Blenheim Palace','IMG_6370_ClikPic1_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279985.html');
												thumbnails[5279986] = new thumbnail(5279986,'31444','Edward and Pauline','IMG_7231_HelloEd_SharpeshooterUK_thumb.JPG',130, 195,15,'photo_5279986.html');
												thumbnails[5279996] = new thumbnail(5279996,'31444','Edward Chapman - whatever my sister can do I can do better - watch out Mum and Dad!','IMG_7246_HelloEd_SharpeshooterUK_thumb.JPG',130, 87,15,'photo_5279996.html');
												thumbnails[8040876] = new thumbnail(8040876,'31442','Macro Tulip','IMG_2982_Skye2011_thumb.JPG',130, 87,15,'photo_8040876.html');
												thumbnails[8040883] = new thumbnail(8040883,'71919','Heron\'s at Dusk, Isle of Skye','IMG_3017_Skye2011_thumb.JPG',130, 41,15,'photo_8040883.html');
												thumbnails[8040887] = new thumbnail(8040887,'71919','Heron in Flight','IMG_3042_Skye2011_thumb.JPG',130, 53,15,'photo_8040887.html');
												thumbnails[8040890] = new thumbnail(8040890,'71919','Black Sand, Talisker BayIsle of Skye','IMG_3310_Skye2011_thumb.JPG',130, 98,15,'photo_8040890.html');
												thumbnails[8040899] = new thumbnail(8040899,'71919','From the Quiraing, Isle of Skye','IMG_3353_Skye2011_thumb.JPG',130, 163,15,'photo_8040899.html');
												thumbnails[8040904] = new thumbnail(8040904,'71919','Neist Point Lighthouse, Isle of Skye','IMG_3570_Skye2011_thumb.JPG',130, 163,15,'photo_8040904.html');
												thumbnails[8040912] = new thumbnail(8040912,'71919','Running Hare, Waternish Peninsula, Isle of Skye','IMG_3843_Skye2011_thumb.JPG',130, 48,15,'photo_8040912.html');
												thumbnails[8040915] = new thumbnail(8040915,'71919','Gravestone, Trumpan Church, Waternish Peninsula, Isle of Skye','IMG_3880_Skye2011_thumb.JPG',130, 195,15,'photo_8040915.html');
												thumbnails[8040917] = new thumbnail(8040917,'71919','Ferryman, Waternish Peninsula, Isle of Skye','IMG_4027_Skye2011_thumb.JPG',130, 87,15,'photo_8040917.html');
												thumbnails[8040923] = new thumbnail(8040923,'71919','Grass, Waternish Peninsula, Isle of Skye','IMG_4063_Skye2011_thumb.JPG',130, 87,15,'photo_8040923.html');
												thumbnails[8040929] = new thumbnail(8040929,'71919','Sunset with Seagull, Waternish Peninsula, Isle of Skye','IMG_4070_Skye2011_thumb.JPG',130, 87,15,'photo_8040929.html');
												thumbnails[8040934] = new thumbnail(8040934,'71919','Contemplating, Waternish Peninsula, Isle of Skye','IMG_4073_Skye2011_thumb.JPG',130, 87,15,'photo_8040934.html');
												thumbnails[8040945] = new thumbnail(8040945,'71919','Small bird at sunset, Waternish Peninsula, Isle of Skye','IMG_4088_Skye2011_thumb.JPG',130, 104,15,'photo_8040945.html');
												thumbnails[8040951] = new thumbnail(8040951,'71919','Sunset, Waternish Peninsula, Isle of Skye','IMG_4092_Skye2011_thumb.JPG',130, 59,15,'photo_8040951.html');
												thumbnails[8105864] = new thumbnail(8105864,'71919','Spitfire Over Blenheim, Battle Proms 2010','IMG_0162_thumb.JPG',130, 87,15,'photo_8105864.html');
												thumbnails[8105869] = new thumbnail(8105869,'71919','Spitfire Over Blenheim, Battle Proms 2010','IMG_0180_thumb.JPG',130, 108,15,'photo_8105869.html');
												thumbnails[8105876] = new thumbnail(8105876,'71919','Cannons, Battle Proms, Blenheim Palace','IMG_0237_thumb.JPG',130, 87,15,'photo_8105876.html');
												thumbnails[8105880] = new thumbnail(8105880,'71919','Blenheim Palace from Bladon Gate','IMG_0806_thumb.JPG',130, 37,15,'photo_8105880.html');
												thumbnails[8105885] = new thumbnail(8105885,'71919','Nosying at the neighbours','IMG_6869_thumb.JPG',130, 72,15,'photo_8105885.html');
												thumbnails[8105888] = new thumbnail(8105888,'71919','Snow Daisy','IMG_8715_thumb.JPG',130, 180,15,'photo_8105888.html');
												thumbnails[8105891] = new thumbnail(8105891,'71919','Back garden, Bladon','IMG_8726_thumb.JPG',130, 195,15,'photo_8105891.html');
												thumbnails[8105892] = new thumbnail(8105892,'71919','Eggs','IMG_8762_thumb.JPG',130, 87,15,'photo_8105892.html');
												thumbnails[8105895] = new thumbnail(8105895,'71919','Cornish Pig','IMG_8859_thumb.JPG',130, 130,15,'photo_8105895.html');
												thumbnails[8105901] = new thumbnail(8105901,'71919','Fern with insect, Helligan Gardens','IMG_8888_thumb.JPG',130, 87,15,'photo_8105901.html');
												thumbnails[8105904] = new thumbnail(8105904,'71919','Foxglove with Dew, Helligan Gardens','IMG_8894_thumb.JPG',130, 130,15,'photo_8105904.html');
												thumbnails[8105906] = new thumbnail(8105906,'71919','Budding Flower','IMG_8907_thumb.JPG',130, 87,15,'photo_8105906.html');
												thumbnails[8105910] = new thumbnail(8105910,'71919','Strawberries on table','IMG_9270_thumb.JPG',130, 87,15,'photo_8105910.html');
												thumbnails[8105916] = new thumbnail(8105916,'71919','Pea shoot','IMG_9292_thumb.JPG',130, 87,15,'photo_8105916.html');
												thumbnails[8105919] = new thumbnail(8105919,'71919','Chain with dew','IMG_9669_thumb.JPG',130, 87,15,'photo_8105919.html');
												thumbnails[8105923] = new thumbnail(8105923,'71919','The Moon','IMG_9674_thumb.JPG',130, 87,15,'photo_8105923.html');
												thumbnails[8107461] = new thumbnail(8107461,'71919','Drone Bee, Quarry Wall, Bladon','IMG_1769_thumb.JPG',130, 130,15,'photo_8107461.html');
												thumbnails[8107469] = new thumbnail(8107469,'71919','Snowy Walk, Blenheim Palace','IMG_7681_thumb.JPG',130, 195,15,'photo_8107469.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[71919] = new gallery(71919,'8107469,8107461,8105923,8105919,8105916,8105910,8105906,8105904,8105901,8105895,8105892,8105891,8105888,8105885,8105880,8105876,8105869,8105864,8040951,8040945,8040934,8040929,8040923,8040917,8040915,8040912,8040904,8040899,8040890,8040887,8040883','Recent Work','gallery',[8040883,8040887,8040890,8040899,8040904,8040912,8040915,8040917,8040923,8040929,8040934,8040945,8040951,8105864,8105869,8105876,8105880,8105885,8105888,8105891,8105892,8105895,8105901,8105904,8105906,8105910,8105916,8105919,8105923,8107461,8107469],0, 0, '', 'gallery_71919.html',0,0);
				  					galleries[431238] = new gallery(431238,'5279933,5279930,5279889,5279862,5279857,5279819,5279793,5279778,5279655,1299536','Abstract Work','gallery',[388419,793710,1299536,5279778,5279655,5279793,5279819,5279857,5279862,5279889,5279930,5279933],0, 0, '', 'gallery_431238.html',0,0);
				  					galleries[434014] = new gallery(434014,'5279984,5279915,5279908,1070537,795810','Cars, Planes & Machines','gallery',[795810,388370,389925,388371,1063846,793713,1070535,1070536,1070537,5279908,5279915,5279984],0, 0, '', 'gallery_434014.html',0,0);
				  					galleries[31443] = new gallery(31443,'5279963,5279954,5279852,5279851,5279848','Fauna','gallery',[390111,390118,390124,390135,390142,390149,390154,390160,390163,1299539,5279848,5279851,5279852,5279954,5279963],0, 0, '', 'gallery_31443.html',0,0);
				  					galleries[31442] = new gallery(31442,'8040876,5279982,5279871,1412878,1410328','Flora','gallery',[389728,388222,388225,388271,388279,388282,388363,950553,1063849,1410328,1410331,1412878,5279871,5279982,8040876],0, 0, '', 'gallery_31442.html',0,0);
				  					galleries[434011] = new gallery(434011,'5279974,5279942,5279939,5279938,5279926,5279900,5279867,5279865,5279864,5279859,5279841,5279822,1692113,1692111,1692110,950565,795814,793731,793716,793706,793705,793703,793701,388373,388358,388353','Landscapes','gallery',[950565,1692113,388346,388353,389751,388347,388358,389758,389926,1692110,388350,388373,389763,389942,1692111,388351,388383,389769,389945,388352,388384,389948,388355,388387,793701,388400,793702,388412,793703,388417,795814,793716,390394,793731,793706,793705,5279822,5279841,5279854,5279859,5279864,5279865,5279867,5279900,5279926,5279938,5279939,5279942,5279974],0, 0, '', 'gallery_434011.html',0,0);
				  					galleries[31444] = new gallery(31444,'5279996,5279986,1309656,1299542,1100563,1100533,1092169,1092167,1092166,1092164,1092163,1092162','People','gallery',[505678,509176,950569,390341,390354,1324246,1063817,1063824,1063832,390391,1063836,390376,1063843,390379,390382,390381,1063850,793712,1092162,1092163,1092164,1092166,1092167,1092169,1100533,1100563,1299542,1309656,1309659,5279985,5279986,5279996],0, 0, '', 'gallery_31444.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '8107469,8107461,8105923,8105919,8105916,8105910,8105906,8105904,8105901,8105895,8105891,8105888,8105885,8105876,8105869,8105864,8040951,8040945,8040934,8040929,8040923,8040917,8040915,8040912,8040904,8040899,8040890,8040887,8040883,5279996,5279986,5279984,5279982,5279974,5279963,5279954,5279942,5279939,5279938,5279933,5279926,5279915,5279908,5279900,5279889,5279871,5279867,5279865,5279864,5279862,5279859,5279857,5279852,5279851,5279848,5279841,5279822,5279819,5279793,5279778,5279655,1692113,1692111,1692110,1412878,1410328,1309656,1299542,1299536,1100563,1100533,1092169,1092167,1092166,1092164,1092163,1092162,1070537,950565,795814,795810,793731,793716,793706,793705,793701,390394,388353';
imageSets[2] = '8107469,8107461,8105923,8105919,8105916,8105910,8105906,8105904,8105901,8105895,8105892,8105891,8105888,8105885,8105880,8105876,8105869,8105864,8040951,8040945,8040934,8040929,8040923,8040917,8040915,8040912,8040904,8040899,8040890,8040887,8040883,8040876,5279996,5279986,5279984,5279982,5279974,5279963,5279954,5279942,5279939,5279938,5279933,5279930,5279926,5279915,5279908,5279900,5279889,5279871,5279867,5279865,5279864,5279862,5279859,5279857,5279852,5279851,5279848,5279841,5279822,5279819,5279793,5279778,5279655,1692113,1692111,1692110,1412878,1410328,1309656,1299542,1299536,1100563,1100533,1092169,1092167,1092166,1092164,1092163,1092162,1070537,950565,795814,795810,793731,793716,793706,793705,793703,793701,388373,388358,388353';
imageSets[3] = '8105916,390394';
imageSets[4020] = '8107469,8107461,8105923,8105919,8105916,8105910,8105906,8105904,8105901,8105895,8105892,8105891,8105888,8105885,8105880,8105876,8105869,8105864,8040951,8040945,8040934,8040929,8040923,8040917,8040915,8040912,8040904,8040899,8040890,8040887,8040883,8040876,5279996,5279986,5279984,5279982,5279974,5279963,5279954,5279942,5279939,5279938,5279933,5279930,5279926,5279915,5279908,5279900,5279889,5279871,5279867,5279865,5279864,5279862,5279859,5279857,5279852,5279851,5279848,5279841,5279822,5279819,5279793,5279778,5279655,1692113,1692111,1692110,1412878,1410328,1309656,1299542,1299536,1100563,1100533,1092169,1092167,1092166,1092164,1092163,1092162,1070537,950565,793731,793706,793705,390394,388373,388358,388353';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/SharpeShooter/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/SharpeShooter/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 = 'Photography by Rob Sharpe: ' + 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>';
	}
					
				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;
	}
}

		

