window.thumbnails = {};
															thumbnails[6006702] = clik.newPhoto({"id":6006702,"src":"After_Dark_Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6006702.html","width":130,"caption":"After Dark","height":179});
															thumbnails[6006705] = clik.newPhoto({"id":6006705,"src":"Avebury_mump__spirals_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6006705.html","width":130,"caption":"Together in Time","height":151});
															thumbnails[6006708] = clik.newPhoto({"id":6006708,"src":"doorway_2_CROP_SIDE_1_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6006708.html","width":130,"caption":"Tree Portal III - Avebury","height":55});
															thumbnails[6007016] = clik.newPhoto({"id":6007016,"src":"family_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007016.html","width":130,"caption":"Family","height":55});
															thumbnails[6007125] = clik.newPhoto({"id":6007125,"src":"OLD_MAN_MIDNIGHT_SUN__thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007125.html","width":130,"caption":"Old Man Midnight Sun - Avebury","height":313});
															thumbnails[6007179] = clik.newPhoto({"id":6007179,"src":"SOLAR_MIDNIGHT___thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007179.html","width":130,"caption":"Solar Midnight - Avebury","height":174});
															thumbnails[6007258] = clik.newPhoto({"id":6007258,"src":"Tree_Portal______Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007258.html","width":130,"caption":"Tree Portal II - Avebury","height":126});
															thumbnails[6007262] = clik.newPhoto({"id":6007262,"src":"Tree_Portal____-__Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007262.html","width":130,"caption":"Tree Portal I - Avebury","height":159});
															thumbnails[6007264] = clik.newPhoto({"id":6007264,"src":"Tree_Portal___Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007264.html","width":130,"caption":"Tree Portal V - Avebury","height":47});
															thumbnails[6007266] = clik.newPhoto({"id":6007266,"src":"Tree_Portal__-______Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007266.html","width":130,"caption":"Tree Portal IV - Avebury","height":77});
															thumbnails[6007267] = clik.newPhoto({"id":6007267,"src":"Tree_Portal_-_Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007267.html","width":130,"caption":"Tree Portal VII - Avebury","height":61});
															thumbnails[6007269] = clik.newPhoto({"id":6007269,"src":"Tree_Portal_Avebury_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007269.html","width":130,"caption":"Tree Portal IV - Avebury","height":137});
															thumbnails[6007272] = clik.newPhoto({"id":6007272,"src":"Tree_Portal_Avebury1_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007272.html","width":130,"caption":"Tree Portal VIII - Avebury","height":67});
															thumbnails[6007284] = clik.newPhoto({"id":6007284,"src":"Beyond1_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_6007284.html","width":130,"caption":"Beyond - Avebury","height":54});
															thumbnails[2087168] = clik.newPhoto({"id":2087168,"src":"fire_thumb.jpg.jpg","galleries_id":130467,"server_id":1,"link":"photo_2087168.html","width":130,"caption":"FIRE","height":130});
															thumbnails[2087255] = clik.newPhoto({"id":2087255,"src":"air_thumb.jpg","galleries_id":130467,"server_id":1,"link":"photo_2087255.html","width":130,"caption":"AIR ","height":130});
															thumbnails[2087272] = clik.newPhoto({"id":2087272,"src":"earth_thumb.jpg.jpg","galleries_id":130467,"server_id":1,"link":"photo_2087272.html","width":130,"caption":"EARTH ","height":141});
															thumbnails[2087343] = clik.newPhoto({"id":2087343,"src":"water_thumb.jpg.jpg","galleries_id":130467,"server_id":1,"link":"photo_2087343.html","width":130,"caption":"WATER ","height":130});
															thumbnails[2087354] = clik.newPhoto({"id":2087354,"src":"beechshadows_thumb.jpg.jpg","galleries_id":133469,"server_id":1,"link":"photo_2087354.html","width":130,"caption":"Beech Shadows","height":173});
															thumbnails[2087448] = clik.newPhoto({"id":2087448,"src":"lowsycamoretreeline_thumb.jpg.jpg","galleries_id":133469,"server_id":1,"link":"photo_2087448.html","width":130,"caption":"Low Sycamore Tree Line","height":86});
															thumbnails[2087461] = clik.newPhoto({"id":2087461,"src":"oakleaves_thumb.jpg.jpg","galleries_id":236357,"server_id":1,"link":"photo_2087461.html","width":130,"caption":"oak leaves","height":98});
															thumbnails[2087597] = clik.newPhoto({"id":2087597,"src":"pinkhorizon_thumb.jpg.jpg","galleries_id":133469,"server_id":1,"link":"photo_2087597.html","width":130,"caption":"Pink Horizon","height":196});
															thumbnails[2087606] = clik.newPhoto({"id":2087606,"src":"starrytree line_thumb.jpg.jpg","galleries_id":236341,"server_id":1,"link":"photo_2087606.html","width":130,"caption":"Starry Tree Line","height":57});
															thumbnails[2087650] = clik.newPhoto({"id":2087650,"src":"twistedrowan_thumb.jpg.jpg","galleries_id":147029,"server_id":1,"link":"photo_2087650.html","width":130,"caption":"Twisted Rowan","height":103});
															thumbnails[2087670] = clik.newPhoto({"id":2087670,"src":"wintertreelin_thumb.jpg.jpg","galleries_id":133469,"server_id":1,"link":"photo_2087670.html","width":130,"caption":"Winter Treeline","height":182});
															thumbnails[2087676] = clik.newPhoto({"id":2087676,"src":"bigpinkdogrose_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087676.html","width":130,"caption":"Big Pink Dog Rose","height":104});
															thumbnails[2087681] = clik.newPhoto({"id":2087681,"src":"blacklilyincloseup_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087681.html","width":130,"caption":"Black Lily","height":139});
															thumbnails[2087687] = clik.newPhoto({"id":2087687,"src":"daisy_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087687.html","width":130,"caption":"Daisy","height":98});
															thumbnails[2087700] = clik.newPhoto({"id":2087700,"src":"darklilyinsquare_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087700.html","width":130,"caption":"Dark Lily","height":130});
															thumbnails[2087703] = clik.newPhoto({"id":2087703,"src":"horsetail_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087703.html","width":130,"caption":"Horsetail","height":174});
															thumbnails[2087705] = clik.newPhoto({"id":2087705,"src":"lily&roses_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087705.html","width":130,"caption":"Lily & Roses","height":86});
															thumbnails[2087711] = clik.newPhoto({"id":2087711,"src":"whitelily_thumb.jpg.jpg","galleries_id":139325,"server_id":1,"link":"photo_2087711.html","width":130,"caption":"White Lily","height":139});
															thumbnails[2087719] = clik.newPhoto({"id":2087719,"src":"moontreeline_thumb.jpg.jpg","galleries_id":133469,"server_id":1,"link":"photo_2087719.html","width":130,"caption":"Moon Tree Line","height":91});
															thumbnails[2231057] = clik.newPhoto({"id":2231057,"src":"HOLLY copy_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2231057.html","width":130,"caption":"","height":130});
															thumbnails[2231147] = clik.newPhoto({"id":2231147,"src":"chakras 2 copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231147.html","width":130,"caption":"chakras","height":205});
															thumbnails[2231149] = clik.newPhoto({"id":2231149,"src":"AIR copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231149.html","width":130,"caption":"air","height":120});
															thumbnails[2231150] = clik.newPhoto({"id":2231150,"src":"gaia watercolour iwith edges copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231150.html","width":130,"caption":"gaia","height":205});
															thumbnails[2231151] = clik.newPhoto({"id":2231151,"src":"alllifeissacred WATERCOLOUR copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231151.html","width":130,"caption":"all life is sacred","height":189});
															thumbnails[2231211] = clik.newPhoto({"id":2231211,"src":"beltaine watercolour copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231211.html","width":130,"caption":"beltaine \/ may day","height":189});
															thumbnails[2231214] = clik.newPhoto({"id":2231214,"src":"contentment copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2231214.html","width":130,"caption":"contentment","height":163});
															thumbnails[2231281] = clik.newPhoto({"id":2231281,"src":"farndale blue tree copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_2231281.html","width":130,"caption":"farndale blue tree line","height":51});
															thumbnails[2231289] = clik.newPhoto({"id":2231289,"src":"holly 5_thumb.4x8.jpg","galleries_id":236357,"server_id":1,"link":"photo_2231289.html","width":130,"caption":"holly & red berries","height":83});
															thumbnails[2231290] = clik.newPhoto({"id":2231290,"src":"holly6 10 x 9 copy_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2231290.html","width":130,"caption":"dark holly","height":117});
															thumbnails[2231329] = clik.newPhoto({"id":2231329,"src":"DAFF TRUMPET copy_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2231329.html","width":130,"caption":"farndale daffodil - trumpet","height":196});
															thumbnails[2231338] = clik.newPhoto({"id":2231338,"src":"2 DAFFS copy_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2231338.html","width":130,"caption":"farndale daffodils - 2 daffodils","height":86});
															thumbnails[2231353] = clik.newPhoto({"id":2231353,"src":"new leaf 3contrast accented edges copy1_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2231353.html","width":130,"caption":"new sycamore leaves","height":196});
															thumbnails[2232163] = clik.newPhoto({"id":2232163,"src":"new farndale doorway4 copy_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_2232163.html","width":130,"caption":"new farndale doorway","height":94});
															thumbnails[2232308] = clik.newPhoto({"id":2232308,"src":"starseed tree temple blue sky copy_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_2232308.html","width":130,"caption":"starseed tree temple","height":130});
															thumbnails[2232361] = clik.newPhoto({"id":2232361,"src":"farndale TREES IN MIST green copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_2232361.html","width":130,"caption":"farndale green tree line","height":51});
															thumbnails[2232896] = clik.newPhoto({"id":2232896,"src":"dark pine tip_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2232896.html","width":130,"caption":"dark pine tip","height":196});
															thumbnails[2232904] = clik.newPhoto({"id":2232904,"src":"pine tip green_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2232904.html","width":130,"caption":"green pine tip","height":196});
															thumbnails[2232907] = clik.newPhoto({"id":2232907,"src":"farndale daffodil group_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2232907.html","width":130,"caption":"farndale daffodil group","height":94});
															thumbnails[2232917] = clik.newPhoto({"id":2232917,"src":"new sycamore leaf 2_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2232917.html","width":130,"caption":"new sycamore leaf 2","height":86});
															thumbnails[2233242] = clik.newPhoto({"id":2233242,"src":"star moss section1_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2233242.html","width":130,"caption":"starry moss","height":135});
															thumbnails[2233248] = clik.newPhoto({"id":2233248,"src":"THE SUN 150res cleaned up copy_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2233248.html","width":130,"caption":"the_sun.jpg","height":130});
															thumbnails[2233289] = clik.newPhoto({"id":2233289,"src":"stone-temple-doorway-Farnda_thumb.gif","galleries_id":147029,"server_id":1,"link":"photo_2233289.html","width":130,"caption":"farndale stone temple","height":179});
															thumbnails[2346389] = clik.newPhoto({"id":2346389,"src":"dalby dog rose_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2346389.html","width":130,"caption":"field rose","height":196});
															thumbnails[2346408] = clik.newPhoto({"id":2346408,"src":"red poppies_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2346408.html","width":130,"caption":"red poppies","height":86});
															thumbnails[2346410] = clik.newPhoto({"id":2346410,"src":"twisted tree_thumb.jpg","galleries_id":133469,"server_id":1,"link":"photo_2346410.html","width":130,"caption":"twisted oak, Farndale","height":196});
															thumbnails[2516240] = clik.newPhoto({"id":2516240,"src":"breakthrough sized copy_thumb.jpg","galleries_id":152913,"server_id":1,"link":"photo_2516240.html","width":130,"caption":"breakthrough","height":126});
															thumbnails[2516242] = clik.newPhoto({"id":2516242,"src":"fratillary_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2516242.html","width":130,"caption":"snake's head (fritillaria meleagris)","height":86});
															thumbnails[2516247] = clik.newPhoto({"id":2516247,"src":"frosted trees 3 enhanced_thumb.jpg","galleries_id":133469,"server_id":1,"link":"photo_2516247.html","width":130,"caption":"frosted trees 1","height":74});
															thumbnails[2516248] = clik.newPhoto({"id":2516248,"src":"frosted 2-trees copy_thumb.jpg","galleries_id":133469,"server_id":1,"link":"photo_2516248.html","width":130,"caption":"frosted trees","height":89});
															thumbnails[2542284] = clik.newPhoto({"id":2542284,"src":"moongodess 450 + watermark_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2542284.html","width":130,"caption":"Moon Goddess","height":180});
															thumbnails[2556072] = clik.newPhoto({"id":2556072,"src":"boudica_thumb.jpg","galleries_id":147028,"server_id":1,"link":"photo_2556072.html","width":130,"caption":"Boudica","height":306});
															thumbnails[2665578] = clik.newPhoto({"id":2665578,"src":"HAREBELLS copy_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2665578.html","width":130,"caption":"harebells","height":196});
															thumbnails[2665599] = clik.newPhoto({"id":2665599,"src":"heather 4 copy_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_2665599.html","width":130,"caption":"moor heather","height":331});
															thumbnails[3891723] = clik.newPhoto({"id":3891723,"src":"CELTIC_CLOUD_harland_moor_A3_copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891723.html","width":130,"caption":"CELTIC CLOUD - Harland Moor","height":179});
															thumbnails[3891729] = clik.newPhoto({"id":3891729,"src":"CELTIC_SOIL_newton_dale_A1_84x17_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891729.html","width":130,"caption":"CELTIC SOIL - Levisham","height":27});
															thumbnails[3891731] = clik.newPhoto({"id":3891731,"src":"FARNDALE_MIST_29cm_x_copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891731.html","width":130,"caption":"FARNDALE MIST","height":40});
															thumbnails[3891735] = clik.newPhoto({"id":3891735,"src":"GHOSTS_OF_CELTS_A1_84X17_cm_copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891735.html","width":130,"caption":"GHOSTS OF CELTS - Lastingham","height":27});
															thumbnails[3891738] = clik.newPhoto({"id":3891738,"src":"MAY_HEDGE_LINE_A3_saturation_copy_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891738.html","width":130,"caption":"MAY HEDGELINE","height":90});
															thumbnails[3891741] = clik.newPhoto({"id":3891741,"src":"sppok_tree_TO_GO_-_Copy_copy_thumb.jpg","galleries_id":133469,"server_id":1,"link":"photo_3891741.html","width":130,"caption":"SPOOK FAIRY TREE","height":196});
															thumbnails[3891744] = clik.newPhoto({"id":3891744,"src":"STONES_Lastingham__A1_34x17_thumb.jpg","galleries_id":236341,"server_id":1,"link":"photo_3891744.html","width":130,"caption":"STONES - Lastingham","height":27});
															thumbnails[4746263] = clik.newPhoto({"id":4746263,"src":"clikpic_sized__watermarked_STAR_CARR_to_RUDLAND_RIG_-_Cammon_Stone_Summer_Camp_200_RES_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_4746263.html","width":130,"caption":"Star Carr to Rudland Rig","height":86});
															thumbnails[4816888] = clik.newPhoto({"id":4816888,"src":"STONE_TEMPLE_DOORWAY_for_CLIKPIC_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_4816888.html","width":130,"caption":"Stone Temple Doorway - Farndale","height":53});
															thumbnails[5164978] = clik.newPhoto({"id":5164978,"src":"Alpine_Cornflower_for_Clikpic1_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_5164978.html","width":130,"caption":"Alpine Cornflower","height":196});
															thumbnails[5164992] = clik.newPhoto({"id":5164992,"src":"chalice_thorn_for_clikpic_thumb.jpg","galleries_id":133469,"server_id":1,"link":"photo_5164992.html","width":130,"caption":"Chalice Well Holy Thorn, Winter Solstice","height":94});
															thumbnails[5165138] = clik.newPhoto({"id":5165138,"src":"magnificent_rowanfor_clikpic_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_5165138.html","width":130,"caption":"Magnificent Rowan","height":87});
															thumbnails[5231900] = clik.newPhoto({"id":5231900,"src":"as_above_so_below_for_CLIKPIC_thumb.jpg","galleries_id":147029,"server_id":1,"link":"photo_5231900.html","width":130,"caption":"as above so below","height":196});
															thumbnails[5231901] = clik.newPhoto({"id":5231901,"src":"candle_glow_for_clikpic_thumb.jpg","galleries_id":130467,"server_id":1,"link":"photo_5231901.html","width":130,"caption":"candle glow","height":195});
															thumbnails[5231902] = clik.newPhoto({"id":5231902,"src":"holly_SPIRIT__for_clikpic_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_5231902.html","width":130,"caption":"holly spirit","height":195});
															thumbnails[5231903] = clik.newPhoto({"id":5231903,"src":"INTO_EARTH_for_clkpic_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_5231903.html","width":130,"caption":"Into Earth","height":97});
															thumbnails[5231904] = clik.newPhoto({"id":5231904,"src":"REICHENAU_FLOWERS_for_clikpic_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_5231904.html","width":130,"caption":"Reichenau Flowers","height":174});
															thumbnails[5332903] = clik.newPhoto({"id":5332903,"src":"field_bindweed_convolvulis_avensis_for_clikpik_thumb.jpg","galleries_id":139325,"server_id":1,"link":"photo_5332903.html","width":130,"caption":"field bindweed (convolvulis avensis)","height":86});
															thumbnails[6961282] = clik.newPhoto({"id":6961282,"src":"Forest_Portal_-_Maria_Silmon_thumb.jpg","galleries_id":377330,"server_id":1,"link":"photo_6961282.html","width":130,"caption":"Please enquire as to price & availability if choosing a framed print : )<br>\r\n<br>\r\nForest Portal","height":130});
															thumbnails[6961289] = clik.newPhoto({"id":6961289,"src":"Hunters_Moon_in_Night_Garden22_Maria_Silmon_thumb.jpg","galleries_id":377330,"server_id":1,"link":"photo_6961289.html","width":130,"caption":"Please enquire as to price & availability if choosing a framed print : )<br>\r\n<br>\r\nHunter's Moon Over the Night Garden","height":108});
															thumbnails[6961293] = clik.newPhoto({"id":6961293,"src":"Night_Garden_-_Maria_Silmon_thumb.jpg","galleries_id":377330,"server_id":1,"link":"photo_6961293.html","width":130,"caption":"Please enquire as to price & availability if choosing a framed print : )<br>\r\n<br>\r\nNight Garden","height":130});
															thumbnails[7451549] = clik.newPhoto({"id":7451549,"src":"Looking_for_signs_of_spring_to_go_thumb.jpg","galleries_id":403969,"server_id":1,"link":"photo_7451549.html","width":130,"caption":"'Looking For Signs of Spring'","height":188});
															thumbnails[7451550] = clik.newPhoto({"id":7451550,"src":"Swing_to_go_thumb.jpg","galleries_id":403969,"server_id":1,"link":"photo_7451550.html","width":130,"caption":"'Swing'","height":166});
															thumbnails[7451551] = clik.newPhoto({"id":7451551,"src":"Then_Fly_to_go_thumb.jpg","galleries_id":403969,"server_id":1,"link":"photo_7451551.html","width":130,"caption":";Then Fly'","height":225});
															thumbnails[7451553] = clik.newPhoto({"id":7451553,"src":"bird_ball_to_go_thumb.jpg","galleries_id":403969,"server_id":1,"link":"photo_7451553.html","width":130,"caption":"'Bird Ball'","height":89});
															thumbnails[7451556] = clik.newPhoto({"id":7451556,"src":"many_birds_gather_to_go_thumb.jpg","galleries_id":403969,"server_id":1,"link":"photo_7451556.html","width":130,"caption":"'Many Birds Gather'","height":86});
															thumbnails[2231052] = clik.newPhoto({"id":2231052,"src":"new single leaf against sun contrast copy_thumb.jpg","galleries_id":236357,"server_id":1,"link":"photo_2231052.html","width":130,"caption":"dalby beech leaves","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[403969] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"gallery_403969.html","maxRecords":0.0,"photoIDs":[7451549.0,7451550.0,7451551.0,7451553.0,7451556.0],"skipIndex":0,"section_code":"gallery","featured_images":"7451556,7451553,7451551,7451550,7451549","id":403969,"singleSection":false});				  						galleries[377330] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fairy-tale Landscapes","link":"gallery_377330.html","maxRecords":0.0,"photoIDs":[6961282.0,6961289.0,6961293.0],"skipIndex":0,"section_code":"gallery","featured_images":"6961293,6961289,6961282","id":377330,"singleSection":false});				  						galleries[236341] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TREE LINES","link":"gallery_236341.html","maxRecords":0.0,"photoIDs":[2087606.0,2231281.0,2232361.0,3891723.0,3891729.0,3891731.0,3891735.0,3891738.0,3891744.0],"skipIndex":0,"section_code":"gallery","featured_images":"3891744,3891738,3891735,3891731,3891729,3891723,2232361,2231281,2087606","id":236341,"singleSection":false});				  						galleries[147029] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stones & Earth Temples","link":"gallery_147029.html","maxRecords":0.0,"photoIDs":[6006702.0,6006705.0,6006708.0,6007016.0,6007125.0,6007179.0,6007258.0,6007262.0,6007264.0,6007266.0,6007267.0,6007269.0,6007272.0,6007284.0,2087650.0,2232163.0,2232308.0,2233289.0,4746263.0,4816888.0,5165138.0,5231900.0],"skipIndex":0,"section_code":"gallery","featured_images":"6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125","id":147029,"singleSection":false});				  						galleries[139325] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_139325.html","maxRecords":0.0,"photoIDs":[2087676.0,2087681.0,2087687.0,2087700.0,2087703.0,2087705.0,2087711.0,2231329.0,2231338.0,2232907.0,2233242.0,2346389.0,2346408.0,2516242.0,2665578.0,2665599.0,5164978.0,5231904.0,5332903.0],"skipIndex":0,"section_code":"gallery","featured_images":"5332903,5231904,5164978,2665599,2665578,2516242,2346408,2346389,2233242,2232907","id":139325,"singleSection":false});				  						galleries[133469] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trees","link":"gallery_133469.html","maxRecords":0.0,"photoIDs":[2087354.0,2087448.0,2087597.0,2087670.0,2087719.0,2346410.0,2516247.0,2516248.0,3891741.0,5164992.0],"skipIndex":0,"section_code":"gallery","featured_images":"5164992,3891741,2516248,2516247,2346410,2087719,2087670,2087597,2087448,2087354","id":133469,"singleSection":false});				  						galleries[236357] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LEAVES","link":"gallery_236357.html","maxRecords":0.0,"photoIDs":[2087461.0,2231057.0,2231289.0,2231290.0,2231353.0,2232896.0,2232904.0,2232917.0,5231902.0,5231903.0,2231052.0],"skipIndex":0,"section_code":"gallery","featured_images":"5231903,5231902,2232917,2232904,2232896,2231353,2231290,2231289,2231057,2231052","id":236357,"singleSection":false});				  						galleries[147028] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"starseed divination","link":"gallery_147028.html","maxRecords":0.0,"photoIDs":[2231147.0,2231149.0,2231150.0,2231151.0,2231211.0,2231214.0,2233248.0,2542284.0,2556072.0],"skipIndex":0,"section_code":"gallery","featured_images":"2556072,2542284,2233248,2231214,2231211,2231151,2231150,2231149,2231147","id":147028,"singleSection":false});				  						galleries[130467] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Elements","link":"gallery_130467.html","maxRecords":0.0,"photoIDs":[2087168.0,2087255.0,2087272.0,2087343.0,5231901.0],"skipIndex":0,"section_code":"gallery","featured_images":"5231901,2087343,2087272,2087255,2087168","id":130467,"singleSection":false});				  						galleries[152913] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Painting","link":"gallery_152913.html","maxRecords":0.0,"photoIDs":[2516240.0],"skipIndex":0,"section_code":"gallery","featured_images":2516240.0,"id":152913,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7451556,7451553,7451551,7451550,7451549,6961293,6961289,6961282,6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125,6007016,6006708,6006705,6006702,3891741';
imageSets[3] = '7451556,7451553,7451551,7451550,7451549,6961293,6961289,6961282,6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125,6007016,6006708,6006705,6006702,5332903,5231904,5231903,5231902,5231901,5231900,5165138,5164992,5164978,4816888,4746263,3891744,3891741,3891738,3891735,3891731,3891729,3891723,2665599,2665578,2556072,2542284,2516248,2516247,2516242,2516240,2346410,2346408';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mariasilmon/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mariasilmon/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 = 'Maria Silmon: ' + 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.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> &pound;' + (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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MARIASILMON">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="view cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

