window.thumbnails = new Object();
												thumbnails[3054151] = new thumbnail(3054151,'151133','Pure and Simple','pure_and_simple_thumb.jpg',130, 87,32,'																			photo_3054151.html');
												thumbnails[3140524] = new thumbnail(3140524,'151133','Mono Petals','b&w-petals_thumb.jpg',130, 95,32,'																			photo_3140524.html');
												thumbnails[3906769] = new thumbnail(3906769,'151133','Pink Dandelion','Pink_Dandelion_thumb.jpg',130, 87,32,'																			photo_3906769.html');
												thumbnails[5025840] = new thumbnail(5025840,'151133','Yellow Rose','Yellow_Rose_thumb.jpg',130, 87,32,'																			photo_5025840.html');
												thumbnails[5025841] = new thumbnail(5025841,'151133','Yellow Gerbera','Yellow_Gerbera_thumb.jpg',130, 83,32,'																			photo_5025841.html');
												thumbnails[5025852] = new thumbnail(5025852,'151133','Translucent Petals','Translucent_Petals_thumb.jpg',130, 87,32,'																			photo_5025852.html');
												thumbnails[5025878] = new thumbnail(5025878,'151133','Raindrops on Petals','Raindrops_on_Petals_thumb.jpg',130, 87,32,'																			photo_5025878.html');
												thumbnails[6537219] = new thumbnail(6537219,'151133','Creamy Gerbera','Creamy-Gerbera_thumb.jpg',130, 87,32,'																			photo_6537219.html');
												thumbnails[7390594] = new thumbnail(7390594,'151133','Softly Softly','SoftlySoftly_thumb.jpg',130, 87,32,'																			photo_7390594.html');
												thumbnails[5025721] = new thumbnail(5025721,'151132','Sunset over Bodmin','Sunset_over_Bodmin_thumb.jpg',130, 47,32,'																			photo_5025721.html');
												thumbnails[2345959] = new thumbnail(2345959,'151134','JPS Lotus','JPS_Lotus_thumb.jpg',130, 57,32,'																			photo_2345959.html');
												thumbnails[7390564] = new thumbnail(7390564,'151132','Coniston','Coniston_thumb.jpg',130, 67,32,'																			photo_7390564.html');
												thumbnails[7390552] = new thumbnail(7390552,'151132','Blue Lake','Blue_Lake_thumb.jpg',130, 61,32,'																			photo_7390552.html');
												thumbnails[7390578] = new thumbnail(7390578,'151132','Lakeland Light','Lakeland_Light_thumb.jpg',130, 68,32,'																			photo_7390578.html');
												thumbnails[7390589] = new thumbnail(7390589,'151132','Snowy Fields to Lapley','Snowy_Fields_to_Lapley_thumb.jpg',130, 71,32,'																			photo_7390589.html');
												thumbnails[7390617] = new thumbnail(7390617,'151132','Windermere II','Windermere-II_thumb.jpg',130, 63,32,'																			photo_7390617.html');
												thumbnails[7390613] = new thumbnail(7390613,'151132','Windermere I','Windermere-I_thumb.jpg',130, 69,32,'																			photo_7390613.html');
												thumbnails[3054137] = new thumbnail(3054137,'151134','Footstep','Footstep_thumb.jpg',130, 87,32,'																			photo_3054137.html');
												thumbnails[3906760] = new thumbnail(3906760,'151120','Nuns on the Run','Nuns_on_the_Run_thumb.jpg',130, 78,32,'																			photo_3906760.html');
												thumbnails[6537226] = new thumbnail(6537226,'151120','Gondolas','Gondolas_thumb.jpg',130, 87,32,'																			photo_6537226.html');
												thumbnails[6537269] = new thumbnail(6537269,'151120','Venetian Sunset','Venetian-Sunset_thumb.jpg',130, 87,32,'																			photo_6537269.html');
												thumbnails[3906751] = new thumbnail(3906751,'151120','Blue Dome Oia','Blue_Dome_Oia_thumb.jpg',130, 87,32,'																			photo_3906751.html');
												thumbnails[6537261] = new thumbnail(6537261,'151120','Venetian Fisherman','Venetian-Fisherman_thumb.jpg',130, 87,32,'																			photo_6537261.html');
												thumbnails[6537242] = new thumbnail(6537242,'151120','Pedal Power','Pedal-Power_thumb.jpg',130, 87,32,'																			photo_6537242.html');
												thumbnails[7390566] = new thumbnail(7390566,'151134','Feathered Friend','Feathered_Friend_thumb.jpg',130, 143,32,'																			photo_7390566.html');
												thumbnails[7390573] = new thumbnail(7390573,'151135','Its Snowing','Its_Snowing_thumb.jpg',130, 72,32,'																			photo_7390573.html');
												thumbnails[6537248] = new thumbnail(6537248,'151120','Raindrops','Rainbow_thumb.jpg',130, 87,32,'																			photo_6537248.html');
												thumbnails[6537210] = new thumbnail(6537210,'151120','Birds of Bologna','Birds-of-Bologna_thumb.jpg',130, 87,32,'																			photo_6537210.html');
												thumbnails[6537200] = new thumbnail(6537200,'151120','Artists Venice','Artists-Venice_thumb.jpg',130, 87,32,'																			photo_6537200.html');
												thumbnails[6537277] = new thumbnail(6537277,'151120','Waiting','Waiting_thumb.jpg',130, 87,32,'																			photo_6537277.html');
												thumbnails[3906776] = new thumbnail(3906776,'151120','Spanish Steps','Spanish_Steps_thumb.jpg',130, 87,32,'																			photo_3906776.html');
												thumbnails[3509482] = new thumbnail(3509482,'151120','Memorial Steps','Memorial_Steps_thumb.jpg',130, 93,32,'																			photo_3509482.html');
												thumbnails[7390555] = new thumbnail(7390555,'151135','Canal Snow I','Canal_Snow-I_thumb.jpg',130, 76,32,'																			photo_7390555.html');
												thumbnails[3906766] = new thumbnail(3906766,'151120','Pantheon','Pantheon_thumb.jpg',130, 102,32,'																			photo_3906766.html');
												thumbnails[3906809] = new thumbnail(3906809,'151120','Roman Pillars','Roman_-Pillars_thumb.jpg',130, 115,32,'																			photo_3906809.html');
												thumbnails[2345982] = new thumbnail(2345982,'151135','Rosie and Jim','Rosie&Jim_thumb.jpg',130, 81,32,'																			photo_2345982.html');
												thumbnails[3906798] = new thumbnail(3906798,'151120','Roman Punk','Roman_Punk_thumb.jpg',130, 124,32,'																			photo_3906798.html');
												thumbnails[3906815] = new thumbnail(3906815,'151120','Strolling','rome-101a_thumb.jpg',130, 138,32,'																			photo_3906815.html');
												thumbnails[2346087] = new thumbnail(2346087,'151134','Slinky','Slinky_thumb.jpg',130, 173,32,'																			photo_2346087.html');
												thumbnails[3906829] = new thumbnail(3906829,'151120','Walking into Battle','Shine_thumb.jpg',130, 138,32,'																			photo_3906829.html');
												thumbnails[7390622] = new thumbnail(7390622,'151135','Winters Walk','WintersWalk_thumb.jpg',130, 85,32,'																			photo_7390622.html');
												thumbnails[2346104] = new thumbnail(2346104,'151134','Tex the Cat','Tex1_thumb.jpg',130, 173,32,'																			photo_2346104.html');
												thumbnails[2856599] = new thumbnail(2856599,'151135','Snowy towpath','snow_thumb.jpg',130, 85,32,'																			photo_2856599.html');
												thumbnails[2856601] = new thumbnail(2856601,'151135','Snowy Morning','snow2_thumb.jpg',130, 87,32,'																			photo_2856601.html');
												thumbnails[7390560] = new thumbnail(7390560,'151135','Canal Snow II','Canal_Snow-II_thumb.jpg',130, 89,32,'																			photo_7390560.html');
												thumbnails[3906758] = new thumbnail(3906758,'151134','Full Steam Ahead','Full_Steam_Ahead_thumb.jpg',130, 197,32,'																			photo_3906758.html');
												thumbnails[5025524] = new thumbnail(5025524,'284615','Eastbourne Pier','Eastbourne_Pier_thumb.jpg',130, 68,32,'																			photo_5025524.html');
												thumbnails[3140531] = new thumbnail(3140531,'151120','Clinging onto Mother','Clinging_onto_Mother_thumb.jpg',130, 192,32,'																			photo_3140531.html');
												thumbnails[2345933] = new thumbnail(2345933,'151133','Clematis','Clematis_thumb.jpg',130, 87,32,'																			photo_2345933.html');
												thumbnails[2346090] = new thumbnail(2346090,'151135','Summer Scene','Summer_Scene_thumb.jpg',130, 87,32,'																			photo_2346090.html');
												thumbnails[3140536] = new thumbnail(3140536,'151134','Crushed Can','Coke_Can_thumb.jpg',130, 195,32,'																			photo_3140536.html');
												thumbnails[3509475] = new thumbnail(3509475,'214680','Classic \'68','Classic_Bug_thumb.jpg',130, 67,32,'																			photo_3509475.html');
												thumbnails[4045173] = new thumbnail(4045173,'214680','Rats in a Row','3509-130a_thumb.jpg',130, 70,32,'																			photo_4045173.html');
												thumbnails[4045164] = new thumbnail(4045164,'214680','Lined up','3509-127_thumb.jpg',130, 78,32,'																			photo_4045164.html');
												thumbnails[3054171] = new thumbnail(3054171,'284615','Worms Head Sunset','Worms_Head_Sunset_thumb.jpg',130, 76,32,'																			photo_3054171.html');
												thumbnails[2562684] = new thumbnail(2562684,'284615','Reaching out to Sea','Reaching_out_to_sea_thumb.jpg',130, 78,32,'																			photo_2562684.html');
												thumbnails[4045171] = new thumbnail(4045171,'214680','Green Genie','Volksworld-2009-021a_thumb.jpg',130, 74,32,'																			photo_4045171.html');
												thumbnails[3509488] = new thumbnail(3509488,'214680','On the Roof','On_The_Roof_thumb.jpg',130, 78,32,'																			photo_3509488.html');
												thumbnails[2345962] = new thumbnail(2345962,'151132','Loch Lomond Light','Light_over_the_Lock_thumb.jpg',130, 66,32,'																			photo_2345962.html');
												thumbnails[4045163] = new thumbnail(4045163,'214680','Red Beetle by the River','3509-114drybrush_thumb.jpg',130, 83,32,'																			photo_4045163.html');
												thumbnails[4045160] = new thumbnail(4045160,'214680','Perfect Picnic Spot 1','3509-104adrybrush_thumb.jpg',130, 81,32,'																			photo_4045160.html');
												thumbnails[3509486] = new thumbnail(3509486,'214680','Monochrome Ratlook','Monochrome_rat_thumb.jpg',130, 83,32,'																			photo_3509486.html');
												thumbnails[2848518] = new thumbnail(2848518,'214680','Dub at Mumbles','Dub-at-Mumbles_thumb.jpg',130, 87,32,'																			photo_2848518.html');
												thumbnails[2856494] = new thumbnail(2856494,'214680','3 Dubs in a row','3-dubs_thumb.jpg',130, 87,32,'																			photo_2856494.html');
												thumbnails[3509490] = new thumbnail(3509490,'214680','Orange Glow','Orange_Glow_thumb.jpg',130, 87,32,'																			photo_3509490.html');
												thumbnails[5025649] = new thumbnail(5025649,'214680','Kissinger I','Kissinger_I_thumb.jpg',130, 87,32,'																			photo_5025649.html');
												thumbnails[4045161] = new thumbnail(4045161,'214680','Parked by the River','3509-107adrybrush_thumb.jpg',130, 87,32,'																			photo_4045161.html');
												thumbnails[4045162] = new thumbnail(4045162,'214680','Karmann Ghia','3509-108a_thumb.jpg',130, 87,32,'																			photo_4045162.html');
												thumbnails[6537253] = new thumbnail(6537253,'214680','Room with a View','Room-with-a-view_thumb.jpg',130, 87,32,'																			photo_6537253.html');
												thumbnails[2562693] = new thumbnail(2562693,'151120','Pier Tower','Whitby_Pier_thumb.jpg',130, 195,32,'																			photo_2562693.html');
												thumbnails[2345932] = new thumbnail(2345932,'151132','Night Lights','Bridge_Reflections_thumb.jpg',130, 73,32,'																			photo_2345932.html');
												thumbnails[2345950] = new thumbnail(2345950,'151135','Golden Sunrise','Golden_Sunrise_thumb.jpg',130, 95,32,'																			photo_2345950.html');
												thumbnails[2345979] = new thumbnail(2345979,'151133','Love Hearts','Pink_Hearts_thumb.jpg',130, 87,32,'																			photo_2345979.html');
												thumbnails[2562686] = new thumbnail(2562686,'151133','Viola','Viola_thumb.jpg',130, 87,32,'																			photo_2562686.html');
												thumbnails[2856510] = new thumbnail(2856510,'214680','Black & White Beetles','beetles_thumb.jpg',130, 88,32,'																			photo_2856510.html');
												thumbnails[3509502] = new thumbnail(3509502,'214680','Psycho Rat','psychedelic_ratlook_thumb.jpg',130, 98,32,'																			photo_3509502.html');
												thumbnails[3509619] = new thumbnail(3509619,'214680','Red Reflection','Red_Reflection_thumb.jpg',130, 98,32,'																			photo_3509619.html');
												thumbnails[2856504] = new thumbnail(2856504,'214680','Skippy and Friend','dub-banner_thumb.jpg',130, 90,32,'																			photo_2856504.html');
												thumbnails[4045168] = new thumbnail(4045168,'214680','Pink Punk','Volksworld-2009-012a_thumb.jpg',130, 91,32,'																			photo_4045168.html');
												thumbnails[4045158] = new thumbnail(4045158,'214680','Name Badge','3509-096c_thumb.jpg',130, 90,32,'																			photo_4045158.html');
												thumbnails[3509473] = new thumbnail(3509473,'214680','Classic Black & White','Classic_black_and_white_thumb.jpg',130, 98,32,'																			photo_3509473.html');
												thumbnails[6537215] = new thumbnail(6537215,'151120','Blue Lagoon','Blue-Lagoon_thumb.jpg',130, 195,32,'																			photo_6537215.html');
												thumbnails[4045156] = new thumbnail(4045156,'214680','Stately View','3509-084drybrush_thumb.jpg',130, 118,32,'																			photo_4045156.html');
												thumbnails[4045166] = new thumbnail(4045166,'214680','Purple Haze','dubs-029cneon-glow_thumb.jpg',130, 131,32,'																			photo_4045166.html');
												thumbnails[3509622] = new thumbnail(3509622,'214680','Sepia Camper','Sepia_Camper_thumb.jpg',130, 159,32,'																			photo_3509622.html');
												thumbnails[2856571] = new thumbnail(2856571,'214680','Split screen Skippy','skippy_thumb.jpg',130, 145,32,'																			photo_2856571.html');
												thumbnails[2345973] = new thumbnail(2345973,'151132','Out of Season','Out_of_Season_thumb.jpg',130, 74,32,'																			photo_2345973.html');
												thumbnails[2345936] = new thumbnail(2345936,'151133','Daffodil Spotlight','Daffodil_Sunlight_thumb.jpg',130, 87,32,'																			photo_2345936.html');
												thumbnails[2345970] = new thumbnail(2345970,'151135','Misty Morn','Misty_Morn_thumb.jpg',130, 195,32,'																			photo_2345970.html');
												thumbnails[2346096] = new thumbnail(2346096,'151120','Wooden Features','Wooden_Features_thumb.jpg',130, 195,32,'																			photo_2346096.html');
												thumbnails[2856521] = new thumbnail(2856521,'214680','Dub at the Beach','dubs-sky_thumb.jpg',130, 153,32,'																			photo_2856521.html');
												thumbnails[6537228] = new thumbnail(6537228,'284615','Lindisfarne','Lindisfarne_thumb.jpg',130, 87,32,'																			photo_6537228.html');
												thumbnails[6537238] = new thumbnail(6537238,'284615','Lindisfarne II','Lindisfarne-II_thumb.jpg',130, 87,32,'																			photo_6537238.html');
												thumbnails[3054160] = new thumbnail(3054160,'284615','Rhossili Beach','Rhossili_Beach_thumb.jpg',130, 86,32,'																			photo_3054160.html');
												thumbnails[7390596] = new thumbnail(7390596,'151132','Sprinkling of Snow','Sprinkling_of_Snow_thumb.jpg',130, 80,32,'																			photo_7390596.html');
												thumbnails[7390550] = new thumbnail(7390550,'284615','Barmouth Dunes','Barmouth_Dunes1_thumb.jpg',130, 87,32,'																			photo_7390550.html');
												thumbnails[7390581] = new thumbnail(7390581,'151132','Lapley Church','Lapley_Church_thumb.jpg',130, 87,32,'																			photo_7390581.html');
												thumbnails[3509496] = new thumbnail(3509496,'214680','Psychedelic Beetle','psychedelic_beetle_thumb.jpg',130, 148,32,'																			photo_3509496.html');
												thumbnails[2346093] = new thumbnail(2346093,'151132','Lonely Bench','The_Lonely_Bench_thumb.jpg',130, 84,32,'																			photo_2346093.html');
												thumbnails[3906794] = new thumbnail(3906794,'284615','Sunset Sailing','Sailing_in_the_Sunset_thumb.jpg',130, 84,32,'																			photo_3906794.html');
												thumbnails[6537206] = new thumbnail(6537206,'151132','Bamburgh Castle','Bamburgh-Castle_thumb.jpg',130, 87,32,'																			photo_6537206.html');
												thumbnails[5025499] = new thumbnail(5025499,'284615','Afternoon Light','Afternoon_Light_thumb.jpg',130, 85,32,'																			photo_5025499.html');
												thumbnails[5025719] = new thumbnail(5025719,'284615','Rock of Ages','Rock_of_Ages_thumb.jpg',130, 87,32,'																			photo_5025719.html');
												thumbnails[5025725] = new thumbnail(5025725,'151132','Sussex Sunset','Sussex_Sunset_thumb.jpg',130, 87,32,'																			photo_5025725.html');
												thumbnails[7390601] = new thumbnail(7390601,'151132','Stormy Skies','Stormy_Skies_thumb.jpg',130, 80,32,'																			photo_7390601.html');
												thumbnails[7390607] = new thumbnail(7390607,'151132','Reflections of Tarn Hows','Tarn_Hows_thumb.jpg',130, 79,32,'																			photo_7390607.html');
												thumbnails[7390610] = new thumbnail(7390610,'151132','Windermere Light','Windermere_Light_thumb.jpg',130, 86,32,'																			photo_7390610.html');
												thumbnails[7390571] = new thumbnail(7390571,'151132','Frosty Tree','Frosty_Tree_thumb.jpg',130, 85,32,'																			photo_7390571.html');
												thumbnails[7390585] = new thumbnail(7390585,'151132','Lapley in the Snow','LapleyintheSnow_thumb.jpg',130, 87,32,'																			photo_7390585.html');
												thumbnails[7390577] = new thumbnail(7390577,'151132','Lakeland Farm','Lakeland_Farm_thumb.jpg',130, 87,32,'																			photo_7390577.html');
												thumbnails[3906786] = new thumbnail(3906786,'151132','Santorini Sunset','Santorini_Sunset_thumb.jpg',130, 87,32,'																			photo_3906786.html');
												thumbnails[3054140] = new thumbnail(3054140,'151132','Gower Peninsular','Gower_Peninsular_thumb.jpg',130, 90,32,'																			photo_3054140.html');
												thumbnails[3509626] = new thumbnail(3509626,'151132','Swan Lake','Swan_Lake_thumb.jpg',130, 84,32,'																			photo_3509626.html');
												thumbnails[2562675] = new thumbnail(2562675,'151133','Daisy Splatter','Daisy_thumb.jpg',130, 97,32,'																			photo_2562675.html');
												thumbnails[2345955] = new thumbnail(2345955,'151133','Honeysuckle Dewdrops','Honeysuckle_Dewdrops_thumb.jpg',130, 98,32,'																			photo_2345955.html');
												thumbnails[3906826] = new thumbnail(3906826,'151133','Pink Waterlily','Pink_Waterlily_thumb.jpg',130, 98,32,'																			photo_3906826.html');
												thumbnails[2346097] = new thumbnail(2346097,'151133','Rapeseed Field','Yellow_Rapeseed_thumb.jpg',130, 116,32,'																			photo_2346097.html');
												thumbnails[3509479] = new thumbnail(3509479,'151133','Frosted Hedgerow','Frost_covered_thumb.jpg',130, 110,32,'																			photo_3509479.html');
												thumbnails[3509492] = new thumbnail(3509492,'151133','Daisies','Painted_Daisies_thumb.jpg',130, 114,32,'																			photo_3509492.html');
												thumbnails[3509634] = new thumbnail(3509634,'151133','White Daisy','White_daisy_thumb.jpg',130, 107,32,'																			photo_3509634.html');
												thumbnails[2345980] = new thumbnail(2345980,'151133','Heart of a Rose','Pink_Petals_thumb.jpg',130, 102,32,'																			photo_2345980.html');
												thumbnails[3140538] = new thumbnail(3140538,'151133','Poppy','Poppy_thumb.jpg',130, 120,32,'																			photo_3140538.html');
												thumbnails[6537208] = new thumbnail(6537208,'284615','Beadnell Bay','Beadnell-Bay_thumb.jpg',130, 87,32,'																			photo_6537208.html');
												thumbnails[2345942] = new thumbnail(2345942,'151132','Frosty Morn','Frosted_Fields_thumb.jpg',130, 87,32,'																			photo_2345942.html');
												thumbnails[2346086] = new thumbnail(2346086,'151135','End of the Day','Setting_Sun_thumb.jpg',130, 184,32,'																			photo_2346086.html');
												thumbnails[3054164] = new thumbnail(3054164,'151133','Waterlily','Waterlily_thumb.jpg',130, 148,32,'																			photo_3054164.html');
												thumbnails[3906836] = new thumbnail(3906836,'151120','St Peters Dome','St_Peters_Basilica_thumb.jpg',130, 198,32,'																			photo_3906836.html');
												thumbnails[4045170] = new thumbnail(4045170,'214680','Wings of Love','Volksworld-2009-024b_thumb.jpg',130, 159,32,'																			photo_4045170.html');
												thumbnails[3140541] = new thumbnail(3140541,'151133','Yellow Daisy','Yellow_Daisy1_thumb.jpg',130, 155,32,'																			photo_3140541.html');
												thumbnails[3906819] = new thumbnail(3906819,'151133','Purple Petals','Purple_Petals_thumb.jpg',130, 178,32,'																			photo_3906819.html');
												thumbnails[3509472] = new thumbnail(3509472,'214680','Beside the Seaside','Beside-_the_Seaside_thumb.jpg',130, 195,32,'																			photo_3509472.html');
												thumbnails[3509506] = new thumbnail(3509506,'151133','Red Gerbera','Red_Gerbera_thumb.jpg',130, 195,32,'																			photo_3509506.html');
												thumbnails[5025882] = new thumbnail(5025882,'151133','Black and White Raindrops','Black_and_White_Raindrops_thumb.jpg',130, 195,32,'																			photo_5025882.html');
												thumbnails[6537212] = new thumbnail(6537212,'151133','Bluebell Wood','Bluebell-Wood_thumb.jpg',130, 195,32,'																			photo_6537212.html');
												thumbnails[5025666] = new thumbnail(5025666,'214680','Kissinger II','Kissinger_II_thumb.jpg',130, 195,32,'																			photo_5025666.html');
												thumbnails[3054143] = new thumbnail(3054143,'284615','Mumbles Lighthouse','Mumbles_Lighthouse_thumb.jpg',130, 89,32,'																			photo_3054143.html');
												thumbnails[2345937] = new thumbnail(2345937,'151132','Dudmaston Hall','Dudmaston_Hall_thumb.jpg',130, 84,32,'																			photo_2345937.html');
												thumbnails[3509481] = new thumbnail(3509481,'151133','Gerbera Stem','Gerbera_Stem_thumb.jpg',130, 195,32,'																			photo_3509481.html');
												thumbnails[2345941] = new thumbnail(2345941,'151132','Eden','Eden_Project_thumb.jpg',130, 87,32,'																			photo_2345941.html');
												thumbnails[2562681] = new thumbnail(2562681,'284615','On the Beach','On_the_beach_thumb.jpg',130, 87,32,'																			photo_2562681.html');
												thumbnails[2562679] = new thumbnail(2562679,'284615','Footsteps in the Sand','Footsteps_in_the_sand_thumb.jpg',130, 87,32,'																			photo_2562679.html');
												thumbnails[2346091] = new thumbnail(2346091,'284615','Sailing into the Sunset','Sunset_Sails_thumb.jpg',130, 88,32,'																			photo_2346091.html');
												thumbnails[2345946] = new thumbnail(2345946,'151132','Glen Coe Cottage','Glen_Coe_Cottage_thumb.jpg',130, 98,32,'																			photo_2345946.html');
												thumbnails[2346089] = new thumbnail(2346089,'284615','Stranded Boat','Stranded_Boat_thumb.jpg',130, 134,32,'																			photo_2346089.html');
												thumbnails[7390565] = new thumbnail(7390565,'284615','Feather Shadows','Feather_Shadow_thumb.jpg',130, 184,32,'																			photo_7390565.html');
												thumbnails[5025687] = new thumbnail(5025687,'284615','On the Edge','On_the_Edge_thumb.jpg',130, 177,32,'																			photo_5025687.html');
												thumbnails[5025516] = new thumbnail(5025516,'284615','Beachy Head','Beachy_Head_thumb.jpg',130, 195,32,'																			photo_5025516.html');
												thumbnails[5025673] = new thumbnail(5025673,'284615','Mooring Post','Mooring_Post_thumb.jpg',130, 195,32,'																			photo_5025673.html');
												thumbnails[5025682] = new thumbnail(5025682,'284615','Mooring Post II','Mooring_Post-II_thumb.jpg',130, 195,32,'																			photo_5025682.html');
												thumbnails[5025505] = new thumbnail(5025505,'284615','Bedruthan Steps','Bedruthan_Steps_thumb.jpg',130, 195,32,'																			photo_5025505.html');
												thumbnails[5025695] = new thumbnail(5025695,'284615','Pebbles on the Beach','Pebbles_on_the_Beach_thumb.jpg',130, 195,32,'																			photo_5025695.html');
												thumbnails[5025572] = new thumbnail(5025572,'284615','Jurassic Coast','Jurassic_Coast_thumb.jpg',130, 195,32,'																			photo_5025572.html');
												thumbnails[2345928] = new thumbnail(2345928,'151132','Loch Lomond Cruiser','Blue_Boat_thumb.jpg',130, 148,32,'																			photo_2345928.html');
												thumbnails[2346124] = new thumbnail(2346124,'151132','Shoreline','Loch_Lomond_Shoreline1_thumb.jpg',130, 164,32,'																			photo_2346124.html');
												thumbnails[3906822] = new thumbnail(3906822,'151132','Rapefield','Rapefield_thumb.jpg',130, 161,32,'																			photo_3906822.html');
												thumbnails[2346125] = new thumbnail(2346125,'151132','Twisted Tree','Twisted_Tree1_thumb.jpg',130, 201,32,'																			photo_2346125.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[151133] = new gallery(151133,'7390594,6537219,6537212,5025882,5025878,5025852,5025841,5025840,3906826,3906819','Flora ','gallery',[3054151,3140524,3906769,5025840,5025841,5025852,5025878,6537219,7390594,2345933,2345979,2562686,2345936,2562675,2345955,3906826,2346097,3509479,3509492,3509634,2345980,3140538,3054164,3140541,3906819,3509506,5025882,6537212,3509481],0, 0, '', '																																																																																																							gallery_151133.html',0,0);
				  					galleries[151134] = new gallery(151134,'7390566,3906758,3140536,3054137,2346104,2346087,2345959','General','gallery',[2345959,3054137,7390566,2346087,2346104,3906758,3140536],0, 0, '', '																																																																																																							gallery_151134.html',0,0);
				  					galleries[151132] = new gallery(151132,'7390617,7390613,7390610,7390607,7390601,7390596,7390589,7390585,7390581,7390578','Landscapes','gallery',[5025721,7390564,7390552,7390578,7390589,7390617,7390613,2345962,2345932,2345973,7390596,7390581,2346093,6537206,5025725,7390601,7390607,7390610,7390571,7390585,7390577,3906786,3054140,3509626,2345942,2345937,2345941,2345946,2345928,2346124,3906822,2346125],0, 0, '', '																																																																																																							gallery_151132.html',0,0);
				  					galleries[284615] = new gallery(284615,'7390565,7390550,6537238,6537228,6537208,5025719,5025695,5025687,5025682,5025673','Seascapes','gallery',[5025524,3054171,2562684,6537228,6537238,3054160,7390550,3906794,5025499,5025719,6537208,3054143,2562681,2562679,2346091,2346089,7390565,5025687,5025516,5025673,5025682,5025505,5025695,5025572],0, 0, '', '																																																																																																							gallery_284615.html',0,0);
				  					galleries[214680] = new gallery(214680,'6537253,5025666,5025649,4045173,4045171,4045170,4045168,4045166,4045164,4045163','VDubs','gallery',[3509475,4045173,4045164,4045171,3509488,4045163,4045160,3509486,2848518,2856494,3509490,5025649,4045161,4045162,6537253,2856510,3509502,3509619,2856504,4045168,4045158,3509473,4045156,4045166,3509622,2856571,2856521,3509496,4045170,3509472,5025666],0, 0, '', '																																																																																																							gallery_214680.html',0,0);
				  					galleries[151135] = new gallery(151135,'7390622,7390573,7390560,7390555,2856601,2856599,2346090,2346086,2345982,2345970','Waterways','gallery',[7390573,7390555,2345982,7390622,2856599,2856601,7390560,2346090,2345950,2345970,2346086],0, 0, '', '																																																																																																							gallery_151135.html',0,0);
				  					galleries[151120] = new gallery(151120,'6537277,6537269,6537261,6537248,6537242,6537226,6537215,6537210,6537200,3906836','People & Places','gallery',[3906760,6537226,6537269,3906751,6537261,6537242,6537248,6537210,6537200,6537277,3906776,3509482,3906766,3906809,3906798,3906815,3906829,3140531,2562693,6537215,2346096,3906836],0, 0, '', '																																																																																																							gallery_151120.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7390622,7390617,7390613,7390610,7390607,7390601,7390596,7390594,7390589,7390585,7390581,7390578,7390577,7390573,7390571,7390566,7390565,7390564,7390560,7390555,7390552,7390550,6537277,6537269,6537261,6537253,6537248,6537242,6537238,6537228,6537226,6537219,6537215,6537212,6537210,6537208,6537206,6537200,5025882,5025878,5025852,5025841,5025840,5025725,5025721,5025719,5025695,5025687,5025682,5025673';
imageSets[3] = '7390622,7390617,7390613,7390610,7390607,7390601,7390596,7390594,7390589,7390585,7390581,7390578,7390577,7390573,7390571,7390566,7390565,7390564,7390560,7390555,7390552,7390550,6537277,6537269,6537261,6537253,6537248,6537242,6537238,6537228,6537226,6537219,6537215,6537212,6537210,6537208,6537206,6537200,5025882,5025878,5025852,5025841,5025840,5025725,5025721,5025719,5025695,5025687,5025682,5025673';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sallyb7/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sallyb7/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 = 'SallyB Photography: ' + 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;
	}
}

			

