window.thumbnails = {};
															thumbnails[8445118] = clik.newPhoto({"id":8445118,"src":"DSCF5011_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445118.html","width":130,"caption":"Ramsey Promenade","height":173});
															thumbnails[8445120] = clik.newPhoto({"id":8445120,"src":"DSCF5014_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445120.html","width":130,"caption":"Peel Bay  SOLD","height":173});
															thumbnails[8445121] = clik.newPhoto({"id":8445121,"src":"DSCF5013_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445121.html","width":130,"caption":"Shellag Brews","height":173});
															thumbnails[8445123] = clik.newPhoto({"id":8445123,"src":"DSCF5010_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445123.html","width":130,"caption":"Ramsey Bay","height":173});
															thumbnails[8445124] = clik.newPhoto({"id":8445124,"src":"DSCF5012_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445124.html","width":130,"caption":"Dhoon Bay","height":173});
															thumbnails[8445312] = clik.newPhoto({"id":8445312,"src":"DSCF5035_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445312.html","width":130,"caption":"Seafossil I","height":130});
															thumbnails[8445313] = clik.newPhoto({"id":8445313,"src":"DSCF5036_thumb.JPG","galleries_id":447052,"server_id":19,"link":"photo_8445313.html","width":130,"caption":"Seafossil II","height":130});
															thumbnails[599896] = clik.newPhoto({"id":599896,"src":"beauty is harsh I_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599896.html","width":130,"caption":"beauty is harsh I<br>\r\nSOLD","height":161});
															thumbnails[599899] = clik.newPhoto({"id":599899,"src":"beauty is harsh II_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599899.html","width":130,"caption":"beauty is harsh II<br>\r\nSOLD","height":160});
															thumbnails[599900] = clik.newPhoto({"id":599900,"src":"beauty is harsh III_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599900.html","width":130,"caption":"beauty is harsh III<br>\r\nSOLD","height":163});
															thumbnails[599908] = clik.newPhoto({"id":599908,"src":"between here and there_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599908.html","width":130,"caption":"between here and there<br>\r\nSOLD","height":130});
															thumbnails[599912] = clik.newPhoto({"id":599912,"src":"blue point I_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599912.html","width":130,"caption":"blue point I<br>\r\nSOLD","height":99});
															thumbnails[599914] = clik.newPhoto({"id":599914,"src":"blue point II_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599914.html","width":130,"caption":"blue point II<br>\r\nSOLD","height":91});
															thumbnails[599923] = clik.newPhoto({"id":599923,"src":"five walking women_thumb.jpg","galleries_id":44708,"server_id":15,"link":"photo_599923.html","width":130,"caption":"five walking women","height":98});
															thumbnails[599925] = clik.newPhoto({"id":599925,"src":"heavy yolk I, II, III_thumb.jpg","galleries_id":44708,"server_id":15,"link":"photo_599925.html","width":130,"caption":"heavy yolk I, II, III","height":102});
															thumbnails[599932] = clik.newPhoto({"id":599932,"src":"poised I_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599932.html","width":130,"caption":"poised I<br>\r\n(sold)","height":176});
															thumbnails[599934] = clik.newPhoto({"id":599934,"src":"poised II_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599934.html","width":130,"caption":"poised II<br>\r\n(sold)","height":185});
															thumbnails[599937] = clik.newPhoto({"id":599937,"src":"poised III_thumb.jpg","galleries_id":44707,"server_id":15,"link":"photo_599937.html","width":130,"caption":"poised III","height":180});
															thumbnails[599945] = clik.newPhoto({"id":599945,"src":"sea shell shore II_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599945.html","width":130,"caption":"sea shell shore II<br>\r\nSOLD","height":99});
															thumbnails[599948] = clik.newPhoto({"id":599948,"src":"shifting shoreline I_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599948.html","width":130,"caption":"shifting shoreline I","height":131});
															thumbnails[599950] = clik.newPhoto({"id":599950,"src":"shifting shoreline II_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599950.html","width":130,"caption":"shifting shoreline II","height":131});
															thumbnails[599952] = clik.newPhoto({"id":599952,"src":"shifting shoreline III_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_599952.html","width":130,"caption":"shifting shoreline III","height":132});
															thumbnails[837589] = clik.newPhoto({"id":837589,"src":"DSCF1910_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_837589.html","width":130,"caption":"ADRIFT<br>\r\n(sold)","height":134});
															thumbnails[1588008] = clik.newPhoto({"id":1588008,"src":"Resize Assistant-1_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588008.html","width":130,"caption":"BURNT AIR, CALTAGIRONE","height":160});
															thumbnails[1588120] = clik.newPhoto({"id":1588120,"src":"web7_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588120.html","width":130,"caption":"CATACOMBS AT ISPICA<br>\r\n(SOLD)","height":134});
															thumbnails[1588123] = clik.newPhoto({"id":1588123,"src":"web8_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588123.html","width":130,"caption":"CROSSED WIRES, SCICLI<br>\r\n","height":167});
															thumbnails[4215998] = clik.newPhoto({"id":4215998,"src":"DSCF3730clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4215998.html","width":130,"caption":"1.ORPHEUS<br>\r\n(sold)","height":130});
															thumbnails[4216018] = clik.newPhoto({"id":4216018,"src":"DSCF3731clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216018.html","width":130,"caption":"2. GIRL","height":130});
															thumbnails[4216020] = clik.newPhoto({"id":4216020,"src":"DSCF3732clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216020.html","width":130,"caption":"3. A GOD<br>\r\n(sold)","height":130});
															thumbnails[4216024] = clik.newPhoto({"id":4216024,"src":"DSCF3733clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216024.html","width":130,"caption":"4. THE SPACES","height":130});
															thumbnails[4216025] = clik.newPhoto({"id":4216025,"src":"DSCF3734clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216025.html","width":130,"caption":"5. LEAVING","height":126});
															thumbnails[4216026] = clik.newPhoto({"id":4216026,"src":"DSCF3735clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216026.html","width":130,"caption":"6. THE DOUBLE REALM","height":130});
															thumbnails[4216090] = clik.newPhoto({"id":4216090,"src":"DSCF3736clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216090.html","width":130,"caption":"7. PRAISING","height":130});
															thumbnails[4216093] = clik.newPhoto({"id":4216093,"src":"DSCF3737clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216093.html","width":130,"caption":"8. LAMENT","height":130});
															thumbnails[4216094] = clik.newPhoto({"id":4216094,"src":"DSCF3738clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216094.html","width":130,"caption":"9. TONE","height":130});
															thumbnails[4216096] = clik.newPhoto({"id":4216096,"src":"DSCF3739clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216096.html","width":130,"caption":"10. THE SARCOPHAGI IN ROME","height":130});
															thumbnails[4216098] = clik.newPhoto({"id":4216098,"src":"DSCF3740clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216098.html","width":130,"caption":"11. HORSEMAN","height":130});
															thumbnails[4216103] = clik.newPhoto({"id":4216103,"src":"DSCF3741clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216103.html","width":130,"caption":"12. THE SPIRIT","height":130});
															thumbnails[4216105] = clik.newPhoto({"id":4216105,"src":"DSCF3742clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216105.html","width":130,"caption":"13. TASTE","height":130});
															thumbnails[4216107] = clik.newPhoto({"id":4216107,"src":"DSCF3743clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216107.html","width":130,"caption":"14. THE DEAD<br>\r\n(sold)","height":130});
															thumbnails[4216110] = clik.newPhoto({"id":4216110,"src":"DSCF3744clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216110.html","width":130,"caption":"15. ORANGE","height":130});
															thumbnails[4216115] = clik.newPhoto({"id":4216115,"src":"DSCF3745clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216115.html","width":130,"caption":"16. DOG<br>\r\n(sold)","height":130});
															thumbnails[4216242] = clik.newPhoto({"id":4216242,"src":"DSCF3746clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216242.html","width":130,"caption":"17. TREE<br>\r\n(sold)","height":130});
															thumbnails[4216243] = clik.newPhoto({"id":4216243,"src":"DSCF3747clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216243.html","width":130,"caption":"18. THE MACHINE","height":130});
															thumbnails[4216342] = clik.newPhoto({"id":4216342,"src":"DSCF3748clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216342.html","width":130,"caption":"19. CHANGE","height":130});
															thumbnails[4216423] = clik.newPhoto({"id":4216423,"src":"DSCF3749clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216423.html","width":130,"caption":"20. HORSE","height":130});
															thumbnails[4216425] = clik.newPhoto({"id":4216425,"src":"DSCF3750clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216425.html","width":130,"caption":"21. SPRING<br>\r\n(sold)","height":130});
															thumbnails[4216428] = clik.newPhoto({"id":4216428,"src":"DSCF3751clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216428.html","width":130,"caption":"22. THE RACE<br>\r\n(sold)","height":130});
															thumbnails[4216429] = clik.newPhoto({"id":4216429,"src":"DSCF3752clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216429.html","width":130,"caption":"23. FLIGHT","height":130});
															thumbnails[4216430] = clik.newPhoto({"id":4216430,"src":"DSCF3753clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216430.html","width":130,"caption":"24. THE GODS<br>\r\n(sold)","height":130});
															thumbnails[4216432] = clik.newPhoto({"id":4216432,"src":"DSCF3754clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216432.html","width":130,"caption":"25. BLOOD","height":130});
															thumbnails[4216433] = clik.newPhoto({"id":4216433,"src":"DSCF3755clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216433.html","width":130,"caption":"26. THE TRACE<br>\r\n(sold)","height":130});
															thumbnails[4216718] = clik.newPhoto({"id":4216718,"src":"DSCF3756clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216718.html","width":130,"caption":"27. BREATHE","height":130});
															thumbnails[4216748] = clik.newPhoto({"id":4216748,"src":"DSCF3757clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216748.html","width":130,"caption":"28. THE LOOK","height":130});
															thumbnails[4216751] = clik.newPhoto({"id":4216751,"src":"DSCF3758clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216751.html","width":130,"caption":"29. MIRROR","height":130});
															thumbnails[4216754] = clik.newPhoto({"id":4216754,"src":"DSCF3761clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216754.html","width":130,"caption":"30. UNICORN","height":130});
															thumbnails[4216756] = clik.newPhoto({"id":4216756,"src":"DSCF3762clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216756.html","width":130,"caption":"31. ANEMONE<br>\r\n(sold)","height":130});
															thumbnails[4216760] = clik.newPhoto({"id":4216760,"src":"DSCF3763clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216760.html","width":130,"caption":"32. ROSE<br>\r\n(sold)","height":130});
															thumbnails[4216761] = clik.newPhoto({"id":4216761,"src":"DSCF3764clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216761.html","width":130,"caption":"33. CUT FLOWERS<br>\r\n(sold)","height":130});
															thumbnails[4216765] = clik.newPhoto({"id":4216765,"src":"DSCF3765clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216765.html","width":130,"caption":"34. THE BALL","height":130});
															thumbnails[4216767] = clik.newPhoto({"id":4216767,"src":"DSCF3766clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216767.html","width":130,"caption":"35. MERCY    (SOLD)","height":130});
															thumbnails[4216770] = clik.newPhoto({"id":4216770,"src":"DSCF3767clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216770.html","width":130,"caption":"36. THE REAL<br>\r\n(sold)","height":130});
															thumbnails[4216810] = clik.newPhoto({"id":4216810,"src":"DSCF3768clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216810.html","width":130,"caption":"37. THE KILL","height":130});
															thumbnails[4216812] = clik.newPhoto({"id":4216812,"src":"DSCF3769clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216812.html","width":130,"caption":"38. CHANGE   (sold)","height":130});
															thumbnails[4216816] = clik.newPhoto({"id":4216816,"src":"DSCF3770clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216816.html","width":130,"caption":"39. THE PASSING","height":130});
															thumbnails[4216822] = clik.newPhoto({"id":4216822,"src":"DSCF3771clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216822.html","width":130,"caption":"40. THE FLOWERS<br>\r\n(sold)","height":130});
															thumbnails[4216827] = clik.newPhoto({"id":4216827,"src":"DSCF3772clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216827.html","width":130,"caption":"41. THE DRINKING FOUNTAIN","height":130});
															thumbnails[4216833] = clik.newPhoto({"id":4216833,"src":"DSCF3773clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216833.html","width":130,"caption":"42. THE STREAM (sold)","height":130});
															thumbnails[4216835] = clik.newPhoto({"id":4216835,"src":"DSCF3774clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216835.html","width":130,"caption":"43. SOLACE<br>\r\n(sold)","height":130});
															thumbnails[4216837] = clik.newPhoto({"id":4216837,"src":"DSCF3775clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216837.html","width":130,"caption":"44. THE SPIN","height":130});
															thumbnails[4216844] = clik.newPhoto({"id":4216844,"src":"DSCF3776clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216844.html","width":130,"caption":"45. THE BEGGAR","height":130});
															thumbnails[4216845] = clik.newPhoto({"id":4216845,"src":"DSCF3777clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216845.html","width":130,"caption":"46. DISTANCE","height":130});
															thumbnails[4216881] = clik.newPhoto({"id":4216881,"src":"DSCF3778clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216881.html","width":130,"caption":"47. GARDENS<br>\r\n(sold)","height":130});
															thumbnails[4216886] = clik.newPhoto({"id":4216886,"src":"DSCF3779clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216886.html","width":130,"caption":"48. ABUNDANCE","height":130});
															thumbnails[4216887] = clik.newPhoto({"id":4216887,"src":"DSCF3780clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4216887.html","width":130,"caption":"49. THE HOUR<br>\r\n(sold)","height":130});
															thumbnails[4217409] = clik.newPhoto({"id":4217409,"src":"DSCF3781clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217409.html","width":130,"caption":"50. THE VENTURERS<br>\r\n(sold)","height":130});
															thumbnails[4217411] = clik.newPhoto({"id":4217411,"src":"DSCF3782clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217411.html","width":130,"caption":"51. CYCLES<br>\r\n(sold)","height":130});
															thumbnails[4217416] = clik.newPhoto({"id":4217416,"src":"DSCF3783clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217416.html","width":130,"caption":"52. THE CRY","height":130});
															thumbnails[4217417] = clik.newPhoto({"id":4217417,"src":"DSCF3784clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217417.html","width":130,"caption":"53. TIME","height":130});
															thumbnails[4217420] = clik.newPhoto({"id":4217420,"src":"DSCF3785clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217420.html","width":130,"caption":"54. DANCER  (sold)","height":130});
															thumbnails[4217421] = clik.newPhoto({"id":4217421,"src":"DSCF3786clic_thumb.jpg","galleries_id":250138,"server_id":15,"link":"photo_4217421.html","width":130,"caption":"55. BEING<br>\r\n(sold)","height":130});
															thumbnails[4223155] = clik.newPhoto({"id":4223155,"src":"DSCF2918clic_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_4223155.html","width":130,"caption":"TIME FOR LUNCH<br>\r\n(sold)","height":103});
															thumbnails[4223158] = clik.newPhoto({"id":4223158,"src":"limpetclic_thumb.jpg","galleries_id":44708,"server_id":15,"link":"photo_4223158.html","width":130,"caption":"LIMPET","height":158});
															thumbnails[4223162] = clik.newPhoto({"id":4223162,"src":"DSCFfissureclic_thumb.jpg","galleries_id":44708,"server_id":15,"link":"photo_4223162.html","width":130,"caption":"FISSURE","height":92});
															thumbnails[8316798] = clik.newPhoto({"id":8316798,"src":"DSCF4784_thumb.JPG","galleries_id":44709,"server_id":19,"link":"photo_8316798.html","width":130,"caption":"Ramsey Harbour, Ebb Tide","height":128});
															thumbnails[8445089] = clik.newPhoto({"id":8445089,"src":"DSCF47851_thumb.JPG","galleries_id":44709,"server_id":19,"link":"photo_8445089.html","width":130,"caption":"Look Out, Blue Point","height":130});
															thumbnails[8445102] = clik.newPhoto({"id":8445102,"src":"DSCF4786_thumb.JPG","galleries_id":44709,"server_id":19,"link":"photo_8445102.html","width":130,"caption":"Hideaway SOLD","height":130});
															thumbnails[8445109] = clik.newPhoto({"id":8445109,"src":"DSCF4787_thumb.JPG","galleries_id":44709,"server_id":19,"link":"photo_8445109.html","width":130,"caption":"Shellpickers, Laxey Bay   SOLD","height":131});
															thumbnails[8445117] = clik.newPhoto({"id":8445117,"src":"IMG_0066_thumb.jpg","galleries_id":44709,"server_id":19,"link":"photo_8445117.html","width":130,"caption":"","height":163});
															thumbnails[1588009] = clik.newPhoto({"id":1588009,"src":"sicily hills 1 small_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588009.html","width":130,"caption":"THREE HILLS (SICILY) I   (sold)","height":168});
															thumbnails[4638841] = clik.newPhoto({"id":4638841,"src":"DSCF4093small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4638841.html","width":130,"caption":"Jane's House, Calf of Man","height":102});
															thumbnails[1588098] = clik.newPhoto({"id":1588098,"src":"web 1_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588098.html","width":130,"caption":"THREE HILLS (SICILY) II   (sold)","height":165});
															thumbnails[1588104] = clik.newPhoto({"id":1588104,"src":"web 2_thumb.jpg","galleries_id":44709,"server_id":15,"link":"photo_1588104.html","width":130,"caption":"THREE HILLS (SICILY) III   (sold)","height":164});
															thumbnails[4638851] = clik.newPhoto({"id":4638851,"src":"DSCF4095small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4638851.html","width":130,"caption":"Meayll Circle","height":102});
															thumbnails[4638859] = clik.newPhoto({"id":4638859,"src":"DSCF4097small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4638859.html","width":130,"caption":"South Barrule","height":103});
															thumbnails[4638890] = clik.newPhoto({"id":4638890,"src":"DSCF4099small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4638890.html","width":130,"caption":"Llurgy Ruy","height":101});
															thumbnails[4639139] = clik.newPhoto({"id":4639139,"src":"DSCF4102small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4639139.html","width":130,"caption":"Corrody Keeill","height":102});
															thumbnails[4639157] = clik.newPhoto({"id":4639157,"src":"DSCF4103small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4639157.html","width":130,"caption":"Creg Bedn   SOLD","height":101});
															thumbnails[4639142] = clik.newPhoto({"id":4639142,"src":"DSCF4108small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4639142.html","width":130,"caption":"Cronk Sumark SOLD","height":102});
															thumbnails[4639144] = clik.newPhoto({"id":4639144,"src":"DSCF4106small_thumb.jpg","galleries_id":58068,"server_id":15,"link":"photo_4639144.html","width":130,"caption":"Knock y Dhooney  SOLD","height":102});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[447052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROCKSANDSEA","link":"section84641.html","maxRecords":0.0,"photoIDs":[8445118.0,8445120.0,8445121.0,8445123.0,8445124.0,8445312.0,8445313.0],"skipIndex":0,"section_code":"section84641","featured_images":"8445313,8445312,8445124,8445123,8445121,8445120,8445118","id":447052,"singleSection":true});				  						galleries[58068] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bones of Time","link":"gallery_58068.html","maxRecords":0.0,"photoIDs":[4638841.0,4638851.0,4638859.0,4638890.0,4639139.0,4639157.0,4639142.0,4639144.0],"skipIndex":0,"section_code":"gallery","featured_images":"4639157,4639144,4639142,4639139,4638890,4638859,4638851,4638841","id":58068,"singleSection":false});				  						galleries[250138] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ORPHEUS ","link":"gallery_250138.html","maxRecords":0.0,"photoIDs":[4215998.0,4216018.0,4216020.0,4216024.0,4216025.0,4216026.0,4216090.0,4216093.0,4216094.0,4216096.0,4216098.0,4216103.0,4216105.0,4216107.0,4216110.0,4216115.0,4216242.0,4216243.0,4216342.0,4216423.0,4216425.0,4216428.0,4216429.0,4216430.0,4216432.0,4216433.0,4216718.0,4216748.0,4216751.0,4216754.0,4216756.0,4216760.0,4216761.0,4216765.0,4216767.0,4216770.0,4216810.0,4216812.0,4216816.0,4216822.0,4216827.0,4216833.0,4216835.0,4216837.0,4216844.0,4216845.0,4216881.0,4216886.0,4216887.0,4217409.0,4217411.0,4217416.0,4217417.0,4217420.0,4217421.0],"skipIndex":0,"section_code":"gallery","featured_images":4215998.0,"id":250138,"singleSection":false});				  						galleries[44709] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"painting","link":"gallery_44709.html","maxRecords":0.0,"photoIDs":[599908.0,599912.0,599914.0,599945.0,599948.0,599950.0,599952.0,837589.0,1588008.0,1588120.0,1588123.0,4223155.0,8316798.0,8445089.0,8445102.0,8445109.0,8445117.0,1588009.0,1588098.0,1588104.0],"skipIndex":0,"section_code":"gallery","featured_images":"4223155,1588123,1588120,1588104,1588098,1588009,1588008,837589,599950,599908","id":44709,"singleSection":false});				  						galleries[44708] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"sculpture","link":"gallery_44708.html","maxRecords":0.0,"photoIDs":[599923.0,599925.0,4223158.0,4223162.0],"skipIndex":0,"section_code":"gallery","featured_images":4223158.0,"id":44708,"singleSection":false});				  						galleries[44707] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"work on paper","link":"gallery_44707.html","maxRecords":0.0,"photoIDs":[599896.0,599899.0,599900.0,599932.0,599934.0,599937.0],"skipIndex":0,"section_code":"gallery","featured_images":599896.0,"id":44707,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4223158,4223155,4215998,1588123,1588120,1588008,837589,599950,599937,599934,599932,599908,599896,1588009,1588098,1588104';
imageSets[2] = '4223158,4223155,4215998,1588123,1588120,1588008,837589,599950,599908,599896,1588009,1588098,1588104';
imageSets[3] = '8445313,8445312,8445124,8445123,8445121,8445120,8445118,8445117,8445109,8445102,8445089,8316798,4639157,4639144,4639142,4639139,4638890,4638859,4638851,4638841,4223162,4223158,4223155,4217421,4217420,4217417,4217416,4217411,4217409,4216887,4216886,4216881,4216845,4216844,4216837,4216835,4216833,4216827,4216822,4216816,4216812,4216810,4216770,4216767,4216765,4216761,4216760,4216756,4216754,4216751';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/carolacolley/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/carolacolley/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section84641.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 && 'section84641' != '') {
					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 = 'Carola Colley : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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 += '<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;
	}
}

			

