window.thumbnails = {};
															thumbnails[2690010] = clik.newPhoto({"id":2690010,"src":"C100_4col-o12314 4cm_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":44});
															thumbnails[3044539] = clik.newPhoto({"id":3044539,"src":"IMG_9215lr_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":146});
															thumbnails[3044541] = clik.newPhoto({"id":3044541,"src":"RogerMcCallum_AutumnTest-12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3044543] = clik.newPhoto({"id":3044543,"src":"IMG_9220lr_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":67});
															thumbnails[3044708] = clik.newPhoto({"id":3044708,"src":"Logo_Lowepro_2C_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":53});
															thumbnails[3791521] = clik.newPhoto({"id":3791521,"src":"giottos-logo_lr_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":27});
															thumbnails[4699874] = clik.newPhoto({"id":4699874,"src":"_INB6879_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6662724] = clik.newPhoto({"id":6662724,"src":"1008-2607_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1690659] = clik.newPhoto({"id":1690659,"src":"_INB9752_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690659.html","width":130,"caption":"Autumn colours at Beaulieu","height":46});
															thumbnails[637484] = clik.newPhoto({"id":637484,"src":"d_thumb.JPG","galleries_id":48570,"server_id":1,"link":"photo_637484.html","width":130,"caption":"The royal family","height":58});
															thumbnails[637439] = clik.newPhoto({"id":637439,"src":"13_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637439.html","width":130,"caption":"On the run","height":74});
															thumbnails[945280] = clik.newPhoto({"id":945280,"src":"_INB3309-2_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_945280.html","width":130,"caption":"Ducks on Hatchet Pond","height":70});
															thumbnails[637434] = clik.newPhoto({"id":637434,"src":"11_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637434.html","width":130,"caption":"Looking on","height":87});
															thumbnails[637471] = clik.newPhoto({"id":637471,"src":"54_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637471.html","width":130,"caption":"The tower","height":95});
															thumbnails[637481] = clik.newPhoto({"id":637481,"src":"82_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637481.html","width":130,"caption":"Autumn mares","height":104});
															thumbnails[640812] = clik.newPhoto({"id":640812,"src":"094_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_640812.html","width":130,"caption":"Ice","height":87});
															thumbnails[641269] = clik.newPhoto({"id":641269,"src":"065_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_641269.html","width":130,"caption":"Autumn Colours","height":87});
															thumbnails[931249] = clik.newPhoto({"id":931249,"src":"_INB3227-Edit_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_931249.html","width":130,"caption":"Splash Bridge","height":87});
															thumbnails[1690638] = clik.newPhoto({"id":1690638,"src":"IBX_2448_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690638.html","width":130,"caption":" New Forest pony foal at sunset","height":86});
															thumbnails[1690641] = clik.newPhoto({"id":1690641,"src":"02_INB0882_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690641.html","width":130,"caption":"Frosty Fern","height":87});
															thumbnails[1690643] = clik.newPhoto({"id":1690643,"src":"_INB7349_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690643.html","width":130,"caption":"Cranes moor in late summer mist","height":87});
															thumbnails[1690650] = clik.newPhoto({"id":1690650,"src":"02IB-1478_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690650.html","width":130,"caption":"Burley pond in winter golden hour","height":87});
															thumbnails[1690653] = clik.newPhoto({"id":1690653,"src":"0908-4621-2_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690653.html","width":130,"caption":"Pony with storm brewing","height":87});
															thumbnails[1690656] = clik.newPhoto({"id":1690656,"src":"_INB9094_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690656.html","width":130,"caption":"Misty dawn silhouette","height":87});
															thumbnails[1690657] = clik.newPhoto({"id":1690657,"src":"02_INB0702_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690657.html","width":130,"caption":"Sunbeams at dawn","height":87});
															thumbnails[1690665] = clik.newPhoto({"id":1690665,"src":"_INB8984_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690665.html","width":130,"caption":"Fly agaric","height":87});
															thumbnails[1690674] = clik.newPhoto({"id":1690674,"src":"_INB9716_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690674.html","width":130,"caption":"Beaulieu colours","height":87});
															thumbnails[1690675] = clik.newPhoto({"id":1690675,"src":"_INB9665_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690675.html","width":130,"caption":"Colourful roots","height":87});
															thumbnails[637456] = clik.newPhoto({"id":637456,"src":"24_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637456.html","width":130,"caption":"On the ridge","height":160});
															thumbnails[637464] = clik.newPhoto({"id":637464,"src":"31_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637464.html","width":130,"caption":"Colthunter 1","height":173});
															thumbnails[637477] = clik.newPhoto({"id":637477,"src":"80_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637477.html","width":130,"caption":"Ebony + Ivory","height":177});
															thumbnails[637489] = clik.newPhoto({"id":637489,"src":"DSCF0001_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_637489.html","width":130,"caption":"Fern light","height":173});
															thumbnails[641270] = clik.newPhoto({"id":641270,"src":"_IBX1228_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_641270.html","width":130,"caption":"Snow in the New Forest!","height":196});
															thumbnails[641276] = clik.newPhoto({"id":641276,"src":"ib000010-2_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_641276.html","width":130,"caption":"Low Tide","height":194});
															thumbnails[1323466] = clik.newPhoto({"id":1323466,"src":"_INB7343_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1323466.html","width":130,"caption":"","height":194});
															thumbnails[1690634] = clik.newPhoto({"id":1690634,"src":"_INB7200_thumb.jpg","galleries_id":48570,"server_id":1,"link":"photo_1690634.html","width":130,"caption":"Frosty morning near Burley","height":194});
															thumbnails[4631728] = clik.newPhoto({"id":4631728,"src":"DaveHunter_Keyhaven_23Aug09_5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4631728.html","width":130,"caption":"","height":87});
															thumbnails[8660299] = clik.newPhoto({"id":8660299,"src":"TaniaMyles_Forest_Photography_7_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8660299.html","width":160,"caption":"","height":80});
															thumbnails[8822801] = clik.newPhoto({"id":8822801,"src":"photo2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8822801.html","width":160,"caption":"","height":107});
															thumbnails[7937872] = clik.newPhoto({"id":7937872,"src":"LynnPeckMottisfont1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937872.html","width":160,"caption":"","height":76});
															thumbnails[5818079] = clik.newPhoto({"id":5818079,"src":"AlecClappertonBurley001_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5818079.html","width":130,"caption":"","height":74});
															thumbnails[6571282] = clik.newPhoto({"id":6571282,"src":"2010_07_29_Heather_Day_Keyhaven_005_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6571282.html","width":130,"caption":"","height":73});
															thumbnails[2283065] = clik.newPhoto({"id":2283065,"src":"IMG_3661_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2283065.html","width":130,"caption":"","height":87});
															thumbnails[2446597] = clik.newPhoto({"id":2446597,"src":"Keyhaven-065_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2446597.html","width":130,"caption":"","height":86});
															thumbnails[2516037] = clik.newPhoto({"id":2516037,"src":"DSC_5338_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2516037.html","width":130,"caption":"","height":87});
															thumbnails[2516063] = clik.newPhoto({"id":2516063,"src":"Phototrek Keyhaven chimney sunset_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2516063.html","width":130,"caption":"","height":86});
															thumbnails[2578345] = clik.newPhoto({"id":2578345,"src":"untitled1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2578345.html","width":130,"caption":"","height":87});
															thumbnails[2823916] = clik.newPhoto({"id":2823916,"src":"DSC_7354_edited_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2823916.html","width":130,"caption":"","height":87});
															thumbnails[2823919] = clik.newPhoto({"id":2823919,"src":"DSC_7593_edited_crop_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2823919.html","width":130,"caption":"","height":92});
															thumbnails[3038198] = clik.newPhoto({"id":3038198,"src":"Eyes_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3038198.html","width":130,"caption":"","height":86});
															thumbnails[3665034] = clik.newPhoto({"id":3665034,"src":"Puddle_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3665034.html","width":130,"caption":"","height":77});
															thumbnails[3793976] = clik.newPhoto({"id":3793976,"src":"Ken_Littlejohn_010_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3793976.html","width":130,"caption":"","height":98});
															thumbnails[3921306] = clik.newPhoto({"id":3921306,"src":"BrianMarchantMottisfont4_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3921306.html","width":130,"caption":"","height":89});
															thumbnails[3921307] = clik.newPhoto({"id":3921307,"src":"BrianMarchantMottisfont2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3921307.html","width":130,"caption":"","height":99});
															thumbnails[3921308] = clik.newPhoto({"id":3921308,"src":"BrianMarchantMottisfont1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3921308.html","width":130,"caption":"","height":85});
															thumbnails[3932329] = clik.newPhoto({"id":3932329,"src":"stevetoonexbury1_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_3932329.html","width":130,"caption":"","height":76});
															thumbnails[4084267] = clik.newPhoto({"id":4084267,"src":"ASC_2927_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4084267.html","width":130,"caption":"","height":87});
															thumbnails[4194000] = clik.newPhoto({"id":4194000,"src":"rebeccakeatingfritham1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4194000.html","width":130,"caption":"","height":87});
															thumbnails[4194004] = clik.newPhoto({"id":4194004,"src":"rebeccakeatingfritham5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4194004.html","width":130,"caption":"","height":91});
															thumbnails[4497287] = clik.newPhoto({"id":4497287,"src":"mikewoolcockmottisfont3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4497287.html","width":130,"caption":"","height":105});
															thumbnails[4497296] = clik.newPhoto({"id":4497296,"src":"SteveWoolcock_MottisfontJuly09_3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4497296.html","width":130,"caption":"","height":87});
															thumbnails[4575751] = clik.newPhoto({"id":4575751,"src":"peterrudolfrhinefield_2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4575751.html","width":130,"caption":"","height":100});
															thumbnails[4631652] = clik.newPhoto({"id":4631652,"src":"Bayahairdkeyhaven3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4631652.html","width":130,"caption":"","height":88});
															thumbnails[4631681] = clik.newPhoto({"id":4631681,"src":"BrianAird_Keyhaven_09_2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4631681.html","width":130,"caption":"","height":75});
															thumbnails[4948126] = clik.newPhoto({"id":4948126,"src":"davidgaunt_mottisfont_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4948126.html","width":130,"caption":"","height":98});
															thumbnails[4948135] = clik.newPhoto({"id":4948135,"src":"KevinChatburn_Mottisfont_5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4948135.html","width":130,"caption":"","height":92});
															thumbnails[4948138] = clik.newPhoto({"id":4948138,"src":"pamparkmottisfont3_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_4948138.html","width":130,"caption":"","height":87});
															thumbnails[4948169] = clik.newPhoto({"id":4948169,"src":"FrankBakerLongslade1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4948169.html","width":130,"caption":"","height":102});
															thumbnails[4948171] = clik.newPhoto({"id":4948171,"src":"FrankBakerLongslade2_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_4948171.html","width":130,"caption":"","height":103});
															thumbnails[4948175] = clik.newPhoto({"id":4948175,"src":"TimQuilterLongsladePhotoTrek-5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4948175.html","width":130,"caption":"","height":87});
															thumbnails[5071778] = clik.newPhoto({"id":5071778,"src":"jocurlemottisfont4_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5071778.html","width":130,"caption":"","height":97});
															thumbnails[5679246] = clik.newPhoto({"id":5679246,"src":"IMG_5314_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5679246.html","width":130,"caption":"","height":87});
															thumbnails[5973269] = clik.newPhoto({"id":5973269,"src":"berniemilesexbury1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5973269.html","width":130,"caption":"","height":86});
															thumbnails[5973274] = clik.newPhoto({"id":5973274,"src":"berniemilesexbury3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5973274.html","width":130,"caption":"","height":87});
															thumbnails[6371289] = clik.newPhoto({"id":6371289,"src":"ChrisJanson_Keyhaven-3_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_6371289.html","width":130,"caption":"","height":82});
															thumbnails[6371291] = clik.newPhoto({"id":6371291,"src":"simoncarrrhinefield2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6371291.html","width":130,"caption":"","height":87});
															thumbnails[6879536] = clik.newPhoto({"id":6879536,"src":"NeilJs_Ian_and_Barry_500x333_80_IMG_3617_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6879536.html","width":130,"caption":"","height":87});
															thumbnails[7046521] = clik.newPhoto({"id":7046521,"src":"Martin_Exbury_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046521.html","width":160,"caption":"","height":106});
															thumbnails[7046526] = clik.newPhoto({"id":7046526,"src":"philjones_exbury1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046526.html","width":160,"caption":"","height":102});
															thumbnails[7046528] = clik.newPhoto({"id":7046528,"src":"philjones_exbury3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046528.html","width":160,"caption":"","height":93});
															thumbnails[7454748] = clik.newPhoto({"id":7454748,"src":"chrisgalpinExbury1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454748.html","width":160,"caption":"","height":116});
															thumbnails[7454749] = clik.newPhoto({"id":7454749,"src":"chrisgalpinExbury2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454749.html","width":160,"caption":"","height":120});
															thumbnails[7454752] = clik.newPhoto({"id":7454752,"src":"LynnPeckMQ2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454752.html","width":160,"caption":"","height":107});
															thumbnails[7454753] = clik.newPhoto({"id":7454753,"src":"LynnPeckMQ3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454753.html","width":160,"caption":"","height":107});
															thumbnails[7454754] = clik.newPhoto({"id":7454754,"src":"Sue_Frampton_IMG6424_Bolderwood_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454754.html","width":160,"caption":"","height":107});
															thumbnails[7454755] = clik.newPhoto({"id":7454755,"src":"Sue_Frampton_IMG6458_Bolderwood_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454755.html","width":160,"caption":"","height":107});
															thumbnails[7786786] = clik.newPhoto({"id":7786786,"src":"KellyWylde_20110227_Mottisfont_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786786.html","width":160,"caption":"","height":107});
															thumbnails[7786800] = clik.newPhoto({"id":7786800,"src":"Sarah_Simpson_Phototrek_April_10th_2011_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786800.html","width":160,"caption":"","height":120});
															thumbnails[7858135] = clik.newPhoto({"id":7858135,"src":"GeoffPoulsonDSC_0098_500x332_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7858135.html","width":160,"caption":"","height":106});
															thumbnails[7858137] = clik.newPhoto({"id":7858137,"src":"GeoffPoulsonDSC_0104_500x332_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7858137.html","width":160,"caption":"","height":106});
															thumbnails[7937868] = clik.newPhoto({"id":7937868,"src":"LynnPeckExbury4_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937868.html","width":160,"caption":"","height":107});
															thumbnails[7937871] = clik.newPhoto({"id":7937871,"src":"LynnPeckExbury8_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937871.html","width":160,"caption":"","height":107});
															thumbnails[7937875] = clik.newPhoto({"id":7937875,"src":"LynnPeckMottisfont6_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937875.html","width":160,"caption":"","height":107});
															thumbnails[7937876] = clik.newPhoto({"id":7937876,"src":"LynnPeckMottisfont10_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937876.html","width":160,"caption":"","height":107});
															thumbnails[8185691] = clik.newPhoto({"id":8185691,"src":"GeoffPoulsonDSC_0098_500x332_565A945E-24E8-5EC4-4F933B6E54EB3C47_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185691.html","width":160,"caption":"","height":106});
															thumbnails[8185695] = clik.newPhoto({"id":8185695,"src":"GeoffPoulsonDSC_0104_500x332_565AFC30-24E8-5EC4-4FC2DE7A1A470502_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185695.html","width":160,"caption":"","height":106});
															thumbnails[8185703] = clik.newPhoto({"id":8185703,"src":"IMG_0006_8_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185703.html","width":160,"caption":"","height":120});
															thumbnails[8822800] = clik.newPhoto({"id":8822800,"src":"photo1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8822800.html","width":160,"caption":"","height":107});
															thumbnails[4631683] = clik.newPhoto({"id":4631683,"src":"BrianAird_Keyhaven_09_3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4631683.html","width":130,"caption":"","height":74});
															thumbnails[6571291] = clik.newPhoto({"id":6571291,"src":"2010_07_29_054edited_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6571291.html","width":130,"caption":"","height":98});
															thumbnails[7786874] = clik.newPhoto({"id":7786874,"src":"IMG_0091_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786874.html","width":160,"caption":"","height":120});
															thumbnails[7786876] = clik.newPhoto({"id":7786876,"src":"IMG_0111_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786876.html","width":160,"caption":"","height":120});
															thumbnails[3921713] = clik.newPhoto({"id":3921713,"src":"_Users_hrenwick_Desktop_P5020088_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_3921713.html","width":130,"caption":"","height":98});
															thumbnails[6571286] = clik.newPhoto({"id":6571286,"src":"2010_07_29_038_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6571286.html","width":130,"caption":"","height":98});
															thumbnails[1852908] = clik.newPhoto({"id":1852908,"src":"topsy turvey_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_1852908.html","width":130,"caption":"","height":116});
															thumbnails[3665000] = clik.newPhoto({"id":3665000,"src":"Twins_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3665000.html","width":130,"caption":" ","height":126});
															thumbnails[7937869] = clik.newPhoto({"id":7937869,"src":"LynnPeckExbury6_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937869.html","width":160,"caption":"","height":160});
															thumbnails[8185707] = clik.newPhoto({"id":8185707,"src":"IMG_0060_17_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185707.html","width":160,"caption":"","height":120});
															thumbnails[3038205] = clik.newPhoto({"id":3038205,"src":"081028akpNew-Forest-Phototr_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3038205.html","width":130,"caption":"","height":163});
															thumbnails[5679245] = clik.newPhoto({"id":5679245,"src":"IMG_5349_edited-1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5679245.html","width":130,"caption":"","height":150});
															thumbnails[7046527] = clik.newPhoto({"id":7046527,"src":"philjones_exbury2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046527.html","width":160,"caption":"","height":178});
															thumbnails[1898930] = clik.newPhoto({"id":1898930,"src":"IMG_0543_1_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_1898930.html","width":130,"caption":"","height":179});
															thumbnails[3665028] = clik.newPhoto({"id":3665028,"src":"dead_tree_BW_PhotoTrek_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3665028.html","width":130,"caption":"","height":196});
															thumbnails[7046529] = clik.newPhoto({"id":7046529,"src":"VickyBrattonMottisfont1_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_7046529.html","width":160,"caption":"","height":221});
															thumbnails[7046533] = clik.newPhoto({"id":7046533,"src":"VickyBrattonMottisfont3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046533.html","width":160,"caption":"","height":204});
															thumbnails[7786871] = clik.newPhoto({"id":7786871,"src":"IMG_0039_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_7786871.html","width":160,"caption":"","height":213});
															thumbnails[1937136] = clik.newPhoto({"id":1937136,"src":"tree reflection_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_1937136.html","width":130,"caption":"","height":202});
															thumbnails[2077280] = clik.newPhoto({"id":2077280,"src":"IMG_0785_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2077280.html","width":130,"caption":"","height":195});
															thumbnails[2340952] = clik.newPhoto({"id":2340952,"src":"keyhaven_2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2340952.html","width":130,"caption":"","height":204});
															thumbnails[2340954] = clik.newPhoto({"id":2340954,"src":"keyhaven_8_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2340954.html","width":130,"caption":"","height":194});
															thumbnails[2446588] = clik.newPhoto({"id":2446588,"src":"IMG_1022_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2446588.html","width":130,"caption":"","height":195});
															thumbnails[2515988] = clik.newPhoto({"id":2515988,"src":"DSC_0061-(1)_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2515988.html","width":130,"caption":"","height":194});
															thumbnails[2516001] = clik.newPhoto({"id":2516001,"src":"IMG_5189_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_2516001.html","width":130,"caption":"","height":195});
															thumbnails[2516023] = clik.newPhoto({"id":2516023,"src":"IMGP1091_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_2516023.html","width":130,"caption":"","height":173});
															thumbnails[2578318] = clik.newPhoto({"id":2578318,"src":"AG_001_Low-Res_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2578318.html","width":130,"caption":"","height":220});
															thumbnails[2823816] = clik.newPhoto({"id":2823816,"src":"horserider_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2823816.html","width":130,"caption":"","height":192});
															thumbnails[2823913] = clik.newPhoto({"id":2823913,"src":"Bolderwood-1-6_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2823913.html","width":130,"caption":"","height":195});
															thumbnails[2823917] = clik.newPhoto({"id":2823917,"src":"DSC_7358_edited_crop_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_2823917.html","width":130,"caption":"","height":184});
															thumbnails[3814587] = clik.newPhoto({"id":3814587,"src":"berniemilesmottisfont2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3814587.html","width":130,"caption":"","height":196});
															thumbnails[3814589] = clik.newPhoto({"id":3814589,"src":"berniemilesmottisfont4_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_3814589.html","width":130,"caption":"","height":196});
															thumbnails[4084263] = clik.newPhoto({"id":4084263,"src":"ASC_2898_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4084263.html","width":130,"caption":"","height":195});
															thumbnails[4497292] = clik.newPhoto({"id":4497292,"src":"mikewoolcockmottisfont5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4497292.html","width":130,"caption":"","height":194});
															thumbnails[4575747] = clik.newPhoto({"id":4575747,"src":"peterrudolfrhinefield_1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_4575747.html","width":130,"caption":"","height":196});
															thumbnails[5071767] = clik.newPhoto({"id":5071767,"src":"dimegsonsvynet11_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_5071767.html","width":130,"caption":"","height":196});
															thumbnails[5071780] = clik.newPhoto({"id":5071780,"src":"julialarssonvyne1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5071780.html","width":130,"caption":"","height":195});
															thumbnails[5071788] = clik.newPhoto({"id":5071788,"src":"susansworleyexbury3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5071788.html","width":130,"caption":"","height":173});
															thumbnails[5071790] = clik.newPhoto({"id":5071790,"src":"KevinChatburnTheVyne001_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5071790.html","width":130,"caption":"","height":194});
															thumbnails[5071792] = clik.newPhoto({"id":5071792,"src":"KevinChatburnTheVyne002_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5071792.html","width":130,"caption":"","height":194});
															thumbnails[5306761] = clik.newPhoto({"id":5306761,"src":"IMG_3118_Teresa3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5306761.html","width":130,"caption":"","height":195});
															thumbnails[5432107] = clik.newPhoto({"id":5432107,"src":"Pam_Park_New_Forest_1_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_5432107.html","width":130,"caption":"","height":195});
															thumbnails[5818086] = clik.newPhoto({"id":5818086,"src":"HughClappertonBurleyPhotoTrek-3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_5818086.html","width":130,"caption":"","height":195});
															thumbnails[6371283] = clik.newPhoto({"id":6371283,"src":"berniemileskeyhaven1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6371283.html","width":130,"caption":"","height":196});
															thumbnails[6371284] = clik.newPhoto({"id":6371284,"src":"berniemileskeyhaven2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6371284.html","width":130,"caption":"","height":190});
															thumbnails[6879534] = clik.newPhoto({"id":6879534,"src":"NeilJs_Bird_Tree_Store_341x500_90_IMG_3638_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_6879534.html","width":130,"caption":"","height":191});
															thumbnails[7046518] = clik.newPhoto({"id":7046518,"src":"JoSnapeMotisfont3_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_7046518.html","width":160,"caption":"","height":224});
															thumbnails[7046522] = clik.newPhoto({"id":7046522,"src":"Martin_Exbury_2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046522.html","width":160,"caption":"","height":240});
															thumbnails[7046534] = clik.newPhoto({"id":7046534,"src":"PAt_Norris_Autumn_Colour_212.jpeg_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7046534.html","width":160,"caption":"","height":240});
															thumbnails[7454750] = clik.newPhoto({"id":7454750,"src":"chrisgalpinExbury3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454750.html","width":160,"caption":"","height":217});
															thumbnails[7454757] = clik.newPhoto({"id":7454757,"src":"Sue_Frampton_IMG6481_Bolderwood_small_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7454757.html","width":160,"caption":"","height":240});
															thumbnails[7786788] = clik.newPhoto({"id":7786788,"src":"KellyWylde_20110227_Mottisfont_3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786788.html","width":160,"caption":"","height":213});
															thumbnails[7786793] = clik.newPhoto({"id":7786793,"src":"LynnPeckbolderwood1_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786793.html","width":160,"caption":"","height":240});
															thumbnails[7786795] = clik.newPhoto({"id":7786795,"src":"LynnPeckbolderwood3_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786795.html","width":160,"caption":"","height":240});
															thumbnails[7786798] = clik.newPhoto({"id":7786798,"src":"LynnPeckbolderwood5_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786798.html","width":160,"caption":"","height":240});
															thumbnails[7786801] = clik.newPhoto({"id":7786801,"src":"Sarah_Simpson_Phototrek_April_10th_2011_2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7786801.html","width":160,"caption":"","height":213});
															thumbnails[7786887] = clik.newPhoto({"id":7786887,"src":"2_Dave_Roberts_Mottisfont_0616_thumb.JPG","galleries_id":79244,"server_id":1,"link":"photo_7786887.html","width":160,"caption":"","height":234});
															thumbnails[7937873] = clik.newPhoto({"id":7937873,"src":"LynnPeckMottisfont2_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_7937873.html","width":160,"caption":"He's supposed to be working!","height":240});
															thumbnails[8185697] = clik.newPhoto({"id":8185697,"src":"GeoffPoulsonDSC_0129_332x500_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185697.html","width":160,"caption":"","height":241});
															thumbnails[8185704] = clik.newPhoto({"id":8185704,"src":"IMG_0037_7_thumb.jpg","galleries_id":79244,"server_id":1,"link":"photo_8185704.html","width":160,"caption":"","height":213});
															thumbnails[3804478] = clik.newPhoto({"id":3804478,"src":"_IBX0881_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804478.html","width":130,"caption":"","height":86});
															thumbnails[3804479] = clik.newPhoto({"id":3804479,"src":"_INB9511_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804479.html","width":130,"caption":"","height":87});
															thumbnails[3804482] = clik.newPhoto({"id":3804482,"src":"0309-9814_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804482.html","width":130,"caption":"","height":87});
															thumbnails[3804483] = clik.newPhoto({"id":3804483,"src":"_IBX0302-2_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804483.html","width":130,"caption":"","height":86});
															thumbnails[3804485] = clik.newPhoto({"id":3804485,"src":"1208-7393_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804485.html","width":130,"caption":"","height":86});
															thumbnails[3804487] = clik.newPhoto({"id":3804487,"src":"0109-7641_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804487.html","width":130,"caption":"","height":87});
															thumbnails[3804490] = clik.newPhoto({"id":3804490,"src":"0409-0400_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804490.html","width":130,"caption":"","height":87});
															thumbnails[3804492] = clik.newPhoto({"id":3804492,"src":"IBX_4036_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_3804492.html","width":130,"caption":"","height":86});
															thumbnails[7067987] = clik.newPhoto({"id":7067987,"src":"inb-6507_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7067987.html","width":160,"caption":"","height":107});
															thumbnails[7067992] = clik.newPhoto({"id":7067992,"src":"0810-8803-2_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7067992.html","width":160,"caption":"","height":107});
															thumbnails[7067996] = clik.newPhoto({"id":7067996,"src":"Cowes_Week_2010-7891_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7067996.html","width":160,"caption":"","height":106});
															thumbnails[7068050] = clik.newPhoto({"id":7068050,"src":"IMG_4332_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068050.html","width":160,"caption":"","height":128});
															thumbnails[7068058] = clik.newPhoto({"id":7068058,"src":"CG._BSO_182_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068058.html","width":160,"caption":"","height":107});
															thumbnails[7068075] = clik.newPhoto({"id":7068075,"src":"BO_52_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068075.html","width":160,"caption":"","height":107});
															thumbnails[7068122] = clik.newPhoto({"id":7068122,"src":"Speeches-26_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7068122.html","width":160,"caption":"","height":107});
															thumbnails[7068132] = clik.newPhoto({"id":7068132,"src":"Post-Cer-33_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7068132.html","width":160,"caption":"","height":107});
															thumbnails[7106643] = clik.newPhoto({"id":7106643,"src":"IMG_6490_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7106643.html","width":160,"caption":"","height":107});
															thumbnails[7106644] = clik.newPhoto({"id":7106644,"src":"IMG_6658_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7106644.html","width":160,"caption":"","height":107});
															thumbnails[7106645] = clik.newPhoto({"id":7106645,"src":"IMG_6646_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7106645.html","width":160,"caption":"","height":107});
															thumbnails[7106647] = clik.newPhoto({"id":7106647,"src":"IMG_6641_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7106647.html","width":160,"caption":"","height":107});
															thumbnails[7067990] = clik.newPhoto({"id":7067990,"src":"IMG_0014_thumb.jpg","galleries_id":231712,"server_id":1,"link":"photo_7067990.html","width":160,"caption":"","height":241});
															thumbnails[7068052] = clik.newPhoto({"id":7068052,"src":"IMG_4317_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068052.html","width":160,"caption":"","height":214});
															thumbnails[7068068] = clik.newPhoto({"id":7068068,"src":"IMG_5873_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068068.html","width":160,"caption":"","height":240});
															thumbnails[7068078] = clik.newPhoto({"id":7068078,"src":"IMG_6047_thumb.JPG","galleries_id":231712,"server_id":1,"link":"photo_7068078.html","width":160,"caption":"","height":240});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[231712] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial, Event and Wedding Gallery","link":"section283060.html","maxRecords":0.0,"photoIDs":[3804478.0,3804479.0,3804482.0,3804483.0,3804485.0,3804487.0,3804490.0,3804492.0,7067987.0,7067992.0,7067996.0,7068050.0,7068058.0,7068075.0,7068122.0,7068132.0,7106643.0,7106644.0,7106645.0,7106647.0,7067990.0,7068052.0,7068068.0,7068078.0],"skipIndex":0,"section_code":"section283060","featured_images":"7106647,7106645,7106644,7106643,7068132,7068122,7068078,7068075,7068068,7068058","id":231712,"singleSection":true});				  						galleries[48570] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Gallery","link":"gallery.html","maxRecords":0.0,"photoIDs":[1690659.0,637484.0,637439.0,945280.0,637434.0,637471.0,637481.0,640812.0,641269.0,931249.0,1690638.0,1690641.0,1690643.0,1690650.0,1690653.0,1690656.0,1690657.0,1690665.0,1690674.0,1690675.0,637456.0,637464.0,637477.0,637489.0,641270.0,641276.0,1323466.0,1690634.0],"skipIndex":0,"section_code":"gallery","featured_images":"641276,637489,637484,637481,637477,637471,637464,637456,637439,637434","id":48570,"singleSection":true});				  						galleries[79244] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Images from Phototreks","link":"section110860.html","maxRecords":0.0,"photoIDs":[4631728.0,8660299.0,8822801.0,7937872.0,5818079.0,6571282.0,2283065.0,2446597.0,2516037.0,2516063.0,2578345.0,2823916.0,2823919.0,3038198.0,3665034.0,3793976.0,3921306.0,3921307.0,3921308.0,3932329.0,4084267.0,4194000.0,4194004.0,4497287.0,4497296.0,4575751.0,4631652.0,4631681.0,4948126.0,4948135.0,4948138.0,4948169.0,4948171.0,4948175.0,5071778.0,5679246.0,5973269.0,5973274.0,6371289.0,6371291.0,6879536.0,7046521.0,7046526.0,7046528.0,7454748.0,7454749.0,7454752.0,7454753.0,7454754.0,7454755.0,7786786.0,7786800.0,7858135.0,7858137.0,7937868.0,7937871.0,7937875.0,7937876.0,8185691.0,8185695.0,8185703.0,8822800.0,4631683.0,6571291.0,7786874.0,7786876.0,3921713.0,6571286.0,1852908.0,3665000.0,7937869.0,8185707.0,3038205.0,5679245.0,7046527.0,1898930.0,3665028.0,7046529.0,7046533.0,7786871.0,1937136.0,2077280.0,2340952.0,2340954.0,2446588.0,2515988.0,2516001.0,2516023.0,2578318.0,2823816.0,2823913.0,2823917.0,3814587.0,3814589.0,4084263.0,4497292.0,4575747.0,5071767.0,5071780.0,5071788.0,5071790.0,5071792.0,5306761.0,5432107.0,5818086.0,6371283.0,6371284.0,6879534.0,7046518.0,7046522.0,7046534.0,7454750.0,7454757.0,7786788.0,7786793.0,7786795.0,7786798.0,7786801.0,7786887.0,7937873.0,8185697.0,8185704.0],"skipIndex":0,"section_code":"section110860","featured_images":"8822801,8822800,8660299,8185707,8185704,8185703,8185697,8185695,8185691,7937876","id":79244,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1690659,637484,945280,637439,1690674,1690665,1690657,1690656,1690653,1690650,1690643,1690641,1690638,931249,637481,637471,637434,637456,1690634,641276,641270,637489,637477,637464';
imageSets[2] = '637484,637439,637481,637471,637434,637456,641276,637489,637477,637464';
imageSets[3] = '4699874,4631728,4631681,4631652,4575751,4497296,4497287,4194004,4194000,4084267';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/infinity/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/infinity/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/infinity/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 = 'Photonewforest: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> AU$' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="sales@ibrbs.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="AUD">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="sales@ibrbs.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

