window.thumbnails = {};
															thumbnails[2422513] = clik.newPhoto({"id":2422513,"src":"Peter_Knight_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Peter Knight in his art studio","height":87});
															thumbnails[355165] = clik.newPhoto({"id":355165,"src":"Plemont_Surf_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_355165.html","width":130,"caption":"Plemont Surf","height":87});
															thumbnails[361529] = clik.newPhoto({"id":361529,"src":"Elizabeth_Castle_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361529.html","width":130,"caption":"Elizabeth Castle","height":95});
															thumbnails[361538] = clik.newPhoto({"id":361538,"src":"St_Aubins_Fort_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361538.html","width":130,"caption":"St Aubin's Fort<br>\r\n<br>\r\n","height":85});
															thumbnails[361635] = clik.newPhoto({"id":361635,"src":"Seashore_Rhythms_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_361635.html","width":130,"caption":"Seashore Rhythms","height":90});
															thumbnails[361869] = clik.newPhoto({"id":361869,"src":"Flying_Fish_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_361869.html","width":130,"caption":"Flying Fish","height":79});
															thumbnails[361878] = clik.newPhoto({"id":361878,"src":"Low_Tide_St Ouen's_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361878.html","width":94,"caption":"Low Tide St Ouen's","height":130});
															thumbnails[364178] = clik.newPhoto({"id":364178,"src":"Ristorante_Grappolo_Blu_thumb.jpg","galleries_id":29982,"server_id":18,"link":"photo_364178.html","width":88,"caption":"Ristorante Grappolo Blu","height":130});
															thumbnails[3260997] = clik.newPhoto({"id":3260997,"src":"Harbour_Boats1_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3260997.html","width":130,"caption":"Harbour Boats","height":93});
															thumbnails[3573023] = clik.newPhoto({"id":3573023,"src":"Gorey_Sand_Patterns_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3573023.html","width":130,"caption":"Gorey Sand Patterns","height":91});
															thumbnails[4476266] = clik.newPhoto({"id":4476266,"src":"La_Rocque_Harbour_with_Seymour1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_4476266.html","width":130,"caption":"La Rocque Harbour with Seymour","height":91});
															thumbnails[7262584] = clik.newPhoto({"id":7262584,"src":"Archirondel-resized-for-cli_thumb.gif","galleries_id":131212,"server_id":18,"link":"photo_7262584.html","width":130,"caption":"Archirondel","height":91});
															thumbnails[7262611] = clik.newPhoto({"id":7262611,"src":"Archirondel-resized-for-cli1_thumb.gif","galleries_id":392787,"server_id":18,"link":"photo_7262611.html","width":130,"caption":"Archirondel","height":91});
															thumbnails[7262685] = clik.newPhoto({"id":7262685,"src":"LEtacq-resized-for-clikpic_thumb.gif","galleries_id":392787,"server_id":18,"link":"photo_7262685.html","width":130,"caption":"L'Etacq","height":92});
															thumbnails[7955380] = clik.newPhoto({"id":7955380,"src":"Havre_des_Pas_for_Clikpic_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_7955380.html","width":130,"caption":"Havre des Pas","height":78});
															thumbnails[7955382] = clik.newPhoto({"id":7955382,"src":"Havre_des_Pas_for_Clikpic1_thumb.jpg","galleries_id":392787,"server_id":18,"link":"photo_7955382.html","width":130,"caption":"Havre des Pas","height":78});
															thumbnails[8610087] = clik.newPhoto({"id":8610087,"src":"Corbiere_for_Clikpic_thumb.jpg","galleries_id":392787,"server_id":18,"link":"photo_8610087.html","width":130,"caption":"Corbiere","height":74});
															thumbnails[8610093] = clik.newPhoto({"id":8610093,"src":"Corbiere_for_Clikpic1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_8610093.html","width":130,"caption":"Corbiere","height":74});
															thumbnails[8918827] = clik.newPhoto({"id":8918827,"src":"St_Brelades_with_Ouaisne_Point_for_clikpic2_thumb.jpg","galleries_id":392787,"server_id":18,"link":"photo_8918827.html","width":130,"caption":"St Brelade's with Ouaisne","height":64});
															thumbnails[1953604] = clik.newPhoto({"id":1953604,"src":"Plemont_Surf_1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_1953604.html","width":130,"caption":"Plemont Surf","height":92});
															thumbnails[3414684] = clik.newPhoto({"id":3414684,"src":"The_White_House_3_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_3414684.html","width":92,"caption":"The White House 3","height":130});
															thumbnails[361558] = clik.newPhoto({"id":361558,"src":"Shaft_of_Light_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_361558.html","width":130,"caption":"Shaft of Light","height":83});
															thumbnails[361785] = clik.newPhoto({"id":361785,"src":"Low_Tide_Textures_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361785.html","width":97,"caption":"Low Tide Textures","height":130});
															thumbnails[361786] = clik.newPhoto({"id":361786,"src":"St_Helier_Marina_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361786.html","width":130,"caption":"St Helier Marina","height":87});
															thumbnails[361842] = clik.newPhoto({"id":361842,"src":"The_First_Fairway_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361842.html","width":130,"caption":"The First Fairway Royal Jersey Golf Course","height":88});
															thumbnails[364132] = clik.newPhoto({"id":364132,"src":"Noirmont_Point_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_364132.html","width":130,"caption":"Noirmont Point","height":90});
															thumbnails[364180] = clik.newPhoto({"id":364180,"src":"Montalchino3_thumb.jpg","galleries_id":29982,"server_id":18,"link":"photo_364180.html","width":91,"caption":"Montalchino","height":130});
															thumbnails[494280] = clik.newPhoto({"id":494280,"src":"Offshore_Breeze_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_494280.html","width":130,"caption":"Offshore Breeze<br>\r\n","height":90});
															thumbnails[1986010] = clik.newPhoto({"id":1986010,"src":"'Flat_Calm_Le Hocq_from_Pontac_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_1986010.html","width":130,"caption":"'Flat Calm' Le Hocq from Pontac","height":92});
															thumbnails[3261044] = clik.newPhoto({"id":3261044,"src":"Ouaisne_Surf_1_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3261044.html","width":130,"caption":"Ouaisne Surf","height":92});
															thumbnails[3992165] = clik.newPhoto({"id":3992165,"src":"Ouaisne_Headland2_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_3992165.html","width":130,"caption":"Ouaisne Headland","height":91});
															thumbnails[361848] = clik.newPhoto({"id":361848,"src":"Low_Tide_Lines_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_361848.html","width":130,"caption":"Low Tide Lines","height":88});
															thumbnails[361851] = clik.newPhoto({"id":361851,"src":"Seymour_Tower_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361851.html","width":130,"caption":"Seymour Tower","height":97});
															thumbnails[361861] = clik.newPhoto({"id":361861,"src":"Musical_Collage_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_361861.html","width":104,"caption":"Musical Collage","height":130});
															thumbnails[361862] = clik.newPhoto({"id":361862,"src":"Seashore_Cross-Section_1_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361862.html","width":85,"caption":"Seashore Cross Section 1","height":130});
															thumbnails[361870] = clik.newPhoto({"id":361870,"src":"J485_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361870.html","width":130,"caption":"J485","height":89});
															thumbnails[363942] = clik.newPhoto({"id":363942,"src":"Driftwood 1_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_363942.html","width":130,"caption":"Driftwood 1","height":87});
															thumbnails[364405] = clik.newPhoto({"id":364405,"src":"St_Angelo_in_Colle_thumb.jpg","galleries_id":29982,"server_id":18,"link":"photo_364405.html","width":91,"caption":"St Angelo in Colle","height":130});
															thumbnails[494281] = clik.newPhoto({"id":494281,"src":"Wave_Patterns_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_494281.html","width":130,"caption":"Wave Patterns<br>\r\n","height":91});
															thumbnails[959276] = clik.newPhoto({"id":959276,"src":"Falduet Dolmen resized for website_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_959276.html","width":130,"caption":"Le Dolmen de Faldouet<br>\r\n","height":92});
															thumbnails[3573082] = clik.newPhoto({"id":3573082,"src":"Gorey_Sand_Patterns1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_3573082.html","width":130,"caption":"Gorey Sand Patterns","height":91});
															thumbnails[4121486] = clik.newPhoto({"id":4121486,"src":"St_Aubins_Sands12_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_4121486.html","width":130,"caption":"St Aubin's Sands","height":91});
															thumbnails[7262686] = clik.newPhoto({"id":7262686,"src":"Corbiere-from-Petit-Port-re_thumb.gif","galleries_id":392787,"server_id":18,"link":"photo_7262686.html","width":130,"caption":"Corbiere from Petit Port","height":92});
															thumbnails[361855] = clik.newPhoto({"id":361855,"src":"Seashore_Cross_Section2_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361855.html","width":96,"caption":"Seashore Cross Section 2","height":130});
															thumbnails[361876] = clik.newPhoto({"id":361876,"src":"St_Ouen's_Fields_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361876.html","width":130,"caption":"St Ouen's Fields","height":93});
															thumbnails[363935] = clik.newPhoto({"id":363935,"src":"Glastonbury_Tor_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_363935.html","width":130,"caption":"Glastonbury Tor","height":87});
															thumbnails[364138] = clik.newPhoto({"id":364138,"src":"Winter_Surf_at_Ouaisne_Bay_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_364138.html","width":130,"caption":"Winter Surf at Ouaisne","height":90});
															thumbnails[364168] = clik.newPhoto({"id":364168,"src":"Driftwood2_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_364168.html","width":130,"caption":"Driftwood 2","height":99});
															thumbnails[364181] = clik.newPhoto({"id":364181,"src":"Venice_Canal_thumb.jpg","galleries_id":29982,"server_id":18,"link":"photo_364181.html","width":92,"caption":"Venice Canal","height":130});
															thumbnails[494282] = clik.newPhoto({"id":494282,"src":"Whirlpool_1_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_494282.html","width":130,"caption":"Whirlpool 1<br>\r\n","height":90});
															thumbnails[3561769] = clik.newPhoto({"id":3561769,"src":"2nd_Plemont_copy1_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_3561769.html","width":130,"caption":"Plemont 2","height":91});
															thumbnails[361533] = clik.newPhoto({"id":361533,"src":"Fauvic_Seashore_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361533.html","width":84,"caption":"Fauvic Seashore","height":130});
															thumbnails[361583] = clik.newPhoto({"id":361583,"src":"La_Rocco_Tower_1_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361583.html","width":130,"caption":"La Rocco Tower 1","height":90});
															thumbnails[361597] = clik.newPhoto({"id":361597,"src":"Town_Marina_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361597.html","width":96,"caption":"Town Marina","height":130});
															thumbnails[361845] = clik.newPhoto({"id":361845,"src":"Incoming_Tide_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_361845.html","width":130,"caption":"Incoming Tide","height":77});
															thumbnails[361846] = clik.newPhoto({"id":361846,"src":"Gorey_Boats_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361846.html","width":88,"caption":"Gorey Boats","height":130});
															thumbnails[364175] = clik.newPhoto({"id":364175,"src":"Hotel_Giardino_thumb.jpg","galleries_id":29982,"server_id":18,"link":"photo_364175.html","width":130,"caption":"Hotel Giardino","height":92});
															thumbnails[768782] = clik.newPhoto({"id":768782,"src":"Whirlpool_2_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_768782.html","width":130,"caption":"Whirlpool 2 ","height":91});
															thumbnails[4309029] = clik.newPhoto({"id":4309029,"src":"La_Rocque_Harbour_with_Seymour_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_4309029.html","width":130,"caption":"La Rocque Harbour with Seymour Tower","height":91});
															thumbnails[361543] = clik.newPhoto({"id":361543,"src":"La_Rocco_Tower_2_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361543.html","width":130,"caption":"La Rocco Tower 2","height":88});
															thumbnails[361630] = clik.newPhoto({"id":361630,"src":"Towards_Corbiere_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361630.html","width":96,"caption":"Towards Corbiere","height":130});
															thumbnails[361852] = clik.newPhoto({"id":361852,"src":"Rain_behind_Seymour_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361852.html","width":86,"caption":"Rain behind Seymour<br>\r\n","height":130});
															thumbnails[361854] = clik.newPhoto({"id":361854,"src":"Stormy_Sea_with_Stones_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_361854.html","width":130,"caption":"Stormy Sea with Stones","height":88});
															thumbnails[361859] = clik.newPhoto({"id":361859,"src":"Warrior_Knight_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_361859.html","width":81,"caption":"Warrior Knight","height":130});
															thumbnails[573059] = clik.newPhoto({"id":573059,"src":"chapelporth1_thumb.jpg","galleries_id":29980,"server_id":18,"link":"photo_573059.html","width":130,"caption":"Chapel Porth","height":91});
															thumbnails[2423835] = clik.newPhoto({"id":2423835,"src":"Crossfire_thumb.jpg","galleries_id":66039,"server_id":18,"link":"photo_2423835.html","width":130,"caption":"Crossfire. (On Canvas)<br>\r\n","height":89});
															thumbnails[2427002] = clik.newPhoto({"id":2427002,"src":"The_White_House_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2427002.html","width":130,"caption":"The White House St Ouen","height":92});
															thumbnails[361553] = clik.newPhoto({"id":361553,"src":"St_Ouens_Swell_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_361553.html","width":130,"caption":"St Ouen's Swell<br>\r\n","height":95});
															thumbnails[361605] = clik.newPhoto({"id":361605,"src":"Red_Rocks_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_361605.html","width":130,"caption":"Red Rocks","height":91});
															thumbnails[361612] = clik.newPhoto({"id":361612,"src":"The_Ladder_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_361612.html","width":95,"caption":"The Ladder","height":130});
															thumbnails[363945] = clik.newPhoto({"id":363945,"src":"Tree_of_Life_thumb.jpg","galleries_id":29739,"server_id":18,"link":"photo_363945.html","width":111,"caption":"Tree of Life by Peter Knight and Carolyn Ainsworth Lake","height":130});
															thumbnails[494279] = clik.newPhoto({"id":494279,"src":"Low_Tide_at_Rocco_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_494279.html","width":91,"caption":"Low Tide at Rocco","height":130});
															thumbnails[363932] = clik.newPhoto({"id":363932,"src":"The_White_House2_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_363932.html","width":130,"caption":"The White House","height":92});
															thumbnails[2427007] = clik.newPhoto({"id":2427007,"src":"Noirmont_Point_1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2427007.html","width":130,"caption":"Noirmont Point","height":91});
															thumbnails[9166184] = clik.newPhoto({"id":9166184,"src":"portelet_clikpic_1_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_9166184.html","width":130,"caption":"Portelet","height":92});
															thumbnails[1654974] = clik.newPhoto({"id":1654974,"src":"Rocco_with_Pools_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_1654974.html","width":130,"caption":"Rocco with Pools","height":92});
															thumbnails[1742974] = clik.newPhoto({"id":1742974,"src":"Sand_Pools_at_St_Ouen1_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_1742974.html","width":130,"caption":"Sand Pools at St Ouen","height":92});
															thumbnails[2427014] = clik.newPhoto({"id":2427014,"src":"Warm_Light_behind_Rocco1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2427014.html","width":130,"caption":"Warm Light behind Rocco","height":91});
															thumbnails[379620] = clik.newPhoto({"id":379620,"src":"The_Core_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_379620.html","width":91,"caption":"The Core","height":130});
															thumbnails[856977] = clik.newPhoto({"id":856977,"src":"Plemont_Rock_Pools_thumb.jpg","galleries_id":29727,"server_id":18,"link":"photo_856977.html","width":130,"caption":"Plemont Rock Pools","height":92});
															thumbnails[971353] = clik.newPhoto({"id":971353,"src":"Sea__Defenses_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_971353.html","width":130,"caption":"Sea Defences","height":85});
															thumbnails[1306165] = clik.newPhoto({"id":1306165,"src":"North_Coast_Squall_thumb.jpg","galleries_id":29751,"server_id":18,"link":"photo_1306165.html","width":130,"caption":"North Coast Squall","height":92});
															thumbnails[3612532] = clik.newPhoto({"id":3612532,"src":"Plemont_2_copy_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_3612532.html","width":130,"caption":"Plemont 2","height":91});
															thumbnails[2427076] = clik.newPhoto({"id":2427076,"src":"Sunset_behind_Corbiere1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2427076.html","width":130,"caption":"Sunset behind Corbiere","height":92});
															thumbnails[2471403] = clik.newPhoto({"id":2471403,"src":"Elizabeth_Castle_1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2471403.html","width":130,"caption":"Elizabeth Castle","height":90});
															thumbnails[857035] = clik.newPhoto({"id":857035,"src":"St_Ouens_Rock_Pool_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_857035.html","width":92,"caption":"St Ouen's Rock Pool","height":130});
															thumbnails[1126686] = clik.newPhoto({"id":1126686,"src":"Corbiere_Lighthouse_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_1126686.html","width":92,"caption":"Corbiere Lighthouse","height":130});
															thumbnails[1644850] = clik.newPhoto({"id":1644850,"src":"Le_Hocq_from_Pontac_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_1644850.html","width":130,"caption":"'Flat Calm' Le Hocq from Pontac","height":92});
															thumbnails[1126692] = clik.newPhoto({"id":1126692,"src":"Rocco_3_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_1126692.html","width":92,"caption":"Rocco 3","height":130});
															thumbnails[425582] = clik.newPhoto({"id":425582,"src":"Sunburst_thumb.jpg","galleries_id":29748,"server_id":18,"link":"photo_425582.html","width":95,"caption":"Sunburst","height":130});
															thumbnails[5097664] = clik.newPhoto({"id":5097664,"src":"Gorey_Pier_11_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_5097664.html","width":130,"caption":"Gorey Pier","height":92});
															thumbnails[1306464] = clik.newPhoto({"id":1306464,"src":"The_White_House_St Ouen_2_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_1306464.html","width":130,"caption":"The White House, St Ouen 2","height":92});
															thumbnails[5073784] = clik.newPhoto({"id":5073784,"src":"Seymour_Behind_for_website_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_5073784.html","width":130,"caption":"Seymour Behind","height":85});
															thumbnails[1743009] = clik.newPhoto({"id":1743009,"src":"Gullies_at_St_Ouen_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_1743009.html","width":130,"caption":"Gullies at St Ouen<br>\r\n","height":103});
															thumbnails[1875833] = clik.newPhoto({"id":1875833,"src":"Sunset_behind_Corbiere_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_1875833.html","width":130,"caption":"Sunset behind Corbiere ","height":94});
															thumbnails[5073752] = clik.newPhoto({"id":5073752,"src":"Gorey_Moorings_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_5073752.html","width":130,"caption":"Gorey Moorings ","height":92});
															thumbnails[1802746] = clik.newPhoto({"id":1802746,"src":"Warm_Light_behind_Rocco_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_1802746.html","width":130,"caption":"Warm Light behind Rocco Tower","height":91});
															thumbnails[3007408] = clik.newPhoto({"id":3007408,"src":"Winter_Sun_at_Seymour Landscape_Edition_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3007408.html","width":130,"caption":"Winter Sun at Seymour<br>\r\nLandscape Edition","height":87});
															thumbnails[4941249] = clik.newPhoto({"id":4941249,"src":"Icho_Blue_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_4941249.html","width":91,"caption":"Icho Blue","height":130});
															thumbnails[2938900] = clik.newPhoto({"id":2938900,"src":"Grosnez_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_2938900.html","width":130,"caption":"Grosnez","height":91});
															thumbnails[3034147] = clik.newPhoto({"id":3034147,"src":"Surf_at_Rocco_thumb.jpg","galleries_id":29813,"server_id":18,"link":"photo_3034147.html","width":91,"caption":"Surf and Sand at Rocco","height":130});
															thumbnails[5531353] = clik.newPhoto({"id":5531353,"src":"Rocco__Corbiere_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_5531353.html","width":92,"caption":"Rocco and Corbiere","height":130});
															thumbnails[8239125] = clik.newPhoto({"id":8239125,"src":"Braye_Surf_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_8239125.html","width":130,"caption":"Braye Surf","height":92});
															thumbnails[9166242] = clik.newPhoto({"id":9166242,"src":"portelet_clikpic_2_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_9166242.html","width":130,"caption":"Portelet","height":92});
															thumbnails[3612586] = clik.newPhoto({"id":3612586,"src":"Harbour_Boats_for_web_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_3612586.html","width":130,"caption":"Harbour Boats","height":93});
															thumbnails[8239174] = clik.newPhoto({"id":8239174,"src":"Braye_Surf1_thumb.jpg","galleries_id":392787,"server_id":18,"link":"photo_8239174.html","width":130,"caption":"Braye Surf","height":92});
															thumbnails[2427018] = clik.newPhoto({"id":2427018,"src":"Low_Tide_at_Rocco_1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_2427018.html","width":90,"caption":"Low Tide at Rocco","height":130});
															thumbnails[5922979] = clik.newPhoto({"id":5922979,"src":"Rocco_Collage_for_Photobox_thumb.jpg","galleries_id":66039,"server_id":18,"link":"photo_5922979.html","width":92,"caption":"Rocco (Collage)","height":130});
															thumbnails[5922975] = clik.newPhoto({"id":5922975,"src":"Elizabeth_Castle_and_Noirmont_for_Photobox_thumb.jpg","galleries_id":208687,"server_id":18,"link":"photo_5922975.html","width":130,"caption":"Elizabeth Castle and Noirmont","height":91});
															thumbnails[5922989] = clik.newPhoto({"id":5922989,"src":"Elizabeth_Castle_and_Noirmont_for_Photobox1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_5922989.html","width":130,"caption":"Elizabeth Castle and Noirmont","height":91});
															thumbnails[6766208] = clik.newPhoto({"id":6766208,"src":"Reflections_at_Rocco_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_6766208.html","width":130,"caption":"Reflections at Rocco","height":92});
															thumbnails[6766209] = clik.newPhoto({"id":6766209,"src":"Reflections_at_Rocco1_thumb.jpg","galleries_id":131212,"server_id":18,"link":"photo_6766209.html","width":130,"caption":"Reflections at Rocco","height":92});
															thumbnails[3154003] = clik.newPhoto({"id":3154003,"src":"St Brelade for Website1_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3154003.html","width":130,"caption":"St Brelade's Bay","height":92});
															thumbnails[3007410] = clik.newPhoto({"id":3007410,"src":"Winter_Sun_at_Seymour_Portrait_Edition_thumb.jpg","galleries_id":38509,"server_id":18,"link":"photo_3007410.html","width":87,"caption":"Winter Sun at Seymour<br>\r\n(Portrait Edition).  ","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[29727] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1  PRINTS FOR SALE","link":"gallery_29727.html","maxRecords":0.0,"photoIDs":[355165.0,361529.0,361538.0,361842.0,361851.0,361876.0,361583.0,361543.0,361553.0,363932.0,1742974.0,856977.0],"skipIndex":0,"section_code":"gallery","featured_images":361529.0,"id":29727,"singleSection":false});				  						galleries[29739] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2 PRINTS FOR SALE","link":"gallery_29739.html","maxRecords":0.0,"photoIDs":[361786.0,361870.0,363935.0,361597.0,361846.0,361630.0,361859.0,363945.0],"skipIndex":0,"section_code":"gallery","featured_images":"363945,363935,361870,361859,361846,361786,361630,361597","id":29739,"singleSection":false});				  						galleries[29748] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 3 PRINTS FOR SALE","link":"gallery_29748.html","maxRecords":0.0,"photoIDs":[361878.0,361785.0,361862.0,361855.0,361533.0,361852.0,361612.0,379620.0,425582.0],"skipIndex":0,"section_code":"gallery","featured_images":"425582,379620,361878,361862,361855,361852,361785,361612,361533","id":29748,"singleSection":false});				  						galleries[29751] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 4 PRINTS FOR SALE","link":"gallery_29751.html","maxRecords":0.0,"photoIDs":[361635.0,361558.0,494281.0,959276.0,494282.0,361845.0,768782.0,361854.0,361605.0,1654974.0,971353.0,1306165.0],"skipIndex":0,"section_code":"gallery","featured_images":"1654974,1306165,971353,959276,768782,494282,494281,361854,361845,361635","id":29751,"singleSection":false});				  						galleries[29813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 5 PRINTS FOR SALE","link":"gallery_29813.html","maxRecords":0.0,"photoIDs":[494279.0,857035.0,1126686.0,1126692.0,4941249.0,3034147.0],"skipIndex":0,"section_code":"gallery","featured_images":"4941249,3034147,1126692,1126686,857035,494279","id":29813,"singleSection":false});				  						galleries[29980] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 6 PRINTS FOR SALE","link":"gallery_29980.html","maxRecords":0.0,"photoIDs":[361869.0,361848.0,361861.0,363942.0,364168.0,573059.0],"skipIndex":0,"section_code":"gallery","featured_images":"573059,364168,363942,361869,361861,361848","id":29980,"singleSection":false});				  						galleries[29982] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 7 PRINTS FOR SALE","link":"gallery_29982.html","maxRecords":0.0,"photoIDs":[364178.0,364180.0,364405.0,364181.0,364175.0],"skipIndex":0,"section_code":"gallery","featured_images":"364405,364181,364180,364178,364175","id":29982,"singleSection":false});				  						galleries[38509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 8 PRINTS FOR SALE","link":"gallery_38509.html","maxRecords":0.0,"photoIDs":[3260997.0,3573023.0,364132.0,494280.0,3261044.0,364138.0,1644850.0,1306464.0,1743009.0,1875833.0,1802746.0,3007408.0,2938900.0,6766208.0,3154003.0,3007410.0],"skipIndex":0,"section_code":"gallery","featured_images":"6766208,3573023,3261044,3260997,3154003,3007410,3007408,2938900,1875833,1802746","id":38509,"singleSection":false});				  						galleries[208687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 9 PRINTS FOR SALE","link":"gallery_208687.html","maxRecords":0.0,"photoIDs":[3414684.0,3992165.0,4121486.0,3561769.0,4309029.0,9166184.0,5097664.0,5073784.0,5073752.0,5531353.0,5922975.0],"skipIndex":0,"section_code":"gallery","featured_images":"9166184,5922975,5531353,5097664,5073784,5073752,4309029,4121486,3992165,3561769","id":208687,"singleSection":false});				  						galleries[392787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GALLERY 10 PRINTS FOR SALE","link":"gallery_392787.html","maxRecords":0.0,"photoIDs":[7262611.0,7262685.0,7955382.0,8610087.0,8918827.0,7262686.0,8239174.0],"skipIndex":0,"section_code":"gallery","featured_images":"8918827,8610087,8239174,7955382,7262686,7262685,7262611","id":392787,"singleSection":false});				  						galleries[131212] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"REPRODUCTION CANVASSES FOR SALE £325 each","link":"gallery_131212.html","maxRecords":0.0,"photoIDs":[4476266.0,7262584.0,7955380.0,8610093.0,1953604.0,1986010.0,3573082.0,2427002.0,2427007.0,2427014.0,3612532.0,2427076.0,2471403.0,8239125.0,9166242.0,3612586.0,2427018.0,5922989.0,6766209.0],"skipIndex":0,"section_code":"gallery","featured_images":"9166242,8610093,8239125,7955380,7262584,6766209,5922989,4476266,3612586,3612532","id":131212,"singleSection":false});				  						galleries[66039] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ORIGINALS FOR SALE","link":"gallery_66039.html","maxRecords":0.0,"photoIDs":[2423835.0,5922979.0],"skipIndex":0,"section_code":"gallery","featured_images":"5922979,2423835","id":66039,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9166184,9166242';
imageSets[2] = '361529';
imageSets[3] = '9166242,9166184,8918827,8610093,8610087,8239174,8239125,7955382,7955380,7262686,7262685,7262611,7262584,6766209,6766208,5922989,5922979,5922975,5531353,5097664,5073784,5073752,4941249,4476266,4309029,4121486,3992165,3612586,3612532,3573082,3573023,3561769,3414684,3261044,3260997,3154003,3034147,3007410,3007408,2938900,2471403,2427076,2427018,2427014,2427007,2427002,2423835,2422513,1986010,1953604';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/peterknight/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/peterknight/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/peterknight/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 = 'PETER KNIGHT JERSEY ARTIST: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

