window.thumbnails = {};
															thumbnails[4415770] = clik.newPhoto({"id":4415770,"src":"IMG_2561SS_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Rudbeckia & bee","height":87});
															thumbnails[7638460] = clik.newPhoto({"id":7638460,"src":"IMG_0075a_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":189});
															thumbnails[4639178] = clik.newPhoto({"id":4639178,"src":"IMG_3092cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_4639178.html","width":130,"caption":"Near Achiltibuie","height":87});
															thumbnails[4651197] = clik.newPhoto({"id":4651197,"src":"IMG_2946cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_4651197.html","width":130,"caption":"Oldshoremore","height":87});
															thumbnails[5146998] = clik.newPhoto({"id":5146998,"src":"IMG_6157Aclean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5146998.html","width":130,"caption":"Scar House falls, Swaledale","height":127});
															thumbnails[5401564] = clik.newPhoto({"id":5401564,"src":"IMG_5095d_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5401564.html","width":130,"caption":"","height":134});
															thumbnails[5785535] = clik.newPhoto({"id":5785535,"src":"IMG_9916clean_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_5785535.html","width":130,"caption":"Elgol, Isle of Skye","height":87});
															thumbnails[5820077] = clik.newPhoto({"id":5820077,"src":"IMG_0379clean_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_5820077.html","width":130,"caption":"Eilean Donan Castle","height":85});
															thumbnails[6187275] = clik.newPhoto({"id":6187275,"src":"IMG_2505_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_6187275.html","width":130,"caption":"","height":195});
															thumbnails[7647211] = clik.newPhoto({"id":7647211,"src":"28March2011-2437_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7647211.html","width":130,"caption":"Magnolia Stellata","height":195});
															thumbnails[7811290] = clik.newPhoto({"id":7811290,"src":"April_2011-3477_thumb.jpg","galleries_id":64679,"server_id":1,"link":"photo_7811290.html","width":130,"caption":"","height":195});
															thumbnails[7811293] = clik.newPhoto({"id":7811293,"src":"April_2011-3476_thumb.jpg","galleries_id":64679,"server_id":1,"link":"photo_7811293.html","width":130,"caption":"","height":195});
															thumbnails[7816733] = clik.newPhoto({"id":7816733,"src":"15_May_2011-3474_thumb.jpg","galleries_id":64679,"server_id":1,"link":"photo_7816733.html","width":130,"caption":"","height":195});
															thumbnails[8900409] = clik.newPhoto({"id":8900409,"src":"3_Dec_2011-7543_thumb.jpg","galleries_id":353662,"server_id":1,"link":"photo_8900409.html","width":130,"caption":"","height":195});
															thumbnails[8900458] = clik.newPhoto({"id":8900458,"src":"6_Dec_2011-7559_thumb.jpg","galleries_id":353662,"server_id":1,"link":"photo_8900458.html","width":130,"caption":"","height":195});
															thumbnails[8900494] = clik.newPhoto({"id":8900494,"src":"17_Nov_2011-7472_thumb.jpg","galleries_id":353662,"server_id":1,"link":"photo_8900494.html","width":130,"caption":"","height":195});
															thumbnails[8900568] = clik.newPhoto({"id":8900568,"src":"26_Octo_2011-6754_thumb.jpg","galleries_id":353662,"server_id":1,"link":"photo_8900568.html","width":130,"caption":"","height":195});
															thumbnails[8900569] = clik.newPhoto({"id":8900569,"src":"Harlow_22_October_2011-6297_thumb.jpg","galleries_id":353662,"server_id":1,"link":"photo_8900569.html","width":130,"caption":"","height":195});
															thumbnails[5288863] = clik.newPhoto({"id":5288863,"src":"IMG_6851clean_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5288863.html","width":130,"caption":"Veronicastrum virginicum","height":195});
															thumbnails[6091257] = clik.newPhoto({"id":6091257,"src":"IMG_2068_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_6091257.html","width":130,"caption":"","height":195});
															thumbnails[8506468] = clik.newPhoto({"id":8506468,"src":"Helmsley_22_Aug_2011-08731_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8506468.html","width":130,"caption":"","height":195});
															thumbnails[5934452] = clik.newPhoto({"id":5934452,"src":"IMG_0958clean_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5934452.html","width":130,"caption":"Berberis darwinii","height":195});
															thumbnails[8341234] = clik.newPhoto({"id":8341234,"src":"Helmsley_22_Aug_2011-0915_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8341234.html","width":130,"caption":"","height":195});
															thumbnails[5654521] = clik.newPhoto({"id":5654521,"src":"IMG_8920clean_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5654521.html","width":130,"caption":"Snowdrops","height":195});
															thumbnails[6879596] = clik.newPhoto({"id":6879596,"src":"IMG_8749clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6879596.html","width":130,"caption":"Berberis Koreana 'Red Tears' ","height":195});
															thumbnails[8307028] = clik.newPhoto({"id":8307028,"src":"15_Aug_2011-0475_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8307028.html","width":130,"caption":"","height":195});
															thumbnails[7147657] = clik.newPhoto({"id":7147657,"src":"064413_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7147657.html","width":130,"caption":"Cotoneaster berries","height":195});
															thumbnails[8307027] = clik.newPhoto({"id":8307027,"src":"15_Aug_2011-0427_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8307027.html","width":130,"caption":"","height":195});
															thumbnails[3799134] = clik.newPhoto({"id":3799134,"src":"IMG_0584SS1_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3799134.html","width":130,"caption":"Loch Inchard","height":196});
															thumbnails[8268372] = clik.newPhoto({"id":8268372,"src":"7_Aug_2011-0119_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8268372.html","width":130,"caption":"","height":195});
															thumbnails[4586874] = clik.newPhoto({"id":4586874,"src":"IMG_3288clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4586874.html","width":130,"caption":"Sea foam, Isle of Harris","height":198});
															thumbnails[6831423] = clik.newPhoto({"id":6831423,"src":"IMG_7918_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6831423.html","width":130,"caption":"Imperata cylindrica 'Rubra' ","height":195});
															thumbnails[8111768] = clik.newPhoto({"id":8111768,"src":"28_June_2011-6909_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8111768.html","width":130,"caption":"","height":195});
															thumbnails[2686021] = clik.newPhoto({"id":2686021,"src":"IMG_0060SS1_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_2686021.html","width":130,"caption":"Pollenating","height":195});
															thumbnails[2389947] = clik.newPhoto({"id":2389947,"src":"IMG_0036SS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2389947.html","width":130,"caption":"Hushinish, Isle of Harris","height":195});
															thumbnails[3228085] = clik.newPhoto({"id":3228085,"src":"IMG_0044cleanSSJS_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_3228085.html","width":130,"caption":"","height":195});
															thumbnails[4294516] = clik.newPhoto({"id":4294516,"src":"IMG_2294SS_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4294516.html","width":130,"caption":"Helenium","height":195});
															thumbnails[5106915] = clik.newPhoto({"id":5106915,"src":"IMG_1906_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5106915.html","width":130,"caption":"","height":195});
															thumbnails[5164201] = clik.newPhoto({"id":5164201,"src":"IMG_6093v2clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5164201.html","width":130,"caption":"","height":195});
															thumbnails[7638129] = clik.newPhoto({"id":7638129,"src":"10_April_2011-3163_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7638129.html","width":130,"caption":"Damson blossom","height":195});
															thumbnails[4094252] = clik.newPhoto({"id":4094252,"src":"IMG_1701cleanSS_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4094252.html","width":130,"caption":"Peony","height":195});
															thumbnails[4137116] = clik.newPhoto({"id":4137116,"src":"IMG_1816SSA_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4137116.html","width":130,"caption":"Iris","height":195});
															thumbnails[5988872] = clik.newPhoto({"id":5988872,"src":"IMG_1313clean_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5988872.html","width":130,"caption":"","height":195});
															thumbnails[6460171] = clik.newPhoto({"id":6460171,"src":"IMG_4730clean_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_6460171.html","width":130,"caption":"","height":87});
															thumbnails[1665851] = clik.newPhoto({"id":1665851,"src":"IMG_0041ss001_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1665851.html","width":130,"caption":"","height":195});
															thumbnails[1778299] = clik.newPhoto({"id":1778299,"src":"IMG_0078ss_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1778299.html","width":130,"caption":"Glencoe Lochan","height":195});
															thumbnails[2395973] = clik.newPhoto({"id":2395973,"src":"IMG_0012SS002_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2395973.html","width":130,"caption":"Paw prints in the sand","height":201});
															thumbnails[2413615] = clik.newPhoto({"id":2413615,"src":"IMG_0038SSA_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_2413615.html","width":130,"caption":"Loch Maree","height":198});
															thumbnails[2997327] = clik.newPhoto({"id":2997327,"src":"IMG_0109SSJS_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_2997327.html","width":130,"caption":"Flame red","height":195});
															thumbnails[3149129] = clik.newPhoto({"id":3149129,"src":"IMG_0115SScleanJS_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_3149129.html","width":130,"caption":"Frost bitten","height":195});
															thumbnails[4679822] = clik.newPhoto({"id":4679822,"src":"IMG_4006SS_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4679822.html","width":130,"caption":"Echinacea","height":75});
															thumbnails[4726757] = clik.newPhoto({"id":4726757,"src":"IMG_4662ss_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_4726757.html","width":130,"caption":"","height":181});
															thumbnails[2501978] = clik.newPhoto({"id":2501978,"src":"IMG_0042SS1_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_2501978.html","width":130,"caption":"Pink Daisy","height":87});
															thumbnails[1515403] = clik.newPhoto({"id":1515403,"src":"IMG_0018ss_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_1515403.html","width":130,"caption":"Sweet Lavender ","height":87});
															thumbnails[4392971] = clik.newPhoto({"id":4392971,"src":"IMG_2492web_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4392971.html","width":130,"caption":"Agapanthus","height":87});
															thumbnails[5988873] = clik.newPhoto({"id":5988873,"src":"IMG_1366clean_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5988873.html","width":130,"caption":"Camassia","height":195});
															thumbnails[4194925] = clik.newPhoto({"id":4194925,"src":"IMG_2022cleanSS1_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4194925.html","width":130,"caption":"Foxglove","height":195});
															thumbnails[8495682] = clik.newPhoto({"id":8495682,"src":"5_Aug_2011-9989_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8495682.html","width":130,"caption":"Wildflower meadow","height":195});
															thumbnails[5984708] = clik.newPhoto({"id":5984708,"src":"IMG_1225_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5984708.html","width":130,"caption":"Tulipa 'Abu Hassan'","height":195});
															thumbnails[8472476] = clik.newPhoto({"id":8472476,"src":"28_July_2011-9268_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8472476.html","width":130,"caption":"","height":195});
															thumbnails[841724] = clik.newPhoto({"id":841724,"src":"20feb07014aJPG_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_841724.html","width":130,"caption":"","height":195});
															thumbnails[1394963] = clik.newPhoto({"id":1394963,"src":"IMG_0127srgbsharp_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1394963.html","width":130,"caption":"Stromeferry","height":195});
															thumbnails[3216516] = clik.newPhoto({"id":3216516,"src":"IMG_0002SScleanJS_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_3216516.html","width":130,"caption":"","height":195});
															thumbnails[5632408] = clik.newPhoto({"id":5632408,"src":"IMG_2945_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_5632408.html","width":130,"caption":"","height":195});
															thumbnails[5984716] = clik.newPhoto({"id":5984716,"src":"IMG_1294_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5984716.html","width":130,"caption":"Bluebells","height":195});
															thumbnails[7397505] = clik.newPhoto({"id":7397505,"src":"10Feb2011-1307_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7397505.html","width":130,"caption":"Dwarf Iris 'Harmony'","height":195});
															thumbnails[900126] = clik.newPhoto({"id":900126,"src":"IMG_0021asharpened_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_900126.html","width":130,"caption":"","height":195});
															thumbnails[1734314] = clik.newPhoto({"id":1734314,"src":"IMG_0101ssaIMG_0101ssa_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_1734314.html","width":130,"caption":"Billowing","height":195});
															thumbnails[1997977] = clik.newPhoto({"id":1997977,"src":"IMG_0027ss001_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_1997977.html","width":130,"caption":"Ipheion 'Alberto Costillo' ","height":195});
															thumbnails[3923316] = clik.newPhoto({"id":3923316,"src":"IMG_0895cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3923316.html","width":130,"caption":"Loch Maree","height":195});
															thumbnails[5453251] = clik.newPhoto({"id":5453251,"src":"IMG_7409final_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5453251.html","width":130,"caption":"","height":195});
															thumbnails[6832504] = clik.newPhoto({"id":6832504,"src":"IMG_8058clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6832504.html","width":130,"caption":"Prunus sargentii","height":195});
															thumbnails[7035297] = clik.newPhoto({"id":7035297,"src":"IMG_0170_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7035297.html","width":130,"caption":"Berries of Guelder Rose","height":195});
															thumbnails[3072407] = clik.newPhoto({"id":3072407,"src":"IMG_0129cleanSSJS_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_3072407.html","width":130,"caption":"Golden","height":195});
															thumbnails[3208493] = clik.newPhoto({"id":3208493,"src":"IMG_0049SSJS_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_3208493.html","width":130,"caption":"Sun dance...","height":195});
															thumbnails[5231921] = clik.newPhoto({"id":5231921,"src":"IMG_6392clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5231921.html","width":130,"caption":"","height":195});
															thumbnails[1784810] = clik.newPhoto({"id":1784810,"src":"IMG_0156ss_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1784810.html","width":130,"caption":"Frozen ","height":195});
															thumbnails[5288878] = clik.newPhoto({"id":5288878,"src":"IMG_6864clean_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5288878.html","width":130,"caption":"Seed heads of Veronica Longifolia","height":195});
															thumbnails[841745] = clik.newPhoto({"id":841745,"src":"IMG_0051acleanJPG_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_841745.html","width":130,"caption":"","height":195});
															thumbnails[1861194] = clik.newPhoto({"id":1861194,"src":"IMG_0042ss_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_1861194.html","width":130,"caption":"River Wharfe, Langstrothdale","height":195});
															thumbnails[4590646] = clik.newPhoto({"id":4590646,"src":"IMG_3418ss_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4590646.html","width":130,"caption":"Scarista","height":195});
															thumbnails[7387667] = clik.newPhoto({"id":7387667,"src":"8Feb2011-1182_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7387667.html","width":130,"caption":"Snowdrops","height":195});
															thumbnails[4634645] = clik.newPhoto({"id":4634645,"src":"IMG_34061_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4634645.html","width":130,"caption":"Scarista, Isle of Harris","height":195});
															thumbnails[4629664] = clik.newPhoto({"id":4629664,"src":"IMG_3391clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4629664.html","width":130,"caption":"Scarista, Isle of Harris","height":86});
															thumbnails[6786342] = clik.newPhoto({"id":6786342,"src":"IMG_7733_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6786342.html","width":130,"caption":"Aster x frikartii 'Monch'      ","height":195});
															thumbnails[2389861] = clik.newPhoto({"id":2389861,"src":"IMG_0015SS0011_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2389861.html","width":130,"caption":"Hushinish Beach, Isle of Harris","height":86});
															thumbnails[4590642] = clik.newPhoto({"id":4590642,"src":"IMG_3825SS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4590642.html","width":130,"caption":"From Horgabost - Niasabost beach, which gives spectacular views to the Island of Taransay","height":87});
															thumbnails[4788359] = clik.newPhoto({"id":4788359,"src":"IMG_4703clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_4788359.html","width":130,"caption":"","height":195});
															thumbnails[4590640] = clik.newPhoto({"id":4590640,"src":"IMG_3819v1cleanSS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4590640.html","width":130,"caption":"Traigh Lar, Isle of Harris","height":73});
															thumbnails[855279] = clik.newPhoto({"id":855279,"src":"IMG_0021asharpenedJPG_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_855279.html","width":130,"caption":"","height":195});
															thumbnails[2161455] = clik.newPhoto({"id":2161455,"src":"IMG_0124clean_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2161455.html","width":130,"caption":"Tulips","height":87});
															thumbnails[3799309] = clik.newPhoto({"id":3799309,"src":"IMG_0974SS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3799309.html","width":130,"caption":"Loch Voil","height":78});
															thumbnails[4990401] = clik.newPhoto({"id":4990401,"src":"IMG_4613Bclean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_4990401.html","width":130,"caption":"","height":73});
															thumbnails[6399890] = clik.newPhoto({"id":6399890,"src":"IMG_3804clean_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_6399890.html","width":130,"caption":"Poppy 'Burgundy Frills'","height":195});
															thumbnails[4581173] = clik.newPhoto({"id":4581173,"src":"IMG_3180SS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_4581173.html","width":130,"caption":"Early morning  from the garden of the cottage we stayed in at Kylesku over Loch Glencoul","height":79});
															thumbnails[841754] = clik.newPhoto({"id":841754,"src":"IMG_0069aJPG_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_841754.html","width":130,"caption":"","height":195});
															thumbnails[4959992] = clik.newPhoto({"id":4959992,"src":"IMG_0491cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_4959992.html","width":130,"caption":"","height":87});
															thumbnails[6664741] = clik.newPhoto({"id":6664741,"src":"IMG_7192_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6664741.html","width":130,"caption":"Elderberries","height":195});
															thumbnails[1709837] = clik.newPhoto({"id":1709837,"src":"IMG_0025cleanaIMG_0025cleana_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1709837.html","width":130,"caption":"","height":195});
															thumbnails[5988432] = clik.newPhoto({"id":5988432,"src":"IMG_1266_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_5988432.html","width":130,"caption":"Tulipa 'Arabian Mystery'","height":87});
															thumbnails[840983] = clik.newPhoto({"id":840983,"src":"IMG_0019cleanJPG_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_840983.html","width":130,"caption":"","height":195});
															thumbnails[2167580] = clik.newPhoto({"id":2167580,"src":"IMG_0035SS_1_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2167580.html","width":130,"caption":"Bleeding Hearts","height":87});
															thumbnails[2389910] = clik.newPhoto({"id":2389910,"src":"IMG_0091SS001_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2389910.html","width":130,"caption":"View towards Tarbert, Isle of Harris","height":85});
															thumbnails[6460167] = clik.newPhoto({"id":6460167,"src":"IMG_4869clean_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_6460167.html","width":130,"caption":"Helenium 'Pumilum Magnificum' and Tortoiseshell butterfly","height":195});
															thumbnails[7364976] = clik.newPhoto({"id":7364976,"src":"1Feb2011-1019_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7364976.html","width":130,"caption":"Winter flowering pansies","height":195});
															thumbnails[2260298] = clik.newPhoto({"id":2260298,"src":"IMG_0049SS003_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2260298.html","width":130,"caption":"Oriental Poppy","height":87});
															thumbnails[2997659] = clik.newPhoto({"id":2997659,"src":"RWharfePanocleanSSJS_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_2997659.html","width":130,"caption":"River Wharfe","height":102});
															thumbnails[1929394] = clik.newPhoto({"id":1929394,"src":"IMG_0004ssA_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_1929394.html","width":130,"caption":"9th March - Iris George","height":195});
															thumbnails[873397] = clik.newPhoto({"id":873397,"src":"River mouth at Poolewe 31_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_873397.html","width":130,"caption":"Rainbow over Poolewe","height":68});
															thumbnails[1734311] = clik.newPhoto({"id":1734311,"src":"IMG_0018ssIMG_0018ss_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_1734311.html","width":130,"caption":"Cardoon","height":195});
															thumbnails[1932270] = clik.newPhoto({"id":1932270,"src":"IMG_0012ss_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_1932270.html","width":130,"caption":"Iris 'Harmony'","height":195});
															thumbnails[1781716] = clik.newPhoto({"id":1781716,"src":"IMG_0071ss001_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1781716.html","width":130,"caption":"Doe in Glen Etive","height":87});
															thumbnails[5106109] = clik.newPhoto({"id":5106109,"src":"IMG_6155clean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5106109.html","width":130,"caption":"","height":195});
															thumbnails[2845364] = clik.newPhoto({"id":2845364,"src":"IMG_0058cleanSS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2845364.html","width":130,"caption":"View from Hallaig, Raasay","height":87});
															thumbnails[5053250] = clik.newPhoto({"id":5053250,"src":"IMG_5859_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5053250.html","width":130,"caption":"Swaledale Rams ","height":75});
															thumbnails[860744] = clik.newPhoto({"id":860744,"src":"IMG_0023sharpened_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_860744.html","width":130,"caption":"","height":182});
															thumbnails[1779542] = clik.newPhoto({"id":1779542,"src":"merge1cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1779542.html","width":130,"caption":"Mountain panorama of Glencoe in winter","height":58});
															thumbnails[1696504] = clik.newPhoto({"id":1696504,"src":"IMG_0003sscIMG_0003ssc_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1696504.html","width":130,"caption":"","height":196});
															thumbnails[5109933] = clik.newPhoto({"id":5109933,"src":"IMG_1790clean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5109933.html","width":130,"caption":"Swaledale - after torrential rain","height":87});
															thumbnails[7833376] = clik.newPhoto({"id":7833376,"src":"10_May_2011-4270_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7833376.html","width":130,"caption":"","height":87});
															thumbnails[2685956] = clik.newPhoto({"id":2685956,"src":"IMG_0014SS_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_2685956.html","width":130,"caption":"Secret garden","height":195});
															thumbnails[1784593] = clik.newPhoto({"id":1784593,"src":"Glenetivemerge1ss001_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1784593.html","width":130,"caption":"Glen Etive","height":60});
															thumbnails[2397300] = clik.newPhoto({"id":2397300,"src":"IMG_0098SS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2397300.html","width":130,"caption":"Road from Amhuinnsuidhe near Hushinish towards Tarbert","height":195});
															thumbnails[1629099] = clik.newPhoto({"id":1629099,"src":"IMG_0082ss003_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_1629099.html","width":130,"caption":"Brimham Rocks","height":195});
															thumbnails[5796026] = clik.newPhoto({"id":5796026,"src":"IMG_0027DPPclean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5796026.html","width":130,"caption":"Cuillin mountains on Skye from Raasay","height":87});
															thumbnails[7748455] = clik.newPhoto({"id":7748455,"src":"4_May_2011-3951_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7748455.html","width":130,"caption":"","height":195});
															thumbnails[2138491] = clik.newPhoto({"id":2138491,"src":"IMG_0022ss_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2138491.html","width":130,"caption":"'Shooting Stars'","height":195});
															thumbnails[1520396] = clik.newPhoto({"id":1520396,"src":"IMG_0033ss_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_1520396.html","width":130,"caption":"Rudbeckia","height":195});
															thumbnails[7420389] = clik.newPhoto({"id":7420389,"src":"12Feb2011-1465_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7420389.html","width":130,"caption":"Hamamelis mollis in mid February","height":195});
															thumbnails[7420420] = clik.newPhoto({"id":7420420,"src":"29_Jan2011-1005_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_7420420.html","width":130,"caption":"","height":195});
															thumbnails[1520417] = clik.newPhoto({"id":1520417,"src":"IMG_0029ss_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_1520417.html","width":130,"caption":"Gerbera","height":195});
															thumbnails[873387] = clik.newPhoto({"id":873387,"src":"IMG_0045 (1)_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_873387.html","width":130,"caption":"View from Camusteel","height":51});
															thumbnails[4098408] = clik.newPhoto({"id":4098408,"src":"IMG_1780cleanSS_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_4098408.html","width":130,"caption":"Daisies and Stocks","height":195});
															thumbnails[5079587] = clik.newPhoto({"id":5079587,"src":"IMG_6035clean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5079587.html","width":130,"caption":"","height":87});
															thumbnails[8182484] = clik.newPhoto({"id":8182484,"src":"21__July_2011-8474_thumb.jpg","galleries_id":103749,"server_id":1,"link":"photo_8182484.html","width":130,"caption":"","height":195});
															thumbnails[2265766] = clik.newPhoto({"id":2265766,"src":"IMG_0034SS_2_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2265766.html","width":130,"caption":"Iris","height":195});
															thumbnails[5278943] = clik.newPhoto({"id":5278943,"src":"IMG_6732clean_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5278943.html","width":130,"caption":"Monarda Seed Heads","height":87});
															thumbnails[1805323] = clik.newPhoto({"id":1805323,"src":"mergess001_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_1805323.html","width":130,"caption":"Loch Leven","height":57});
															thumbnails[1855819] = clik.newPhoto({"id":1855819,"src":"IMG_0013ss_1_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_1855819.html","width":130,"caption":"Snowdrops ","height":87});
															thumbnails[5401274] = clik.newPhoto({"id":5401274,"src":"IMG_6683A_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5401274.html","width":130,"caption":"","height":195});
															thumbnails[4914686] = clik.newPhoto({"id":4914686,"src":"IMG_55201_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_4914686.html","width":130,"caption":"Bamburgh","height":87});
															thumbnails[3923318] = clik.newPhoto({"id":3923318,"src":"IMG_0917SS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3923318.html","width":130,"caption":"Loch Maree","height":85});
															thumbnails[4902802] = clik.newPhoto({"id":4902802,"src":"IMG_5363SS_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_4902802.html","width":130,"caption":"Bamburgh","height":58});
															thumbnails[4010895] = clik.newPhoto({"id":4010895,"src":"IMG_1417cleanSS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_4010895.html","width":130,"caption":"Spring in Glen Etive","height":84});
															thumbnails[5632546] = clik.newPhoto({"id":5632546,"src":"Cems_IMG_8779_C1_LR_final_versionclean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5632546.html","width":130,"caption":"Thirlmere","height":87});
															thumbnails[3799151] = clik.newPhoto({"id":3799151,"src":"IMG_0166SS_1_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3799151.html","width":130,"caption":"Underneath the Stars (at Oldshoremore!)","height":87});
															thumbnails[5288892] = clik.newPhoto({"id":5288892,"src":"IMG_6856clean_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5288892.html","width":130,"caption":"Seed heads of Veronicastrum virginicum","height":87});
															thumbnails[5628880] = clik.newPhoto({"id":5628880,"src":"IMG_3950Pclean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5628880.html","width":130,"caption":"Thirlmere","height":87});
															thumbnails[3799163] = clik.newPhoto({"id":3799163,"src":"IMG_0548SS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3799163.html","width":130,"caption":"Loch Inchard","height":83});
															thumbnails[5616000] = clik.newPhoto({"id":5616000,"src":"IMG_8614clean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5616000.html","width":130,"caption":"Ullswater","height":87});
															thumbnails[3923322] = clik.newPhoto({"id":3923322,"src":"IMG_0986SS_thumb.jpg","galleries_id":64680,"server_id":1,"link":"photo_3923322.html","width":130,"caption":"Loch Voil","height":86});
															thumbnails[5492553] = clik.newPhoto({"id":5492553,"src":"IMG_8128CP_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5492553.html","width":130,"caption":"Derwentwater, Cumbria","height":74});
															thumbnails[5483533] = clik.newPhoto({"id":5483533,"src":"IMG_7807v2_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5483533.html","width":130,"caption":"","height":73});
															thumbnails[5483040] = clik.newPhoto({"id":5483040,"src":"IMG_7700cleanv2_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5483040.html","width":130,"caption":"","height":87});
															thumbnails[5478971] = clik.newPhoto({"id":5478971,"src":"IMG_8001_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_5478971.html","width":130,"caption":"Crummock Water","height":87});
															thumbnails[6724642] = clik.newPhoto({"id":6724642,"src":"IMG_7308clean_thumb.jpg","galleries_id":395428,"server_id":1,"link":"photo_6724642.html","width":130,"caption":"Wastwater, Lake District","height":87});
															thumbnails[2817665] = clik.newPhoto({"id":2817665,"src":"IMG_0016cleanSS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_2817665.html","width":130,"caption":"Into the twilight...","height":195});
															thumbnails[5439685] = clik.newPhoto({"id":5439685,"src":"IMG_7400_thumb.jpg","galleries_id":116529,"server_id":1,"link":"photo_5439685.html","width":130,"caption":"Windswept","height":195});
															thumbnails[1395263] = clik.newPhoto({"id":1395263,"src":"IMG_0005sharpsrgb copy_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1395263.html","width":130,"caption":"","height":87});
															thumbnails[1662359] = clik.newPhoto({"id":1662359,"src":"IMG_0008ssa_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1662359.html","width":130,"caption":"","height":87});
															thumbnails[6477571] = clik.newPhoto({"id":6477571,"src":"IMG_3534_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_6477571.html","width":130,"caption":"Iarsiadar, Isle of Lewis","height":87});
															thumbnails[1665839] = clik.newPhoto({"id":1665839,"src":"IMG_0010ssb002_thumb.jpg","galleries_id":64637,"server_id":1,"link":"photo_1665839.html","width":130,"caption":"","height":87});
															thumbnails[6346011] = clik.newPhoto({"id":6346011,"src":"IMG_3266Bclean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_6346011.html","width":130,"caption":"Cliff Beach, Isle of Lewis","height":54});
															thumbnails[8658243] = clik.newPhoto({"id":8658243,"src":"Harris_2011-5759_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_8658243.html","width":130,"caption":"Sea Rocket growing on the beach at Seilebost, Isle of Harris","height":87});
															thumbnails[5819316] = clik.newPhoto({"id":5819316,"src":"IMG_9591DPPclean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5819316.html","width":130,"caption":"The cottage we stayed in on the Isle of Mull","height":87});
															thumbnails[5803150] = clik.newPhoto({"id":5803150,"src":"IMG_9860clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5803150.html","width":130,"caption":"Elgol, Isle of Skye","height":84});
															thumbnails[5802923] = clik.newPhoto({"id":5802923,"src":"IMG_9937clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5802923.html","width":130,"caption":"Loch Slapin, Isle of Skye","height":84});
															thumbnails[5792419] = clik.newPhoto({"id":5792419,"src":"IMG_9998clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5792419.html","width":130,"caption":"Stags in the garden of the cottage we stayed in at Elgol on the Isle of Skye","height":195});
															thumbnails[4991678] = clik.newPhoto({"id":4991678,"src":"IMG_0963cleanP_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4991678.html","width":130,"caption":"Traigh Lar, Isle of Harris","height":195});
															thumbnails[5792409] = clik.newPhoto({"id":5792409,"src":"IMG_9852clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5792409.html","width":130,"caption":"Elgol, Isle of Skye","height":87});
															thumbnails[5792403] = clik.newPhoto({"id":5792403,"src":"IMG_9905clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5792403.html","width":130,"caption":"Elgol, Loch Scavaig, Isle of Skye","height":87});
															thumbnails[5792398] = clik.newPhoto({"id":5792398,"src":"IMG_9747clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5792398.html","width":130,"caption":"Ben More across Loch Beg, from Pennyghael, Isle of Mull","height":85});
															thumbnails[5785500] = clik.newPhoto({"id":5785500,"src":"IMG_9941clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_5785500.html","width":130,"caption":"Blaven & Loch Slapin at low tide, Isle of Skye","height":85});
															thumbnails[1592146] = clik.newPhoto({"id":1592146,"src":"IMG_0034ss001_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_1592146.html","width":130,"caption":"After the first frost","height":195});
															thumbnails[4849353] = clik.newPhoto({"id":4849353,"src":"IMG_4881clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_4849353.html","width":130,"caption":"","height":195});
															thumbnails[4991828] = clik.newPhoto({"id":4991828,"src":"IMG_0915clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4991828.html","width":130,"caption":"Seilebost, Isle of Harris","height":84});
															thumbnails[4812089] = clik.newPhoto({"id":4812089,"src":"IMG_5043cleanSS_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_4812089.html","width":130,"caption":"","height":195});
															thumbnails[5008203] = clik.newPhoto({"id":5008203,"src":"IMG_5702B_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5008203.html","width":130,"caption":"Liquidambar orientalis","height":195});
															thumbnails[4811793] = clik.newPhoto({"id":4811793,"src":"IMG_5086cleanSS_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_4811793.html","width":130,"caption":"","height":87});
															thumbnails[5165540] = clik.newPhoto({"id":5165540,"src":"IMG_0020_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5165540.html","width":130,"caption":"","height":77});
															thumbnails[7477329] = clik.newPhoto({"id":7477329,"src":"IMG_7501_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_7477329.html","width":130,"caption":"","height":87});
															thumbnails[6649568] = clik.newPhoto({"id":6649568,"src":"IMG_6791clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_6649568.html","width":130,"caption":"","height":87});
															thumbnails[4680008] = clik.newPhoto({"id":4680008,"src":"IMG_3654SS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4680008.html","width":130,"caption":"Flock of Oyster Catchers, Uist","height":65});
															thumbnails[4640380] = clik.newPhoto({"id":4640380,"src":"IMG_3764clean_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4640380.html","width":130,"caption":"Isle of Lewis","height":80});
															thumbnails[4640295] = clik.newPhoto({"id":4640295,"src":"IMG_3641cleanSS_thumb.jpg","galleries_id":154974,"server_id":1,"link":"photo_4640295.html","width":130,"caption":"Berneray","height":62});
															thumbnails[4806618] = clik.newPhoto({"id":4806618,"src":"IMG_5107cleanSS_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_4806618.html","width":130,"caption":"","height":87});
															thumbnails[5168714] = clik.newPhoto({"id":5168714,"src":"IMG_6054A1_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5168714.html","width":130,"caption":"","height":195});
															thumbnails[5082440] = clik.newPhoto({"id":5082440,"src":"IMG_6144clean_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_5082440.html","width":130,"caption":"Extraordinary bright berries of the Hippophae ","height":195});
															thumbnails[7023222] = clik.newPhoto({"id":7023222,"src":"IMG_0211_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_7023222.html","width":130,"caption":"Liquidambar ","height":195});
															thumbnails[1592188] = clik.newPhoto({"id":1592188,"src":"IMG_0079ssb_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_1592188.html","width":130,"caption":"Crab Apples","height":195});
															thumbnails[8472508] = clik.newPhoto({"id":8472508,"src":"Parcevall_Hall_3_Aug_2011-9722_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_8472508.html","width":130,"caption":"","height":195});
															thumbnails[8738074] = clik.newPhoto({"id":8738074,"src":"6_Nov_2011-7261A_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_8738074.html","width":130,"caption":"Malus 'Golden Hornet' crab apples","height":195});
															thumbnails[8697943] = clik.newPhoto({"id":8697943,"src":"22_October_2011-6321_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_8697943.html","width":130,"caption":"","height":195});
															thumbnails[8629762] = clik.newPhoto({"id":8629762,"src":"Burton_Agnes_15_Oct_2011-6140_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_8629762.html","width":130,"caption":"Red Admiral on Leucanthemella serotina - 15 October 2011 - Yorkshire","height":195});
															thumbnails[7748452] = clik.newPhoto({"id":7748452,"src":"4_May_2011-3946_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7748452.html","width":130,"caption":"","height":195});
															thumbnails[2035907] = clik.newPhoto({"id":2035907,"src":"IMG_0124ss001_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2035907.html","width":130,"caption":"Snakes head Fritillary","height":195});
															thumbnails[7915124] = clik.newPhoto({"id":7915124,"src":"5_June_2011-5823_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7915124.html","width":130,"caption":"","height":195});
															thumbnails[7905549] = clik.newPhoto({"id":7905549,"src":"2_June_2011-5678_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7905549.html","width":130,"caption":"","height":195});
															thumbnails[2227943] = clik.newPhoto({"id":2227943,"src":"IMG_0002ss_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_2227943.html","width":130,"caption":"Alliums","height":195});
															thumbnails[7915374] = clik.newPhoto({"id":7915374,"src":"5_June_2011-5934_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_7915374.html","width":130,"caption":"","height":195});
															thumbnails[8111811] = clik.newPhoto({"id":8111811,"src":"BAgnes28_May_2011-5166_thumb.jpg","galleries_id":96631,"server_id":1,"link":"photo_8111811.html","width":130,"caption":"","height":195});
															thumbnails[8510906] = clik.newPhoto({"id":8510906,"src":"BreezyKnees_21_Aug_2011-0590_thumb.jpg","galleries_id":108810,"server_id":1,"link":"photo_8510906.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[64679] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"NEW Gallery - Other Work","link":"gallery_64679.html","maxRecords":0.0,"photoIDs":[7811290.0,7811293.0,7816733.0],"skipIndex":0,"section_code":"gallery","featured_images":7811290.0,"id":64679,"singleSection":false});				  						galleries[96631] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Spring Garden","link":"gallery_96631.html","maxRecords":0.0,"photoIDs":[6187275.0,7647211.0,6091257.0,5934452.0,7638129.0,5988872.0,5988873.0,5984708.0,5984716.0,1997977.0,2161455.0,5988432.0,2167580.0,2260298.0,7833376.0,7748455.0,2138491.0,2265766.0,7748452.0,2035907.0,7915124.0,7905549.0,2227943.0,7915374.0,8111811.0],"skipIndex":0,"section_code":"gallery","featured_images":"7915374,5984708","id":96631,"singleSection":false});				  						galleries[103749] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Summer Garden","link":"gallery_103749.html","maxRecords":0.0,"photoIDs":[8506468.0,8341234.0,8307028.0,8307027.0,8268372.0,8111768.0,2686021.0,4294516.0,4094252.0,4137116.0,6460171.0,4679822.0,2501978.0,1515403.0,4392971.0,4194925.0,8495682.0,8472476.0,6399890.0,6460167.0,2685956.0,1520396.0,1520417.0,4098408.0,8182484.0],"skipIndex":0,"section_code":"gallery","featured_images":"8506468,8341234,8307028,8268372,8182484,8111768","id":103749,"singleSection":false});				  						galleries[108810] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Autumn Garden","link":"gallery_108810.html","maxRecords":0.0,"photoIDs":[6879596.0,6831423.0,5164201.0,2997327.0,6832504.0,3072407.0,5231921.0,6786342.0,4788359.0,6664741.0,1734311.0,1592146.0,4849353.0,4812089.0,5008203.0,4811793.0,5165540.0,7477329.0,6649568.0,4806618.0,5168714.0,5082440.0,7023222.0,1592188.0,8472508.0,8738074.0,8697943.0,8629762.0,8510906.0],"skipIndex":0,"section_code":"gallery","featured_images":5164201.0,"id":108810,"singleSection":false});				  						galleries[116529] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Winter Garden","link":"gallery_116529.html","maxRecords":0.0,"photoIDs":[5288863.0,5654521.0,7147657.0,3149129.0,7397505.0,1734314.0,5453251.0,7035297.0,3208493.0,5288878.0,7387667.0,7364976.0,1929394.0,1932270.0,7420389.0,7420420.0,5278943.0,1855819.0,5288892.0,5439685.0],"skipIndex":0,"section_code":"gallery","featured_images":7387667.0,"id":116529,"singleSection":false});				  						galleries[353662] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"NEW Recent Work","link":"gallery_353662.html","maxRecords":0.0,"photoIDs":[8900409.0,8900458.0,8900494.0,8900568.0,8900569.0],"skipIndex":0,"section_code":"gallery","featured_images":"8900458,8900409","id":353662,"singleSection":false});				  						galleries[154974] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Hebrides ","link":"gallery_154974.html","maxRecords":0.0,"photoIDs":[4586874.0,2389947.0,2395973.0,4590646.0,4634645.0,4629664.0,2389861.0,4590642.0,4590640.0,2389910.0,2845364.0,2397300.0,5796026.0,2817665.0,6477571.0,6346011.0,8658243.0,5819316.0,5803150.0,5802923.0,5792419.0,4991678.0,5792409.0,5792403.0,5792398.0,5785500.0,4991828.0,4680008.0,4640380.0,4640295.0],"skipIndex":0,"section_code":"gallery","featured_images":"5792419,4991678,4634645,4590646,4586874,2817665,2389947","id":154974,"singleSection":false});				  						galleries[64680] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Scotland","link":"gallery_64680.html","maxRecords":0.0,"photoIDs":[4639178.0,4651197.0,5785535.0,5820077.0,3799134.0,1778299.0,2413615.0,1394963.0,5632408.0,3923316.0,1784810.0,3799309.0,4581173.0,4959992.0,873397.0,1781716.0,1779542.0,1784593.0,873387.0,1805323.0,3923318.0,4010895.0,3799151.0,3799163.0,3923322.0],"skipIndex":0,"section_code":"gallery","featured_images":"5632408,3923316,3799134","id":64680,"singleSection":false});				  						galleries[64637] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Food","link":"gallery_64637.html","maxRecords":0.0,"photoIDs":[3228085.0,1665851.0,841724.0,3216516.0,900126.0,841745.0,855279.0,841754.0,1709837.0,840983.0,860744.0,1696504.0,1395263.0,1662359.0,1665839.0],"skipIndex":0,"section_code":"gallery","featured_images":"1709837,1665851,900126,855279,841745,841724","id":64637,"singleSection":false});				  						galleries[395428] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"North of England","link":"gallery_395428.html","maxRecords":0.0,"photoIDs":[5146998.0,5401564.0,5106915.0,4726757.0,1861194.0,4990401.0,2997659.0,5106109.0,5053250.0,5109933.0,1629099.0,5079587.0,5401274.0,4914686.0,4902802.0,5632546.0,5628880.0,5616000.0,5492553.0,5483533.0,5483040.0,5478971.0,6724642.0],"skipIndex":0,"section_code":"gallery","featured_images":"5106109,1861194","id":395428,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6187275,5785535,5146998,8506468,6091257,5288863,8341234,5934452,8307028,6879596,8268372,3799134,8111768,2686021,3228085,4094252,4137116,6460171,5988872,4726757,4679822,3149129,2997327,1665851,4392971,8495682,8472476,5984708,5632408,6832504,3072407,1784810,6786342,4590640,4990401,2161455,5988432,6460167,2167580,5053250,1629099,5796026,1520417,8182484,5632546,5628880,3799151,5492553,5478971,5803150,5792403,5785500,6649568,5168714,7023222,8472508';
imageSets[2] = '8900458,8900409,7811290,8506468,8341234,8307028,8268372,3799134,4586874,8111768,5164201,2389947,1665851,5984708,5632408,841724,3923316,900126,7387667,4590646,1861194,841745,4634645,855279,1709837,5106109,8182484,2817665,5792419,4991678,7915374';
imageSets[3] = '4392971';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jansmith/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jansmith/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jansmith/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 || photos || {})[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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Jan Smith Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

