window.thumbnails = {};
															thumbnails[3742392] = clik.newPhoto({"id":3742392,"src":"heldforatime_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Held for a time, mixed media on canvas 40x40 sold.","height":125});
															thumbnails[4631156] = clik.newPhoto({"id":4631156,"src":"seethelight30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"See the light, mixed media on canvas 30x23cm","height":97});
															thumbnails[4631167] = clik.newPhoto({"id":4631167,"src":"stillwithme30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Still with me, mixed media on canvas 30x23cm","height":96});
															thumbnails[5732546] = clik.newPhoto({"id":5732546,"src":"1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"I can see it, mixed media on canvas 30x23cm","height":96});
															thumbnails[5732561] = clik.newPhoto({"id":5732561,"src":"4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Just ahead, mixed media on canvas 30x23cm","height":96});
															thumbnails[5787700] = clik.newPhoto({"id":5787700,"src":"4_F305DAF7-24E8-5EC4-4F6D7A18A9C8EE98_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Grey light meets green air <br>\r\nMixed media on canvas 50x40cm","height":163});
															thumbnails[5787722] = clik.newPhoto({"id":5787722,"src":"6_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Light upon light <br>\r\nMixed media on canvas 50x40cm","height":160});
															thumbnails[6493415] = clik.newPhoto({"id":6493415,"src":"Down2earthagain30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Down to earth again, mixed media on canvas 30x30","height":130});
															thumbnails[6493622] = clik.newPhoto({"id":6493622,"src":"LightEverywhere30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Light everywhere, mixed media on canvas 30x30 sold.","height":130});
															thumbnails[6493626] = clik.newPhoto({"id":6493626,"src":"pleasure2see50x40_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Pleasure to see, mixed media on canvas 50x40 sold.","height":104});
															thumbnails[6493627] = clik.newPhoto({"id":6493627,"src":"Silentclean30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Silent and clean, mixed media on canvas 30x30","height":130});
															thumbnails[6493629] = clik.newPhoto({"id":6493629,"src":"Theveryend50x40_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The very end, mixed media on canvas 50x40 sold.","height":103});
															thumbnails[6493632] = clik.newPhoto({"id":6493632,"src":"thewaywerecall30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The way we recall,<br>\r\nmixed media on canvas 30x23","height":96});
															thumbnails[6493633] = clik.newPhoto({"id":6493633,"src":"withmuchenthusiasm30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"With much enthusiasm,<br>\r\nmixed media on canvas 30x23","height":98});
															thumbnails[6493636] = clik.newPhoto({"id":6493636,"src":"Asamatteroffactweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"As a matter,<br>\r\nmixed media on canvas 30x30","height":129});
															thumbnails[6493637] = clik.newPhoto({"id":6493637,"src":"Atalltimesweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"At all times,<br>\r\nmixed media on canvas 30x30","height":131});
															thumbnails[6493640] = clik.newPhoto({"id":6493640,"src":"Heresofarweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Here, so far<br>\r\nmixed media on canvas 30x30","height":129});
															thumbnails[6493641] = clik.newPhoto({"id":6493641,"src":"itbecomesevidentweb50x40_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"It becomes evident,<br>\r\nmixed media on canvas 50x40","height":104});
															thumbnails[6493654] = clik.newPhoto({"id":6493654,"src":"keepsitfrombecomingweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Keeps it from becoming,<br>\r\nmixed media on canvas 30x30","height":129});
															thumbnails[6493656] = clik.newPhoto({"id":6493656,"src":"Mustexploreitweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Must explore it,<br>\r\nmixed media on canvas 30x30","height":130});
															thumbnails[6493657] = clik.newPhoto({"id":6493657,"src":"saidalreadyweb30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Said already,<br>\r\nmixed media on canvas 30x30","height":132});
															thumbnails[6493658] = clik.newPhoto({"id":6493658,"src":"simmerinsolitudeweb50x40_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Simmer in solitude,<br>\r\nmixed media on canvas 50x40","height":104});
															thumbnails[6495708] = clik.newPhoto({"id":6495708,"src":"thedistantforestweb30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The distant forest, <br>\r\nmixed media on canvas <br>\r\n30x23cm","height":97});
															thumbnails[7261564] = clik.newPhoto({"id":7261564,"src":"besidethetree23x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Beside the tree 23x30cm oil on canvas","height":96});
															thumbnails[7261568] = clik.newPhoto({"id":7261568,"src":"bluefence50x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Blue fence 50x50cm oil on canvas","height":130});
															thumbnails[7261570] = clik.newPhoto({"id":7261570,"src":"blueshed30x23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Blue shed 23x30cm oil on canvas","height":97});
															thumbnails[7261573] = clik.newPhoto({"id":7261573,"src":"brownhouse_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Brown house 23x30cm oil on canvas","height":177});
															thumbnails[7261575] = clik.newPhoto({"id":7261575,"src":"bythehouse50x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"By the house 50x50cm oil on canvas","height":134});
															thumbnails[7261578] = clik.newPhoto({"id":7261578,"src":"greentree50x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Green tree 50x50cm oil on canvas","height":133});
															thumbnails[7261580] = clik.newPhoto({"id":7261580,"src":"intherow50x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"In the row 50x50cm oil on canvas","height":128});
															thumbnails[7261583] = clik.newPhoto({"id":7261583,"src":"underthebridge23x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Under the bridge 23x30cm oil on canvas","height":169});
															thumbnails[7956020] = clik.newPhoto({"id":7956020,"src":"new_work_1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"In the middle 23x30 cm oil on canvas.","height":97});
															thumbnails[8162254] = clik.newPhoto({"id":8162254,"src":"GreenTreeBuleSea40x49Mixed_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Green Tree Blue Sea 40x49 Mixed Media on Board","height":106});
															thumbnails[8641213] = clik.newPhoto({"id":8641213,"src":"webmoretea40x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"More tea, 40x50cm mixed media on canvas","height":163});
															thumbnails[8641255] = clik.newPhoto({"id":8641255,"src":"webwillshecome40x50_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Will she come, 40x40cm mixed media on canvas","height":103});
															thumbnails[6493621] = clik.newPhoto({"id":6493621,"src":"Evenadreamerdreams30x30_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Even a dreamer dreams, mixed media on canvas 30x30 sold.","height":130});
															thumbnails[425879] = clik.newPhoto({"id":425879,"src":"New1_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_425879.html","width":130,"caption":"Uncertainty, mixed media on canvas 50X40cm sold.","height":163});
															thumbnails[425880] = clik.newPhoto({"id":425880,"src":"New3_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_425880.html","width":130,"caption":"Uncertainty NO.3, mixed media on canvas 50X40cm sold.","height":164});
															thumbnails[425881] = clik.newPhoto({"id":425881,"src":"New4_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_425881.html","width":130,"caption":"Uncertainty NO.4, mixed media on canvas 50X40cm sold.","height":168});
															thumbnails[425892] = clik.newPhoto({"id":425892,"src":"New9_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_425892.html","width":130,"caption":"All up hill, mixed media on canvas 40x40cm sold.","height":131});
															thumbnails[425893] = clik.newPhoto({"id":425893,"src":"New10_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_425893.html","width":130,"caption":"Looking to you mixed media on canvas 40x40cm sold.","height":133});
															thumbnails[432028] = clik.newPhoto({"id":432028,"src":"Pic1_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_432028.html","width":130,"caption":"Land No. 6, 50x70cm mixed media on canvas sold.","height":185});
															thumbnails[432031] = clik.newPhoto({"id":432031,"src":"Pic2_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_432031.html","width":130,"caption":"Land No.7, 50x70cm mixed media on canvas sold.","height":183});
															thumbnails[432033] = clik.newPhoto({"id":432033,"src":"Pic3_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_432033.html","width":130,"caption":"Land No. 8, 50x70cm mixed media on canvas sold.","height":183});
															thumbnails[512725] = clik.newPhoto({"id":512725,"src":"Mist1_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_512725.html","width":130,"caption":"Mist, 80x60cm mixed media on canvas sold.","height":171});
															thumbnails[512738] = clik.newPhoto({"id":512738,"src":"Mist2_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_512738.html","width":130,"caption":"Mist No.1, 60x50cm mixed media on canvas sold.","height":159});
															thumbnails[512742] = clik.newPhoto({"id":512742,"src":"Mist3_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_512742.html","width":130,"caption":"Mist No.2, 60x50cm mixed media on canvas sold.","height":158});
															thumbnails[885499] = clik.newPhoto({"id":885499,"src":"New11_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_885499.html","width":130,"caption":"Long way to go, mixed media on canvas 40x40cm sold.","height":133});
															thumbnails[1021083] = clik.newPhoto({"id":1021083,"src":"One More Step_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_1021083.html","width":130,"caption":"One More Step  mixed media on canvas 61x76cm sold. RBSA Prise Exhibition \"HIghly commended\" ","height":165});
															thumbnails[1021091] = clik.newPhoto({"id":1021091,"src":"The First Step_thumb.jpg","galleries_id":324801,"server_id":15,"link":"photo_1021091.html","width":130,"caption":"The First Step <br>\r\nmixed media on canvas 61x76cm sold.","height":164});
															thumbnails[3670945] = clik.newPhoto({"id":3670945,"src":"AfterPassing09_CC7909CA-24E8-5EC4-4FDF5EA988C476F6_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3670945.html","width":130,"caption":"After passing. mixed media on canvas 30x30 sold.","height":130});
															thumbnails[3670952] = clik.newPhoto({"id":3670952,"src":"FollowHeadlandAroundTheLeft_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3670952.html","width":130,"caption":"Walk up a field to reach a stile, mixed media on canvas 30x30 sold.","height":130});
															thumbnails[3670953] = clik.newPhoto({"id":3670953,"src":"FollowTheTowpath09_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3670953.html","width":130,"caption":"Follow the tow path, mixed media on canvas 30x30 sold.","height":128});
															thumbnails[3670955] = clik.newPhoto({"id":3670955,"src":"TheLightwoods09_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3670955.html","width":130,"caption":"The light woods,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","height":130});
															thumbnails[3742386] = clik.newPhoto({"id":3742386,"src":"hiddeninthetopleftcorner_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3742386.html","width":130,"caption":"Short route goes left,<br>\r\nmixed media on canvas 30x30 sold.","height":130});
															thumbnails[3742395] = clik.newPhoto({"id":3742395,"src":"visibleuntilyougetnearer_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3742395.html","width":130,"caption":"Visible until you get nearer, mixed media on canvas 40x40 sold.","height":131});
															thumbnails[3742415] = clik.newPhoto({"id":3742415,"src":"walkaheadtoalane_thumb.jpg","galleries_id":324802,"server_id":15,"link":"photo_3742415.html","width":130,"caption":"Hidden in the top left corner,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","height":130});
															thumbnails[4631073] = clik.newPhoto({"id":4631073,"src":"Heath2_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4631073.html","width":130,"caption":"Black Heath mixed media on canvas 30x30cm sold","height":130});
															thumbnails[4631161] = clik.newPhoto({"id":4631161,"src":"LowerHeath40x40_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4631161.html","width":130,"caption":"Lower Heath mixed media on canvas 40x40cm","height":123});
															thumbnails[4631173] = clik.newPhoto({"id":4631173,"src":"Slepe30x23_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4631173.html","width":130,"caption":"Slepe mixed media on canvas 30x23cm","height":99});
															thumbnails[4631187] = clik.newPhoto({"id":4631187,"src":"Heath_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4631187.html","width":130,"caption":"South Heath, mixed media on canvas 30x30cm sold.","height":130});
															thumbnails[4631188] = clik.newPhoto({"id":4631188,"src":"stockswood30x23_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4631188.html","width":130,"caption":"Stocks Wood, mixed media on canvas 30x23cm sold.","height":99});
															thumbnails[4873603] = clik.newPhoto({"id":4873603,"src":"28x28Concealed_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4873603.html","width":130,"caption":"Concealed, Acrylic on board framed 43x43cm","height":127});
															thumbnails[4873604] = clik.newPhoto({"id":4873604,"src":"28x28ConfusionHill_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4873604.html","width":130,"caption":"Confusion Hill, acrylic on board, framed 43x43cm Sold","height":129});
															thumbnails[4873606] = clik.newPhoto({"id":4873606,"src":"28x28LowestPoint_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4873606.html","width":130,"caption":"Lowest Point, acrylic on board, framed 43x43cm","height":128});
															thumbnails[4873608] = clik.newPhoto({"id":4873608,"src":"28x28Relevance_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4873608.html","width":130,"caption":"Relevance, acrylic on board, framed 43x43cm","height":124});
															thumbnails[4873615] = clik.newPhoto({"id":4873615,"src":"OnBoard_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_4873615.html","width":130,"caption":"Testimony, acrylic on board, framed 43x43cm","height":130});
															thumbnails[5732559] = clik.newPhoto({"id":5732559,"src":"3_thumb.jpg","galleries_id":267400,"server_id":15,"link":"photo_5732559.html","width":130,"caption":"A long way, mixed media on canvas 30x23cm","height":96});
															thumbnails[5787683] = clik.newPhoto({"id":5787683,"src":"1_F3037425-24E8-5EC4-4F5EAFC25F117913_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787683.html","width":130,"caption":"No.1 Ever moving Mixed media on canvas 50x40cm","height":162});
															thumbnails[5787687] = clik.newPhoto({"id":5787687,"src":"2_F3047B75-24E8-5EC4-4F169D5CC008EE7A_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787687.html","width":130,"caption":"Grey light meets green air,<br>\r\nMixed media on canvas 50x40cm","height":161});
															thumbnails[5787698] = clik.newPhoto({"id":5787698,"src":"3_F3052041-24E8-5EC4-4FB5837907A6C6D9_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787698.html","width":130,"caption":"No.3 Hope to find Mixed media on canvas 50x40cm","height":162});
															thumbnails[5787720] = clik.newPhoto({"id":5787720,"src":"5_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787720.html","width":130,"caption":"No.5 Follow the flight Mixed media on canvas 50x40cm","height":159});
															thumbnails[5787726] = clik.newPhoto({"id":5787726,"src":"7_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787726.html","width":130,"caption":"No.7 Between the soft moor Mixed media on canvas 50x40cm","height":163});
															thumbnails[5787729] = clik.newPhoto({"id":5787729,"src":"8_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787729.html","width":130,"caption":"No.8 Still hills Mixed media on canvas 50x40cm","height":160});
															thumbnails[5787738] = clik.newPhoto({"id":5787738,"src":"9_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787738.html","width":130,"caption":"No.9 Pleasure in the wind Mixed media on board 60x60cm","height":129});
															thumbnails[5787762] = clik.newPhoto({"id":5787762,"src":"10_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787762.html","width":130,"caption":"No.10 Black wing, brown wing Mixed media on board 60x60cm sold.","height":130});
															thumbnails[5787765] = clik.newPhoto({"id":5787765,"src":"11_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_5787765.html","width":130,"caption":"No.11 The long pass Mixed media on board 60x60cm sold.","height":131});
															thumbnails[6535829] = clik.newPhoto({"id":6535829,"src":"GivesWay66x50cmweb_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_6535829.html","width":130,"caption":"Gradually gives way, mixed media on canvas 66x50cm","height":84});
															thumbnails[6535831] = clik.newPhoto({"id":6535831,"src":"LowTide66x50cmweb_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_6535831.html","width":130,"caption":"Low tide, mixed media on canvas 66x50cm sold","height":84});
															thumbnails[6903562] = clik.newPhoto({"id":6903562,"src":"120x90HeldBetween_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_6903562.html","width":130,"caption":"Held Between  120x90cm mixed media on canvas","height":95});
															thumbnails[6903614] = clik.newPhoto({"id":6903614,"src":"120x90GentleRinging1_thumb.jpg","galleries_id":324793,"server_id":15,"link":"photo_6903614.html","width":130,"caption":"Gentle Ringing 120x90cm mixed media on canvas","height":96});
															thumbnails[8640701] = clik.newPhoto({"id":8640701,"src":"actofprocess40x40_thumb.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640701.html","width":130,"caption":"Act of process, 40x40cm mixed media on canvas","height":124});
															thumbnails[8640703] = clik.newPhoto({"id":8640703,"src":"becomingdifferent40x40_thumb.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640703.html","width":130,"caption":"Becoming different, 40x40cm mixed media on canvas","height":132});
															thumbnails[8640706] = clik.newPhoto({"id":8640706,"src":"calmnessofmind40x40_thumb.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640706.html","width":130,"caption":"Calmness of mind, 40x40cm mixed media on canvas","height":133});
															thumbnails[8640709] = clik.newPhoto({"id":8640709,"src":"comfortindistress40x40_thumb.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640709.html","width":130,"caption":"Comfort in distress, 40x40cm mixed media on canvas","height":132});
															thumbnails[8640710] = clik.newPhoto({"id":8640710,"src":"fearfuloflosing40x40_thumb_CB9B952B-24E8-5EC4-4F50EAD9D8E731C5.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640710.html","width":130,"caption":"Fearful of losing, 40x40cm mixed media on canvas","height":132});
															thumbnails[8640750] = clik.newPhoto({"id":8640750,"src":"pullingaway40x40_thumb_CB98EC45-24E8-5EC4-4FB239BE0338CAD4.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640750.html","width":130,"caption":"Pulling away, 40x40cm mixed media on canvas","height":133});
															thumbnails[8640831] = clik.newPhoto({"id":8640831,"src":"strechingacross40x40_thumb_CB96527E-24E8-5EC4-4F96A85A9C2E7506.jpg","galleries_id":456408,"server_id":15,"link":"photo_8640831.html","width":130,"caption":"Stretching across, 40x40cm mixed media on canvas","height":132});
															thumbnails[8641040] = clik.newPhoto({"id":8641040,"src":"swaytoandfro40x40_thumb.jpg","galleries_id":456408,"server_id":15,"link":"photo_8641040.html","width":130,"caption":"Sway to and fro, 40x40cm mixed media on canvas","height":125});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[324801] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Earth and wind","link":"gallery_324801.html","maxRecords":0.0,"photoIDs":[425879.0,425880.0,425881.0,425892.0,425893.0,432028.0,432031.0,432033.0,512725.0,512738.0,512742.0,885499.0,1021083.0,1021091.0],"skipIndex":0,"section_code":"gallery","featured_images":"1021091,1021083,885499,512742,512738,512725,432033,432031,432028,425893","id":324801,"singleSection":false});				  						galleries[324802] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Land observerd","link":"gallery_324802.html","maxRecords":0.0,"photoIDs":[3670945.0,3670952.0,3670953.0,3670955.0,3742386.0,3742395.0,3742415.0],"skipIndex":0,"section_code":"gallery","featured_images":"3742415,3742395,3742386,3670955,3670953,3670952,3670945","id":324802,"singleSection":false});				  						galleries[456408] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"North","link":"gallery_456408.html","maxRecords":0.0,"photoIDs":[8640701.0,8640703.0,8640706.0,8640709.0,8640710.0,8640750.0,8640831.0,8641040.0],"skipIndex":0,"section_code":"gallery","featured_images":"8641040,8640831,8640750,8640710,8640709,8640706,8640703,8640701","id":456408,"singleSection":false});				  						galleries[324793] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Open spaces","link":"gallery_324793.html","maxRecords":0.0,"photoIDs":[5787683.0,5787687.0,5787698.0,5787720.0,5787726.0,5787729.0,5787738.0,5787762.0,5787765.0,6535829.0,6535831.0,6903562.0,6903614.0],"skipIndex":0,"section_code":"gallery","featured_images":"6903614,6903562,6535831,6535829,5787765,5787762,5787738,5787729,5787726,5787720","id":324793,"singleSection":false});				  						galleries[267400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Visual diarys","link":"gallery_267400.html","maxRecords":0.0,"photoIDs":[4631073.0,4631161.0,4631173.0,4631187.0,4631188.0,4873603.0,4873604.0,4873606.0,4873608.0,4873615.0,5732559.0],"skipIndex":0,"section_code":"gallery","featured_images":"5732559,4873615,4873608,4873606,4873604,4873603,4631188,4631187,4631173,4631161","id":267400,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4873615,4631187,4631073,3670952,3670945';
imageSets[3] = '8641255,8641213,8641040,8640831,8640750,8640710,8640709,8640706,8640703,8640701,8162254,7956020,7261583,7261580,7261578,7261575,7261573,7261570,7261568,7261564,6903614,6903562,6535831,6535829,6495708,6493658,6493657,6493656,6493654,6493641,6493640,6493637,6493636,6493633,6493632,6493629,6493627,6493626,6493622,6493621,6493415,5787765,5787762,5787738,5787729,5787726,5787722,5787720,5787700,5787698';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jmsteele/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jmsteele/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 = ': ' + 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> &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="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="steel123@btconnect.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					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="steel123@btconnect.com">';
				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;
	}
}

			

